]> git.proxmox.com Git - grub2.git/blob - ChangeLog
Better estimate the maximum USB transfer size.
[grub2.git] / ChangeLog
1 2013-03-19 Aleš Nesrsta <starous@volny.cz>
2
3 Better estimate the maximum USB transfer size.
4
5 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
6
7 Resend a packet if we got the wrong buffer in status.
8
9 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
10
11 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
12 multiplication rather than division.
13
14 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
15
16 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
17 than divisions.
18
19 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
20
21 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
22 operations to have intended shifts and not divisions.
23
24 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
27 intended shifts rather than division.
28
29 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
32 computation for some years before epoch. Avode confusing division
33 while on it.
34
35 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
36
37 * grub-core/video/i386/pc/vbe.c
38 (grub_video_vbe_print_adapter_specific_info): Replace division by
39 shifts.
40
41 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
42
43 Adjust types in gdb module to have intended unsigned shifts rather than
44 signed divisions.
45
46 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
47
48 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
49 maximum size is 4G - 1 on hfs
50
51 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
52
53 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
54
55 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
56
57 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
58 function.
59
60 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
61
62 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
63 causing gcc error with gcc 4.7.1.
64
65 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
66
67 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
68 dereference null pointer. While the code is technically correct, gcc
69 may eliminate a null check if pointer is already dereferenced.
70
71 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
72
73 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
74 OOM check.
75 * grub-core/normal/term.c (read_terminal_list): Likewise.
76
77 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
78
79 Lift up core size limits on some platforms. Fix potential memory
80 corruption with big core on small memory systems. Document remaining
81 limits.
82
83 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
86 gotoxy to 0,0.
87
88 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
89
90 Remove all trampoline support. Add -Wtrampolines when
91 present. Remove symbols used for trampolines to make
92 link fail if trampolines are present.
93
94 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
95
96 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
97 append out of its parent.
98
99 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
102 parent.
103
104 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
105
106 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
107 all vars to a macro. All users updated.
108
109 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
110
111 * grub-core/disk/ieee1275/nand.c: Fix compilation on
112 i386-ieee1275.
113
114 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
115
116 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
117
118 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
119
120 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
121
122 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
123
124 Move to more hookless approach in IEEE1275 devices handling.
125
126 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
127
128 * grub-core/kern/term.c (grub_term_normal_color),
129 (grub_term_highlight_color): Add back lost defaults.
130
131 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
132
133 Make elfload not use hooks. Opt for flags and iterators instead.
134
135 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
136
137 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
138 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
139
140 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * grub-core/script/execute.c (gettext_append): Remove nested functions.
143
144 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
145
146 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
147 hook pass-through parameter. All users updated and unnested.
148
149 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
152 out of its parent.
153
154 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/fs/hfs.c: Remove nested functions.
157
158 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
159
160 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
161 the context through.
162 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
163
164 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
165
166 * util/grub-editenv.c (list_variables): Move print_var out of its
167 parent.
168
169 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
170
171 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
172 function.
173
174 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
175
176 * grub-core/gentrigtables.c: Make tables const.
177
178 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
179
180 Remove nested functions from videoinfo iterators.
181
182 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
183
184 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
185 for 64-bit platforms.
186
187 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
188
189 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
190 a FOR_CHILDREN macro.
191
192 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
195 platform from firmware path.
196
197 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
198
199 Enable linux16 on non-BIOS systems for i.a. memtest.
200
201 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
202 correctly.
203 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
204
205 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
208 Fix end of table condition.
209
210 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
211
212 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
213 out of its parent.
214
215 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
216
217 * grub-core/fs/jfs.c: Remove nested functions.
218
219 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
220
221 * grub-core/fs/minix.c: Remove nested functions.
222
223 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * grub-core/fs/iso9660.c: Remove nested functions.
226
227 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
230 of parent function.
231
232 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * util/grub-fstest.c: Remove nested functions.
235
236 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * grub-core/loader/machoXX.c: Remove nested functions.
239
240 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
241
242 Remove nested functions from disk and file read hooks.
243
244 * include/grub/disk.h (grub_disk_read_hook_t): New type.
245 (struct grub_disk): Add read_hook_data member.
246 * include/grub/file.h (struct grub_file): Likewise.
247 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
248 argument.
249
250 Update all callers.
251
252 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
253
254 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
255 Fix off by one error in enumerating extended partitions.
256
257 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
258
259 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
260 memory leak if device name is not found.
261
262 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
263
264 * grub-core/normal/menu_entry.c (update_screen): remove
265 unused variable `off' which caused scroll down arrow to be always shown.
266
267 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
268
269 * grub-core/normal/menu_entry.c (insert_string): fix off by one
270 access to unallocated memory.
271
272 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
273
274 * Makefile.util.def: Add partmap/msdos.c to common library.
275 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
276 * grub-core/disk/ldm.c: Check for existence of
277 GRUB_PC_PARTITION_TYPE_LDM.
278
279 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
282 sizes and display sector size.
283
284 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
285
286 Implement new command cmosdump.
287
288 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
289
290 Support Openfirmware disks with non-512B sectors.
291
292 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
293 size of the disk.
294 * (grub_ofdisk_get_block_size): New function.
295 * (grub_ofdisk_prepare): Use the correct block size.
296 * (grub_ofdisk_read): Likewise.
297 * (grub_ofdisk_write): Likewise.
298 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
299 New proto.
300
301 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
304
305 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
306
307 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
308 on first error.
309
310 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
313 freeing it.
314
315 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
316
317 Implement USBDebug (full USB stack variant).
318
319 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
320
321 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
322 unless they have unexpected values.
323
324 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
325
326 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
327 grub_print_error.
328
329 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
330
331 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
332 zero-out of port structure.
333
334 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
335
336 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
337 of extended attributes.
338
339 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
340
341 * util/grub-install.in: change misleading comment about
342 device.map creation
343
344 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
345
346 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
347 when menu highlight color isn't set.
348
349 2013-01-27 C. Masloch <pushbx@38.de>
350
351 Improve FreeDOS direct loading support compatibility.
352
353 * include/grub/i386/relocator.h (grub_relocator16_state):
354 New member ebp.
355 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
356 variable.
357 (grub_relocator16_boot): Handle %ebp.
358 * grub-core/lib/i386/relocator16.S: Likewise.
359 * grub-core/loader/i386/pc/freedos.c:
360 Load BPB to pass kernel which partition to load from.
361 Check that kernel file is not too large.
362 Set register dl to BIOS unit number as well.
363
364 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
365
366 * util/grub-reboot.in (usage): Document the need for
367 GRUB_DEFAULT=saved.
368 * util/grub-set-default.in (usage): Likewise.
369 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
370
371 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
372
373 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
374 than defining WORDS_BIGENDIAN manually.
375
376 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
377
378 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
379 invariants.
380
381 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
382
383 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
384 nested.
385 (blit_comb: add_device_width): Likewise.
386
387 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
388
389 Remove nested functions from USB iterators.
390
391 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
392 (grub_usb_controller_iterate_hook_t): Likewise.
393 (grub_usb_iterate): Add hook_data argument.
394 (grub_usb_controller_iterate): Likewise.
395 (struct grub_usb_controller_dev.iterate): Likewise.
396
397 Update all implementations and callers.
398
399 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
400
401 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
402 margin when not needed.
403
404 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
405
406 Make color variables global instead of it being per-terminal.
407
408 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
409
410 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
411 asterisk.
412
413 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
414
415 Fix powerpc and sparc64 build failures caused by un-nesting memory
416 map iterators.
417
418 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
419
420 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
421 parameter declarations.
422
423 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
424
425 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
426
427 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
428
429 Improve spkmomdem reliability by adding a separator between bytes.
430
431 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
432
433 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
434 an Acer registration utility with several sightings in the wild.
435 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
436
437 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
438
439 Remove nested functions from filesystem directory iterators.
440
441 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
442 (struct grub_fs.dir): Add hook_data argument.
443
444 Update all implementations and callers.
445
446 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
447
448 * docs/grub.texi (Multi-boot manual config): Fix typo for
449 "recommended".
450
451 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
452
453 * util/grub-mkimage.c (main): Postpone freeing arguments.output
454 until after its use in generate_image.
455
456 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
457
458 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
459 initrd size to addr_min, since the initrd will be allocated after
460 this address.
461
462 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
463
464 * conf/Makefile.common: Fix autogen rules to pass definition
465 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
466
467 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
468
469 * include/grub/elf.h: Update ARM definitions based on binutils.
470
471 2013-01-20 Aleš Nesrsta <starous@volny.cz>
472
473 Split long USB transfers into short ones.
474
475 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
476
477 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
478 is interrupted by ESC.
479
480 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * util/grub-script-check.c (main): Uniform the error message.
483
484 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
485
486 Remove nested functions from ELF iterators.
487
488 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
489
490 Remove nested functions from device iterators.
491
492 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
493 (grub_arc_iterate_devs): Add hook_data argument.
494 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
495 (struct grub_ata_dev.iterate): Add hook_data argument.
496 * include/grub/device.h (grub_device_iterate_hook_t): New type.
497 (grub_device_iterate): Add hook_data argument.
498 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
499 (struct grub_disk_dev.iterate): Add hook_data argument.
500 (grub_disk_dev_iterate): Likewise.
501 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
502 Likewise.
503 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
504 Likewise.
505 * include/grub/partition.h (grub_partition_iterate_hook_t): New
506 type.
507 (struct grub_partition_map.iterate): Add hook_data argument.
508 (grub_partition_iterate): Likewise.
509 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
510 (struct grub_scsi_dev.iterate): Add hook_data argument.
511
512 Update all callers.
513
514 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
515
516 Fix typos for "developer" and "development".
517
518 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
519
520 Add license header to spkmodem-recv.c.
521
522 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
523
524 Rewrite spkmodem to use PIT for timing. Double the speed.
525
526 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
527
528 Add new command pcidump.
529
530 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
531
532 New terminal outputs using serial: morse and spkmodem.
533
534 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
535
536 Improve bidi handling in entry editor.
537
538 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
541 argument to prevent name collision.
542
543 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
544
545 Remove nested functions from script reading and parsing.
546
547 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
548 getline_data argument, passed to getline.
549 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
550 getline_data argument, passed to grub_parser_split_cmdline.
551 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
552 lexerstate->getline_data to lexerstate->getline.
553 (grub_script_lexer_init): Add getline_data argument, saved in
554 lexerstate->getline_data.
555 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
556 argument, passed to grub_script_parse.
557 * grub-core/script/script.c (grub_script_parse): Add getline_data
558 argument, passed to grub_script_lexer_init.
559 * include/grub/parser.h (grub_parser_split_cmdline): Update
560 prototype. Update all callers to pass appropriate getline data.
561 (struct grub_parser.parse_line): Likewise.
562 (grub_rescue_parse_line): Likewise.
563 * include/grub/reader.h (grub_reader_getline_t): Add void *
564 argument.
565 * include/grub/script_sh.h (struct grub_lexer_param): Add
566 getline_data member.
567 (grub_script_parse): Update prototype. Update all callers to pass
568 appropriate getline data.
569 (grub_script_lexer_init): Likewise.
570 (grub_normal_parse_line): Likewise.
571
572 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
573 data argument.
574 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
575 static instead of nested. Rename to ...
576 (grub_parser_execute_getline): ... this.
577 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
578 data argument.
579 * grub-core/normal/main.c (read_config_file: getline): Make static
580 instead of nested. Rename to ...
581 (read_config_file_getline): ... this.
582 (grub_normal_read_line): Add unused data argument.
583 * grub-core/script/execute.c (grub_script_execute_sourcecode:
584 getline): Make static instead of nested. Rename to ...
585 (grub_script_execute_sourcecode_getline): ... this.
586 * util/grub-script-check.c (main: get_config_line): Make static
587 instead of nested.
588
589 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
590
591 Remove nested functions from memory map iterators.
592
593 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
594 argument, passed to hook.
595 * grub-core/kern/i386/coreboot/mmap.c
596 (grub_linuxbios_table_iterate): Likewise.
597 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
598 instead of nested.
599 (grub_machine_mmap_iterate): Add hook_data argument.
600 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
601 Add hook_data argument, passed to hook.
602 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
603 Likewise.
604 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
605 Likewise.
606 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
607 Likewise.
608 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
609 Likewise.
610 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
611 Likewise.
612 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
613 Likewise.
614 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
615 (grub_machine_mmap_iterate): Likewise.
616 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
617 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
618 prototype.
619 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
620 Remove NESTED_FUNC_ATTR from here and from all users.
621 (grub_mmap_iterate): Update prototype.
622 (grub_efi_mmap_iterate): Update prototype. Update all callers to
623 pass appropriate hook data.
624 (grub_machine_mmap_iterate): Likewise.
625
626 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
627 static instead of nested.
628 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
629 Rename to ...
630 (lsmmap_hook): ... this.
631 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
632 Likewise.
633 (grub_efiemu_mmap_fill: fill_hook): Likewise.
634 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
635 heap_init): Likewise.
636 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
637 Rename to ...
638 (mmap_iterate_hook): ... this.
639 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
640 Likewise.
641 * grub-core/lib/ieee1275/relocator.c
642 (grub_relocator_firmware_get_max_events: count): Likewise.
643 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
644 to ...
645 (grub_relocator_firmware_fill_events_iter): ... this.
646 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
647 hook): Likewise. Rename to ...
648 (grub_relocator_alloc_chunk_align_iter): ... this.
649 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
650 Rename to ...
651 (generate_e820_mmap_iter): ... this.
652 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
653 Rename to ...
654 (count_hook): ... this.
655 (grub_linux_boot: hook): Likewise. Rename to ...
656 (grub_linux_boot_mmap_find): ... this.
657 (grub_linux_boot: hook_fill): Likewise. Rename to ...
658 (grub_linux_boot_mmap_fill): ... this.
659 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
660 hook): Likewise. Rename to ...
661 (grub_fill_multiboot_mmap_iter): ... this.
662 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
663 hook): Likewise. Rename to ...
664 (count_hook): ... this.
665 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
666 hook): Likewise. Rename to ...
667 (grub_fill_multiboot_mmap_iter): ... this.
668 * grub-core/loader/powerpc/ieee1275/linux.c
669 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
670 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
671 Likewise. Rename to ...
672 (alloc_phys_choose): ... this.
673 (determine_phys_base: get_physbase): Likewise.
674 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
675 find_hook): Likewise.
676 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
677 (malloc_hook: count_hook): Likewise.
678 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
679 Likewise. Rename to ...
680 (lower_hook): ... this.
681 (grub_mmap_get_upper: hook): Likewise. Rename to ...
682 (upper_hook): ... this.
683 (grub_mmap_get_post64: hook): Likewise. Rename to ...
684 (post64_hook): ... this.
685 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
686 Likewise. Rename to ...
687 (lower_hook): ... this.
688 (grub_mmap_get_upper: hook): Likewise. Rename to ...
689 (upper_hook): ... this.
690 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
691 (grub_mmap_iterate: fill_hook): Likewise.
692 (fill_mask): Pass addr and mask within a single struct.
693 (grub_cmd_badram: hook): Make static instead of nested. Rename
694 to ...
695 (badram_iter): ... this.
696 (grub_cmd_cutmem: hook): Likewise. Rename to ...
697 (cutmem_iter): ... this.
698
699 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
700
701 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
702 delimit path in strings using quotes.
703 * util/getroot.c (grub_guess_root_devices): Likewise.
704 (grub_make_system_path_relative_to_its_root): Likewise.
705 * util/grub-probe.c (probe): Likewise.
706 * util/ieee1275/ofpath.c (find_obppath): Likewise.
707 (xrealpath): Likewise.
708
709 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
710
711 Fix compilation with older compilers.
712
713 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
714 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
715 declarations.
716 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
717 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
718 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
719 identifier with b.
720 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
721 * include/grub/crypto.h: Add type defines.
722 * util/import_gcrypth.sed: Remove duplicate type defines.
723
724 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
725
726 New command list_trusted.
727
728 * grub-core/commands/verify.c (grub_cmd_list): New function.
729
730 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
731
732 * util/grub-mkimage.c (generate_image): Fix "size of public key"
733 info message.
734
735 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
736
737 Remove nested functions from PCI iterators.
738
739 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
740 passed to hook. Update all callers to pass appropriate hook data.
741 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
742 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
743 Remove NESTED_FUNC_ATTR from here and from all users.
744 (grub_pci_iterate): Update prototype.
745 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
746 instead of nested. Rename to ...
747 (grub_cs5536_find_iter): ... this.
748 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
749 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
750 Likewise.
751 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
752 Likewise.
753 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
754 Likewise.
755 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
756 Likewise.
757 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
758 * grub-core/video/radeon_fuloong2e.c
759 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
760 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
761 find_card): Likewise.
762 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
763 Likewise.
764
765 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * grub-core/commands/verify.c: Mark messages for translating.
768
769 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
772 fatal.
773
774 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
775
776 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
777 fatal.
778
779 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * autogen.sh: Do not try to delete nonexistant files.
782 * util/import_gcrypth.sed: Add some missing header removals.
783
784 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
785
786 Clean up dangling references to grub-setup.
787 Fixes Ubuntu bug #1082045.
788
789 * docs/grub.texi (Images): Refer generally to grub-install rather
790 than directly to grub-setup.
791 (Installing GRUB using grub-install): Remove direct reference to
792 grub-setup.
793 (Device map) Likewise.
794 (Invoking grub-install): Likewise.
795 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
796 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
797 * util/grub-install.in (usage): Likewise.
798
799 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
800 Apply to grub-bios-setup and grub-sparc64-setup rather than to
801 grub-setup.
802 * configure.ac: Remove grub_setup output variable.
803
804 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
805 to grub-bios-setup.
806 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
807 grub-setup to grub-sparc64-setup.
808
809 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
810
811 Import gcrypt public-key cryptography and implement signature checking.
812
813 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
814
815 * grub-core/fs/ntfs.c: Ue more appropriate types.
816 * grub-core/fs/ntfscomp.c: Likewise.
817 * include/grub/ntfs.h: Likewise.
818
819 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
820
821 Support Apple FAT binaries on non-Apple platforms.
822
823 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
824 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
825 Likewise.
826 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
827 Apple FAT binaries.
828
829 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
830
831 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
832 sector devices.
833
834 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
835
836 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
837 explicitly zeroing elements.
838 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
839 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
840 of elements in a structure already allocated using grub_zalloc.
841 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
842
843 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
844
845 * docs/grub.texi (grub_cpu): New subsection.
846 (grub_platform): Likewise.
847
848 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
849
850 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
851
852 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
853
854 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
855 divisions.
856
857 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
860 * grub-core/fs/ntfscomp.c: Likewise.
861 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
862 (grub_ntfs_comp): Likewise.
863
864 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
865
866 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
867 Rename to ...
868 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
869 of groups_per_block. All users updated.
870
871 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
874 grub_error properly.
875 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
876 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
877
878 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
879
880 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
881 always in /boot/zfs.
882 Reported by: Yuta Satoh.
883
884 2013-01-03 Yuta Satoh <nigoro>
885
886 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
887 ${grub_probe}
888
889 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * configure.ac: Extend -Wno-trampolines to host.
892
893 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
896 entry->len = 0.
897
898 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
899
900 * docs/grub.texi (Invoking grub-mkrelpath): New section.
901 (Invoking grub-script-check): Likewise.
902
903 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
904
905 * docs/grub.texi (Invoking grub-mount): New section.
906 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
907
908 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
909
910 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
911 test failures, so that a failing unit test correctly causes 'make
912 check' to fail.
913
914 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
915
916 Fix failing printf test.
917
918 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
919 '$' in the correct order when collecting type information.
920
921 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
922
923 * docs/grub.texi (configfile): Explain environment variable
924 handling.
925 (source): New section.
926 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
927
928 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
929
930 Remove several trivially-unnecessary uses of nested functions.
931
932 * grub-core/commands/i386/pc/sendkey.c
933 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
934 instead of nested.
935 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
936 Rename to ...
937 (legacy_file_getline): ... this.
938 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
939 Likewise.
940 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
941 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
942 to ...
943 (probe_dummy_iter): ... this.
944 * grub-core/kern/i386/coreboot/mmap.c
945 (grub_linuxbios_table_iterate: check_signature): Likewise.
946 * grub-core/kern/parser.c (grub_parser_split_cmdline:
947 check_varstate): Likewise. Mark inline.
948 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
949 an additional parameter.
950 (find_long: fnd_long): Likewise. Pass two additional parameters.
951 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
952 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
953 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
954 Likewise. Rename to ...
955 (grub_cmos_find_port_iter): ... this.
956 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
957 Rename to ...
958 (find_rtc_iter): ... this.
959
960 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
961 function directly into the function body, since it is only called
962 once.
963
964 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
965
966 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
967 __attribute__ ((unused)).
968 * grub-core/video/bochs.c (find_card): Likewise.
969 * grub-core/video/cirrus.c (find_card): Likewise.
970 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
971 * grub-core/video/sis315pro.c (find_card): Likewise.
972 * grub-core/video/sm712.c (find_card): Likewise.
973
974 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
975
976 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
977 Fixes Savannah bug #37821.
978
979 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
980
981 Apply program name transformations at build-time rather than at
982 run-time. Fixes Debian bug #696465.
983
984 * acinclude.m4 (grub_TRANSFORM): New macro.
985 * configure.ac: Create output variables with transformed names for
986 most programs.
987 * util/bash-completion.d/grub-completion.bash.in: Use
988 pre-transformed variables for program names.
989 * util/grub-install.in: Likewise.
990 * util/grub-kbdcomp.in: Likewise.
991 * util/grub-mkconfig.in: Likewise.
992 * util/grub-mkconfig_lib.in: Likewise.
993 * util/grub-mknetdir.in: Likewise.
994 * util/grub-mkrescue.in: Likewise.
995 * util/grub-mkstandalone.in: Likewise.
996 * util/grub-reboot.in: Likewise.
997 * util/grub-set-default.in: Likewise.
998 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
999 * tests/util/grub-shell-tester.in: Remove unused assignment.
1000 * tests/util/grub-shell.in: Likewise.
1001 * util/grub.d/00_header.in: Likewise.
1002
1003 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1004
1005 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1006
1007 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1008 HAVE_RAW_DECL_GETS.
1009 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1010
1011 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1014 Reported by: Eriks Latosheks <foresterlv>.
1015
1016 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1017
1018 * docs/grub.texi (Network): Update instructions on generating netboot
1019 image.
1020
1021 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1022
1023 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1024 around device name if necessarry.
1025
1026 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1027
1028 * util/grub-install.in: Follow the symbolic link parameter added
1029 to the file command.
1030
1031 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1032
1033 * util/grub-install.in: Remove stale TODO.
1034
1035 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1036
1037 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1038 dynamic allocation for the bootpath buffer.
1039
1040 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1041
1042 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1043 window too small.
1044
1045 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1048 argument rather than font name. All users updated.
1049 (grub_gfxterm_set_window): Likewise.
1050
1051 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1052
1053 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1054 from working.
1055
1056 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1057
1058 * util/getroot.c (convert_system_partition_to_system_disk): Support
1059 nbd disks.
1060
1061 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1062
1063 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1064 infinite loop on corrupted FS.
1065
1066 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 Fix big-endian mtime.
1069
1070 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1071 together sec and usec.
1072 (grub_ufs_dir): Use correct byteswapping for UFS time.
1073
1074 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 Support big-endian UFS1.
1077
1078 * Makefile.util.def (libgrubmods): Add ufs_be.c
1079 * grub-core/Makefile.core.def (ufs1_be): New module.
1080 * grub-core/fs/ufs_be.c: New file.
1081 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1082 the file.
1083
1084 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1085
1086 * include/grub/types.h: Fix functionality unaffecting typo in
1087 GRUB_TARGET_WORDSIZE conditional macro.
1088
1089 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1090
1091 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1092
1093 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1094
1095 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1096 that /netbsd appears first (when it exists).
1097
1098 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1099
1100 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1101 Fixes Savannah bug #37558.
1102
1103 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1104
1105 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1106 description of extract_entries_configfile.
1107
1108 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1109
1110 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1111 preferred_address.
1112 (grub_cmd_linux): Likewise.
1113 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1114 preferred_lifetime. Update all users.
1115
1116 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1117
1118 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1119 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1120
1121 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1122
1123 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1124 errors from grub-probe to /dev/null, not stdout.
1125
1126 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1129 sector 1.
1130
1131 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1132
1133 * util/grub-install.in: Make the error message if $source_dir
1134 doesn't exist more useful.
1135
1136 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1137
1138 Fix grub-emu build on FreeBSD.
1139
1140 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1141 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1142 headers on Linux.
1143 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1144 implementation is currently Linux-specific.
1145 * util/getroot.c (exec_pipe): Define only on Linux or when either
1146 libzfs or libnvpair is unavailable.
1147 (find_root_devices_from_poolname): Remove unused path variable.
1148
1149 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1150
1151 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1152 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1153 should fit before end == 63.
1154
1155 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1156
1157 * util/grub-setup.c (write_rootdev): Remove unused core_img
1158 parameter. Update all callers.
1159 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1160 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1161 GRUB_SETUP_BIOS.
1162
1163 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1164
1165 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1166 (grub_add_tab): New function.
1167 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1168 * util/grub.d/10_illumos.in: Likewise.
1169 * util/grub.d/10_kfreebsd.in: Likewise.
1170 * util/grub.d/10_linux.in: Likewise.
1171 * util/grub.d/10_netbsd.in: Likewise.
1172 * util/grub.d/10_windows.in: Likewise.
1173 * util/grub.d/10_xnu.in: Likewise.
1174 * util/grub.d/20_linux_xen.in: Likewise.
1175 * util/grub.d/30_os-prober.in: Likewise.
1176
1177 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1180 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1181 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1182 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1183 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1184 ieee1275-nocursor.
1185 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1186 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1187
1188 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1191 le-conversion.
1192 Reported by: BURETTE, Bernard.
1193
1194 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1195
1196 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1197 from comment.
1198
1199 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1200
1201 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1202 IEEE1275 machines. Fixes powerpc-emu compilation.
1203 * include/grub/terminfo.h: Likewise.
1204
1205 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1206
1207 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1208 a const pointer.
1209 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1210 const pointer.
1211 (efiemu_set_variable): Make vendor_guid a const pointer.
1212
1213 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1214
1215 Don't require grub-mkconfig_lib to generate manpages for programs.
1216
1217 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1218 dependencies, don't add grub-mkconfig_lib.
1219 (program): Pass empty adddeps.
1220 (script): Pass grub-mkconfig_lib as adddeps.
1221
1222 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1223
1224 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1225 * util/getroot.c (grub_find_device): Likewise.
1226 (get_mdadm_uuid): Likewise.
1227 (grub_util_is_imsm): Likewise.
1228 (grub_util_pull_device): Likewise.
1229 * util/grub-probe.c (probe): Likewise.
1230
1231 2012-09-10 Benoit Gschwind <gschwind>
1232
1233 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1234 (devs): Add devpath_8.
1235
1236 2012-09-08 Peter Jones <pjones@redhat.com>
1237
1238 * grub-core/Makefile.core.def (efifwsetup): New module.
1239 * grub-core/commands/efi/efifwsetup.c: New file.
1240 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1241 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1242 New define.
1243 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1244
1245 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1246
1247 * configure.ac: Add SuSe path.
1248
1249 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1250
1251 * NEWS: Fix typo.
1252
1253 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1254
1255 * util/import_gcry.py: Sort cipher_files, to make build system
1256 generation more deterministic.
1257
1258 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1259
1260 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1261 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1262 (grub_set_datetime): Likewise.
1263
1264 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1267 warnings.
1268
1269 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1272
1273 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1276
1277 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1278
1279 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1280 required for checkouts from bzr, but it may be useful for users or
1281 distributors wishing to update translations against a tarball
1282 distribution, and it can be helpful for the tarball to be a superset
1283 of what's in bzr.
1284
1285 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1286
1287 * Makefile.am (EXTRA_DIST): Add
1288 grub-core/tests/boot/linux.init-mips.S,
1289 grub-core/tests/boot/linux.init-ppc.S, and
1290 grub-core/tests/boot/linux-ppc.cfg.
1291
1292 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1293
1294 * grub-core/mmap/mips/loongson: Remove empty directory.
1295
1296 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1297
1298 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1299 gone.
1300
1301 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1302
1303 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1304 grub-sparc64-setup.
1305
1306 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1307
1308 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1309
1310 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1311
1312 * po/POTFILES.in: Regenerated.
1313
1314 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1315
1316 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1317 (NetBSD): New subsection.
1318
1319 2012-07-22 Ales Nesrsta <starous@volny.cz>
1320
1321 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1322 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1323
1324 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1327 * util/grub.d/10_hurd.in: Add missing quoting.
1328 * util/grub.d/10_illumos.in: Likewise.
1329 * util/grub.d/10_kfreebsd.in: Likewise.
1330 * util/grub.d/10_linux.in: Likewise.
1331 * util/grub.d/20_linux_xen.in: Likewise.
1332
1333 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1334
1335 New command `lsefi'.
1336
1337 * grub-core/Makefile.core.def (lsefi): New module.
1338 * grub-core/commands/efi/lsefi.c: New file.
1339 * include/grub/efi/api.h: Add more GUIDs.
1340
1341 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1344 (grub_bsd_elf32_hook): Likewise.
1345 (grub_bsd_elf64_size_hook): Likewise.
1346 (grub_bsd_elf64_hook): Likewise.
1347 (grub_bsd_load_elf): Likewise.
1348
1349 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1350
1351 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1352 if hash function is unavailable.
1353 (dec_stream_header): Likewise.
1354
1355 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1356
1357 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1358 filter state.
1359
1360 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 Fix coreboot compilation.
1363
1364 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1365 (grub_vga_text_init_real): ... this.
1366 (grub_vga_text_fini): Rename to ...
1367 (grub_vga_text_fini_real): ... this.
1368
1369 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1372
1373 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/lib/legacy_parse.c: Support clear and testload.
1376
1377 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1380
1381 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1384
1385 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1386
1387 * grub-core/net/tftp.c (ack): Fix endianness problem.
1388 (tftp_receive): Likewise.
1389 Reported by: Michael Davidsaver.
1390
1391 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1392
1393 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1394
1395 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1398 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1399 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1400
1401 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1402
1403 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1404 efi_mmap_size.
1405 Reported by: Stuart Hayes.
1406
1407 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1408
1409 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1410
1411 * grub-core/Makefile.core.def (mda_text): New module.
1412 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1413 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1414 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1415 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1416 here.
1417 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1418 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1419 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1420 here.
1421 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1422 to ..
1423 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1424 ... here
1425 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1426 here.
1427 * grub-core/term/i386/vga_common.c: Removed.
1428 * include/grub/i386/vga_common.h: Likewise.
1429 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1430 (grub_vga_cr_bw_read): Likewise.
1431 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1432 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1433 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1434 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1435 grub_vga_cr_read/grub_vga_cr_write.
1436 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1437
1438 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * configure.ac: Bump version to 2.00.
1441 * grub-core/normal/main.c (features): Add feature_200_final.
1442
1443 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1444 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1445
1446 * NEWS: Fix unclarity and language mistakes.
1447
1448 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1451 additional size to 3 pages.
1452 Reported by: Stuart Hayes.
1453
1454 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * NEWS: Add 2.00 entry.
1457
1458 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1459
1460 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1461 put explicit "/" for empty path.
1462 (wildcard_expand): Improve dprintf.
1463
1464 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1465
1466 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1467 it's equal to currnode. This can happen with "" symlink.
1468
1469 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1470
1471 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1472 echo shell command by printf command.
1473
1474 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1477 the value returned by firmware is the maximal position, not diumension.
1478 (grub_terminfo_output_state): Use a more sane fallback.
1479
1480 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1483
1484 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1485
1486 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1487 frequency to 150 MHz.
1488
1489 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1490
1491 Apple fixes.
1492
1493 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1494 __APPLE_
1495 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1496 definition.
1497 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1498
1499 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1500
1501 Handle slash in HFS label.
1502
1503 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1504 (grub_hfs_dir): Tanslate slash.
1505 (grub_hfs_label): Don't translate slash.
1506
1507 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1508
1509 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1510 network protocol listing since it introduces problematic dependency on
1511 net module.
1512
1513 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1516
1517 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 Init video early on yeeloong to avoid being rebooted by watchdog.
1520
1521 * grub-core/Makefile.am (gensm712): New target.
1522 (sm712_start.S): Likewise.
1523 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1524 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1525 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1526 description.
1527 * include/grub/vga.h: Move registry definitions to...
1528 * include/grub/vgaregs.h: ... here.
1529
1530 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1533 signedness.
1534
1535 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1538 platforms with firmware disk drivers in the core.
1539
1540 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1541
1542 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1543 informative verbose message.
1544 (read_lv): Handle 64-bit segment size.
1545
1546 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1549
1550 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1553 character but still remove trainling spaces.
1554 (grub_fat_label): Ignore archive flag.
1555
1556 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1559 cast between linux_kernel_header and linux_kernel_params.
1560
1561 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1562
1563 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1564 type for size.
1565 (grub_raid6_recover_func_t): Likewise.
1566 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1567 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1568
1569 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1570
1571 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1572
1573 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1574
1575 Fix overflow.
1576
1577 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1578 [__NetBSD__]: Add explicit cast before bitshift.
1579
1580 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 * configure.ac: Bump to 2.00~rc1.
1583
1584 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1585
1586 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1587 half of $a0.
1588
1589 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1590 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1591
1592 * docs/grub.texi: Fix search syntax.
1593 (Multi-boot manual config): Put msdos rather than GPT example.
1594 Grammar corrections.
1595
1596 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1599
1600 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1601
1602 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1603
1604 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1605
1606 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1607 message on double free. Put the value of magic in case of mismatch.
1608
1609 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1610
1611 Speed-up video on yeeloong.
1612
1613 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1614 add cached_ptr.
1615 (grub_video_sm712_video_fini): Unmap cached_ptr.
1616 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1617 (grub_video_sm712_set_active_render_target): Removed.
1618 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1619 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1620 sync caches.
1621
1622 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 Avoid flushing the same line multiple times on loongson.
1625
1626 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1627 Step in 32 bytes and not 1 byte.
1628 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1629 Likewise.
1630
1631 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1632
1633 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1634 subvolumes.
1635
1636 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1637
1638 Implement flow control for http.
1639
1640 * grub-core/net/http.c (parse_line): Handle response 206.
1641 (http_receive): Stall if too many packets are in the queue.
1642 (http_establish): Fix range header.
1643 (http_seek): Fix double free.
1644 (http_close): Likewise.
1645 (http_packets_pulled): New function.
1646 (grub_http_protocol): Set http_seek
1647 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1648 (ack_real): Set window depending on i_stall.
1649 (grub_net_send_tcp_packet): Likewise.
1650 (grub_net_tcp_stall): New function.
1651 (grub_net_tcp_unstall): Likewise.
1652 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1653 (grub_net_tcp_unstall): Likewise.
1654
1655 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1658
1659 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1662
1663 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 * tests/util/grub-shell.in: Fix a typo.
1666
1667 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 Implement flow control for tftp.
1670
1671 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1672 packets but stop only if stop condition is satisfied.
1673 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1674 `stall' instead of `eof' as stop condition.
1675 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1676 (http_err): Likewise.
1677 * grub-core/net/tftp.c (ack): Replace the first argument with data
1678 instead of socket.
1679 (tftp_receive): Stall if too many packets are in wait queue.
1680 (tftp_packets_pulled): New function.
1681 (grub_tftp_protocol): Set packets_pulled.
1682 * include/grub/net.h (grub_net_packets): New field count.
1683 (grub_net_put_packet): Increment count.
1684 (grub_net_remove_packet): Likewise.
1685 (grub_net_app_protocol): New field `packets_pulled'.
1686 (grub_net): New field `stall'.
1687
1688 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1689
1690 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1691 sync part to handle them.
1692
1693 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1694
1695 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1696 * grub-core/net/drivers/ieee1275/ofnet.c
1697 (grub_ieee1275_net_config_real): Likewise.
1698
1699 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1700
1701 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1702 the direct route for server/gateway.
1703
1704 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1707 IP address to server name since we may not hame the DNS.
1708
1709 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1710
1711 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1712 freeing random buffer on failure.
1713 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1714
1715 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1718
1719 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1722 reserved bytes.
1723 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1724 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1725 Handle malloc error correctly.
1726
1727 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1728
1729 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1730 blocks.
1731
1732 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1735 increment.
1736
1737 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1740 none is explicitly specified.
1741
1742 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1743
1744 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1745 while reallocating.
1746
1747 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1748
1749 Respect netmask from bootp/dhcp.
1750
1751 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1752 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1753 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1754 into ...
1755 (grub_net_add_ipv4_local): ... this.
1756 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1757 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1758 (grub_net_add_ipv4_local): New proto.
1759
1760 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1763 determining EFI memory map size.
1764
1765 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1766
1767 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1768
1769 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1770
1771 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1772 when looking for partition separator.
1773
1774 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1777 Escape commas.
1778
1779 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 Restructure FAT driver to avoid hook in label reading as it hits a
1782 GCC bug.
1783
1784 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1785 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1786 (grub_fat_iterate_dir): Split into ...
1787 (grub_fat_iterate_init): ... this, ...
1788 (grub_fat_iterate_fini): ... this, ...
1789 (grub_fat_iterate_dir_next): ... and this. All users updated.
1790
1791 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1792
1793 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1794 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1795 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1796 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1797 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1798 New fields last_key and last_key_time.
1799 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1800 extended key-esc into extended key-extended key.
1801
1802 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1803
1804 Avoid unnecessary memcpy of whole video buffer.
1805
1806 * grub-core/video/fb/video_fb.c (dirty): New struct.
1807 (framebuffer): Add members current_dirty and previous_dirty.
1808 (dirty): New function.
1809 (grub_video_fb_fill_rect): Update dirty.
1810 (common_blitter): Likewise.
1811 (grub_video_fb_scroll): Likewise.
1812 (doublebuf_blit_update_screen): Copy only dirty part.
1813 (doublebuf_pageflipping_update_screen): Likewise.
1814 (grub_video_fb_doublebuf_blit_init): Init dirty.
1815 (doublebuf_pageflipping_init): Likewise.
1816 (grub_video_fb_setup): Likewise.
1817
1818 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1819
1820 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1821 poll rate.
1822
1823 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1824
1825 Fix wildcard regexp dot and other special characters handling.
1826 Reported by: Robert Mabee.
1827
1828 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1829 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1830 (split_path): Trigger expansion on '?'.
1831 (unescape): New function.
1832 (wildcard_expand): Unescape parts copied without globbing.
1833 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1834 (grub_script_arglist_to_argv): Don't unescape expansions.
1835
1836 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 * include/grub/net.h (grub_net_card): New member txbufsize.
1839 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1840 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1841 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1842 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1843 txbufsize.
1844 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1845 compatible property to check for macs. Set
1846 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1847 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1848 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1849 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1850 (send_card_buffer): Use txbuf.
1851 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1852 nested function out of the parent while on it.
1853
1854 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1857 presence check.
1858 (grub_ieee1275_net_config_real): Fix config pointer.
1859
1860 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1861
1862 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1863 filename parsing to non-block devices.
1864
1865 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1868
1869 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1870
1871 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1872 All users updated.
1873
1874 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1877 UUID search command even if hints probing failed.
1878
1879 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1880
1881 * po/POTFILES.in: Regenerated.
1882
1883 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 Speed-up video on fuloong.
1886
1887 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1888 New function.
1889 (grub_pci_device_unmap_range): Handle non-cached address.
1890 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1891 add direct_ptr.
1892 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1893 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1894 (grub_video_sis315pro_set_active_render_target): Removed.
1895 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1896 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1897 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1898 sync caches.
1899 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1900 New proto.
1901
1902 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * docs/grub.texi (Multi-boot manual config): New section.
1905
1906 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 Avoid slow read-back from VRAM.
1909
1910 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1911 Move from here ...
1912 * grub-core/video/fb/video_fb.c
1913 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1914 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1915 (front_target): Remove front_target. Add pages.
1916 (grub_video_fb_init): Skip setting front_pages.
1917 (grub_video_fb_fini): Likewise.
1918 (doublebuf_blit_update_screen): Use pages.
1919 (grub_video_fb_doublebuf_blit_init): Likewise.
1920 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1921 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1922 (grub_video_fb_setup): Prefer doublebuffing.
1923
1924 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1925
1926 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1927 gzio.
1928
1929 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 Add loongson tests.
1932
1933 * tests/util/grub-shell.in: Handle loongson.
1934 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1935 drivers.
1936 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1937 Reboot instead of shutdown if REBOOT is defined.
1938
1939 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1940
1941 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1942 sized ports since unlike on real hardware qemu supports only 32-bit
1943 regs.
1944
1945 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1946
1947 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1948 * util/grub-mkrescue.in: Handle loongson.
1949
1950 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1951
1952 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1953 Set is_part appropriately.
1954 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1955 names. Canonicalize partition without full disk.
1956
1957 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1958
1959 Revert usb-quiesce since it's wrong.
1960
1961 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1962 (grub_ofdisk_init): Don't do quiesce.
1963
1964 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1967 PowerMac workaround to Xserves as well.
1968 Information supplied by: Benjamin Herrenschmidt.
1969
1970 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1971
1972 Don't assume that beginning address is also the entry point on ppc.
1973
1974 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1975 (grub_linux_boot): Use linux_entry.
1976 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1977 (grub_linux_load64): Likewise.
1978
1979 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1980
1981 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1982
1983 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1984
1985 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1986 needlessly lose the console.
1987
1988 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1989
1990 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1991 space.
1992
1993 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1996 than current grub_get_rtc() not implemented when booted with
1997 coreboot without TSC.
1998
1999 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2000 Add machine/time.h to kernel headers on loongson.
2001 * grub-core/Makefile.core.def (kernel): Remove
2002 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2003 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2004 (grub_get_rtc): Likewise.
2005 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2006 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2007 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2008 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2009 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2010 rather than installing known non-working time source.
2011 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2012 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2013 * include/grub/time.h: Don't include machine/time.h.
2014 * include/grub/efi/time.h: Removed.
2015 * include/grub/i386/efi/time.h: Likewise.
2016 * include/grub/i386/ieee1275/time.h: Likewise.
2017 * include/grub/powerpc/ieee1275/time.h: Likewise.
2018 * include/grub/sparc64/ieee1275/time.h: Likewise.
2019 * include/grub/x86_64/efi/time.h: Likewise.
2020
2021 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2022
2023 Remove dot on i and j when combining with above diacritics.
2024
2025 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2026 value.
2027 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2028 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2029 with dotless variants when any combining above is present.
2030
2031 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2032
2033 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2034 text and not binary.
2035
2036 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2037
2038 Stop polling as soon as we have the packet we were waiting for.
2039
2040 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2041 All users updated.
2042 * grub-core/net/arp.c (have_pending): New var.
2043 (pending_req): Likewise.
2044 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2045 stop indicator.
2046 (grub_net_arp_receive): Set have_pending.
2047 * grub-core/net/dns.c (recv_data): New field stop.
2048 (recv_hook): Set stop.
2049 (grub_net_dns_lookup): Init stop and use as stop condition.
2050 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2051 condition.
2052 * grub-core/net/net.c (grub_net_poll_cards): New argument
2053 stop_condition. Stop when it goes true.
2054 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2055 indicator.
2056 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2057
2058 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2059
2060 Keep TX and RX buffers on EFI rather than always allocate new ones.
2061
2062 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2063 card. All users updated.
2064 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2065 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2066 (get_card_packet): Likewise.
2067 (grub_efinet_findcards): Init new fields.
2068
2069 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2070
2071 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2072 compilation error on sparc64.
2073
2074 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2075
2076 Use ITC on IA64 rather than broken routine based on daytime.
2077
2078 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2079 ia64.
2080 (grub_get_rtc) [__ia64__]: Likewise.
2081 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2082 (get_itc): New function.
2083 (grub_rtc_get_time_ms): Likewise.
2084 (grub_machine_init): Calibrate ITC.
2085 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2086 Keep only on non-ia64. Don't export since it's broken and used only
2087 if TSC is unavailable.
2088
2089 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2090
2091 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2092 even if it's used.
2093 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2094 Skip if parent is unused.
2095
2096 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2097
2098 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2099
2100 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2101
2102 Fix wildcard escaping.
2103
2104 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2105 * grub-core/script/execute.c (wildcard_escape): .. to here.
2106 Don't escape dot.
2107 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2108 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2109 Don't escape dot.
2110 * grub-core/script/execute.c (gettext_append): Always escape.
2111 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2112 * grub-core/script/yylex.l: Don't cut away the escaping.
2113 * tests/grub_script_echo1.in: Add tests with wildcard.
2114
2115 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2118 (ftdi_hw_configure): Likewise.
2119 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2120 define.
2121 (real_config): Handle 1.5 stop bits.
2122 (pl2303_hw_configure): Likewise.
2123
2124 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2125
2126 * Makefile.am: Add ppc linux bootcheck.
2127 * grub-core/tests/boot/linux-ppc.cfg: New file.
2128 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2129
2130 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2131
2132 * tests/grub_script_expansion.in: Skip network protocols.
2133
2134 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2137
2138 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2141 --rom-directory.
2142 Add -graft-points.
2143
2144 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 ESCC serial driver for conducting sautomated tests in qemu.
2147 Not tested on real hardware.
2148
2149 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2150 * grub-core/term/ieee1275/escc.c: New file.
2151 * grub-core/Makefile.core.def (escc): New module.
2152
2153 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2154
2155 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2156 invalid on error.
2157 (serial_hw_fetch): Don't read invalid handle.
2158 (serial_hw_put): Don't write into invalid handle.
2159
2160 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2161
2162 Add a 1.5 stop bits value.
2163
2164 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2165 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2166 GRUB_SERIAL_STOP_BITS_1_5.
2167
2168 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2169
2170 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2171 value rather than let it uninited.
2172
2173 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2174
2175 * grub-core/commands/wildcard.c (+check_file): New function.
2176 (wildcard_expand): Don't expand to non-existing files, expand with
2177 suffix and not attempt to expand if not needed.
2178
2179 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2180
2181 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2182 out of partitions containing other partitions.
2183
2184 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2185
2186 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2187 on some qemu versions with GRUB.
2188
2189 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2190 define.
2191 (grub_openbsd_bootarg_pcibios): New struct.
2192 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2193 Add PCIINFO.
2194
2195 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2196
2197 * tests/util/grub-shell.in: Trim firmware output on EFI.
2198
2199 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2202 and coreboot since it's already in kernel.
2203
2204 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2205
2206 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2207 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2208 to here. New return value start. All users updated.
2209 Recursively scan linear mappings.
2210 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2211 proto.
2212 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2213 Use grub_util_get_dm_node_linear_info.
2214 * util/getroot.c (convert_system_partition_to_system_disk): Use
2215 grub_util_info rather than grub_dprintf.
2216 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2217
2218 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2221
2222 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2223 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2224
2225 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * include/grub/types.h (grub_set_unaligned64): New function.
2228 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2229 (setup): Likewise.
2230
2231 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2234 (grub_ofdisk_fini): Quiesce USB devices.
2235
2236 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2237
2238 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2239 caches.
2240
2241 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2244
2245 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2246
2247 * grub-core/disk/pata.c (grub_pata_pio_read)
2248 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2249 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2250
2251 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2252
2253 Extend automated tests to qemu-mips.
2254
2255 * Makefile.am: reorganise tests and enable qemu-mips.
2256 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2257 * grub-core/tests/boot/linux.init-mips.S: New file.
2258 * tests/partmap_test.in: Handle ata0 disks.
2259 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2260 non-pc i386.
2261
2262 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2263
2264 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2265 ia64.
2266 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2267 quotes while on it.
2268
2269 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2272 (grub_halt): Likewise.
2273 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2274
2275 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2276
2277 * grub-core/term/serial.c (grub_serial_register)
2278 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2279 the behaviour in line with x86 platforms.
2280
2281 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2282
2283 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2284 (grub_ata_strncpy): Likewise.
2285 (grub_ata_identify): Add missing byteswaps.
2286
2287 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2290 byte-swap.
2291 (screen_read_char): Likewise.
2292 (grub_vga_text_cls): Likewise.
2293
2294 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2297 filenames.
2298 (make_file_path): Likewise.
2299
2300 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2301
2302 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2303 machines.
2304 Tested by: Paulo Flabiano Smorigo.
2305 Crucial information about API supplied by: Coleen <Last name unknown>.
2306 Reviewed by: Coleen <Last name unknown>.
2307
2308 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * util/grub-mkimage.c: Disable -Wcast-align.
2311
2312 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2315 as they are fatal.
2316
2317 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2320
2321 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2322
2323 * util/grub-probe.c (escape_of_path): Fix double free.
2324
2325 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2326
2327 * grub-core/commands/videoinfo.c (hook): Show pitch.
2328
2329 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2330
2331 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2332
2333 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2334
2335 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2336 (probe): Add ieee1275 to OFW devices.
2337
2338 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2341
2342 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2343
2344 Handle IBM OFW path.
2345
2346 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2347 available.
2348 (of_path_of_scsi): Handle vdevice.
2349
2350 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2351
2352 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2353 Allocate in multiples of 16 to avoid adding a few bytes free region the
2354 windows bugs upon.
2355
2356 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2357
2358 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2359 Allocate in multiples of 16 to avoid adding a few bytes free region the
2360 windows bugs upon.
2361 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2362
2363 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2364
2365 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2366 resolutions.
2367 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2368 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2369
2370 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2371
2372 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2373
2374 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2377 resulted in \\ at the end of the line.
2378
2379 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2380
2381 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2382 (grub_parser_cmdline_state): Likewise.
2383 (grub_parser_split_cmdline): Likewise.
2384
2385 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2386
2387 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2388 /dev/root and /dev/dm-*.
2389
2390 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2391
2392 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2393 fix partially stale display.
2394
2395 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2398 substraction.
2399
2400 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2403 Fix MBR remapping workaround.
2404 (grub_util_biosdisk_read) [__linux__]: Likewise.
2405
2406 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2409
2410 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2411
2412 * configure.ac: Bump to beta6.
2413
2414 2012-05-31 Christer Weinigel <christer@weinigel.se>
2415
2416 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2417
2418 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2421 (grub_cmd_linux): Likewise.
2422
2423 2012-05-31 Christer Weinigel <christer@weinigel.se>
2424
2425 Fix EHCI low-speed.
2426
2427 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2428 (GRUB_EHCI_MULT_TWO): Likewise.
2429 (GRUB_EHCI_MULT_THREE): Likewise.
2430 (GRUB_EHCI_CMASK_MASK): New enum value.
2431 (GRUB_EHCI_SMASK_MASK): Likewise.
2432 (GRUB_EHCI_CMASK_OFF): Likewise.
2433 (GRUB_EHCI_SMASK_OFF): Likewise.
2434 (grub_ehci_pci_iter): Enable periodic schedule.
2435 (grub_ehci_parse_notrun): Likewise.
2436 (grub_ehci_restore_hw): Likewise.
2437 (grub_ehci_setup_qh): Set flags for low speed transfers.
2438 (grub_ehci_find_qh): Use periodic list for low speed.
2439 (grub_ehci_setup_transfer): Check periodic queue as well.
2440 (grub_ehci_check_transfer): Likewise.
2441 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2442
2443 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2444
2445 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2446 parameter is used.
2447
2448 2012-05-31 Peter Jones <pjones@redhat.com>
2449
2450 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2451 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2452 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2453
2454 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2457 uninited variable. Allocate at least setup_sects.
2458
2459 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2460
2461 Fix handling of EFI with big memory maps.
2462
2463 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2464 (real_mode_mem): Likewise.
2465 (real_mode_target): Likewise.
2466 (real_mode_pages): Likewise.
2467 (prot_mode_pages): Likewise.
2468 (linux_params): New var.
2469 (linux_cmdline): Likewise.
2470 (free_pages): Don't set real mode variables.
2471 (allocate_pages): Don't allocate real mode memory.
2472 (grub_e820_add_region): Remove the limit.
2473 (grub_linux_boot): Allocate and copy real mode memory.
2474 (grub_linux_unload): Free linux_cmdline.
2475 (grub_cmd_linux): Use temporary storage for parameters.
2476 (grub_cmd_initrd): Likewise.
2477 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2478 (linux_kernel_params): Make it 1K big.
2479
2480 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * Makefile.util.def: Remove -Wno-format.
2483 * grub-core/Makefile.core.def: Likewise.
2484
2485 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * tests/cmp_unit_test.c: Add missing failure message.
2488 * tests/example_unit_test.c: Likewise.
2489 * tests/printf_unit_test.c: Likewise.
2490
2491 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2492
2493 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2494 relaxation of protective MBR requirements.
2495
2496 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * configure.ac: Add condition for COND_HOST_XNU.
2499 * Makefile.util.def (10_xnu): New script.
2500 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2501
2502 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2505 objconv bug.
2506
2507 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2508
2509 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2510 Binary on other platforms stays identical.
2511
2512 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2515 Apple.
2516
2517 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2520
2521 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2524 rather than defining size_t ourselves to avoid conflict.
2525
2526 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2527
2528 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2529 initialisation to avoid __bzero reference.
2530
2531 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2534 version.
2535 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2536 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2537 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2538 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2539 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2540
2541 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2542
2543 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2544 * grub-core/kern/misc.c: Likewise.
2545 * grub-core/loader/i386/xnu.c: Likewise.
2546 * include/grub/i386/tsc.h: Likewise.
2547 * include/grub/symbol.h: Likewise.
2548
2549 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2550
2551 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2552 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2553 on older compiler.
2554
2555 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2556
2557 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2558 Implement Apple flavour.
2559 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2560
2561 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2564 (memmove) [__APPLE__]: Likewise.
2565 (memcpy) [__APPLE__]: Likewise.
2566 (memset) [__APPLE__]: Likewise.
2567 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2568 (memmove) [__APPLE__]: Likewise.
2569 (memcpy) [__APPLE__]: Likewise.
2570 (memset) [__APPLE__]: Likewise.
2571
2572 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2575 dependency discard.
2576
2577 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * grub-core/normal/main.c (read_config_file): Provide config_file and
2580 config_directory.
2581 * util/grub.d/41_custom.in: Use config_directoy when available.
2582
2583 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2584
2585 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2586 (grub_bfs_dir): Likewise.
2587
2588 2012-05-27 Peter Jones <pjones@redhat.com>
2589
2590 The old code gives arguments to a printf function which can't work
2591 correctly, and the compiler complains.
2592
2593 * grub-core/tests/example_functional_test.c (example_test): Add
2594 missing text.
2595 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2596 * include/grub/test.h (grub_test_assert_helper): New declaration.
2597 (grub_test_assert): Use grub_test_assert_helper.
2598
2599 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2600
2601 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2602 (exfctest): ... this to avoid overlong filenames.
2603 All users updated.
2604
2605 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2606
2607 Handle "." and ".." on squashfs.
2608
2609 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2610 Make inode numbers into stack.
2611 (grub_squash_read_symlink): Use stack.
2612 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2613 (make_root_node): Fill stack.
2614 (grub_squash_open): Use stack.
2615
2616 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2619 freeing.
2620
2621 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2624 stderr on test calls.
2625
2626 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2627
2628 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2629
2630 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2633
2634 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2637 "..".
2638
2639 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2642 (grub_hfsplus_iterate_dir): Add "." and "..".
2643
2644 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2645
2646 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2647 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2648
2649 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2652 (find_path): Handle "." and "..".
2653
2654 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2655
2656 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2657 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2658 (grub_affs_iterate_dir): Handle hardlinks.
2659
2660 2012-05-26 Matthew Garrett <mjg@redhat.com>
2661
2662 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2663 (grub_efi_console_fini): Likewise.
2664 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2665 (grub_video_gop_fill_mode_info): Rename to ...
2666 (grub_video_gop_fill_real_mode_info): ... this.
2667 (grub_video_gop_fill_mode_info): New function.
2668 (grub_video_gop_setup): Setup double framebuffer.
2669 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2670 Free offscreen.
2671 (grub_video_gop_swap_buffers): Copy framebuffer.
2672 (grub_video_gop_fini): Free offscreen buffer.
2673 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2674 New enum.
2675 (grub_efi_gop_blt_pixel): New struct.
2676
2677 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 * gentpl.py: Remove error disabling for objconv.
2680
2681 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 * configure.ac: Remove -Wunitialized as it's not available on older
2684 compilers.
2685
2686 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2687
2688 Fix extent overflow comparator.
2689
2690 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2691 (grub_hfsplus_read_block): Set type.
2692 (grub_hfsplus_cmp_extkey): Compare type.
2693
2694 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2697
2698 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2701 than 0.
2702
2703 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2704
2705 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2706 (dejavu_bold_14.pf2): New target.
2707
2708 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2709
2710 * configure.ac: Fix djvu font detection.
2711
2712 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2715 ext* instead of ext2.
2716
2717 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2720 name with \0.
2721
2722 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2723
2724 * docs/grub-dev.texi: Remove dot from .png.
2725
2726 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2727
2728 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2729 protective entry in any slot.
2730 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2731 if protective entry is found in any slot.
2732
2733 Protective entry in non-first slot make no sense but is a widespread
2734 brain damage.
2735
2736 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2737
2738 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2739
2740 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2741
2742 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2743 with old reiserfs.
2744 (grub_reiserfs_open): Don't free root.
2745
2746 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2747
2748 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2749 after freeing for safety.
2750
2751 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2754 Reported by: Jordan Uggla.
2755
2756 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2757
2758 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2759 actual implementation. Specifically, clarify that the grub menu will
2760 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2761 passed.
2762
2763 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2764
2765 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2766 of r0.
2767
2768 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2769
2770 Remove unjustified hard dependency of normal.mod on gfxterm.
2771
2772 * include/grub/term.h (grub_term_output): New member fullscreen.
2773 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2774 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2775 (grub_gfxterm): Set .fullscreen.
2776 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2777 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2778
2779 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2780
2781 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2782 mentioning possible problems with non-ASCII (non-compliant) ISOs.
2783 Mention case-insensitive AFFS, SFS and JFS.
2784
2785 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2786
2787 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2788
2789 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2792 a bad FS.
2793
2794 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2795
2796 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2797 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2798
2799 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2800
2801 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2802 (grub_jfs_mount): Fill caseins.
2803 (grub_jfs_find_file): Respect caseins.
2804
2805 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2808 through UTF-16.
2809
2810 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2811
2812 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2813 New argument origpath. All users updated.
2814
2815 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2816
2817 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2818 (read_attr): Ensure that we read start of possibly compressed block.
2819
2820 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2821
2822 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2823 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2824 All users updated.
2825
2826 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2829 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2830 (dejavu.pf2): Replace with ...
2831 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2832 this.
2833
2834 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2835
2836 * util/grub.d/20_linux_xen.in: Add missing line.
2837
2838 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2839
2840 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2841 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2842 (grub_utf16_to_utf8): Likewise.
2843
2844 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2847 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2848 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2849 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2850 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2851 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2852
2853 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2854
2855 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2856 a bad FS.
2857
2858 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2859
2860 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2861 (grub_udf_read_symlink): Handle read_string failure.
2862
2863 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2866 comment.
2867
2868 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 Fix handling of UDF symlinks.
2871
2872 * grub-core/fs/udf.c (read_string): New argument outbuf.
2873 All users updated.
2874 (grub_ufs_read_symlink): Rename to ...
2875 (grub_udf_read_symlink): ... this. All users updated.
2876 Handle symlinks with more than one component.
2877
2878 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2879
2880 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2881 symlinks. Replace leading colon with a slash.
2882
2883 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2884
2885 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2886 filename.
2887
2888 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2891 match in inner node.
2892
2893 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2896 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2897 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2898 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2899 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2900 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2901 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2902 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2903 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2904
2905 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2906
2907 Use grub-probe and not cmp to check that disk is empty.
2908
2909 * util/grub-install.in: Use grub-probe for zero-check.
2910 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2911 (probe): Handle PRINT_ZERO_CHECK.
2912 (argp_parser): Handle -t zero_check.
2913
2914 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 Flush block cache on adding disk to device map.
2917
2918 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2919 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2920 adding.
2921 (read_device_map): Likewise.
2922 (open_device): Flush on opening.
2923
2924 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2927 (handle_symlink): Fix off-by-one error.
2928 Canonicalize the target.
2929 (grub_cpio_dir): Canonicalize the name.
2930 Fix memory leak.
2931 Set directory.
2932 (grub_cpio_open): Canonicalize the name.
2933
2934 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2935
2936 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2937 handling.
2938
2939 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2942 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2943
2944 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2945
2946 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2947 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
2948 All users updated.
2949
2950 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2953 counterpart.
2954
2955 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2956
2957 Fix UFS1 big file support.
2958
2959 * grub-core/fs/ufs.c (INODE): Removed.
2960 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2961 64-bit.
2962 (INODE_MODE): Simplify.
2963 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2964 (grub_ufs_lookup_symlink): Don't use INODE.
2965
2966 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2969
2970 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2971 (grub_minix_data): Replace log_block_size with block_size.
2972 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2973 (grub_minix_mount): Fill block_size.
2974
2975 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2976
2977 * configure.ac: Bump to beta5.
2978
2979 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 Fix wrapped HFS+ handling.
2982
2983 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2984 blocks_start. All users updated.
2985 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2986 wrapping offset.
2987 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2988
2989 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2990
2991 Fix long symlinks on reiserfs.
2992
2993 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2994 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2995 (grub_reiserfs_iterate_dir): Save size for non-directories.
2996 (grub_reiserfs_open): Don't reread stat block as we already know the
2997 size.
2998 (grub_reiserfs_read): Split into...
2999 (grub_reiserfs_read_real): ... and ...
3000 (grub_reiserfs_read): ...this.
3001
3002 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3003
3004 Fix non-indexed JFS.
3005
3006 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3007 (grub_jfs_data): New field namecomponentlen.
3008 (grub_jfs_mount): Fill namecomponentlen.
3009 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3010
3011 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3012
3013 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3014 * tests/grub_script_echo1.in: Add tests.
3015
3016 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3017
3018 * util/grub-install.in: Ignore empty devicetree directory.
3019
3020 2012-05-08 Bean <bean123ch@gmail.com>
3021
3022 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3023 All users updated.
3024 (free_rsm): Free header as well.
3025 (free_old_fragments): Fix memory leak.
3026 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3027 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3028 (destroy_pq): Likewise.
3029 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3030
3031 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3032
3033 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3034 resulting hash as a precaution.
3035
3036 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3037
3038 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3039 '_' in variable names.
3040 * grub-core/net/net.c (grub_net_network_level_interface_register):
3041 Likewise.
3042
3043 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3044
3045 Fix AFFS with non-512B blocks.
3046
3047 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3048 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3049 (grub_affs_data): Replace blocksize with log_blocksize.
3050 (grub_affs_read_block): Fix non-512B blocks.
3051 (grub_affs_read_symlink): Likewise.
3052 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3053 (grub_affs_read): Fix non-512B blocks.
3054 (grub_affs_label): Likewise.
3055 (grub_affs_mtime): Likewise.
3056 (grub_affs_mount): Fix block detection routine.
3057
3058 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3059
3060 Add filesystem mtime to AFFS.
3061
3062 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3063 (aftime2ctime): New function.
3064 (grub_affs_dir): Use aftime2ctime.
3065 (grub_affs_label): Fix return value.
3066 (grub_affs_mtime): New function.
3067 (grub_affs_fs): Add mtime.
3068
3069 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3070
3071 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3072 UTF-8.
3073
3074 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3077 UTF-8.
3078
3079 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3080
3081 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3082
3083 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3086 flags.
3087 (FLAGS_CASE_SENSITIVE): New enum value.
3088 (cache_entry): New struct.
3089 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3090 cache_size and cache.
3091 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3092 Add log_blocksize and fshelp_flags.
3093 (grub_sfs_read_extent): Handle non-512 blocks.
3094 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3095 (grub_sfs_read_file): Handle non-512 blocks.
3096 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3097 fshelp_flags.
3098 (grub_sfs_read_symlink): Handle non-512 blocks.
3099 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3100 (grub_sfs_dir): Free cache.
3101 (grub_sfs_close): Likewise.
3102
3103 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3106 filesystems.
3107
3108 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3109
3110 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3111
3112 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3115
3116 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3119 (grub_sfs_read_extent): Likewise.
3120 (grub_sfs_read_block): Likewise.
3121 (grub_sfs_mount): Likewise.
3122 (grub_sfs_iterate_dir): Likewise.
3123 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3124 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3125
3126 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 Fix errors on compressed NTFS with 512B clusters.
3129
3130 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3131 types.
3132 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3133 not 0.
3134 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3135 Relax check for inline extents.
3136 (ntfscomp): Return correct -1 on error and not 0.
3137
3138 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 * util/grub-install.in: Fix handling of prefix containing spaces.
3141
3142 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3143
3144 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3145 (grub_squash_read_data): Fix offset byte-swapping.
3146
3147 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3148
3149 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3150 per common usage and preffered in several parts of code.
3151 (grub_memcmp): Likewise.
3152 (grub_strncmp): Likewise.
3153 * include/grub/misc.h (grub_strcasecmp): Likewise.
3154 (grub_strncasecmp): Likewise.
3155 * Makefile.util.def (cmp_test): New test.
3156 (grub_script_strcmp): Likewise.
3157 * tests/cmp_unit_test.c: New file.
3158 * tests/grub_script_strcmp.in: Likewise.
3159 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3160
3161 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3162
3163 * include/grub/pci.h: Move enums into no-asm part.
3164
3165 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3168
3169 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3170
3171 * util/getroot.c (find_hurd_root_device): Try to make error message
3172 and comments to translators clearer.
3173
3174 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3177
3178 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3179
3180 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3181 btrfs.
3182
3183 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * docs/grub.cfg: Update.
3186
3187 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3188
3189 * docs/grub.texi (PXE): Remove not present variables.
3190
3191 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 * grub-core/net/net.c (defserver_set_env): New function.
3194 (defserver_get_env): Likewise.
3195 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3196
3197 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3200 entries.
3201
3202 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3203
3204 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3205 * grub-core/kern/emu/hostdisk.c: Likewise.
3206
3207 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3208
3209 Handle hurd userspace partitions.
3210
3211 * util/getroot.c (find_hurd_root_device): New function.
3212 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3213
3214 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3217 names.
3218 Reported by: Bastian Blank.
3219
3220 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3223 crossing page boundary.
3224
3225 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 Fix B-tree search in BFS, especially in presence of non-ASCII
3228 characters.
3229
3230 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3231 (find_in_b_tree): Use standard bsearch + btree algorithm.
3232
3233 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3236 and so on.
3237
3238 2012-05-03 Matthew Garrett <mjg@redhat.com>
3239 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 Suspend broadcom cards in order to stop their DMA.
3242
3243 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3244 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3245 (pci): Don't build on x86 EFI.
3246 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3247 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3248 New function.
3249 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3250 stop_broadcom if running on EFI.
3251 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3252 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3253 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3254 (grub_pci_find_capability): New proto.
3255
3256 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * docs/grub.texi: Remove dot from the extension as it apparently
3259 doesn't work with some makeinfo versions.
3260
3261 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3262
3263 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3264 with GRUB expectance.
3265
3266 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3267
3268 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3269
3270 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3271
3272 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3273 zero after directory block since last entry may be not 0-terminated if
3274 it ends on block boundary. Use continue instead of if spanning whole
3275 loop.
3276
3277 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 Support 4K sectors UDF inline files.
3280
3281 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3282 (grub_udf_extended_file_entry): Likewise.
3283 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3284 All users updated.
3285 (get_fshelp_size): New function.
3286 (grub_udf_read_icb): Read whole block.
3287 (grub_udf_iterate_dir): Likewise.
3288 (grub_udf_dir): Likewise.
3289 (grub_udf_open): Likewise.
3290
3291 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3292
3293 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3294
3295 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3298 inline symlinks in addition to workaround.
3299
3300 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3303
3304 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3307
3308 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3309
3310 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3311
3312 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 Fix reiserfs big seek times.
3315
3316 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3317 exact. All users updated.
3318 (grub_reiserfs_read): Use nearest btree search for seeking.
3319 Fix return value on error.
3320
3321 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3322
3323 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3324 entries.
3325 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3326 * docs/grub.texi: Update menuentry description.
3327
3328 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3331 crash when embedding onto filesystem.
3332
3333 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3336 name.
3337
3338 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3339
3340 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3341
3342 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3343
3344 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3345 commit.
3346
3347 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3348 2012-05-01 Bean <bean123ch@gmail.com>
3349
3350 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3351
3352 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3353
3354 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3355 Special behaviour for len = 0 to read whole file isn't used anywhere and
3356 can cause buffer ovewrflows in several places.
3357
3358 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3361
3362 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 Handle RAIDZ on non-512B sectors.
3365
3366 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3367 max_children_ashift.
3368 (fill_vdev_info_real): Fill max_children_ashift.
3369 (read_device): Use max_children_ashift.
3370
3371 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3372
3373 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3374
3375 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3376
3377 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3378 disk names.
3379 * docs/grub.texi: Update device.map parts.
3380
3381 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3382
3383 Don't scan into non-diskfilter devices having diskfilter names.
3384
3385 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3386 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3387 handling.
3388 (scan_disk_hook): New function.
3389
3390 2012-04-29 Bean <bean123ch@gmail.com>
3391
3392 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3393 allocation.
3394
3395 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3396
3397 * configure.ac: Detect starfield theme font path
3398 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3399
3400 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3401
3402 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3403 geometry on serial consoles.
3404
3405 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3406
3407 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3408 because of network consoles.
3409
3410 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3413 handling.
3414
3415 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3416
3417 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3418 falls on Q syndrom.
3419
3420 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3423 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3424
3425 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3428 Allocate at lest 8192 for temporary buffer as required for lzo.
3429
3430 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3433 to cluster_bits, since it's already added in.
3434 (grub_fat_read_data): Likewise.
3435
3436 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3439 as long as cluster size is multiple of 512 bytes.
3440
3441 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * util/grub-mkrescue.in: Fix locale directory.
3444
3445 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/kern/emu/hostdisk.c (map): Make static.
3448
3449 2012-04-23 Bean <bean123ch@gmail.com>
3450
3451 * util/grub-fstest.c (fstest): Add missing break.
3452
3453 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3454
3455 Fix hurd build.
3456
3457 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3458 not define nr variable.
3459 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3460 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3461 grub_find_device): Do not define.
3462
3463 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 Fix kfreebsd compile and behaviour.
3466
3467 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3468 format-security.
3469 * util/getroot.c: Fix wait.h include.
3470 (grub_guess_root_devices): Error if grub_find_device fails.
3471 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3472 (grub_util_get_dev_abstraction): Likewise.
3473 (grub_util_pull_device): Likewise.
3474 (grub_util_get_grub_dev): Likewise.
3475 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3476
3477 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 Fix and unify wholedisk detection.
3480
3481 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3482 is_part. All users updated.
3483 (device_is_wholedisk): Removed.
3484 (grub_util_biosdisk_get_grub_dev): Use is_part.
3485
3486 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3489 mode.
3490
3491 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3492
3493 * configure.ac: Bump to beta4.
3494
3495 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3498 --fs-uuid --set UUID syntax.
3499
3500 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3503 disunification.
3504
3505 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3508
3509 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3510
3511 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3512
3513 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3514
3515 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3516
3517 2012-04-18 Bean <bean123ch@gmail.com>
3518
3519 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3520 place.
3521
3522 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3523
3524 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3525 users updated.
3526 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3527 corresponding to GRUB partitions.
3528 (grub_util_biosdisk_write): Likewise.
3529
3530 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3531
3532 Scan mdraid before LVM.
3533
3534 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3535 (grub_diskfilter_register_front): ... this.
3536 (grub_diskfilter_register_back): New function.
3537 All users of grub_diskfilter_register updated.
3538
3539 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * util/grub-install.in: Fix an automatic target detection bug.
3542
3543 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * util/grub-install.in: New option --efi-directory.
3546
3547 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3548
3549 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3550 boot services if we have no other choice.
3551
3552 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3555 document it.
3556 * tests/util/grub-shell.in: Update to --directory.
3557
3558 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3559
3560 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3561
3562 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3565 (grub_minix_read_file): Likewise.
3566 (grub_minix_read_inode): Likewise.
3567 (grub_minix_find_file): Likewise.
3568 (grub_minix_dir): Likewise.
3569
3570 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * util/grub-setup.c (setup): Fix partition handling and blocklist
3573 check.
3574
3575 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3578 redundant buggy overlap check.
3579
3580 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3583 and grub-mknetdir.
3584
3585 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3586
3587 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3588 kh.loadflags on pre-2.00 kernels.
3589
3590 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3591
3592 Terminate UNDI and PXE before launching the payload to avoid problems
3593 with DMA.
3594
3595 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3596 (grub_loader_flags): ... this. All users updated.
3597 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3598 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3599 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3600 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3601 function.
3602 (grub_pxe_restore): Likewise.
3603 (fini_hnd): New var.
3604 (GRUB_MOD_INIT): Register shutdown hook.
3605 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3606 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3607 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3608 (grub_loader_set): Rename second argument to flags.
3609
3610 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3611
3612 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3613 written bytes.
3614 (grub_get_num_of_utf8_bytes): New function.
3615 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3616 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3617 executing it.
3618 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3619 (grub_ucs4_to_utf8): Change return type.
3620
3621 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3624 warning.
3625 * grub-core/fs/bfs.c (hop_level): Likewise.
3626 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3627
3628 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3629
3630 * grub-core/lib/adler32.c: Recode due to license unclearness.
3631
3632 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3635 (test_header): Likewise.
3636
3637 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 Fix --help formatting.
3640
3641 * util/grub-mkconfig_lib.in (print_option_help): New function.
3642 (grub_fmt): Likewise.
3643 * util/grub-install.in: Use print_option_help and grub_fmt.
3644 * util/grub-kbdcomp.in: Likewise.
3645 * util/grub-mkconfig.in: Likewise.
3646 * util/grub-mknetdir.in: Likewise.
3647 * util/grub-mkrescue.in: Likewise.
3648 * util/grub-mkstandalone.in: Likewise.
3649 * util/grub-reboot.in: Likewise.
3650 * util/grub-set-default.in: Likewise.
3651 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3652
3653 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3654
3655 * linguas.sh: Remove autogenerated *.po.
3656
3657 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3658
3659 * po/README: Move language fetcing to ...
3660 * linguas.sh: ... here.
3661 * po/README: Point to linguas.sh.
3662
3663 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3664
3665 * po/README: Exclude ko.po due to disclaimer problems.
3666
3667 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3670 len = 0.
3671 (grub_gettext_translate_real): Handle 0th string.
3672 (grub_gettext_translate): Ensure that "" isn't translated.
3673
3674 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3677 TRANSLATORS comment.
3678 (grub_diskfilter_print_partmap): Propagate changing of error into
3679 warning.
3680
3681 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3682
3683 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3684 to uint64_t to prevent overflow.
3685 (grub_diskfilter_lv): Increase start_extent and extent_count
3686 to uint64_t to prevent overflow.
3687
3688 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * configure.ac: Increase version.
3691
3692 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3693
3694 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3695
3696 * po/Rules-translit: New file.
3697 * po/arabic.sed: Likewise.
3698 * po/cyrillic.sed: Likewise.
3699 * po/greek.sed: Likewise.
3700 * po/hebrew.sed: Likewise.
3701 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3702 * po/Makefile.in.in: Add extra_dist4.
3703
3704 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3705
3706 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3707
3708 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3709 modify names. Introduce MODE_BIGENDIAN.
3710 * grub-core/fs/minix_be.c: New file.
3711 * grub-core/fs/minix2_be.c: Likewise
3712 * grub-core/fs/minix3_be.c: Likewise.
3713 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3714 minix3_be.
3715 * grub-core/Makefile.core.def (minix_be): New module.
3716 (minix2_be): Likewise.
3717 (minix3_be): Likewise.
3718
3719 2012-04-01 Felix <email@hamburg.de>
3720
3721 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3722 (devs): Add MBP 2011.
3723
3724 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3725
3726 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3727
3728 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3729
3730 * grub-core/normal/cmdline.c (print_completion): New field
3731 prompt_len.
3732 (grub_cmdline_get): Handle width properly.
3733
3734 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3737
3738 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3741 after 29th of February.
3742
3743 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 Fix exfat endianness handling.
3746
3747 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3748 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3749 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3750 Byte-swap utf16 when necessary.
3751 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3752
3753 2012-03-31 Anton Blanchard <anton@samba.org>
3754 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 Fix btrfs endianness handling.
3757
3758 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3759 (lower_bound): Make root uint64_t. Use root in le.
3760 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3761 (find_path): Fix template key init.
3762 (grub_btrfs_dir): Fix mtime byteswap.
3763 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3764
3765 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3768 recursion_depth. Break infinite resursions. All users updated.
3769
3770 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3771
3772 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3773 after free.
3774 Reported by: Peter Jones.
3775
3776 2012-03-31 Anton Blanchard <anton@samba.org>
3777
3778 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3779 8 bit values.
3780
3781 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3782
3783 * util/grub-install.in: Fix nvram call for PreP.
3784
3785 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3786
3787 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3788 the error when some elements are missing into a warning.
3789
3790 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3791
3792 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3793
3794 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
3795
3796 * docs/grub.texi (Invoking grub-probe): New section.
3797 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3798
3799 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3800
3801 Fix tab and wide character handling in editor and menu.
3802
3803 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3804 agglomerate control characters with combining marks.
3805 (bidi_line_wrap): Allow break on tab.
3806 (grub_unicode_get_comb_start): New function.
3807 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3808 and tab correctly.
3809 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3810 with a space.
3811 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3812 fixed_tab_size. All users updated.
3813 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3814 (grub_term_getcharwidth): Handle \t.
3815 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3816 and copy.
3817
3818 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3819
3820 Handle big-endian mdraid.
3821
3822 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3823 * grub-core/Makefile.core.def (mdraid09_be): New module.
3824 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3825 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3826 * grub-core/disk/mdraid_linux_be.c: New file.
3827
3828 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3831
3832 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3835 missing quotes which caused confusion among translators.
3836
3837 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3838
3839 * util/grub-mkconfig_lib.in: Fix typo.
3840
3841 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3844 spaces.
3845 * tests/grub_script_leading_whitespace.in: New file.
3846 * Makefile.util.def (grub_script_leading_whitespace): New test.
3847
3848 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3849
3850 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3851 to work.
3852
3853 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3854
3855 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3856 starts with control character.
3857
3858 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3859
3860 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3861 overflow.
3862 (grub_gdb_outbuf): Likewise.
3863
3864 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3865
3866 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3867 zero terminator. Fixes a crash.
3868
3869 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3872 beyond 4 GiB.
3873 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3874 images independently of preffered adderss field.
3875
3876 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3879 * grub-core/commands/regexp.c: Likewise.
3880 * grub-core/loader/i386/linux.c: Likewise.
3881 * grub-core/partmap/msdos.c: Likewise.
3882 * grub-core/script/execute.c: Likewise.
3883 * grub-core/term/gfxterm.c: Likewise.
3884
3885 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3886
3887 Add variable parsing in $"..." and fix several mismatches with bash.
3888
3889 * Makefile.util.def (grub_script_gettext): New test.
3890 * grub-core/script/execute.c (parse_string): New function.
3891 (gettext_append): Likewise.
3892 (grub_script_arglist_to_argv): Use gettext_append.
3893 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3894 * tests/grub_script_gettext.in: New file.
3895
3896 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 Fix handling of leading spaces in scripts.
3899
3900 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3901 spaces.
3902 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3903 other than skipping \r. All users updated.
3904 * tests/grub_script_echo1.in: Add space-related tests.
3905 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3906
3907 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3910
3911 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 * configure.ac: Bump up the version to beta2.
3914
3915 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 Fix gettext reload bugs (e.g. inability to disable gettext
3918 once enabled).
3919
3920 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3921 main_context and secondary_context. All functions updated.
3922 (grub_gettext_translate): Rename to ...
3923 (grub_gettext_translate_real): ... this. Return NULL on failed
3924 translate.
3925 (grub_gettext_translate): Handle secondary context.
3926 (grub_gettext_delete_list): Close file and zero-out the context.
3927 (grub_mofile_open): Don't call grub_gettext_delete_list.
3928 Don't close file.
3929 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3930 if locale="" to avoid pointless error message.
3931 (grub_gettext_env_write_lang): Update lang even if load fails.
3932 Handle secondary context.
3933 (grub_gettext_reread_prefix): New function.
3934 (read_main): Likewise.
3935 (read_secondary): Likewise.
3936 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3937 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3938 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3939 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3940
3941 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3942
3943 * configure.ac: Decrease warning level to avoid spurious warnings and
3944 to be able to compile with GCC 4.2.
3945 * Makefile.util.def: Remove -Wno-error=logical-op.
3946
3947 2012-03-10 William Bittner <william.bittner@gmail.com>
3948
3949 * util/import_unicode.py: Add missing brackets around string for
3950 python 3 support.
3951
3952 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 Fix efi chainloader on network root.
3955
3956 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3957 network devices.
3958 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3959 New function.
3960
3961 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3964 unused show_text member.
3965 * docs/grub.texi: Document "text" property.
3966
3967 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3970 in dprintf.
3971
3972 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 Fix IMSM handling on Fedora.
3975
3976 * util/getroot.c (grub_util_is_imsm): New function.
3977 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3978
3979 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * Makefile.am: Strip gold section.
3982 * conf/Makefile.common: Likewise.
3983 * gentpl.py: Likewise.
3984 * grub-core/Makefile.core.def: Likewise.
3985 * grub-core/genmod.sh.in: Likewise.
3986
3987 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3988
3989 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3990 * util/grub.d/20_linux_xen.in: Likewise.
3991 Based on Debian patch.
3992
3993 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * util/grub.d/10_linux.in: Fix syntax error resulting in
3996 Richard Laager's patch.
3997 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3998
3999 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4000
4001 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4002 dependencies.
4003
4004 2012-03-10 Richard Laager <rlaager@wiktel.com>
4005
4006 * util/grub.d/10_linux.in: Fix ZFS root passing.
4007
4008 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4009
4010 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4011 * grub-core/commands/xnu_uuid.c: Likewise.
4012 * grub-core/loader/efi/appleloader.c: Likewise.
4013 * grub-core/script/execute.c: Likewise.
4014 * grub-core/script/main.c: Likewise.
4015 * util/grub-mkfont.c: Likewise.
4016
4017 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4018
4019 * util/grub-mkfont.c (options): Use more appropriate "select" that
4020 "set" for face index.
4021
4022 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4023
4024 * util/grub-editenv.c (options): Gettextize command summaries.
4025
4026 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4029 "out of memory" error messagge.
4030
4031 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4032
4033 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4034 of diskfilter for diskfilter on diskfilter support.
4035
4036 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4039
4040 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4041
4042 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4043 themes/starfield.
4044
4045 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4046
4047 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4048
4049 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4050
4051 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4052
4053 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4054
4055 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4056 of error message.
4057
4058 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4059
4060 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4061
4062 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4063
4064 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4065 message.
4066 * util/grub-install.in: Fix and gettextize error message.
4067
4068 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4069
4070 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4071 Gettextize.
4072 * util/grub-mount.c (options): Likewise.
4073
4074 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4077 gettextize.
4078 * grub-core/commands/search_wrap.c (options): Likewise.
4079
4080 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4083
4084 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4087 size calculation.
4088 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4089 none is known.
4090
4091 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4094 "temporary" since it's used in identifier and is limited in space.
4095
4096 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 * po/POTFILES.in: Regenerate. Include *.h since they contain
4099 translatable strings as well.
4100
4101 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4102
4103 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4104 byte-swap on big-endian.
4105 Reported by: Lennart Sorensen
4106
4107 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4108
4109 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4110 (allocate_pages): Improve dprintf.
4111 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4112 code32_start. Fill code32_start and kernel_alignment in params.
4113 (grub_cmd_initrd): Use prot_init_space.
4114
4115 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4116
4117 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4118
4119 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4120
4121 * util/grub-install.in: Add missing dot at the end of sentence.
4122
4123 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4126 * grub-core/commands/videotest.c: Likewise.
4127 * grub-core/loader/i386/linux.c: Likewise.
4128
4129 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4132 sentence.
4133 Reported by: Milo Casagrande.
4134
4135 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4138 * grub-core/commands/gptsync.c: Likewise.
4139 * grub-core/commands/hashsum.c: Likewise.
4140 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4141 * grub-core/commands/legacycfg.c: Likewise.
4142 * grub-core/io/gzio.c: Likewise.
4143 * grub-core/net/net.c: Likewise.
4144 * grub-core/term/gfxterm.c: Likewise.
4145 * grub-core/term/terminfo.c: Likewise.
4146 * grub-core/tests/test_blockarg.c: Likewise.
4147 * grub-core/video/video.c: Likewise.
4148 * util/grub-install.in: Likewise.
4149 * util/grub-mkfont.c: Likewise.
4150
4151 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4152
4153 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4154
4155 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4156
4157 * grub-core/commands/search_wrap.c (options): Fix a typo.
4158 Reported by: David Prévot.
4159
4160 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4161
4162 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4163 description.
4164
4165 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * util/grub-script-check.c (main): Fix a syntax error message which was
4168 unclear.
4169
4170 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4171
4172 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4173
4174 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4175
4176 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4177 messages.
4178
4179 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4180
4181 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4182 without argument.
4183 * util/grub-mount.c (options): Likewise.
4184
4185 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4188
4189 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4190
4191 * grub-core/net/http.c: Add TRANSLATORS comments.
4192 * grub-core/normal/cmdline.c: Likewise.
4193 * grub-core/normal/misc.c: Likewise.
4194 * grub-core/partmap/msdos.c: Likewise.
4195 * grub-core/parttool/msdospart.c: Likewise.
4196 * grub-core/script/execute.c: Likewise.
4197 * grub-core/script/main.c: Likewise.
4198 * grub-core/term/terminfo.c: Likewise.
4199 * grub-core/video/bitmap.c: Likewise.
4200 * util/grub-install.in: Likewise.
4201 * util/grub-mkimage.c: Likewise.
4202 * util/grub-mklayout.c: Likewise.
4203 * util/grub-setup.c: Likewise.
4204
4205 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4206
4207 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4208 with similar messages in grub-fstest.
4209
4210 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4211
4212 * util/grub-install.in: Unify "option requires an argument" message
4213 with similar messages in other files.
4214 * util/grub-mkconfig.in: Likewise.
4215
4216 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4217
4218 * util/grub-set-default.in: Replace printf with gettext_printf (the
4219 string in in question is already translated from grub-reboot)
4220
4221 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4222
4223 * configure.ac: Bump up the version to beta1.
4224
4225 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4226
4227 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4228 case when min_align = 0.
4229
4230 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4231
4232 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4233 and fix a case when line_start overflows.
4234
4235 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4236
4237 * util/grub-reboot.in (usage): Mention id posibility.
4238 * util/grub-set-default.in (usage): Likewise.
4239
4240 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4241
4242 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4243 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4244 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4245 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4246 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4247 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4248 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4249
4250 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4251
4252 * grub-core/commands/menuentry.c (options): Remove
4253 GRUB_ARG_OPTION_REPEATABLE.
4254 Reported by: Andreas Vogel
4255
4256 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4257
4258 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4259
4260 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4261
4262 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4263 error.
4264
4265 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 Use sort -V by the idea of Georgi Georgiev.
4268
4269 * util/grub-mkconfig_lib.in (version_sort): New function.
4270 (version_test_numeric): Use version_sort.
4271
4272 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4273
4274 Use submenus in grub-mkconfig.
4275
4276 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4277 * util/grub-mkconfig_lib.in (grub_quote): New function.
4278 (gettext_printf): Use gettext and not gettext_quoted to fix several
4279 messages.
4280 * util/grub.d/10_hurd.in: Use submenus.
4281 * util/grub.d/10_kfreebsd.in: Likewise.
4282 * util/grub.d/10_linux.in: Likewise.
4283 * util/grub.d/10_netbsd.in: Likewise.
4284 * util/grub.d/20_linux_xen.in: Likewise.
4285 * util/grub.d/30_os-prober.in: Likewise.
4286 * util/grub.d/10_illumos.in: Add missing quoting.
4287 * util/grub.d/10_windows.in: Likewise.
4288
4289 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4290
4291 Fix menu title instability bug.
4292
4293 * grub-core/commands/menuentry.c (options): New option --id.
4294 (grub_normal_add_menu_entry): New argument id. All users updated.
4295 (grub_cmd_menuentry): Handle --id.
4296 (grub_menu_init): Accept unknown arguments.
4297 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4298 feature_menuentry_options.
4299 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4300 saved_entry.
4301 (get_entry_number): Match with id as well.
4302 * include/grub/menu.h (grub_menu_entry): New member id.
4303 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4304 * util/grub.d/00_header.in: Define menuentry_id_option.
4305 * util/grub.d/10_hurd.in: Define id.
4306 * util/grub.d/10_illumos.in: Likewise.
4307 * util/grub.d/10_kfreebsd.in: Likewise.
4308 * util/grub.d/10_linux.in: Likewise.
4309 * util/grub.d/10_netbsd.in: Likewise.
4310 * util/grub.d/10_windows.in: Likewise.
4311 * util/grub.d/20_linux_xen.in: Likewise.
4312 * util/grub.d/30_os-prober.in: Likewise.
4313
4314 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4315
4316 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4317 "scope" with "body".
4318
4319 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4320
4321 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4322 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4323 prot_size and prot_file_size.
4324
4325 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4326
4327 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4328 All users updated. If easily=1 require raid-5/-6 to be full.
4329 (is_node_readable): Likewise.
4330 (scan_devices): Scan incomplete but readable LVs at the end.
4331 (grub_diskfilter_memberlist): Pull missing devices.
4332 (insert_array): Skip scanning until device is complete or scan is
4333 done otherwise.
4334 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4335 check.
4336 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4337 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4338
4339 2012-03-03 Matthew Garrett <mjg@redhat.com>
4340 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4341
4342 Avoid EFI boot services when loading Linux.
4343
4344 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4345 avoid_efi_bootservices. All users updated.
4346 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4347 argument avoid_efi_bootservices. All users updated.
4348 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4349 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4350 align, min_align, relocatable, prefered_address. All users updated.
4351 Allocate avoiding boot services if kernel is relocatable.
4352 (grub_cmd_linux): Check if kernel is relocatable.
4353 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4354 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4355 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4356 avoid_efi_boot_services.
4357 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4358 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4359 (linux_kernel_params): Likewise.
4360
4361 2012-03-03 Matthew Garrett <mjg@redhat.com>
4362 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4363
4364 Use EDID on EFI.
4365
4366 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4367 datasize_out.
4368 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4369 modes. Set gop_handle.
4370 (grub_video_gop_get_edid): New function.
4371 (grub_gop_get_preferred_mode): Likewise.
4372 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4373 (grub_video_efi_gop_adapter): Set .get_edid.
4374 * include/grub/efi/edid.h: New file.
4375 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4376
4377 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * util/grub-install.in: Load efivars unconditionally.
4380
4381 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 * po/Rules-piglatin: Change suffix from .po-update-en to
4384 .po-update-en-piglatin.
4385
4386 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4387
4388 Add a pig farm.
4389
4390 * po/piglatin.sed: New file.
4391 * po/en@piglatin.header: Likewise.
4392 * po/Rules-piglatin: Likewise.
4393 * po/README: Add en@piglatin to autogenerated languages.
4394
4395 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4398 "Command for ...".
4399 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4400 "Check" since we don't check anything.
4401 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4402 is 64-bit one.
4403 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4404 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4405 (grub_md_sha512_real): Likewise.
4406
4407 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 * grub-core/commands/gptsync.c: Fix typographic quoting.
4410 * grub-core/commands/ieee1275/suspend.c: Likewise.
4411 * grub-core/commands/parttool.c: Likewise.
4412 * grub-core/commands/search_wrap.c: Likewise.
4413 * grub-core/commands/videoinfo.c: Likewise.
4414 * grub-core/gfxmenu/gui_label.c: Likewise.
4415 * grub-core/hello/hello.c: Likewise.
4416 * grub-core/kern/emu/main.c: Likewise.
4417 * grub-core/net/net.c: Likewise.
4418 * grub-core/normal/menu.c: Likewise.
4419 * grub-core/normal/menu_text.c: Likewise.
4420 * grub-core/normal/misc.c: Likewise.
4421 * util/grub-editenv.c: Likewise.
4422 * util/grub-install.in: Likewise.
4423 * util/grub-kbdcomp.in: Likewise.
4424 * util/grub-mkconfig.in: Likewise.
4425 * util/grub-mknetdir.in: Likewise.
4426 * util/grub-mkrescue.in: Likewise.
4427 * util/grub-mkstandalone.in: Likewise.
4428 * util/grub-reboot.in: Likewise.
4429 * util/grub-set-default.in: Likewise.
4430 * util/grub-setup.c: Likewise.
4431 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4432
4433 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4436 * grub-core/commands/keystatus.c: Likewise.
4437 * grub-core/commands/loadenv.c: Likewise.
4438 * grub-core/commands/probe.c: Likewise.
4439 * grub-core/commands/regexp.c: Likewise.
4440 * grub-core/commands/true.c: Likewise.
4441 * grub-core/commands/videoinfo.c: Likewise.
4442 * grub-core/disk/cryptodisk.c: Likewise.
4443 * grub-core/disk/ldm.c: Likewise.
4444 * grub-core/disk/loopback.c: Likewise.
4445 * grub-core/disk/luks.c: Likewise.
4446 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4447 * grub-core/kern/disk.c: Likewise.
4448 * grub-core/kern/emu/hostdisk.c: Likewise.
4449
4450 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4451
4452 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4453 * util/grub-install.in: Add missing quote in the comment.
4454
4455 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4456
4457 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4458 * grub-core/commands/lsmmap.c: Likewise.
4459 * grub-core/commands/minicmd.c: Likewise.
4460 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4461 * grub-core/commands/regexp.c: Likewise.
4462 * grub-core/gdb/gdb.c: Likewise.
4463 * grub-core/term/gfxterm.c: Likewise.
4464 * util/grub-mkconfig.in: Likewise.
4465 * util/grub-mkfont.c: Likewise.
4466 * util/grub-mklayout.c: Likewise.
4467 * util/grub-mknetdir.in: Likewise.
4468 * util/grub-mkrescue.in: Likewise.
4469 * util/grub.d/30_os-prober.in: Likewise.
4470
4471 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4474 with "Direct color" and "Packed" with "Packed pixel".
4475 (grub_cmd_videoinfo): Simplify legend.
4476
4477 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4480 absolutely unclear error message.
4481
4482 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4483
4484 * util/grub-mkstandalone.in: Remove confusing leftover print.
4485
4486 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4487
4488 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4489 comments.
4490 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4491 (GRUB_MOD_INIT): Likewise.
4492 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4493 VGA mode.
4494 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4495 comments.
4496 * util/grub-install.in (usage): Likewise.
4497 Spell ID in whole letters.
4498 Add missing ending dot.
4499 Quote variables.
4500 * util/grub-reboot.in: Fix capitalisation.
4501 * util/grub-set-default.in: Likewise.
4502
4503 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4504
4505 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4506 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4507 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4508 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4509 Disable -Werror for -Wdeprecated-declarations.
4510 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4511 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4512 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4513 (grub_util_get_grub_dev): Make luks handling dependent on
4514 HAVE_DEVICE_MAPPER and not __linux__.
4515 (get_win32_path): Fix format security.
4516 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4517 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4518 Don't try grub_find_zpool_from_dir.
4519 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4520 #ifdef-out paresdir.
4521
4522 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4523
4524 * util/grub-pe2elf.c (usage): Add missing noreturn.
4525 (write_section_data): Rename name to shname to avoid shadowing.
4526 (write_symbol_table): Rename name to symname to avoid shadowing.
4527 Fix write_reloc_section call.
4528
4529 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4530
4531 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4532 to ensure that it's after the last byte of .text.
4533
4534 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4535
4536 * util/ieee1275/ofpath.c (my_isdigit): New function.
4537 (trailing_digits): Use my_isdigit.
4538 (strip_trailing_digits): Likewise.
4539
4540 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4541
4542 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4543 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4544
4545 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4546
4547 * grub-core/kern/i386/pc/startup.S: Define __start.
4548
4549 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4550
4551 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4552 strip already transforms he format.
4553
4554 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4555
4556 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4557
4558 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * util/grub-install.in: Add missing gettext init.
4561 * util/grub-kbdcomp.in: Likewise.
4562 * util/grub-mkconfig.in: Likewise.
4563 * util/grub-mknetdir.in: Likewise.
4564 * util/grub-mkrescue.in: Likewise.
4565 * util/grub-mkstandalone.in: Likewise.
4566 * util/grub-reboot.in: Likewise.
4567 * util/grub-set-default.in: Likewise.
4568 * util/grub.d/00_header.in: Likewise.
4569 * util/grub.d/10_hurd.in: Likewise.
4570 * util/grub.d/10_windows.in: Likewise.
4571 * util/grub.d/30_os-prober.in: Likewise.
4572 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4573
4574 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * po/Rules-swiss: Fix header comment.
4577
4578 2012-02-29 Andreas Vogel <anvoit>
4579
4580 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4581 resulted in leak of arguments.
4582
4583 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4586 reed_solomon_size const definition instead of computing it since
4587 Apple assembler doesn't support the later.
4588
4589 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4590
4591 * gentpl.py (kernel): Rewrite Apple part.
4592
4593 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4596
4597 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4600 ELF section gap.
4601 (load_image): Likewise.
4602
4603 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * configure.ac: Fix a typo in previous commit.
4606
4607 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 Don't add -Wl,-N on Apple platform.
4610
4611 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4612 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4613
4614 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4615
4616 * grub-core/Makefile.core.def (lzma_decompress): Use
4617 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4618
4619 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/genmod.sh.in: Rewrite the Apple part.
4622
4623 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4626 comparison.
4627
4628 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * acinclude.m4 (grub_CHECK_PIC): New test.
4631 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4632
4633 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4636 to avoid the warning.
4637
4638 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4641 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4642 after. All users updated.
4643
4644 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 Use the common size routine in hostfs so we can read disks as well.
4647
4648 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4649 (grub_util_get_fd_size): ... this. Return size in bytes.
4650 All users updated.
4651 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4652 grub_util_get_fd_size.
4653
4654 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4657 Add blocksize retrieval.
4658
4659 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4660
4661 * configure.ac: Restore CFLAGS after efiemu check.
4662
4663 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4666 Apple bug.
4667
4668 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4671
4672 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4675 (grub_cmd_halt): Likewise.
4676
4677 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4680 for local arithmetics.
4681 Break %sp init into 2 instructions.
4682 Add 0 byte at the end.
4683
4684 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4685
4686 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4687 before loops.
4688
4689 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4690
4691 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4692 for context.
4693
4694 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/disk/ldm.c (make_vg): Init part.name.
4697 (grub_ldm_detect): Silence spurious warning.
4698 (grub_util_is_ldm): Likewise.
4699
4700 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4703 sane value to avoid a spurious warning.
4704
4705 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4706
4707 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4708 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4709
4710 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4711
4712 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4713 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4714
4715 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4716
4717 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4718 hardcoding the relevant info.
4719
4720 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4721
4722 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4723 missing const qualifiers.
4724 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4725
4726 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4727
4728 * util/getroot.c [__APPLE__]: Add missing includes.
4729 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4730
4731 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4732
4733 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4734
4735 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4736
4737 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4738 avoid conflicts.
4739
4740 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4743
4744 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4747 and grub_file_close call.
4748
4749 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 Add LZSS Mach-O support (needed for new xnu kernelcache).
4752
4753 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4754 * grub-core/loader/lzss.c: New file.
4755 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4756 on Mach-O open failure.
4757 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4758 Don't free cmdsXX in uncompressedXX is set.
4759 (grub_macho_file): Init new fields.
4760 New argument is_64bit. All users updated.
4761 Handle compressed. Error out if no suitable architecture is found.
4762 Don't close file.
4763 (grub_macho_open): New argument is_64bit. All users updated.
4764 * grub-core/loader/macho32.c: Add defines for new fields.
4765 * grub-core/loader/macho64.c: Likewise.
4766 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4767 (grub_macho_parse): Handle compressed.
4768 Defer actual processing if compressed.
4769 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4770 "filename". All users updated.
4771 (grub_macho_size): New argument "filename". All users updated.
4772 (grub_macho_get_entry_point): Likewise.
4773 (grub_macho_load): Handle compressed.
4774 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4775 (GRUB_MACHO_LZSS_OFFSET): New define.
4776 (grub_decompress_lzss): New proto.
4777 * include/grub/machoload.h (grub_macho_file): New fields to handle
4778 compressed.
4779 (grub_macho_contains_macho64): Remove proto.
4780 (grub_macho_contains_macho32): Likewise.
4781 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4782
4783 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4784
4785 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4786
4787 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 Fix make dist.
4790
4791 * Makefile.am (starfield_theme_files): New var.
4792 (starfield_DATA): Use starfield_theme_files.
4793 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4794 Add bootcheck-related files.
4795 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4796 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4797 and font_char_metrics.txt.
4798 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4799 (setjmp): Add lib/ia64/longjmp.S.
4800 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4801 * po/POTFILES.in: Regenerate.
4802 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4803 DISTFILES.common.extra1.
4804 * util/devicemap.c: Removed.
4805 * grub-core/lib/i386/relocator_backward.S: Likewise.
4806 * util/import_gcry.py: Remove unused files. Add extra_dist for
4807 ChangeLog.
4808
4809 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4810
4811 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4812 grub_gettext_delete_list before changing grub_gettext_max to avoid
4813 running out of array bounds.
4814
4815 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4816
4817 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4818 grub_vga_text_init/grub_vga_text_fini.
4819
4820 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4821
4822 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4823
4824 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 * configure.ac: Bump to 2.00~beta0.
4827
4828 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4829
4830 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4831 missing initialisation.
4832
4833 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4834
4835 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4836
4837 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 Support v2 xnu boot arguments.
4840
4841 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4842 New argument fsbfreq_out.
4843 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4844 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4845 be used.
4846 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4847 darwin_version.
4848 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4849 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4850 (grub_xnu_boot_params): Rename to ...
4851 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4852 (grub_xnu_boot_params_v2): New struct.
4853
4854 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4855
4856 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4857 zeroing of CRC field before computing CRC.
4858
4859 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4860
4861 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4862 Change order of allocations to decrease fragmentation.
4863
4864 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4865
4866 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4867
4868 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4869
4870 Use write-combining MTRR to speed up video with buggy BIOSes.
4871
4872 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4873 (cpuid): New define.
4874 (rdmsr): Likewise.
4875 (wrmsr): Likewise.
4876 (mtrr_base): Likewise.
4877 (mtrr_mask): Likewise.
4878 (grub_vbe_enable_mtrr_entry): New function.
4879 (grub_vbe_enable_mtrr): Likewise.
4880 (grub_vbe_disable_mtrr): Likewise.
4881 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4882 control off to BIOS.
4883 (grub_video_vbe_init): Fill mtrr.
4884 (grub_video_vbe_fini): Disable mtrr.
4885 (grub_video_vbe_get_info_and_fini): Likewise.
4886 (grub_video_vbe_setup): Enable mtrr.
4887
4888 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
4889
4890 * include/grub/partition.h (grub_partition_map): Change prototype of
4891 embed to take a maximum value for nsectors.
4892 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4893 * include/grub/fs.h (grub_fs): Likewise.
4894 * grub-core/partmap/msdos.c (embed_signatures): New array.
4895 (pc_partition_map_embed): Check for and avoid sectors matching any
4896 of the signatures in embed_signatures, up to max_nsectors.
4897 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4898 returned sector map to max_nsectors.
4899 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4900 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4901 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4902 * util/grub-setup.c (setup): Allow for the embedding area being
4903 split into multiple blocklists. Tell dest_partmap->embed the
4904 maximum number of sectors we care about.
4905
4906 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4907
4908 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4909 Specify blocklist_install and reserver_first_sector for all fs.
4910 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4911 blocklists.
4912
4913 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4914
4915 * util/grub-install.in: Clarify strings.
4916 Fix source dir check.
4917
4918 2012-02-27 Richard Laager <rlaager@wiktel.com>
4919
4920 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4921 "zfs" and "fuse.zfs" as synonyms.
4922
4923 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * configure.ac: Put platform and target_cpu substitutions back since
4926 they are used for directories.
4927
4928 2012-02-27 Richard Laager <rlaager@wiktel.com>
4929 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4930
4931 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4932 * util/grub.d/20_linux_xen.in: Likewise.
4933
4934 2012-02-27 Richard Laager <rlaager@wiktel.com>
4935
4936 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4937 with full paths.
4938
4939 2012-02-27 Richard Laager <rlaager@wiktel.com>
4940
4941 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4942 unescape.
4943
4944 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 Don't use insecure popen in getroot.
4947
4948 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4949 (exec_pipe): ... here.
4950 (find_root_devices_from_poolname): Use exec_pipe.
4951
4952 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4953
4954 Remove platform and target_cpu replacement.
4955
4956 * configure.ac: Remove platform and target_cpu substitutions.
4957 * tests/util/grub-shell.in: Use modinfo.
4958 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4959 explicitly.
4960
4961 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 Autodetect platform in grub-install but allow override.
4964
4965 * util/grub-install.in: Autodetect platform. Support --target and
4966 --directory. Read platform from modinfo.sh.
4967
4968 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4969
4970 Support btrfs multi-volume probe.
4971
4972 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4973 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4974 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4975 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4976 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4977 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4978 grub_find_root_devices_from_btrfs if on btrfs.
4979
4980 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4981
4982 Remove any awareness of *.c util files about target.
4983
4984 * Makefile.util.def (grub-setup): Split to ...
4985 (grub-bios-setup): ... and this.
4986 (grub-sparc64-setup): ... and this.
4987 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4988 * docs/man/grub-setup.h2m: Split into ...
4989 * docs/man/grub-sparc64-setup.h2m: ... this.
4990 * docs/man/grub-bios-setup.h2m: ... and this.
4991 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4992 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4993 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4994 (grub_target_addr_t): Remove.
4995 (grub_target_size_t): Remove.
4996 (grub_target_ssize_t): Remove.
4997 * util/grub-install.in: Use new grub-*-setup.
4998 * util/grub-mkimagexx.c (Elf_Word): New define.
4999 (Elf_Half): Likewise.
5000 (Elf_Section): Likewise.
5001 (ELF_ST_TYPE): Likewise.
5002 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5003 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5004
5005 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5006
5007 Replace grub_target_addr with more appropriate types.
5008
5009 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5010 grub_target_addr with grub_addr.
5011 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5012 grub_target_addr with grub_port.
5013 (grub_cmd_write): Likewise.
5014 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5015 grub_target_addr with grub_addr.
5016 (grub_cmd_write): Likewise.
5017 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5018
5019 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5022 const qualifier for vendor_guid.
5023
5024 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5025
5026 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5027 const qualifier.
5028 (efiemu_memequal): Likewise.
5029 (find_variable): Likewise.
5030
5031 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5032
5033 Fix missing console prototype on qemu-mips.
5034
5035 * include/grub/mips/qemu_mips/console.h: New file.
5036
5037 2012-02-27 Matthew Garrett <mjg@redhat.com>
5038 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5039
5040 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5041 * include/grub/efi/efi.h: Likewise.
5042 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5043 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5044 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5045 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5046 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5047 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5048
5049 2012-02-27 Matthew Garrett <mjg@redhat.com>
5050
5051 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5052
5053 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5054
5055 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5056 error.
5057
5058 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5059
5060 * configure.ac: Remove inappropriate use of program_transform_name
5061 on grubdir and bootdir but allow explicit specification of those
5062 variables.
5063
5064 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 * util/grub-mknetdir.in (grub_prefix): Removed.
5067 (subdir): Use @bootdirname@ and @grubdirname@.
5068
5069 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5070
5071 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5072
5073 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5074
5075 * po/POTFILES.in: Regenerated.
5076
5077 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5078
5079 Remove improper use of program_transform_name on pkglibrootdir.
5080
5081 * configure.ac (pkglibrootdir): Removed.
5082 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5083 * util/grub-mkimage.c: Likewise.
5084
5085 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5088 warning.
5089
5090 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5091
5092 * util/grub-install.in: Use file identifier if no UUID is available
5093 or user explicitly prompted for it.
5094
5095 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5096
5097 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5098 (freebsd_get_zfs): New function.
5099 (grub_freebsd_boot): Pass zfs UUID.
5100 (grub_cmd_freebsd): Set zfs UUID.
5101
5102 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5103
5104 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5105 pkglibrootdir.
5106
5107 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5108
5109 Add configure flag to control libzfs integration.
5110
5111 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5112
5113 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5116 device.
5117 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5118 small devices.
5119
5120 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5123 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5124 be used on non-modules.
5125
5126 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5127 Rename to grub_boot_init.
5128 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5129 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5130 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5131 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5132 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5133 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5134 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5135 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5136 includes.
5137 (grub_machine_init): Remove empty inits.
5138 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5139 includes.
5140 (grub_machine_init): Remove empty inits.
5141 * grub-core/term/arc/console.c: Remove explicit proto.
5142 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5143 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5144 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5145 grub_at_keyboard_fini.
5146 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5147 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5148 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5149 grub_gfxterm_fini.
5150 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5151 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5152 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5153 grub_vgatext_fini.
5154 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5155 * grub-core/term/serial.c (GRUB_MOD_INIT)
5156 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5157 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5158 grub_serial_fini.
5159 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5160 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5161 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5162 grub_terminfo_fini.
5163 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5164 (GRUB_MOD_FINI): Likewise.
5165 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5166 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5167 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5168 grub_video_radeon_fuloong2e_fini.
5169 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5170 [LOONGSON]: Rename to grub_video_sis315pro_init.
5171 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5172 grub_video_sis315pro_fini.
5173 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5174 [LOONGSON]: Rename to grub_video_sm712_init.
5175 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5176 grub_video_sm712_fini.
5177 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5178 (grub_at_keyboard_fini): Likewise.
5179 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5180 Don't declare grub_{modname}_init.
5181 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5182 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5183 New proto.
5184 (grub_keylayouts_fini) [!EMU]: Likewise.
5185 * include/grub/serial.h (grub_serial_init) [!EMU]:
5186 New proto.
5187 (grub_serial_fini) [!EMU]: Likewise.
5188 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5189 New proto.
5190 (grub_terminfo_fini) [!EMU]: Likewise.
5191 * include/grub/video.h (grub_font_init) [!EMU]:
5192 New proto.
5193 (grub_font_fini) [!EMU]: Likewise.
5194 (grub_gfxterm_init) [!EMU]: Likewise.
5195 (grub_gfxterm_fini) [!EMU]: Likewise.
5196 (grub_video_sm712_init) [!EMU]: Likewise.
5197 (grub_video_sm712_fini) [!EMU]: Likewise.
5198 (grub_video_sis315pro_init) [!EMU]: Likewise.
5199 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5200 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5201 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5202
5203 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5204
5205 Make nand a prefix for nand devices.
5206
5207 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5208
5209 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5212 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5213
5214 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5215
5216 * include/grub/env.h (grub_env_find): Remove prototype.
5217 * grub-core/kern/env.c (grub_env_find): Make static.
5218 (grub_env_set): Remove useless set.
5219
5220 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * grub-core/kern/i386/realmode.S: Remove useless align.
5223
5224 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 * include/grub/dl.h (grub_dl_load_file): Don't export.
5227
5228 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5229
5230 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5231 grub_dprintf.
5232
5233 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5234
5235 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5236 grub_errors.
5237 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5238 not reloading whole superblock but only the part which is really needed.
5239 Remove useless grub_errors.
5240 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5241 grub_errors.
5242
5243 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5244
5245 Don't export grub_get_rtc.
5246
5247 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5248 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5249
5250 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5251
5252 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5253
5254 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5255
5256 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5257 argument since it can be deduced from diskfilter. All users updated.
5258
5259 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 Remove prio_list.
5262
5263 * include/grub/list.h (grub_prio_list): Removed.
5264 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5265 GRUB_COMMAND_PRIO_MASK.
5266 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5267 GRUB_COMMAND_FLAG_ACTIVE.
5268 (grub_prio_list_insert): Removed.
5269 (grub_prio_list_remove): Likewise.
5270 (GRUB_AS_PRIO_LIST): Likewise.
5271 (GRUB_AS_PRIO_LIST_P): Likewise.
5272 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5273 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5274 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5275 * grub-core/kern/command.c (grub_register_command_prio): Inline
5276 the prio_list code.
5277 (grub_unregister_command): Likewise.
5278
5279 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5280
5281 Fix interrupt mixup from previous commit.
5282
5283 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5284 (grub_realidt): New var.
5285 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5286 Load idt.
5287 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5288 New declaration.
5289 (grub_relocator16_boot): Set grub_relocator16_idt.
5290 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5291 (LOCAL(realidt)): ... this.
5292 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5293 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5294 (grub_realidt): New variable.
5295
5296 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5299 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5300 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5301 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5302 Gettextize.
5303 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5304 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5305 * po/POTFILES.in: Regenerate.
5306
5307 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5310 errors.
5311
5312 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5313
5314 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5315 \0.
5316 (add_length): Likewise.
5317
5318 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5319 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5320
5321 GDB serial and backtrace support.
5322
5323 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5324 (prot_to_real): Likewise.
5325 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5326 * grub-core/Makefile.core.def (backtrace): New module.
5327 (gdb): Likewise.
5328 * grub-core/gdb/cstub.c: New file.
5329 * grub-core/gdb/gdb.c: Likewise.
5330 * grub-core/gdb/i386/idt.c: Likewise.
5331 * grub-core/gdb/i386/machdep.S: Likewise.
5332 * grub-core/gdb/i386/signal.c: Likewise.
5333 * grub-core/lib/i386/backtrace.c: Likewise.
5334 * grub-core/lib/backtrace.c: Likewise.
5335 * include/grub/backtrace.h: Likewise.
5336 * include/grub/gdb.h: Likewise.
5337 * include/grub/i386/gdb.h: Likewise.
5338
5339 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5342 New function.
5343 (add_length): Likewise.
5344 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5345 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5346 proto.
5347 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5348 __argp_get_display_len.
5349
5350 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5351
5352 $"..." support in scripts.
5353
5354 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5355 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5356 * grub-core/script/yylex.l: Likewise.
5357 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5358 value.
5359
5360 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5361
5362 * gentpl.py: Remove obsolete pkglib_DATA handling.
5363
5364 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5365
5366 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5367 mailing list.
5368
5369 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5370 * util/grub-kbdcomp.in: Likewise.
5371 * util/grub-mkconfig.in: Likewise.
5372 * util/grub-mkconfig_lib.in: Likewise.
5373 * util/grub-mknetdir.in: Likewise.
5374 * util/grub-mkrescue.in: Likewise.
5375 * util/grub-mkstandalone.in: Likewise.
5376 * util/grub-reboot.in: Likewise.
5377 * util/grub-set-default.in: Likewise.
5378 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5379
5380 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5381
5382 Remove GRUB_PREFIX.
5383
5384 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5385 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5386 used for backward compatibility.
5387
5388 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5389
5390 Add new all_video module.
5391
5392 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5393 * grub-core/Makefile.core.def (all_video): New module.
5394 * grub-core/genmoddep.awk: Generate dependency of all_video from
5395 video.lst.
5396 * grub-core/lib/fake_module.c: New file.
5397 * grub-core/normal/main.c (features): Add feature_all_video_module.
5398 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5399 don't do explicit search again.
5400 insmod all_video in load_video if available.
5401
5402 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 Another round of string clarification and adding TRANSLATORS comments.
5405
5406 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5407
5408 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5409
5410 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5411
5412 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5413 to grub_ssize_t.
5414 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5415 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5416
5417 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5418
5419 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5420 trailing newline implicitly. All users updated.
5421
5422 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 Implement serial on IEEE1275 and EFI.
5425
5426 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5427 on emu. Mention arc and emu as the only platforms without serial
5428 support.
5429 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5430 ieee1275 platforms.
5431 * grub-core/term/efi/serial.c: New file.
5432 * grub-core/term/ieee1275/serial.c: Likewise.
5433 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5434 specification if no ns8250 driver is available.
5435 (grub_cmd_serial): Likewise.
5436 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5437 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5438 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5439 (grub_efi_parity_type_t): New type.
5440 (grub_efi_stop_bits_t): Likewise.
5441 (grub_efi_serial_io_interface): New struct.
5442 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5443 available for all interfaces.
5444 Add EFI and IEEE1275 fields.
5445 (grub_ofserial_init): New proto.
5446 (grub_efiserial_init): Likeiwse.
5447 * util/grub.d/00_header.in: Don't check for the presence of serial
5448 module.
5449
5450 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5453 name as if it was an alias.
5454
5455 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5456
5457 * grub-core/commands/lsacpi.c (options): Fix typo.
5458
5459 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5460
5461 Convert grub-emu to argp.
5462
5463 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5464 emu.
5465 * util/argp_common.c: Rename to ...
5466 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5467 Add missing includes.
5468 * grub-core/kern/emu/main.c: Convert to argp.
5469 * po/POTFILES.in: Regenerate.
5470 * util/grub-install.in (usage): Make first letter lowcase in messages
5471 for uniformity.
5472 * util/grub-setup.c (options): Likewise.
5473
5474 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5475
5476 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5477 Put back accidently commented-out code.
5478
5479 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5480
5481 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5482 loop check using Brent algorithm.
5483 (grub_hfsplus_btree_search): Likewise.
5484
5485 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5486
5487 * util/grub-install.in: Fix usage of wrong device for PreP install.
5488
5489 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 * conf/Makefile.common (CFLAGS_GNULIB): Add
5492 -Wno-unsafe-loop-optimizations.
5493 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5494 on tools.
5495 * grub-core/commands/legacycfg.c: Add pragma to skip
5496 -Wunsafe-loop-optimizations.
5497 (check_password_md5_real): Fix loop counter type.
5498 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5499 reading.
5500 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5501 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5502 loop condition.
5503 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5504 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5505 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5506 condition.
5507 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5508 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5509 avoid possible infinite loops.
5510 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5511 and -Wunsafe-loop-optimizations.
5512 * grub-core/script/yylex.l: Likewise.
5513 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5514 (print_glyphs): Avoid infinite loops.
5515 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5516
5517 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5518
5519 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5520 to avoid infinite loop.
5521 (disp_acpi_rsdt_table): Likewise.
5522
5523 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5524
5525 * grub-core/font/font.c (grub_font_load): Add support for default
5526 path for fonts ($prefix/fonts).
5527 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5528 for checking if string is a path.
5529 * grub-core/normal/main.c (features): Add feature_default_font_path.
5530 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5531 * util/grub.d/00_header.in: Use default directory if possible.
5532 * util/grub-install.in: Install unicode.pf2.
5533
5534 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5537 * po/Rules-swiss: New file.
5538 * po/swiss.sed: Likewise.
5539
5540 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * grub-core/fs/btrfs.c (find_device): Fix typos.
5543 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5544 * util/grub-mkrelpath.c (argp_parser): Likewise.
5545 Reported by: Yuri Chornoivan.
5546
5547 2012-02-23 Dalet Omega <daletomega@gmail.com>
5548
5549 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5550 for usual informative messages.
5551
5552 2012-02-23 Dalet Omega <daletomega@gmail.com>
5553
5554 Starfield theme.
5555
5556 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5557 * conf/Makefile.common: Define starfielddir.
5558 * configure.ac: Configure starfield.
5559 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5560 * themes/starfield/README: Likewise.
5561 * themes/starfield/blob_w.png: Likewise.
5562 * themes/starfield/boot_menu_c.png: Likewise.
5563 * themes/starfield/boot_menu_e.png: Likewise.
5564 * themes/starfield/boot_menu_n.png: Likewise.
5565 * themes/starfield/boot_menu_ne.png: Likewise.
5566 * themes/starfield/boot_menu_nw.png: Likewise.
5567 * themes/starfield/boot_menu_s.png: Likewise.
5568 * themes/starfield/boot_menu_se.png: Likewise.
5569 * themes/starfield/boot_menu_sw.png: Likewise.
5570 * themes/starfield/boot_menu_w.png: Likewise.
5571 * themes/starfield/slider_c.png: Likewise.
5572 * themes/starfield/slider_n.png: Likewise.
5573 * themes/starfield/slider_s.png: Likewise.
5574 * themes/starfield/src/blob_nw.xcf: Likewise.
5575 * themes/starfield/src/bootmenu/: Likewise.
5576 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5577 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5578 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5579 * themes/starfield/src/slider_c.xcf: Likewise.
5580 * themes/starfield/src/slider_n.xcf: Likewise.
5581 * themes/starfield/src/slider_s.xcf: Likewise.
5582 * themes/starfield/src/terminalbox/: Likewise.
5583 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5584 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5585 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5586 * themes/starfield/starfield.png: Likewise.
5587 * themes/starfield/terminal_box_c.png: Likewise.
5588 * themes/starfield/terminal_box_e.png: Likewise.
5589 * themes/starfield/terminal_box_n.png: Likewise.
5590 * themes/starfield/terminal_box_ne.png: Likewise.
5591 * themes/starfield/terminal_box_nw.png: Likewise.
5592 * themes/starfield/terminal_box_s.png: Likewise.
5593 * themes/starfield/terminal_box_se.png: Likewise.
5594 * themes/starfield/terminal_box_sw.png: Likewise.
5595 * themes/starfield/terminal_box_w.png: Likewise.
5596 * themes/starfield/theme.txt: Likewise.
5597
5598 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5599
5600 * util/grub.d/00_header.in: Add missing export theme.
5601
5602 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5605 already included.
5606 Reported by: Eren D.
5607
5608 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5609
5610 * conf/Makefile.common (grubdatadir): Removed.
5611 (Makefile.am): Move eveything grubdata to pkgdata.
5612
5613 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5614
5615 * grub-core/commands/acpihalt.c (get_sleep_type):
5616 Remove unused variable.
5617
5618 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5619
5620 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5621 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5622 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5623 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5624 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5625 i18n with gettext no-op.
5626 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5627 GRUB_ACPI_OPCODE_STRING_CONST.
5628 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5629 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5630
5631 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5632
5633 * po/POTFILES.in: Regenerate.
5634
5635 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5636
5637 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5638 -Wno-error=missing-noreturn.
5639
5640 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5641
5642 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5643 condition to avoid possibly infinite loops.
5644 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5645 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5646
5647 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5650 condition to avoid possibly infinite loops.
5651
5652 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5653
5654 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5655 on show_error.
5656
5657 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5658
5659 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5660
5661 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5664
5665 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5666
5667 * util/bin2h.c (usage): Add missing attribute noreturn.
5668
5669 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5670
5671 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5672 if the size isn't divisible by 512.
5673
5674 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 Make list_push and list_remove functions rather than inline functions
5677 to decrease size and avoid aliasing violations.
5678
5679 * include/grub/list.h (grub_list_push): Move to ...
5680 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5681 * include/grub/list.h (grub_list_remove): Move to ...
5682 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5683
5684 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5685
5686 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5687 and -Wunused-result.
5688
5689 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5690
5691 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5692 Reported by: Seth Goldberg
5693
5694 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5695
5696 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5697
5698 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5699
5700 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5701 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5702 command line.
5703 * docs/grub.texi (Simple configuration): Document
5704 GRUB_CMDLINE_GNUMACH.
5705
5706 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5707
5708 * conf/Makefile.common (platform_SCRIPTS): New variable.
5709 (platform_PROGRAMS): Likewise.
5710 * gentpl.py: Mark *,module and *.image for install.
5711 * grub-core/gdb_grub.in: Add a notice of expected environment.
5712 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5713 (gmodule.pl): Likewise.
5714
5715 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5716
5717 Replace grub_checkkey with grub_getkey_noblock.
5718
5719 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5720 (grub_getkey_noblock): ... this. All users updated.
5721
5722 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * grub-core/kern/emu/console.c: Move to ...
5725 * grub-core/term/emu/console.c: ...here.
5726 (grub_ncurses_getkey): Fix return value if no key is detected.
5727
5728 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5729
5730 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5731 (grub_unit_test_fini): Likewise.
5732 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5733
5734 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5735
5736 * include/grub/test.h (GRUB_UNIT_TEST)
5737
5738 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5739
5740 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5741 Better error handling.
5742 (grub_script_return): Likewise.
5743 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5744
5745 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5746
5747 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5748 rimplicit redifinition.
5749
5750 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5751
5752 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5753 GRUB.
5754
5755 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5756
5757 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5758 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5759 prompt here.
5760
5761 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5762
5763 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5764 as GRUB_ERR_BUG. Don't malloc if no device is available.
5765
5766 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5769 Mark calling with invalid term as GRUB_ERR_BUG.
5770
5771 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5774 packets rather than raising an error.
5775
5776 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5777
5778 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5779 in if.
5780
5781 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5784 diagnostic to dprintf.
5785 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5786
5787 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5790 device name.
5791
5792 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5795 (grub_ntfs_iterate_dir): Likewise.
5796
5797 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 Efiemu stylistic fixes and gettext.
5800
5801 * grub-core/efiemu/i386/loadcore32.c
5802 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5803 * grub-core/efiemu/i386/loadcore64.c
5804 (grub_arch_efiemu_relocate_symbols64): Likewise.
5805 * grub-core/efiemu/i386/pc/cfgtables.c
5806 (grub_machine_efiemu_init_tables): Likewise.
5807 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5808 (grub_efiemu_loadcore_initXX): Add a filename argument.
5809 All users updated.
5810 Improved error message.
5811 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5812 Add a filename argument.
5813 All users updated.
5814 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5815 Reclassify double relocation as GRUB_ERR_BUG.
5816
5817 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5818
5819 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5820 handling.
5821
5822 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5825 on partition.
5826
5827 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5830
5831 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5832
5833 Improve string. Gettextize.
5834
5835 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5836
5837 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5838 utils.
5839 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5840
5841 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5842
5843 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5844 [GRUB_UTIL]: New function.
5845 (insert_array) [GRUB_UTIL]: Store partmaps.
5846 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5847 partmaps.
5848 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5849 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5850 (probe_abstraction): Print diskfilter and not raid.
5851 Reported by: Lennart Sorensen
5852
5853 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5854
5855 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5856 * util/grub-mkimagexx.c (MASK3): New define.
5857 (add_value_to_slot_20b): Use MASK3.
5858 (add_value_to_slot_21): Likewise.
5859 (relocate_addresses): Fix format specification.
5860 (load_image): Explicitly init symtab_section.
5861
5862 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5863
5864 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5865 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5866
5867 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5870 on powerpc.
5871 Reported by: Lennart Sorensen
5872
5873 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * gentpl.py: Add missing license header.
5876 * docs/grub.texi: Update copyright year.
5877
5878 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5879
5880 Source grub-mkconfig_lib from the build directory at build time.
5881 Suggested by: Vladimir Serbinenko.
5882
5883 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5884 * util/grub-install.in: Define pkgdatadir if not already set, and source
5885 grub-mkconfig_lib from there.
5886 * util/grub-kbdcomp.in: Likewise.
5887 * util/grub-mkconfig.in: Likewise.
5888 * util/grub-mknetdir.in: Likewise.
5889 * util/grub-mkrescue.in: Likewise.
5890 * util/grub-mkstandalone.in: Likewise.
5891 * util/grub-reboot.in: Likewise.
5892 * util/grub-set-default.in: Likewise.
5893 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5894
5895 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5896
5897 Increase warning level.
5898
5899 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5900 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5901 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5902 (TARGET_CFLAGS): Likewise.
5903 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5904 * grub-core/Makefile.core.def (decompressor_xz): Add
5905 -Wno-unreachable-code.
5906 (normal): Add -Wno-redundant-decls.
5907 (xzio): Add -Wno-unreachable-code.
5908 (lzopio): Add -Wno-redundant-decls -Wno-error.
5909 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5910 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5911 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5912 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5913 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5914 * grub-core/kern/i386/coreboot/init.c: Add exception to
5915 -Wsuggest-attribute=noreturn.
5916 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5917 * grub-core/kern/ia64/dl_helper.c: Likewise.
5918 * grub-core/kern/mips/dl.c: Likewise.
5919 * grub-core/kern/sparc64/dl.c: Likewise.
5920 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5921 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5922 (memcmp): Likewise.
5923 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5924 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5925 * grub-core/loader/mips/linux.c: Likewise.
5926 * grub-core/loader/multiboot_elfxx.c: Likewise.
5927 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5928 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5929 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5930 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5931 fixme.
5932 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5933 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5934 Fix prototype.
5935
5936 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5937
5938 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5939 address.
5940
5941 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5942
5943 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5944 Avoid improper use of strings.
5945 (grub_cmd_legacy_initrdnounzip): Likewise.
5946
5947 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5948
5949 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5950 attribute.
5951 (grub_util_info): Likewise.
5952 (grub_util_error): Likewise.
5953
5954 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5955
5956 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5957 * util/grub-fstest.c (fstest): Likewise.
5958
5959 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5962 (grub_md_sha512_real): Likewise.
5963 (grub_util_get_geli_uuid): Likewise.
5964 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5965 (grub_util_biosdisk_open): Fix format specification.
5966 Respect format security.
5967 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5968 (xrealloc): Likewise.
5969 (xasprintf): Likewise.
5970
5971 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5972
5973 * util/import_gcry.py: Include grub/crypto.h in init.c.
5974
5975 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5978 (generate_image): Make prefix a const char *.
5979 Fix format specifications. Respect format security.
5980 Avoid void * arithmetics.
5981 Avoid shadowing.
5982 (argp_parser): Remove unused variable. Respect format security.
5983 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5984 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5985 (count_funcs): Remove unused variable.
5986 (relocate_addresses): Fix format specification.
5987 Disable x86-64 with elf32. Remove unused variables.
5988 (add_fixup_entry): Avoid shadowing.
5989 (make_reloc_section): Fix format specification.
5990 Use assert.
5991 (locate_sections): Fix format specifications.
5992 (load_image): Avoid shadowing.
5993
5994 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5995
5996 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5997 Fix format specifications. Respect format security.
5998 Don't translate already translated grub_errmsg.
5999 (argp_parser): Remove unused variable
6000
6001 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6004
6005 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6006
6007 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6008 (main): Likewise. Use xmalloc. Respect format security.
6009
6010 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6013 a const char *.
6014 (argp_parser): Remove unused variable.
6015
6016 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6019 (add_pixel): Make static.
6020 (add_font): Likewise.
6021 (write_string_section): Make name and str a const char *.
6022 (write_be16_section): Make name a const char *.
6023 (print_glyphs): Make static.
6024 (write_font_ascii_bitmap): Likewise.
6025 (write_font_width_spec): Likewise.
6026 (write_font_pf2): Likewise.
6027 (argp_parser): Remove unused variable.
6028 Respect format security.
6029 (main): Avoid shadowing. Respect format security.
6030
6031 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6032
6033 * util/grub-editenv.c (argp_parser): Make static.
6034 (create_envblk_file): Use xmalloc.
6035 (open_envblk_file): Likewise.
6036 Resepect format security.
6037 (set_variables): Respect format security.
6038
6039 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * util/getroot.c (grub_find_device): Respect format security.
6042 (get_mdadm_uuid): Remove unused variable.
6043 (grub_util_pull_device): Dont call gettext on already translated
6044 grub_errmsg.
6045 (find_system_device): Remove unused variable.
6046 (grub_util_get_grub_dev): Likewise.
6047 (grub_make_system_path_relative_to_its_root): Respect format security.
6048
6049 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6050
6051 * util/grub-fstest.c (execute_command): Make first argument
6052 a const char *.
6053 (read_file): Avoid shadowing.
6054 Reuse underlying error message if device open fails.
6055 (cmd_cmp): Respect format security.
6056 (root): Make const char *.
6057 (fstest): Remove args argument and use global copy.
6058 Respect format security.
6059 (argp_parser): Make static.
6060 (main): Make default_root const char *.
6061
6062 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6063
6064 * util/grub-mount.c (root): Make const char *.
6065 (execute_command): Make first argument a const char *.
6066 (fuse_init): Respect format security.
6067 (argp_parser): Make static. Remove unused variable.
6068 (main): Make default_root a const char *.
6069 Respect format security.
6070
6071 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6072
6073 * util/grub-probe.c (probe): Don't call gettext on already translated
6074 grub_errmsg.
6075 Remove unused variables.
6076 (argp_parser): Remove unused variable.
6077
6078 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6079
6080 * util/grub-script-check.c (argp_parser): Remove unused variable.
6081 (main): Rename read to curread to avoid shadowing.
6082
6083 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * util/misc.c (grub_util_write_image_at): Fix format specification.
6086 (grub_util_write_image): Likewise.
6087 (grub_script_execute_argument_to_string): Removed (unused).
6088 (grub_script_execute_menuentry): Likewise.
6089 (grub_putchar): Likewise.
6090
6091 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6094 (FUNCTION) [GRUB_UTIL]: Likewise.
6095 (VARIABLE) [GRUB_UTIL]: Likewise.
6096
6097 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6100 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6101
6102 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6105 buffer.
6106
6107 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6108
6109 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6110 (LzmaEnc_SaveState): Removed (unused).
6111 (LzmaEnc_RestoreState): Likewise.
6112 (LzmaEnc_InitPriceTables): Made static.
6113 (LzmaEnc_Construct): Likewise.
6114 (LzmaEnc_FreeLits): Likewise.
6115 (LzmaEnc_Destruct): Likewise.
6116 (LzmaEnc_Init): Likewise.
6117 (LzmaEnc_InitPrices): Likewise.
6118 (LzmaEnc_Finish): Likewise.
6119 (LzmaEnc_PrepareForLzma2): Removed (unused).
6120 (LzmaEnc_MemPrepare): Likewise.
6121 (LzmaEnc_GetNumAvailableBytes): Likewise.
6122 (LzmaEnc_GetCurBuf): Likewise.
6123 (LzmaEnc_CodeOneMemBlock): Likewise.
6124
6125 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6128 (grub_util_ldm_embed): Likewise.
6129
6130 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6131
6132 * util/grub-editenv.c (print_var): Rename name to varname to
6133 avoid shadowing.
6134 (main): Rename index to curindex to avoid shadowing.
6135 Make filename a const char *.
6136
6137 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6138
6139 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6140 to arg_getline to avoid shadowing.
6141
6142 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6145 disk_ to avoid shadowing.
6146
6147 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6150 curindex to avoid shadowing.
6151 Make static.
6152 (MatchFinder_GetNumAvailableBytes): Make static.
6153
6154 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6157 avoid shadowing.
6158
6159 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6162 argument from encrypt to do_encrypt to avoid shadowing.
6163
6164 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6167 incorrect nesting of #if's.
6168
6169 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6172 checks which are always false on some platforms.
6173 (grub_cmd_lsacpi): Likewise.
6174 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6175 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6176 Likewise.
6177
6178 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6179
6180 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6181 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6182
6183 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6186 re_dfa_t to avoid breaking alignment invariants.
6187 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6188 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6189
6190 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6193 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6194
6195 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6196
6197 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6198 Fix declaration.
6199
6200 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6201
6202 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6203 conserve alignment invariants.
6204 (grub_ehci_ehcc_read16): Likewise.
6205 (grub_ehci_oper_read32): Likewise.
6206 (grub_ehci_oper_write32): Likewise.
6207 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6208 Conserve alignment invariants.
6209
6210 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6213 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6214 declarations.
6215
6216 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6219 Remove unused variable.
6220
6221 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6222
6223 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6224 Remove set in if.
6225
6226 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6227
6228 * include/grub/net.h: Remove double declarations.
6229
6230 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 Remove "payload" command in ia64 Linux loader since I couldn't
6233 find any evidence of it being used for anything.
6234 Replace "relocate" command with an environment variable
6235
6236 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6237 fields.
6238 (ia64_boot_payload): Removed.
6239 (last_payload): Likewise.
6240 (RELOCATE_OFF): Likewise.
6241 (RELOCATE_ON): Likewise.
6242 (RELOCATE_FORCE): Likewise.
6243 (relocate): Likewise.
6244 (free_pages): Don't free payloads.
6245 (grub_load_elf64): Use common error messages.
6246 Use "linux_relocate" variable.
6247 Increase the space after boot_params.
6248 (grub_cmd_payload): Removed.
6249 (grub_cmd_relocate): Likewise.
6250 (grub_cmd_fpswa): Improve messages.
6251 (cmd_payload): Removed.
6252 (cmd_relocate): Likewise.
6253 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6254 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6255
6256 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6257
6258 Convert UHCI to DMA framework.
6259
6260 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6261 (grub_uhci_pci_iter): Fill new members
6262 (grub_alloc_td): Use P2V and V2P functions.
6263 (grub_free_queue): Likewise.
6264 (grub_alloc_qh): Likewise.
6265 (grub_uhci_setup_transfer): Likewise.
6266 (grub_uhci_check_transfer): Likewise.
6267
6268 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6271 Remove assignment in if while on it.
6272
6273 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * util/grub-mkstandalone.in: Fix modules directory.
6276
6277 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6278
6279 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6280 on i386-pc target.
6281 (argp_parser): Accept "auto" as compression specification.
6282
6283 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6284
6285 Fix `help' with unloaded modules.
6286
6287 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6288 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6289 (grub_dyncmd_dispatcher): Small stylistic fix.
6290 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6291 explicit help is requested.
6292
6293 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6296 Explicitly init restart while on it.
6297
6298 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6301 uninited variable.
6302
6303 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6304
6305 * util/grub-mknetdir.in: Use . rather than source for POSIX
6306 compatibility.
6307
6308 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6311
6312 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6315 variable.
6316
6317 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6318
6319 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6320 without quotes.
6321
6322 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6325
6326 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6327
6328 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6329 iteration of partitions.
6330
6331 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 Improve gettext support. Stylistic fixes and error handling fixes while
6334 on it.
6335
6336 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6339 part. Instead setup the correct stack in RM.
6340 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6341 for stack.
6342 * include/grub/i386/relocator_private.h: New file.
6343
6344 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6347 argument.
6348 * util/grub-fstest.c (options): Add missing DEVICE part.
6349
6350 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 Clarify and unify messages.
6353
6354 * grub-core/commands/hashsum.c (options): Unify messages.
6355 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6356 literal-only message as translatable.
6357 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6358 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6359 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6360 commands.
6361 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6362 key, not the key used to unlock. Clarify what it's used for.
6363 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6364 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6365 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6366 * util/grub-editenv.c (options): Unify "verbose" message.
6367 * util/grub-fstest.c (read_file): Unify error message.
6368 (fstest): Add quotes around commands.
6369 (options): Unify "verbose" message.
6370 * util/grub-install.in: Add quotes around variable name.
6371 * util/grub-kbdcomp.in: Unify error message.
6372 * util/grub-mkfont.c (main): Likewise.
6373 * util/grub-mkrescue.in: Likewise.
6374 * util/grub-mklayout.c (options): Unify "verbose" message.
6375 * util/grub-mkstandalone.in: Unify help and verbose messages.
6376 * util/grub-mount.c (options): Unify "verbose" message.
6377 * util/grub-probe.c (options): Likewise.
6378 * util/grub-script-check.c (options): Likewise.
6379 * util/grub-setup.c (setup): Unify no-terminator message.
6380 (options): Use DEVICE and not DEV.
6381 Unify "verbose" message.
6382 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6383
6384 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 Improve and unify messages.
6387
6388 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6389 name. All users updated.
6390 Print filename in error.
6391 (read_device_map): Print filename in error.
6392 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6393 (grub_util_get_os_disk): Likewise.
6394 (grub_util_biosdisk_get_grub_dev): Likewise.
6395 (grub_util_check_block_device): Likewise.
6396 (grub_util_check_char_device): Likewise.
6397 (grub_make_system_path_relative_to_its_root): Likewise.
6398 * util/grub-editenv.c (create_envblk_file): Likewise.
6399 (open_envblk_file): Likewise.
6400 (write_envblk): Likewise.
6401 * util/grub-fstest.c (cmd_cp): Likewise.
6402 (cmd_cat): Likewise.
6403 (cmd_cmp): Likewise.
6404 * util/grub-menulst2cfg.c (main): Likewise.
6405 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6406 (write_font_width_spec): Likewise.
6407 (write_font_pf2): Likewise.
6408 * util/grub-mkimage.c (generate_image): New argument outname.
6409 All users updated.
6410 Remove unreacheable message.
6411 (options): Unify messages.
6412 (help_filter): Likewise.
6413 * util/grub-mklayout.c (usage): Removed (unused).
6414 (main): Print filename in error.
6415 * util/grub-mkrescue.in: Fix wrong quoting.
6416 * util/grub-setup.c (setup): Print filename in error.
6417 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6418 (check_sas): Likewise.
6419 * util/misc.c (grub_util_get_fp_size): Removed.
6420 (grub_util_get_image_size): Print filename in error.
6421 (grub_util_read_at): Removed.
6422 (grub_util_read_image): Print filename in error.
6423 (grub_util_load_image): Likewise.
6424 (grub_util_write_image_at): New argument filename. All users updated.
6425 Print filename in error.
6426 (grub_util_write_image): New argument filename. All users updated.
6427 Print filename in error.
6428 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6429 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6430
6431 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6432
6433 * grub-core/Makefile.core.def (pxechain): New module.
6434 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6435 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6436 function.
6437 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6438 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6439
6440 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6443 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6444 * include/grub/err.h (grub_error_saved): New struct.
6445 (grub_errmsg): Make array size explicit.
6446 * include/grub/misc.h (grub_error_save): New function.
6447 (grub_error_load): Likewise.
6448 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6449 (grub_error_push): Update `errno' member name.
6450 (grub_error_pop): Likewise
6451 * grub-core/net/tftp.c (tftp_data): New member save_err.
6452 (tftp_receive): Save error.
6453 (tftp_open): Restore error.
6454
6455 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6456
6457 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6458 to real mode down to execute A20-related code in protected mode as
6459 intended.
6460
6461 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6462
6463 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6464 NULL when the argument `level' has an unexpected value.
6465
6466 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6467
6468 Move platform-dependent files from $prefix to $prefix/$platform.
6469
6470 * config.h.in (GRUB_TARGET_CPU): New definition.
6471 (GRUB_PLATFORM): Likewise.
6472 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6473 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6474 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6475 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6476 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6477 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6478 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6479 * grub-core/normal/term.c (read_terminal_list): Likewise.
6480 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6481 $prefix/locale.
6482 (grub_gettext_init_ext): Likewise.
6483 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6484 grub_platform.
6485 * util/grub-install.in: Update directories.
6486 * util/grub-mknetdir.in: Likewise.
6487 * util/grub-mkrescue.in: Likewise.
6488
6489 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6492 grub_error framework. All users updated.
6493
6494 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6495
6496 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6497 lists (by always binsearching), improve caching (cache strings
6498 used for binsearch, not only results), improve
6499 maintainability (by using more structured binary search) and correct
6500 error handling.
6501
6502 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 * grub-core/script/execute.c (grub_script_return): Fix warning.
6505
6506 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6507
6508 * grub-core/script/execute.c (grub_script_return): Fix potential
6509 NULL-dereference.
6510 Reported by: Jim Meyering.
6511
6512 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6513
6514 * po/POTFILES.in: Regenerate.
6515 * util/grub-install.in: Gettextize the strings missed in first pass.
6516
6517 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6518
6519 * Makefile.util.def (grub-mkdevicemap): Removed.
6520 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6521 * include/grub/util/deviceiter.h: Removed.
6522 * util/deviceiter.c: Likewise.
6523 * util/getroot.c (grub_util_get_os_disk): New function.
6524 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6525 replacement for EFI.
6526 * util/grub-mkdevicemap.c: Removed.
6527 * util/grub-probe.c (probe): Handle PRINT_DISK.
6528 (argp_parser): Handle -t disk.
6529
6530 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6531
6532 * util/grub-mkfont.c: Migrate to argp.
6533 * util/grub-mklayout.c: Likewise.
6534 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6535 * util/grub-mkrelpath.c: Likewise.
6536 * util/grub-probe.c: Likewise.
6537 * util/grub-script-check.c: Likewise.
6538
6539 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * util/grub-reboot.in: Add missing datarootdir.
6542 Add missing newline.
6543 * util/grub-set-default.in: Add missing datarootdir.
6544 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6545 * util/grub-mkrescue.in: Likewise.
6546
6547 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6548
6549 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6550
6551 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6552
6553 * util/grub-kbdcomp.in: Add decent help and gettextize.
6554 * docs/man/grub-kbdcomp.h2m: New file.
6555
6556 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6557
6558 Migrate grub-mkimage.c to argp.
6559
6560 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6561 (grub-setup): Likewise.
6562 * util/grub-setup.c (print_version): Move to ...
6563 * util/argp_common.c (print_version): ... here.
6564 * util/grub-setup.c (argp_program_version_hook): Move to ...
6565 * util/argp_common.c (argp_program_version_hook): ... here.
6566 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6567 safety.
6568 * util/grub-mkimage.c (main): Migrate to argp.
6569
6570 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6571
6572 * util/grub-mkrescue.in: Use same message as
6573 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6574 for better translations.
6575
6576 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6579 options with generic grub-mkrescue.in with the goal of future
6580 merge.
6581
6582 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6583
6584 * grub-core/kern/mm.c: Add missing include of i18n.h
6585 * grub-core/lib/relocator.c: Likewise.
6586
6587 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6588
6589 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6590 error.
6591 (allocate_pages): Check return value.
6592 Replace fatal with error.
6593 (grub_linux_boot): Replace printf with dprintf.
6594 Check find_mmap_size return value.
6595 Replace fatal with error.
6596 Don't call grub_machine_fini.
6597 (grub_load_elf64): Replace printf with dprintf.
6598 (grub_cmd_linux): Likewise.
6599 (grub_cmd_initrd): Likewise.
6600 (grub_cmd_payload): Likewise.
6601
6602 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6603
6604 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6605 message.
6606 * grub-core/video/radeon_fuloong2e.c
6607 (grub_video_radeon_fuloong2e_setup): Likewise.
6608 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6609 * grub-core/video/video.c (grub_video_set_mode): Don't override
6610 standard out of memory message.
6611
6612 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6613
6614 NetBSD disk wedge support.
6615
6616 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6617 [__NetBSD__]: Handle NetBSD disk wedges.
6618 * util/getroot.c (convert_system_partition_to_system_disk)
6619 [__NetBSD__]: Likewise.
6620
6621 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6622
6623 * util/grub-mkconfig.in: Use umask rather than chmod to create
6624 grub.cfg.new to avoid insecure grub.cfg.
6625
6626 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6627
6628 * grub-core/commands/ls.c: Gettextize.
6629 * grub-core/commands/setpci.c: Likewise.
6630 * grub-core/commands/videotest.c: Likewise.
6631 * grub-core/disk/geli.c: Likewise.
6632 * grub-core/kern/mm.c: Likewise.
6633 * grub-core/lib/relocator.c: Likewise.
6634 * grub-core/loader/efi/appleloader.c: Likewise.
6635 * grub-core/loader/i386/xnu.c: Likewise.
6636 * grub-core/loader/ia64/efi/linux.c: Likewise.
6637 * grub-core/loader/xnu.c: Likewise.
6638 * grub-core/net/dns.c: Likewise.
6639 * grub-core/net/net.c: Likewise.
6640 * grub-core/script/lexer.c: Likewise.
6641 * grub-core/script/parser.y: Likewise.
6642 * grub-core/script/yylex.l: Likewise.
6643 * util/getroot.c: Likewise.
6644 * util/grub-setup.c: Likewise.
6645
6646 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6647
6648 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6649 number.
6650
6651 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6654
6655 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6658 macro.
6659 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6660 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6661
6662 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6663
6664 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6665 * util/grub-install.in: Gettextize.
6666 * util/grub-mkconfig.in: Likewise.
6667 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6668 if not available.
6669 (grub_warn): Gettextize.
6670 * util/grub-mknetdir.in: Gettextize.
6671 * util/grub-mkrescue.in: Likewise.
6672 * util/grub-mkstandalone.in: Likewise.
6673 * util/grub-reboot.in: Likewise.
6674 * util/grub-set-default.in: Likewise.
6675 * util/grub.d/00_header.in: Likewise.
6676 * util/grub.d/10_hurd.in: Likewise.
6677 * util/grub.d/10_kfreebsd.in: Likewise.
6678 * util/grub.d/10_linux.in: Likewise.
6679 * util/grub.d/10_netbsd.in: Likewise.
6680 * util/grub.d/10_windows.in: Likewise.
6681 * util/grub.d/20_linux_xen.in: Likewise.
6682 * util/grub.d/30_os-prober.in: Likewise.
6683 * po/POTFILES-shell.in: Regenerate.
6684
6685 2012-02-03 Richard Laager <rlaager@wiktel.com>
6686
6687 * util/grub-mkimage.c (main): Fix format-security warning.
6688 * util/grub-mkrelpath.c (main): Likewise.
6689 * util/grub-probe.c (main): Likewise.
6690
6691 2012-02-03 Richard Laager <rlaager@wiktel.com>
6692
6693 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6694 failure.
6695 Put back lost PRINT_DRIVE.
6696
6697 2012-02-03 Richard Laager <rlaager@wiktel.com>
6698
6699 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6700 (grub_guess_root_devices): Replace strlen with sizeof.
6701 Avoid crash.
6702 (find_root_devices_from_poolname): Remove unused variable.
6703 Handle raidzN.
6704
6705 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6706
6707 Support install on multi-device filesystems.
6708
6709 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6710 (grub_guess_root_devices): ...this. Return char **. All users updated.
6711 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6712 Removed.
6713 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6714 (find_root_devices_from_poolname): ... here.
6715 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6716 Support zfs-fuse.
6717 (grub_guess_root_device): Rename to ...
6718 (grub_guess_root_devices): ... this. Return char **. All users updated.
6719 * util/grub-install.in: Handle multi-device filesystems.
6720 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6721 argument. All users updated.
6722 Handle multi-device filesystems.
6723 Use 'delim' as separator.
6724 Remove device check to allow filesystems on file.
6725 (main): Support -0 argument. Handle multi-device.
6726 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6727 Fix a cross-device check while on it.
6728 (arguments): Remove root_dev.
6729 (argp_parser): Remove -r.
6730 (main): Remove root_dev.
6731
6732 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6733
6734 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6735
6736 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6739 symbol.
6740 Reported by: NODA, Kai <nodakai>.
6741
6742 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6743
6744 Fix ehci on amd64.
6745
6746 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6747 pointers.
6748 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6749 (grub_ehci_setup_qh): Likewise.
6750 (grub_ehci_find_qh): Likewise.
6751 (grub_ehci_transaction): Likewise.
6752 (grub_ehci_setup_transfer): Likewise.
6753 (grub_ehci_check_transfer): Likewise.
6754 (grub_ehci_portstatus): Likewise.
6755 (grub_ehci_detect_dev): Likewise.
6756 (grub_ehci_transfer_controller_data): New field td_last_phys.
6757 (grub_ehci_setup_transfer): Fill td_last_phys.
6758 (grub_ehci_check_transfer): Use td_last_phys.
6759
6760 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6761
6762 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6763 if no submenu is present.
6764
6765 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6766
6767 CBI support.
6768
6769 * include/grub/usb.h (grub_usbms_protocol_t): New values
6770 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6771 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6772 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6773 (grub_usbms_dev): Add subclass, protocol and intrpt.
6774 Remove in_maxsz and out_maxsz.
6775 (grub_usbms_reset): Rename to ...
6776 (grub_usbms_bo_reset): .. this.
6777 (grub_usbms_cbi_cmd): New function.
6778 (grub_usbms_cbi_reset): Likewise.
6779 (grub_usbms_reset): Likewise.
6780 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6781 (grub_usbms_transfer): Rename to ...
6782 (grub_usbms_transfer_bo): ... this.
6783 (grub_usbms_transfer_cbi): Likewise.
6784 (grub_usbms_transfer): Likewise.
6785
6786 2012-02-01 Aleš Nesrsta <starous@volny.cz>
6787 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6788
6789 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6790 the support for the CS5536 modification thereos and few bugfixes.
6791
6792 * grub-core/Makefile.core.def (ehci): New module.
6793 * grub-core/bus/usb/ehci.c: New file.
6794 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6795 port and hubaddr. All users updated.
6796 Save port and hubaddr into dev structure.
6797 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6798 define.
6799 * include/grub/pci.h (grub_dma_phys2virt): New function.
6800 (grub_dma_virt2phys): Likewise.
6801 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6802
6803 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6806 check as some mkfs implementations omit it.
6807
6808 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6811
6812 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6815 Add new member volname2.
6816 (grub_jfs_label): Use volname2 if available.
6817
6818 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6821 over last_mounted as seen in image generated by mkfs.nilfs2.
6822 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6823
6824 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6827 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6828 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6829
6830 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6833 over the sector.
6834
6835 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6838 subvolume name (by removing a bogus and useless check).
6839
6840 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6843 sizeof while on it.
6844
6845 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6848 (grub_scsi_read_capacity10): ... this.
6849 (grub_scsi_read_capacity16): New function.
6850 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6851 0xffffffff.
6852 Fix off-by-one error.
6853 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6854 64-bit unsigned.
6855 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6856 (grub_scsi_read_capacity10): ... this.
6857 (grub_scsi_read_capacity_data): Rename to ...
6858 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6859 (grub_scsi_read_capacity16): New struct.
6860 (grub_scsi_read_capacity16_data): Likewise.
6861 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6862 grub_scsi_cmd_read_capacity10.
6863 New command grub_scsi_cmd_read_capacity16.
6864
6865 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6866
6867 SCSI >2TiB support.
6868
6869 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6870 (grub_scsi_write16): Likewise.
6871 (grub_scsi_read): Use read16 when necessary.
6872 (grub_scsi_write): Likewise.
6873 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6874 (grub_scsi_write16): Likewise.
6875 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6876
6877 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6878
6879 SCSI write support (for usbms mainly).
6880
6881 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6882 a const pointer.
6883 (grub_scsi_write): Implement.
6884 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6885
6886 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6887
6888 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6889 variable.
6890
6891 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6892
6893 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6894
6895 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6896
6897 * po/POTFILES.in: Regenerate.
6898
6899 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6902 with grub_printf to avoid unnecessary fatal failure.
6903
6904 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6907 (INT_MAX): Likewise.
6908 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6909 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6910 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6911 (strcpy): Likewise.
6912 (strstr): Likewise.
6913 (strchr): Likewise.
6914 (strncpy): Likewise.
6915 (strcat): Likewise.
6916 (strncat): Likewise.
6917 (strcoll): Likewise.
6918 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6919 (GRUB_INT_MAX): Likewise.
6920
6921 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6922
6923 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6924 unexpected error.
6925 (optimize_utf8): Likewise.
6926 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6927
6928 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 * grub-core/boot/i386/pc/lnxboot.S: Use
6931 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6932 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6933 location.
6934 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6935 definition.
6936 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6937
6938 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6941 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6942 now to avoid double free.
6943 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6944 hostdisk.
6945 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6946 * util/grub-probe.c (escape_of_path): Always return a new copy.
6947 (print_full_name): Escape path.
6948 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6949 Fix hints on abstractions.
6950
6951 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6954 Don't add "root" line if no compatibility hont is available.
6955 Suggested by: Seth Goldberg.
6956
6957 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6960 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6961 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6962 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6963
6964 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6967
6968 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * util/grub-pe2elf.c (ehdr): Make static.
6971 (shdr): Likewise.
6972 (num_sections): Likewise.
6973 (offset): Likewise.
6974
6975 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6976
6977 Eliminate ofpath limits and possible overflows.
6978
6979 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6980 (OF_PATH_MAX): Removed.
6981 (MAX_DISK_CAT): New const.
6982 (find_obppath): Use allocated rather than preallocated buffer.
6983 Return result. Argument of_path removed. All users updated.
6984 Add missing fdstat.
6985 (xrealpath): New function.
6986 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6987 Allocate rather than use preallocated buffer. All users updated.
6988 (__of_path_common): Use allocated rather than preallocatecd buffer.
6989 Return result. Argument of_path removed. All users updated.
6990 (vendor_is_ATA): Read only needed part form the file.
6991 (check_sas): Allocate depending on contents rather than fixed.
6992 (main) [STANDALONE]: Handle NULL result.
6993
6994 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6997
6998 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6999
7000 Cryptodisk write support.
7001
7002 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7003 (grub_cryptodisk_decrypt): Moved logic to ...
7004 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7005 (grub_cryptodisk_write): Implement.
7006 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7007 (grub_util_fd_write): ... this. Make global.
7008 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7009
7010 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * include/grub/list.h (grub_list_remove): Don't crash if element is
7013 removed twice.
7014
7015 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7016
7017 Rename ofconsole to console.
7018
7019 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7020 as sysnonym to console.
7021 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7022 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7023 Rename grub_ofconsole_ to grub_console_. All users updated
7024 (grub_console_term_output): Rename "ofconsole" to "console".
7025 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7026 as "console".
7027
7028 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7031 handling.
7032 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7033 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7034 GRUB_DISK_DEVICE_FILE_ID.
7035
7036 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7037
7038 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7039 and improve performance.
7040
7041 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7042
7043 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7044 missing ieee1275/ prefix on whole disk.
7045
7046 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7047
7048 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7049 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7050
7051 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7052
7053 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7054
7055 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 Merge common RAID and LVM logic to an abstract diskfilter.
7058 Add LDM support using the same framework.
7059
7060 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7061 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7062 (libgrubmods): Remove grub-core/disk/raid.c and
7063 grub-core/partmap/gpt.c.
7064 * grub-core/Makefile.core.def (ldm): New module.
7065 (raid): Renamed to diskfilter. All users updated.
7066 * grub-core/disk/raid.c: Moved to ...
7067 * grub-core/disk/diskfilter.c: ... here.
7068 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7069 (lv_num): New var.
7070 (find_array): Renamed to ...
7071 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7072 (grub_is_array_readable): Renamed to ...
7073 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7074 (insert_array): New argument id.
7075 (is_node_readable): New function.
7076 (scan_device): Rename to ...
7077 (scan_disk): .. this. Restrict to one disk.
7078 (scan_devices): New function.
7079 (grub_diskfilter_iterate): Support multi-LV.
7080 Skip invisible and nameless LVs.
7081 (grub_diskfilter_memberlist): Support multi-LV.
7082 (grub_diskfilter_read_node): New function.
7083 (grub_raid_read): Most of logic moved to ...
7084 (read_segment): ... here
7085 (read_lv): New function.
7086 (grub_diskfilter_get_vg_by_uuid): New function.
7087 (grub_diskfilter_make_raid): Likewise.
7088 * grub-core/disk/ldm.c: New file.
7089 * grub-core/disk/lvm.c (vg_list): Removed.
7090 (lv_count): Likewise.
7091 (scan_depth): Likewise.
7092 (is_lv_readable): Likewise.
7093 (grub_lvm_getvalue): Advance pointer past the number.
7094 (find_lv): Removed.
7095 (do_lvm_scan): Refactored into ...
7096 (grub_lvm_detect): ... this. Support raid.
7097 (grub_lvm_iterate): Removed.
7098 (grub_lvm_memberlist): Likewise.
7099 (grub_lvm_open): Likewise.
7100 (grub_lvm_close): Likewise.
7101 (read_lv): Likewise.
7102 (read_node): Likewise.
7103 (is_node_readable): Likewise.
7104 (is_lv_readable): Likewise.
7105 (grub_lvm_read): Likewise.
7106 (grub_lvm_write): Likewise.
7107 (grub_lvm_dev): Use diskfilter
7108 (GRUB_MOD_INIT): Likewise.
7109 (GRUB_MOD_FINI): Likewise.
7110 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7111 new interface.
7112 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7113 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7114 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7115 grub_diskfilter_read_node.
7116 Fix a bug with xor.
7117 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7118 grub_diskfilter_read_node.
7119 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7120 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7121 (grub_disk_dev_iterate): Move from here...
7122 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7123 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7124 Make global.
7125 (grub_hostdisk_find_partition_start): Likewise.
7126 (grub_hostdisk_os_dev_to_grub_drive): New function.
7127 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7128 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7129 * util/getroot.c (make_device_name): ... here.
7130 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7131 Move to ...
7132 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7133 * grub-core/kern/emu/hostdisk.c
7134 (convert_system_partition_to_system_disk): Move to ...
7135 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7136 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7137 * util/getroot.c (device_is_wholedisk): ... here.
7138 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7139 * util/getroot.c (find_system_device): ... here.
7140 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7141 Move to ...
7142 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7144 Move to ...
7145 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7146 Handle LDM.
7147 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7148 Move to ...
7149 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7150 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7151 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7152 DISKFILTER.
7153 * include/grub/raid.h: Renamed to ...
7154 * include/grub/diskfilter.h: ... this.
7155 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7156 (GRUB_RAID_LAYOUT_*): Make into array.
7157 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7158 (grub_diskfilter_vg): New struct.
7159 (grub_diskfilter_pv_id): Likewise.
7160 (grub_raid_member): Removed.
7161 (grub_raid_array): Likewise.
7162 (grub_diskfilter_pv): New struct.
7163 (grub_diskfilter_lv): Likewise.
7164 (grub_diskfilter_segment): Likewise.
7165 (grub_diskfilter_node): Likewise.
7166 (grub_diskfilter_get_vg_by_uuid): New proto.
7167 (grub_raid_register): Inline.
7168 (grub_diskfilter_unregister): Likewise.
7169 (grub_diskfilter_make_raid): New proto.
7170 (grub_diskfilter_vg_register): Likewise.
7171 (grub_diskfilter_read_node): Likewise.
7172 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7173 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7174 (grub_util_is_ldm): Likewise.
7175 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7176 (grub_hostdisk_find_partition_start): Likewise.
7177 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7178 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7179 New definition.
7180 (grub_gpt_partition_map_iterate): New proto.
7181 * include/grub/lvm.h (grub_lvm_vg): Removed.
7182 (grub_lvm_pv): Likewise.
7183 (grub_lvm_lv): Likewise.
7184 (grub_lvm_segment): Likewise.
7185 (grub_lvm_node): Likewise.
7186 * util/getroot.c [...]
7187 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7188 (probe_abstraction): Likewise.
7189 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7190 (main): Remove dead logic.
7191
7192 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7193
7194 Simplify root device discover and don't fail when trying to open
7195 incorrect devices.
7196
7197 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7198 function.
7199 (get_diskname_from_path): Likewise.
7200 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7201 of iterating.
7202
7203 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7206
7207 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7210 pastthe end.
7211
7212 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7213
7214 * util/grub-install.in: Add missing \.
7215 Reported by: gentoofan
7216
7217 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7220 (direct_read): Use correct compressed size.
7221 (grub_squash_read_data): Likewise.
7222
7223 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7224
7225 * docs/grub.texi (Platform limitations): New section.
7226 (Platform-specific operations): Likewise.
7227 * docs/grub-dev.texi (Porting): Likewise.
7228
7229 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 IEEE1275 disk write support.
7232
7233 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7234 const void *.
7235 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7236 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7237 and seek loginc to ...
7238 (grub_ofdisk_prepare): ... here.
7239 (grub_ofdisk_write): Implement.
7240
7241 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7242
7243 ARC disk write support.
7244
7245 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7246 (reopen): New argument writable. All users updated.
7247 Handle required access mode.
7248 (grub_arcdisk_write): Implement.
7249 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7250 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7251
7252 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7255 (read_sblock): Don't attempt to read superblocks outside the disk size.
7256
7257 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7258
7259 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7260 first superblock to find the second one when possible.
7261
7262 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 * util/grub-install.in: Fix an ARC bug.
7265 Print a warning if no platform-specific setup is available.
7266
7267 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7268
7269 Use static allocation rather than scratch pointer in reed_solomon.
7270 It decreases its size significantly and avoids a variable in .text.
7271
7272 * grub-core/lib/reed_solomon.c (scratch): Removed.
7273 (chosenstat): New const or static array.
7274 (sigma): Likewise.
7275 (errpot): Likewise.
7276 (errpos): Likewise.
7277 (sy): Likewise.
7278 (mstat): Likewise.
7279 (errvals): Likewise.
7280 (eqstat): Likewise.
7281 (pol_evaluate): Replace x with log_x argument. All users updated.
7282 (syndroms): Removed.
7283 (gauss_solve): Use statically allocated arrays.
7284 (rs_recover): Likewise.
7285 Calculate syndroms directly.
7286 (decode_block): Use statically allocated arrays.
7287 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7288 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7289
7290 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 Eliminate fixed limit on reed solomon decoder length.
7293
7294 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7295 rather than hardcoding the address.
7296 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7297 no_reed_solomon_length.
7298 Move gate_a20 to no-reed-solomon part.
7299 Don't force a particular size of no reed-solomon part.
7300 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7301 Removed.
7302 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7303 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7304
7305 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7306
7307 * grub-core/commands/wildcard.c (match_files): Handle filenames
7308 without explicit device.
7309 (wildcard_expand): Don't add explicit device if not already present.
7310 * tests/grub_script_echo1.in: Add a new expansion test.
7311
7312 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 Replace single-linked with double-linked lists. It results in more
7315 compact and more efficient code.
7316
7317 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7318 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7319 (grub_list_remove): Moved from here ...
7320 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7321 (grub_prio_list_insert): Set prev.
7322 * include/grub/list.h (grub_list): Add prev. All users updated.
7323
7324 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7325
7326 Handle newer autotools. Add some missing quotes while on it.
7327
7328 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7329 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7330 (pkgdata_DATA): ... here.
7331 * Makefile.util.def (update-grub_lib): Removed.
7332 * conf/Makefile.common (pkglib_DATA): Removed.
7333 (pkglib_SCRIPTS): Likewise.
7334 (pkgdata_DATA): New variable.
7335 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7336 needed.
7337 Add missing quotes.
7338 Remove unused variable while on it.
7339 * tests/util/grub-shell.in: Likewise.
7340 * util/grub-install.in: Likewise.
7341 * util/grub-mkconfig.in: Likewise.
7342 * util/grub-mknetdir.in: Likewise.
7343 * util/grub-mkrescue.in: Likewise.
7344 * util/grub-mkstandalone.in: Likewise.
7345 * util/grub.d/00_header.in: Likewise.
7346 * util/grub.d/10_hurd.in: Likewise.
7347 * util/grub.d/10_illumos.in: Likewise.
7348 * util/grub.d/10_kfreebsd.in: Likewise.
7349 * util/grub.d/10_linux.in: Likewise.
7350 * util/grub.d/10_netbsd.in: Likewise.
7351 * util/grub.d/10_windows.in: Likewise.
7352 * util/grub.d/20_linux_xen.in: Likewise.
7353 * util/grub.d/30_os-prober.in: Likewise.
7354 * util/update-grub_lib.in: Removed.
7355
7356 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7357
7358 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7359 a workaround for intel problem.
7360
7361 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7362 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7363 2012-01-23 pfsmorigo
7364
7365 * util/grub-install.in: Support dd'in into PreP partition.
7366 * util/grub-probe.c (probe): Support discovering partition type.
7367 (main): Support -t msdos_parttype.
7368
7369 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7370
7371 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7372 infinite recursion using counter.
7373 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7374 init to skip it if the magic check fails.
7375 (dec_stream_header): Init s->crc32.
7376
7377 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7378 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7379 2012-01-22 Richard Laager <rlaager@wiktel.com>
7380
7381 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7382 All users updated.
7383 (find_bestub): Determine correct size.
7384 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7385 (scan_disk): Align the size down.
7386 Call check pool before find_bestub to have ashift.
7387
7388 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7391 dprintf in no-malloc zone.
7392
7393 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7394
7395 * configure.ac: Add back in test for limits.h.
7396
7397 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7398
7399 Support 4K-sector NTFS.
7400
7401 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7402 (grub_ntfs_data): Remove blocksize.
7403 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7404 Remove data argument. All users updated.
7405
7406 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7409 being in .text to avoid dprel references.
7410 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7411 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7412 (grub_arch_highmemsize): Likewise.
7413 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7414 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7415 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7416
7417 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7418
7419 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7420
7421 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7422 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7423
7424 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7425
7426 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7427 GRUB_UTIL.
7428 (grub_set_datetime_cmos): Likewise.
7429
7430 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7431
7432 Make XZ compression parameters dependent on target and not host CPU.
7433
7434 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7435 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7436
7437 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7440 set but not used variable.
7441
7442 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7445 created when no uuid support is compiled into mkfs.reiser.
7446
7447 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7448
7449 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7450 (utf8_to_macroman): Do the opposite.
7451 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7452
7453 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7454
7455 * configure.ac: Refise build qemu_mips w/o unifont.
7456
7457 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7458
7459 Eliminate grub_min/grub_max prone to overflow usage.
7460
7461 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7462 (poll_nonroot_hub): Likewise.
7463 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7464 (grub_affs_label): Likewise.
7465 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7466 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7467 (grub_hfs_label): Likewise.
7468 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7469 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7470 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7471 (zap_leaf_array_get): Likewise.
7472 (dnode_get_path): Likewise.
7473 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7474 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7475 * grub-core/script/execute.c (grub_script_break): Likewise.
7476 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7477 grub_max.
7478 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7479 * include/grub/misc.h (grub_min): Removed.
7480 (grub_max): Likewise.
7481
7482 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7483
7484 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7485 direct.inode = 0.
7486
7487 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7488
7489 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7490
7491 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7492
7493 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7494
7495 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7496
7497 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7498 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7499
7500 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7501
7502 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7503 rather than a hack for grub_strncasemap.
7504
7505 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 Support multiple initrds
7508 Note: part of this was accidently committed in r3739.
7509
7510 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7511 initrd.
7512 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7513 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7514 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7515 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7516 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7517
7518 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7521 disks with unknown size.
7522 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7523
7524 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 Remove defines pertaining to arbitrary limits not affecting GRUB
7527 anymore.
7528
7529 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7530 (EXT2_MAX_SYMLINKCNT): Likewise.
7531 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7532 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7533 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7534 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7535 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7536 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7537 (DN_MAX_OBJECT_SHIFT): Likewise.
7538 (DN_MAX_OFFSET_SHIFT): Likewise.
7539 (DN_MAX_OBJECT): Likewise.
7540 (DNODES_PER_LEVEL_SHIFT): Likewise.
7541 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7542 (SPA_MAXBLOCKSIZE): Likewise.
7543 (SPA_BLOCKSIZES): Likewise.
7544 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7545 (MZAP_MAX_BLKSZ): Likewise.
7546
7547 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7550 handle NULL appropriately.
7551 Remove MIN.
7552
7553 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7554
7555 Fix efiemu.
7556
7557 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7558 cpu/types.h.
7559 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7560 * configure.ac: Fix efiemu check.
7561
7562 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7565 grub_probe.
7566 Reported by: adamwill
7567
7568 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7569
7570 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7571
7572 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7573
7574 Fix handling of wide characters in gfxterm.
7575
7576 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7577 (clear_char): Likewise.
7578 (paint_char): Skip code == NULL chars.
7579 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7580
7581 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 * grub-core/normal/charset.c: Move comment to right place.
7584
7585 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7588 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7589 (grub_affs_mount): Revert the correct version checking.
7590
7591 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7592
7593 * docs/grub.texi (Unicode): Mention several other unsupported features.
7594
7595 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7596
7597 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7598 case statements as compile-time one.
7599 (direct_read): Prevent spurious warnings.
7600 (grub_squash_read_data): Likewise.
7601
7602 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 Various squash4 fixes and LZO and XZ support.
7605
7606 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7607 Add xzembed source files.
7608 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7609 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7610 (grub_squash_inode): New subtype long_dir.
7611 (SQUASH_TYPE_LONG_DIR): New inode type.
7612 (COMPRESSION): New enum.
7613 (XZBUFSIZ): New const.
7614 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7615 (read_chunk): Use data->decompress.
7616 (zlib_decompress): New function.
7617 (lzo_decompress): Likewise.
7618 (xz_decompress): Likewise.
7619 (squash_mount): Set new data fields.
7620 (grub_squash_iterate_dir): Handle long dir.
7621 (squash_unmount): Free xzdec and xzbuf.
7622 (grub_squash_open): Check ino type.
7623 (direct_read): Stylistic fixes. Use data->decompress.
7624 (grub_squash_read_data): Likewise.
7625 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7626 (get_byte): Likewise.
7627 (grub_zlib_disk_read): Removed.
7628 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7629 (GRUB_POSIX_BOOL_DEFINED): New define.
7630 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7631 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7632 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7633 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7634
7635 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 Don't override more informative errors.
7638
7639 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7640 * grub-core/font/font.c (open_section): Likewise.
7641 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7642 filename. Don't override errors.
7643 (grub_cmd_openbsd_ramdisk): Don't override errors.
7644 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7645 (grub_cmd_initrd): Likewise.
7646 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7647 (grub_cmd_initrd): Likewise.
7648 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7649 (grub_cmd_linux): Likewise.
7650 (grub_cmd_initrd): Likewise.
7651 (grub_cmd_payload): Likewise.
7652 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7653 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7654 (grub_cmd_module): Likewise.
7655 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7656 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7657 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7658 (grub_cmd_xnu_mkext): Likewise.
7659 (grub_cmd_xnu_ramdisk): Likewise.
7660 (grub_xnu_check_os_bundle_required): Likewise.
7661 (grub_xnu_load_kext_from_dir): Likewise.
7662 (grub_cmd_xnu_kextdir): Likewise.
7663 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7664
7665 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7668 as 1024 in block size field. Found on one of my test images.
7669 Small optimisation while on it.
7670
7671 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7672
7673 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7674 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7675 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7676 performance fixes while on it.
7677 (grub_sfs_close): Fix memory leak while on it.
7678 (grub_sfs_label): Convert Latin1 to UTF-8.
7679
7680 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7683 space to avoid overflows.
7684 (grub_hfs_label): Convert from macroman to UTF-8.
7685
7686 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7687
7688 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7689
7690 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7691
7692 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7693
7694 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7695
7696 * unicode: Import Unicode 6.0 data.
7697
7698 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7701 outside of range.
7702
7703 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 Avoid cutting in the middle of UTF-8 character.
7706
7707 * include/grub/charset.h (grub_getend): New function.
7708 * grub-core/script/function.c (grub_script_function_find): Use
7709 grub_getend.
7710 * grub-core/normal/completion.c (add_completion): Likewise.
7711
7712 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7713
7714 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7715 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7716 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7717 (GRUB_UNICODE_TAG_END): Likewise.
7718 (GRUB_UNICODE_LAST_VALID): Likewise.
7719
7720 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7723 len and make it smaller. All users updated.
7724 * util/import_unicode.py: Put length and not end character.
7725 Check length.
7726
7727 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7728
7729 Make better Unicode-compliant and unify some UTF-8 code pathes.
7730
7731 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7732 valid character.
7733 (grub_is_valid_utf8): Use grub_utf8_process.
7734 Check resulting code range.
7735 (grub_utf8_to_ucs4): Use grub_utf8_process.
7736 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7737 valid character.
7738
7739 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7742
7743 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * docs/grub.texi (Filesystems): Mention AFS.
7746
7747 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * docs/grub.texi (Filesystems): Clarify restrictions.
7750 (Regexp): Mention non-Unicode regexp behaviour.
7751 (Other): Mention non-Unicode matching behaviour.
7752
7753 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 Make HFS implementation use MacRoman.
7756
7757 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7758 (macroman): New const array.
7759 (macroman_to_utf8): New function.
7760 (utf8_to_macroman): Likewise.
7761 (grub_hfs_find_dir): Use utf8_to_macroman.
7762 (grub_hfs_dir): Use macroman_to_utf8.
7763 Set case_insensitive.
7764
7765 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7766
7767 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7768
7769 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7770
7771 Integrate hints into autogeneration scripts.
7772
7773 * docs/grub.texi (Filesystems): Add a hostdisk example.
7774 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7775 (grub-probe): Add ofpath.
7776 * gentpl.py: Remove group nosparc64.
7777 * grub-core/commands/search.c (cache_entry): New struct.
7778 (cache): New var.
7779 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7780 * grub-core/commands/search_wrap.c (options): Add platform-specific
7781 hint options.
7782 (grub_cmd_search): Handle platform-specific hints.
7783 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7784 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7785 (grub_util_biosdisk_data): Likewise.
7786 (grub_util_biosdisk_open): Set device_map.
7787 (read_device_map): Handle "" as indication of no map.
7788 Set device_map.
7789 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7790 (grub_util_biosdisk_get_compatibility_hint): New function.
7791 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7792 * include/grub/emu/hostdisk.h
7793 (grub_util_biosdisk_get_compatibility_hint): New proto.
7794 * util/grub-install.in: Don't call grub-mkdevicemap.
7795 Add platform-specific hint to load.cfg.
7796 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7797 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7798 hints. Set root preliminary to compatibility hint, not to OS name.
7799 * util/grub-probe.c (PRINT_*): Add hints.
7800 (print): Make static.
7801 (escape_of_path): New function.
7802 (guess_bios_drive): Likewise.
7803 (guess_efi_drive): Likewise.
7804 (guess_baremetal_drive): Likewise.
7805 (print_full_name): Likewise.
7806 (probe): Handle hints.
7807 (main): Likewise.
7808 * util/ieee1275/devicemap.c: Removed.
7809 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7810 updated.
7811 (grub_util_devname_to_ofpath): Return NULL on failure.
7812
7813 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7814 resource leak.
7815 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7816
7817 * po/POTFILES.in: Regenerated.
7818
7819 Allow purely long options
7820
7821 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7822 (SHORT_ARG_USAGE): Likewise.
7823 (grub_arg_show_help): Compare opt with help_options.
7824 (parse_option): Receive opt as argument. If makes big simplificatons.
7825 All users updated
7826
7827 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7828
7829 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7830 Restructure to avoid warning.
7831
7832 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7833
7834 * util/grub-install.in: Account for possible escaped comma in device
7835 name.
7836
7837 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7838
7839 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7840 channel.
7841
7842 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7843
7844 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7845 allocation and zero-setting.
7846 (grub_ieee1275_get_devname): Check that alias is complete.
7847
7848 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7851 unaligned segments.
7852
7853 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7854
7855 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7856 prefix.
7857 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7858 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7859 Add ieee1275 prefix.
7860
7861 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7862
7863 * docs/grub.texi (Filesystems): Update.
7864
7865 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7866
7867 Support odc, newc and bigendian cpio formats.
7868
7869 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7870 * grub-core/Makefile.core.def (newc): New module.
7871 (odc): Likewise.
7872 (cpio_be): Likewise.
7873 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7874 (MAGIC): Likewise.
7875 (MAGIC2): Likewise.
7876 (head) [MODE_ODC]: Adapt for the format.
7877 (head) [MODE_NEWC]: Likewise.
7878 (head) [!MODE_*]: Write fields of interest as arrays.
7879 (MAGIC_USTAR): Removed.
7880 (read_number) [MODE_NEWC]: Change to hex.
7881 (read_number) [!MODE_*]: Parse binary arrays.
7882 (grub_cpio_find_file): Factor out the code for better structure and
7883 always use read_number.
7884 (grub_cpio_mount): Use MAGIC and MAGIC2.
7885 (grub_cpio_dir): Exit on first hook non-0 return.
7886 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7887 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7888 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7889 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7890 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7891 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7892 * grub-core/fs/newc.c: New file.
7893 * grub-core/fs/odc.c: Likewise.
7894 * grub-core/fs/cpio_be.c: Likewise.
7895
7896 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7897
7898 Fix handling of tar numbers occupying the whole field.
7899
7900 * grub-core/fs/cpio.c (read_number): New function.
7901 (grub_cpio_find_file): Use read_number instead of strtoull.
7902
7903 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7906 occupying the whole field size.
7907
7908 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7909
7910 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7911
7912 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7913
7914 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7915
7916 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7917
7918 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7919 TARGET_IMG_LDFLAGS.
7920
7921 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7922
7923 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7924 (mountinfo_entry): Increase the field size to take escaping into
7925 account.
7926 (find_root_device_from_libzfs): Add one byte to size of strings for
7927 security.
7928
7929 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7930
7931 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7932 an assert.
7933 * util/grub-setup.c (setup): Likewise.
7934
7935 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7936
7937 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7938 _LzmaDecodeA.
7939
7940 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7941
7942 * docs/grub.texi (Internationalisation): New section.
7943
7944 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 * docs/grub.texi (Loopback booting): New section.
7947
7948 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
7949
7950 * util/grub-mkstandalone.in: Fix minor typo errors.
7951
7952 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7953
7954 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7955
7956 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7957 net/icmp.c and net/icmp6.c.
7958 (http): New module.
7959 (priority_queue): Likewise.
7960 * grub-core/io/bufio.c: Rewritten.
7961 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7962 TYPE_WITH_CONFIGFILE_OPTION.
7963 (legacy_commands): Add bootp and dhcp.
7964 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7965 (grub_legacy_parse): Likewise.
7966 * grub-core/lib/priority_queue.c: New file.
7967 * grub-core/net/arp.c: Add missing license header.
7968 (arp_find_entry): Removed.
7969 (arp_find_entry): Likewise.
7970 (grub_net_arp_resolve): Rename to ...
7971 (grub_net_arp_send_request): ...this.
7972 (grub_net_arp_receive): New card argument.
7973 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7974 Set router and DNS server.
7975 (grub_net_configure_by_dhcp_ack): Handle routing information.
7976 (grub_cmd_bootp): Set checksum.
7977 (grub_bootp_init): Remove net_dhcp.
7978 * grub-core/net/dns.c: New file.
7979 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7980 completion.
7981 (get_card_packet): Handle allocation.
7982 (grub_efinet_findcards): Set mtu.
7983 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7984 (get_card_packet): Handle allocation.
7985 (emucard): Set mtu.
7986 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7987 (GRUB_MOD_INIT): Set mtu.
7988 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7989 mtu.
7990 (get_card_packet): Handle allocation.
7991 (grub_ofnet_findcards): Set mtu.
7992 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7993 assert.
7994 (grub_net_recv_ethernet_packet): Handle IPv6.
7995 * grub-core/net/http.c: New file.
7996 * grub-core/net/icmp.c: Likewise.
7997 * grub-core/net/icmp6.c: Likewise.
7998 * grub-core/net/ip.c (ip6addr): New type.
7999 (ip6hdr): Likewise.
8000 (reassemble): Likewise.
8001 (cmp): New function.
8002 (reassembles): New variable.
8003 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8004 (id): New variable.
8005 (send_fragmented): New function.
8006 (grub_net_send_ip_packet): Rename to ...
8007 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8008 Handle non-UDP.
8009 (grub_net_recv_ip_packets): Rename to ...
8010 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8011 (free_rsm): New function.
8012 (free_old_fragments): Likewise.
8013 (grub_net_recv_ip4_packets): New function.
8014 (grub_net_send_ip6_packet): Likewise.
8015 (grub_net_send_ip_packet): Likewise.
8016 (grub_net_recv_ip6_packets): Likewise.
8017 (grub_net_recv_ip_packets): Likewise.
8018 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8019 (LINK_LAYER_CACHE_SIZE): New const.
8020 (link_layer_find_entry): New function.
8021 (grub_net_link_layer_add_address): Likewise.
8022 (grub_net_link_layer_resolve_check): Likewise.
8023 (grub_net_link_layer_resolve): Likewise.
8024 (grub_net_ipv6_get_slaac): Likewise.
8025 (grub_net_ipv6_get_link_local): Likewise.
8026 (grub_cmd_ipv6_autoconf): Likewise.
8027 (parse_ip): Handle one number representation.
8028 (parse_ip6): New functoion.
8029 (match_net): Handle IPv6.
8030 (grub_net_resolve_address): Handle IPv6 and DNS.
8031 (grub_net_resolve_net_address): Handle IPv6.
8032 (route_cmp): New function.
8033 (grub_net_route_address): Find best route.
8034 (grub_net_addr_to_str): Handle IPv6.
8035 (grub_net_addr_cmp): New function.
8036 (grub_net_add_addr): Register local route.
8037 (print_net_address): Handle net address.
8038 (grub_net_poll_cards): Retransmit TCP.
8039 (grub_net_poll_cards_idle_real): Likewise.
8040 (have_ahead): New function.
8041 (grub_net_seek_real): Use underlying seek.
8042 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8043 * grub-core/net/tcp.c: New file.
8044 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8045 (cmp): New function.
8046 (ack): Likewise.
8047 (tftp_receive): Handle unordered input.
8048 (destroy_pq): New function.
8049 (tftp_close): Close pq.
8050 * grub-core/net/udp.c: Put missing license header.
8051 (grub_net_udp_socket): New function.
8052 (udp_socket_register): Likewise.
8053 (grub_net_udp_close): Likewise.
8054 (grub_net_recv_udp_packet): Check checksum.
8055 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8056 * include/grub/misc.h (grub_memchr): New function.
8057 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8058 (grub_net_card_driver): Return buf in recv.
8059 (grub_net_slaac_mac_list): New struct.
8060 (grub_network_level_protocol_id): Add ipv6.
8061 (grub_net_network_level_addr): Likewise.
8062 (grub_net_network_level_net_addr): Likewise.
8063 (grub_net_app_protocol): Add seek.
8064 (grub_net_socket): Removed.
8065 (grub_net_sockets): Likewise.
8066 (grub_net_socket_register): Likewise.
8067 (grub_net_socket_unregister): Likewise.
8068 (FOR_NET_SOCKETS): Likewise.
8069 (grub_net_add_addr): Add const.
8070 (GRUB_NET_BOOTP_*): New enum.
8071 (grub_net_addr_cmp): New proto.
8072 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8073 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8074 (grub_net_hwaddr_to_str): NEw proto.
8075 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8076 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8077 (grub_dns_init): New proto.
8078 (grub_dns_fini): Likewise.
8079 (grub_net_tcp_retransmit): Likewise.
8080 (grub_net_link_layer_add_address): Likewise.
8081 (grub_net_link_layer_resolve_check): Likewise.
8082 (grub_net_link_layer_resolve): Likewise.
8083 (grub_net_dns_lookup): Likewise.
8084 (grub_net_add_dns_server): Likewise.
8085 (grub_net_remove_dns_server): Likewise.
8086 (GRUB_NET_TRIES): New const.
8087 (GRUB_NET_INTERVAL): Likewise.
8088 * include/grub/net/arp.h: Mostly rewritten.
8089 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8090 * include/grub/net/ip.h: Mostly rewritten.
8091 * include/grub/net/netbuff.h: Indent.
8092 * include/grub/net/tcp.h: New file.
8093 * include/grub/net/udp.h: Mostly rewritten.
8094 * include/grub/priority_queue.h: New file.
8095 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8096 (grub_swap_bytes64_compile_time): Likewise.
8097 (grub_cpu_to_be16_compile_time): Likewise.
8098 (grub_cpu_to_be32_compile_time): Likewise.
8099 (grub_cpu_to_be64_compile_time): Likewise.
8100 (grub_be_to_cpu64_compile_time): Likewise.
8101
8102 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8105 UINT_TO_PTR with cast.
8106
8107 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8108
8109 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8110 don't use them.
8111
8112 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8113
8114 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8115 already there.
8116
8117 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8118
8119 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8120 confusing ipxe.
8121
8122 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8123
8124 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8125 Add missing const attribute.
8126 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8127 Likewise.
8128 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8129 Likewise.
8130
8131 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8132
8133 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8134 misaligned access.
8135 (serpent_setkey): Likewise.
8136 (serpent_encrypt_internal): Likewise.
8137 (serpent_decrypt_internal): Likewise.
8138 (serpent_encrypt): Don't put an alignment-increasing cast.
8139 (serpent_decrypt): Likewise.
8140 (serpent_test): Likewise.
8141
8142 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8143
8144 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8145
8146 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8147
8148 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8149
8150 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8151 grub_addr_t casts.
8152 (PTR_TO_UINT64): Likewise.
8153 (PTR_TO_UINT32): Likewise.
8154
8155 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8156
8157 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8158 because of stack.
8159 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8160 limit.
8161
8162 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8163
8164 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8165 text_width > available width a bit more gracefully.
8166
8167 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8170 current address calculation.
8171
8172 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8173
8174 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8175 stack.
8176 (encode_block): Likewise.
8177
8178 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8181 certainety.
8182
8183 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8184
8185 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8186 non-RS part to avoid RS messing with GDT.
8187 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8188 Increase to suit in realmode routines.
8189
8190 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 * grub-core/kern/i386/realmode.S: Increase alignment.
8193 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8194
8195 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8196
8197 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8198 be deterministic.
8199 (syndroms): Compute 0 syndrom.
8200 (rs_recover): Use 0 syndrom.
8201
8202 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8205
8206 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8209 brackets.
8210
8211 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8212
8213 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8214 account.
8215 (get_top_pad): Likewise.
8216 (get_right_pad): Likewise.
8217 (get_bottom_pad): Likewise.
8218
8219 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8222
8223 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8224
8225 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8226 attribute as the structure isn't guaranteed to be properly aligned.
8227 (grub_efi_pci_device_path): Likewise.
8228 (grub_efi_pccard_device_path): Likewise.
8229 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8230 specify the size of `memory_type'.
8231 (grub_efi_vendor_device_path): Likewise.
8232 (grub_efi_controller_device_path): Likewise.
8233 (grub_efi_acpi_device_path): Likewise.
8234 (grub_efi_expanded_acpi_device_path): Likewise.
8235 (grub_efi_atapi_device_path): Likewise.
8236 (grub_efi_scsi_device_path): Likewise.
8237 (grub_efi_fibre_channel_device_path): Likewise.
8238 (grub_efi_1394_device_path): Likewise.
8239 (grub_efi_usb_device_path): Likewise.
8240 (grub_efi_usb_class_device_path): Likewise.
8241 (grub_efi_i2o_device_path): Likewise.
8242 (grub_efi_mac_address_device_path): Likewise.
8243 (grub_efi_ipv4_device_path): Likewise.
8244 (grub_efi_ipv6_device_path): Likewise.
8245 (grub_efi_infiniband_device_path): Likewise.
8246 (grub_efi_uart_device_path): Likewise.
8247 (grub_efi_vendor_messaging_device_path): Likewise.
8248 (grub_efi_hard_drive_device_path): Likewise.
8249 (grub_efi_cdrom_device_path): Likewise.
8250 (grub_efi_vendor_media_device_path): Likewise.
8251 (grub_efi_file_path_device_path): Likewise.
8252 (grub_efi_protocol_device_path): Likewise.
8253 (grub_efi_piwg_device_path): Likewise.
8254 (grub_efi_bios_device_path): Likewise.
8255
8256 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8257
8258 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8259 (grub_ucs4_to_utf8_alloc): Likewise.
8260 (grub_ucs4_to_utf8): Likewise.
8261 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8262 (grub_ucs4_to_utf8_alloc): Likewise.
8263
8264 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 AFFS never uses unicode.
8267
8268 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8269 (grub_latin1_to_utf8): New inline function.
8270 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8271
8272 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8273
8274 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8275 overflow.
8276
8277 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8278
8279 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8280 (grub_squash_dirent_header): Likewise.
8281 (read_chunk): Don't double swap.
8282 (grub_squash_iterate_dir): Fix swap sizes.
8283
8284 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8285
8286 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8287
8288 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8291 (grub_hfs_iterate_dir): Likewise.
8292
8293 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8294
8295 Fix video on platforms where unaligned access is forbidden.
8296 Make several optimisations while on it.
8297
8298 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8299 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8300 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8301 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8302 Disable.
8303 (grub_video_fbblit_replace_16bit_1bit):
8304 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8305 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8306 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8307 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8308 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8309 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8310 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8311 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8312 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8313 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8314 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8315 (grub_video_fbblit_replace_index_RGB888): Likewise.
8316 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8317 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8318 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8319 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8320 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8321 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8322 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8323 Disable.
8324 (grub_video_fbblit_blend_XXX565_1bit):
8325 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8326 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8327 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8328 void *.
8329 * grub-core/video/fb/video_fb.c (common_blitter)
8330 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8331 (grub_video_fb_create_render_target_from_pointer)
8332 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8333 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8334 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8335 definition.
8336 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8337
8338 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8339
8340 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8341 HH22 and HM10 relocations.
8342
8343 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8344
8345 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8346
8347 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8348
8349 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8350 allocation succeeded.
8351
8352 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8353
8354 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8355 argument a u8 pointer. All users updated.
8356 Handle unaligned buffers.
8357
8358 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8361 add_part to workaround compiler bug.
8362
8363 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8364
8365 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8366
8367 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8368
8369 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8370 Reserve alignment invariants.
8371 (grub_multiboot_load): Likewise.
8372 (retrieve_video_parameters): Likewise.
8373 (grub_multiboot_make_mbi): Likewise.
8374
8375 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8376
8377 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8378 incorrect pointer.
8379
8380 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8381
8382 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8383 (grub_pata_pio_write): Likewise.
8384
8385 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8386
8387 Add noreturn attributes and remove unreachable code.
8388
8389 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8390 code.
8391 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8392 code. Mark as noreturn.
8393 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8394 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8395 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8396 unreachable code.
8397 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8398 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8399 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8400 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8401 * include/grub/kernel.h (grub_main): Mark as noreturn.
8402 * include/grub/reader.h (grub_rescue_run): Likewise.
8403
8404 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8405
8406 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8407 redundant declaration.
8408
8409 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8410
8411 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8412 redundant declaration.
8413 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8414
8415 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8416
8417 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8418 to ensure alignment.
8419 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8420 alignment. Ensure tmp alignment.
8421 (grub_cmd_hdparm): Ensure buf alignment.
8422 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8423 to ensure alignment.
8424 (grub_ata_dumpinfo): Ensure text alignment.
8425 (grub_atapi_identify): Preserve alignment invariant.
8426 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8427
8428 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8429
8430 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8431 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8432 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8433 * include/grub/misc.h (grub_reboot)
8434 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8435 (grub_halt) [__mips__]: Likewise.
8436
8437 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8438
8439 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8440 Remove redundant declaration.
8441 (grub_mmap_get_post64): Likewise.
8442 (grub_mmap_get_upper): Likewise.
8443 (grub_mmap_get_lower): Likewise.
8444
8445 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8448 uint32_t * to ensure alignment.
8449 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8450
8451 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8452
8453 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8454 uint16_t * to ensure alignment.
8455 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8456 alignment.
8457
8458 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8459
8460 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8461 to ensure alignment.
8462 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8463
8464 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8465
8466 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8467 Handle unaligned pointers.
8468 (u32at): Likewise.
8469 (u64at): Likewise.
8470 (fixup): Use byte access instead of v16at.
8471 (find_attr): Fix imporper usage of v32at.
8472 (read_data): Likewise.
8473 (list_file): Handle byte-swapping and unaligned strings.
8474 (grub_ntfs_label): Likewise.
8475
8476 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8477
8478 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8479 as it's not necessarily aligned.
8480
8481 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8482
8483 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8484 redundant declaration.
8485 (grub_serial_init): Likewise.
8486 (grub_terminfo_init): Likewise.
8487
8488 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8491 function.
8492 (ZAP_HASH_IDX): Likewise.
8493 (ZAP_LEAF_HASH_SHIFT): Likewise.
8494 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8495 (LEAF_HASH): Likewise.
8496 (ZAP_LEAF_NUMCHUNKS): Likewise.
8497 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8498 alignment invariants. Return pointer. All users updated.
8499 (ZAP_LEAF_ENTRY): Make into inline function.
8500 (NBBY): Removed.
8501 (xor): LIkewise.
8502 (xor_out): Use grub_crypto_xor.
8503 (dnode_get_path): Use grub_get_unaligned.
8504 (nvlist_find_value): Likewise.
8505 (grub_zfs_nvlist_lookup_uint64): Likewise.
8506 (grub_zfs_nvlist_lookup_string): Likewise.
8507 (get_nvlist_size): Likewise.
8508 (grub_zfs_open): Likewise.
8509 (fill_fs_info): Likewise.
8510 (grub_zfs_dir): Likewise.
8511 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8512 alignment invariants.
8513 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8514 necessarily aligned.
8515
8516 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8517
8518 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8519
8520 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8521
8522 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8523 arithmetic to conserve alignment invariants.
8524
8525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8526
8527 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8528 redundant declaration.
8529 (grub_efiemu_mm_obtain_request): Likewise.
8530 (grub_efiemu_prepare): Likewise.
8531
8532 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8533
8534 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8535 to match types.
8536
8537 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8538
8539 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8540 case of aunaligned recptr.
8541 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8542 alignment.
8543 (grub_hfsplus_btree_search): Handle unaligned index.
8544
8545 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8548 to get freetag and skip.
8549
8550 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8553 array.
8554 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8555 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8556
8557 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8560 name for checksum and fix allocation algorithm.
8561
8562 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * include/grub/types.h (grub_properly_aligned_t): New type.
8565 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8566 (grub_get_unaligned16): Add explicit casts.
8567 (grub_get_unaligned32): Likewise.
8568 (grub_get_unaligned64): Likewise.
8569 (grub_set_unaligned16): New function.
8570 (grub_set_unaligned32): Likewise.
8571
8572 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8573
8574 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8575
8576 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8577
8578 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8579 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8580 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8581
8582 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8583
8584 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8585 conditionals.
8586
8587 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8588
8589 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8590 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8591
8592 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8593
8594 Unify and improve RAID and crypto xor.
8595
8596 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8597 changed to grub_crypto_xor
8598 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8599 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8600 Use bigger types when possible.
8601
8602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8603
8604 * grub-core/disk/raid.c (scan_devices): Fix condition.
8605
8606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8607
8608 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8609 Make name a const ptr.
8610
8611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8612
8613 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8614 first argument a const pointer.
8615 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8616 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8617 proto.
8618 (grub_children_iterate): Likewise.
8619 (grub_machine_mmap_iterate): Remove redundant declaration.
8620
8621 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8622
8623 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8624 (grub_cmd_acpi) [!x86]: Disable EBDA.
8625
8626 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8627
8628 Enable UTF8 in gnulib regexp.
8629
8630 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8631 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8632 (isupper): Use grub_isupper.
8633 (isascii): New inline function.
8634 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8635 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8636 * grub-core/normal/charset.c (grub_utf8_process): New function.
8637 (grub_utf8_to_utf16): Use grub_utf8_process.
8638 (grub_encode_utf8_character): New function.
8639 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8640 * include/grub/charset.h (grub_utf8_process): New declaration.
8641 (grub_encode_utf8_character): Likewise.
8642 * include/grub/misc.h (grub_islower): New inline function.
8643 (grub_isupper): Likewise.
8644 (grub_strchrsub): Moved down to fix the definitions.
8645
8646 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8647
8648 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8649 specification.
8650
8651 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 * include/grub/loader.h (grub_loader_register_preboot_hook):
8654 Use struct preboot * and not void * for handle. All users updated.
8655 (grub_loader_unregister_preboot_hook): Likewise.
8656
8657 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8660 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8661 UTF-16-BE. All users updated.
8662 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8663 (grub_hfsplus_iterate_dir): Likewise.
8664 (grub_hfsplus_label): Likewise.
8665
8666 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8667
8668 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8669
8670 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 Add missing const qualifiers.
8673
8674 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8675 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8676 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8677 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8678 (grub_lvm_check_flag): Likewise.
8679 * grub-core/efiemu/i386/coredetect.c
8680 (grub_efiemu_get_default_core_name): Likewise
8681 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8682 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8683 * grub-core/fs/ntfs.c (fixup): Likewise.
8684 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8685 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8686 (fzap_lookup): Likewise.
8687 (zap_lookup): Likewise.
8688 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8689 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8690 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8691 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8692 (grub_freebsd_add_meta_module): Likewise.
8693 (grub_cmd_freebsd_module): Likewise.
8694 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8695 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8696 (grub_xnu_writetree_get_size): Likewise.
8697 (grub_xnu_writetree_toheap_real): Likewise.
8698 (grub_xnu_find_key): Likewise.
8699 (grub_xnu_create_key): Likewise.
8700 (grub_xnu_create_value): Likewise.
8701 (grub_xnu_register_memory): Likewise.
8702 (grub_xnu_check_os_bundle_required): Likewise.
8703 (grub_xnu_scan_dir_for_kexts): Likewise.
8704 (grub_xnu_load_kext_from_dir): Likewise.
8705 * grub-core/normal/color.c (color_list): Likewise.
8706 * grub-core/normal/completion.c (current_word): Likewise.
8707 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8708 * grub-core/term/serial.c (grub_serial_find): Likewise.
8709 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8710 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8711 Likewise.
8712 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8713 (grub_freebsd_add_meta_module): Likewise.
8714 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8715 * include/grub/net.h (grub_net_card_driver): Likewise.
8716 (grub_net_card): Likewise.
8717 (grub_net_app_protocol): Likewise.
8718 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8719 * include/grub/serial.h (grub_serial_find): Likewise.
8720 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8721 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8722 (grub_xnu_create_value): Likewise.
8723 (grub_xnu_find_key): Likewise.
8724 (grub_xnu_scan_dir_for_kexts): Likewise.
8725 (grub_xnu_load_kext_from_dir): Likewise.
8726
8727 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8728 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8729 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8730 Moved from here ...
8731 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8732
8733 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8734
8735 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8736
8737 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8738
8739 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8740 (read_device): Fix size calculation.
8741
8742 2011-11-25 Robert Millan <rmh@gnu.org>
8743
8744 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8745 (find_root_device_from_libzfs): Add zpool output parser to be used
8746 as fallback when libzfs isn't available.
8747
8748 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8749
8750 * po/Makefile.in.in: Add missing escape-continuation.
8751
8752 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8753
8754 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8755
8756 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8759
8760 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8761
8762 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8763
8764 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8767
8768 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8769
8770 * grub-core/lib/adler32.c: Add missing license specification.
8771 * grub-core/lib/crc64.c: Likewise.
8772 * grub-core/loader/i386/pc/plan9.c: Likewise.
8773 * grub-core/partmap/plan.c: Likewise.
8774
8775 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8776
8777 Add facility to debug GRUB with gdb under qemu.
8778
8779 * grub-core/gdb_grub.in: New file.
8780 * grub-core/gmodule.pl.in: Likewise.
8781 * grub-core/Makefile.core.def (gmodule.pl): New script.
8782 (gdb_grub): Likewise.
8783
8784 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8785
8786 * util/grub-mount.c (argp_parser): Accept relative pathes.
8787 * util/grub-fstest.c (argp_parser): Likewise.
8788
8789 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8790
8791 Plan9 support.
8792
8793 * Makefile.util.def (libgrubmods): Add
8794 grub-core/partmap/plan.c.
8795 * docs/grub.texi: Notice Plan9 support.
8796 * grub-core/Makefile.core.def (plan9): New module.
8797 (part_plan): Likewise.
8798 * grub-core/loader/i386/pc/plan9.c: New file.
8799 * grub-core/partmap/plan.c: Likewise.
8800 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8801 define.
8802 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8803 * include/grub/mm.h (grub_extend_alloc): New inline function.
8804
8805 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8806
8807 Make Reed-Solomon faster by using power of generator representation of
8808 GF(256)*.
8809
8810 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8811 (gf_double_t): Likewise.
8812 (gf_invert): Removed.
8813 (gf_powx): New array.
8814 (gf_powx_inv): Likewise.
8815 (scratch): Move higher.
8816 (gf_reduce): Removed.
8817 (gf_mul): Use powx.
8818 (gf_invert): Likewise.
8819 (init_inverts): Replaced with ...
8820 (init_powx): ...this. All users updated.
8821 (pol_evaluate): Replace multiplications with additions.
8822 (rs_encode): Likewise.
8823 (gauss_eliminate): Call gf_invert.
8824 (grub_reed_solomon_add_redundancy): Call init_powx.
8825 (grub_reed_solomon_recover): Call init_powx unconditionally.
8826
8827 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8830
8831 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8834 disk->partiton for safety.
8835
8836 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8839 Fix a memory leak.
8840 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8841
8842 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8845
8846 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8849
8850 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8851
8852 Fix spaces handling in proc/self/mountinfo.
8853
8854 * util/getroot.c (unescape): New function.
8855 (grub_find_root_device_from_mountinfo): Use unescape.
8856
8857 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 Support ZFS embedding.
8860
8861 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8862 (grub_zfs_fs): Register grub_zfs_embed.
8863
8864 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 Fix MIPS compilation.
8867
8868 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8869 * include/grub/offsets.h: Rename decompressor fields from
8870 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8871 * util/grub-mkimage.c (image_targets): Use new names.
8872
8873 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 Defer multiboot device parsing until we're in compressed part.
8876
8877 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8878 bsd_part. setdevice has fallen into disuse.
8879 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8880 (bsd_part): Likewise.
8881 (boot_dev): New variable.
8882 (multiboot_trampoline): Don't parse multiboot device.
8883 Pass multiboot device in %edx.
8884 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8885 grub_boot_device.
8886 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8887 Likewise.
8888 * grub-core/kern/i386/pc/startup.S: Save edx.
8889 (grub_boot_drive): Removed.
8890 (grub_install_dos_part): Likewise.
8891 (grub_install_bsd_part): Likewise.
8892 (grub_boot_device): New variable.
8893 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8894 (grub_install_bsd_part): Likewise.
8895 (grub_boot_drive): Likewise.
8896 (grub_boot_device): New variable.
8897 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8898 Removed.
8899 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8900 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8901 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8902 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8903 * util/grub-install.in: Remove redundant condition.
8904
8905 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8906
8907 Fix bug introduced by previous commit.
8908
8909 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8910
8911 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8912
8913 Use decompressors framework on i386-pc. It increases core size
8914 by 46 bytes but improves compatibility and maintainability.
8915
8916 * grub-core/Makefile.core.def (lzma_decompress): New image.
8917 (kernel): Add i386_pc_ldflags.
8918 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8919 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8920 to real_to_prot, prot_to_real and device info.
8921 * include/grub/offsets.h: Renamed decompressor offsets.
8922 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8923 (image_target_desc): Remove raw_size and rename decompressor fields.
8924 (compress_kernel): Handle lzma.
8925 (generate_image): Handle decompressors on i386-pc.
8926
8927 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8928
8929 * configure.ac: Add -fno-asynchronous-unwind-tables.
8930
8931 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8932
8933 Move assembly code to C by using intwrap. It increases core size
8934 by 88 bytes but improves compatibility and maintainability.
8935
8936 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8937 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8938 ... here. Translated to C.
8939 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8940 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8941 ... here. Translated to C.
8942 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8943 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8944 ... here. Translated to C.
8945 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8946 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8947 ... here. Translated to C.
8948 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8949 * grub-core/term/i386/pc/console.c (grub_console_cls):
8950 ... here. Translated to C.
8951 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8952 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8953 ... here. Translated to C.
8954 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8955 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8956 Translated to C.
8957 * grub-core/term/i386/pc/console.c (int10_9): New function.
8958 (grub_console_putchar): Likewise.
8959 * include/grub/i386/pc/console.h: Removed the not anymore shared
8960 functions.
8961
8962 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 Move grub_chainloader_real_boot out of the kernel.
8965
8966 * grub-core/Makefile.am: Remove machine/loader.h.
8967 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8968 Removed.
8969 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8970 variable.
8971 (grub_relocator16_keep_a20_enabled): Likewise.
8972 (grub_relocator16_boot): Fill new variables.
8973 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8974 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8975 relocator.
8976 (grub_chainloader_unload): Likewise.
8977 (grub_chainloader_cmd): Likewise.
8978 * include/grub/i386/pc/loader.h: Removed.
8979 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8980 and esi. All initialisers updated.
8981
8982 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8983 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
8984
8985 * Makefile.util.def (grub-mount): New util.
8986 * .bzrignore: Add grub-mount.
8987 * configure.ac: Check for fuse and enable grub-mount if available.
8988 * docs/man/grub-mount.h2m: New file.
8989 * util/grub-mount.c: Likewise.
8990
8991 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 * grub-core/commands/efi/fixvideo.c: Gettextize.
8994 * grub-core/commands/hashsum.c: Likewise.
8995 * grub-core/commands/i386/cmostest.c: Likewise.
8996 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8997 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8998 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8999 * grub-core/commands/lsmmap.c: Likewise.
9000 * grub-core/commands/menuentry.c: Likewise.
9001 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9002 * grub-core/commands/setpci.c: Likewise.
9003 * grub-core/loader/i386/bsd.c: Likewise.
9004 * grub-core/loader/i386/linux.c: Likewise.
9005 * util/getroot.c: Likewise.
9006 * util/grub-editenv.c: Likewise.
9007 * util/grub-fstest.c: Likewise.
9008 * util/grub-mkfont.c: Likewise.
9009 * util/grub-mkimage.c: Likewise.
9010 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9011 * util/grub-pe2elf.c: Likewise.
9012 * util/grub-probe.c: Likewise.
9013 * util/grub-setup.c: Likewise.
9014 * util/ieee1275/ofpath.c: Likewise.
9015 * util/misc.c: Likewise.
9016 * util/raid.c: Likewise.
9017
9018 2011-11-11 Robert Millan <rmh@gnu.org>
9019
9020 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9021 __attribute__((unused)) from `os_dev', which *is* being used.
9022
9023 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9026 forgotten define.
9027 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9028 GRUB_IA64_DL_GOT_ALIGN.
9029 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9030 GRUB_IA64_DL_TRAMP_ALIGN.
9031
9032 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 Replace grub_fatal with normal errors in i386 linux loader.
9035
9036 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9037 (allocate_pages): Check find_efi_mmap_size return value.
9038 (grub_e820_add_region): Return error.
9039 (grub_linux_boot): Check mmap return value.
9040
9041 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9042
9043 * grub-core/commands/acpihalt.c: Gettextized.
9044 * grub-core/commands/cacheinfo.c: Likewise.
9045 * grub-core/commands/cmp.c: Likewise.
9046 * grub-core/commands/efi/loadbios.c: Likewise.
9047 * grub-core/commands/gptsync.c: Likewise.
9048 * grub-core/commands/ieee1275/suspend.c: Likewise.
9049 * grub-core/commands/legacycfg.c: Likewise.
9050 * grub-core/commands/memrw.c: Likewise.
9051 * grub-core/commands/minicmd.c: Likewise.
9052 * grub-core/commands/parttool.c: Likewise.
9053 * grub-core/commands/time.c: Likewise.
9054 * grub-core/commands/videoinfo.c: Likewise.
9055 * grub-core/disk/geli.c: Likewise.
9056 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9057 * grub-core/disk/luks.c: Likewise.
9058 * grub-core/disk/lvm.c: Likewise.
9059 * grub-core/font/font_cmd.c: Likewise.
9060 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9061 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9062 * grub-core/gfxmenu/view.c: Likewise.
9063 * grub-core/kern/emu/hostdisk.c: Likewise.
9064 * grub-core/kern/emu/main.c: Likewise.
9065 * grub-core/kern/emu/misc.c: Likewise.
9066 * grub-core/kern/emu/mm.c: Likewise.
9067 * grub-core/kern/mips/arc/init.c: Likewise.
9068 * grub-core/kern/mips/loongson/init.c: Likewise.
9069 * grub-core/kern/partition.c: Likewise.
9070 * grub-core/lib/i386/halt.c: Likewise.
9071 * grub-core/lib/mips/arc/reboot.c: Likewise.
9072 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9073 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9074 * grub-core/loader/i386/xnu.c: Likewise.
9075 * grub-core/loader/multiboot.c: Likewise.
9076 * grub-core/net/bootp.c: Likewise.
9077 * grub-core/net/net.c: Likewise.
9078 * grub-core/normal/term.c: Likewise.
9079 * grub-core/partmap/bsdlabel.c: Likewise.
9080 * grub-core/parttool/msdospart.c: Likewise.
9081 * grub-core/term/gfxterm.c: Likewise.
9082 * grub-core/term/terminfo.c: Likewise.
9083 * grub-core/video/i386/pc/vbe.c: Likewise.
9084 * util/grub-menulst2cfg.c: Likewise.
9085 * util/grub-mkdevicemap.c: Likewise.
9086 * util/grub-mklayout.c: Likewise.
9087 * util/grub-mkrelpath.c: Likewise.
9088 * util/grub-script-check.c: Likewise.
9089 * util/ieee1275/grub-ofpathname.c: Likewise.
9090 * util/resolve.c: Likewise.
9091
9092 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9093
9094 Support %1$d syntax.
9095
9096 * tests/printf_unit_test.c: New file.
9097 * Makefile.util.def (printf_test): New test.
9098 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9099
9100 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9101
9102 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9103 fix.
9104
9105 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9106
9107 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9108 dprintf.
9109 * grub-core/font/font.c (grub_font_load): Likewise.
9110
9111 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 * util/grub-macho2img.c: Add comment concerning gettext.
9114 * grub-core/lib/legacy_parse.c: Likewise.
9115
9116 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9119 (grub_xvasprintf): Likewise.
9120
9121 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9122
9123 Add const keyword to grub_env_get and gettextize week days.
9124
9125 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9126 (grub_read_hook_datetime): Return const char *.
9127 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9128 updated.
9129 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9130 Mark for gettext.
9131 (grub_get_weekday_name): Return const char *. Call gettext.
9132 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9133 char * and len as the argument. All users updated.
9134 (grub_script_argv_split_append): Receive const char *.
9135 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9136 * include/grub/env.h (grub_env_get): Likewise.
9137 (grub_env_read_hook_t): Return const char *.
9138 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9139 (grub_script_argv_split_append): Likewise.
9140
9141 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9142
9143 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9144
9145 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9146
9147 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9148 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9149
9150 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9151
9152 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9153 Fix prototype.
9154
9155 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9156
9157 Fix mips compilation.
9158
9159 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9160 normal decoder.
9161 (hashes): Use in embed decoder as well (for sizes).
9162 (dec_stream_header): Fix embed decompressor logic.
9163 (dec_stream_footer): Likewise.
9164
9165 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9166
9167 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9168 an error and not a fatal on unrecognised relocation types.
9169
9170 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9171
9172 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9173 Issue error rather than printf on unknown arguments.
9174
9175 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9178 Make buf a const.
9179
9180 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9183 Fix module name.
9184
9185 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9188 leftover debug printf.
9189
9190 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9191
9192 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9193
9194 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9195
9196 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9197 A stylistic fix.
9198
9199 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9200
9201 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9202
9203 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9204
9205 Allow all modules to perform serial IO
9206
9207 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9208 * include/grub/serial.h (grub_serial_port_configure): New inline
9209 function.
9210 (grub_serial_port_fetch): Likewise.
9211 (grub_serial_port_put): Likewise.
9212 (grub_serial_port_fini): Likewise.
9213 (grub_serial_find): New proto.
9214
9215 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 Put symlink at the end of the node and fix a potential
9218 memory corruption.
9219
9220 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9221 Make symlink into an array.
9222 (set_rockridge): Set have_symlink and alloc_dirents.
9223 (grub_iso9660_read_symlink): Use new layout.
9224 (grub_iso9660_iterate_dir): Fix memory corruption.
9225 Use new layout.
9226 (grub_iso9660_dir): Set have_symlink.
9227 (grub_iso9660_open): Likewise.
9228
9229 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 Remove local keyword.
9232
9233 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9234 (version_test_gt): Likewise.
9235 (version_find_latest): Likewise.
9236 (gettext_printf): Likewise.
9237 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9238
9239 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9240
9241 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9242
9243 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9244
9245 Fix ZFS memory and resource leaks.
9246
9247 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9248 All users updated.
9249 Free type on exit.
9250 (fill_vdev_info): New parameter inserted. All users updated.
9251 (check_pool_label): Likewise.
9252 (scan_disk): Likewise.
9253 (scan_devices): Close non-inserted disks.
9254 (fzap_iterate): Free l.
9255 (unmount_device): Free children descripto memory.
9256
9257 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9258
9259 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9260 argument (access out of bounds).
9261
9262 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9265 >= 6 drives.
9266
9267 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9270 Fix declaration.
9271
9272 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 Fix several memory leaks.
9275
9276 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9277 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9278 (grub_cpio_dir): Likewise.
9279 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9280 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9281 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9282 (grub_romfs_label): Likewise.
9283 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9284 (squash_unmount): New function.
9285 (grub_squash_dir): Fix memory leak.
9286 (grub_squash_open): Likewise.
9287 (grub_squash_read): Likewise.
9288 (grub_squash_mtime): Likewise.
9289 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9290 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9291 * util/grub-fstest.c (fstest): Likewise.
9292
9293 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9294
9295 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9296 avoid accessing beyond the array.
9297
9298 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9301
9302 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9303
9304 Several AFFS fixes.
9305
9306 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9307 (GRUB_AFFS_FLAG_FFS): Removed.
9308 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9309 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9310 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9311 (grub_fshelp_node): Make block 32-bit.
9312 Add block_cache and last_block_cache.
9313 (grub_affs_read_block): Fill and use block cache.
9314 (grub_affs_read_file): Removed.
9315 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9316 boot block.
9317 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9318 safety.
9319 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9320 space.
9321 (grub_affs_close): Free block cache.
9322 (grub_affs_read): Use grub_fshelp_read_file directly.
9323
9324 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9325
9326 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9327 with no error set.
9328
9329 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9330
9331 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9332 used variable.
9333 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9334 Likewise.
9335
9336 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9337
9338 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9339
9340 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9341 byteswap when needed.
9342
9343 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9344
9345 Fix FreeBSD compilation.
9346
9347 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9348 to avoid circular dependency.
9349 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9350 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9351 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9352
9353 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9354
9355 Fix ZFS crypto error types.
9356
9357 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9358 (grub_gcm_decrypt): Likewise.
9359 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9360 from PBKDF2.
9361
9362 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9363
9364 Illumos support.
9365
9366 * Makefile.util.def (10_illumos): New script.
9367 * configure.ac: Set COND_HOST_ILLUMOS.
9368 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9369 Support Illumos calls.
9370 (find_partition_start) [__sun__]: Likewise.
9371 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9372 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9373 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9374 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9375 device.
9376 * util/grub-probe.c (probe) [__sun__]: Do character check.
9377 * util/grub.d/10_illumos.in: New file.
9378
9379 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9380
9381 Support escaped commas in hostdisk.
9382
9383 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9384 (find_grub_drive): Use unescape_cmp.
9385 (make_device_name): Escape commas.
9386
9387 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9390
9391 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9394 variable.
9395
9396 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 Support trampoline jumps on powerpc.
9399
9400 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9401 __ia64__ path.
9402 (grub_dl_load_segments): Set mod->sz.
9403 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9404 segments.
9405 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9406 (jump): Likewise.
9407 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9408 function.
9409 (trampoline): New struct.
9410 (trampoline_template): New const.
9411 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9412 * include/grub/dl.h (grub_dl): Add sz element.
9413 [__powerpc__]: Follow __ia64__.
9414 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9415 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9416 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9417 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9418
9419 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 ZFS crypto support.
9422
9423 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9424 * grub-core/Makefile.core.def (zfscrypt): New module.
9425 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9426 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9427 it. All users updated.
9428 (grub_zfs_decrypt): New var.
9429 (grub_zfs_load_key): Likewise.
9430 (zio_checksum_functions): Add SHA256+MAC.
9431 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9432 (zio_read): Handle encrypted blocks.
9433 (zap_verify): Remove incorrect check.
9434 (fzap_iterate): Handle non-standard fzap.
9435 (zap_iterate): Likewise.
9436 (zap_iterate_u64): New function.
9437 (dnode_get_fullpath): Load keys.
9438 * grub-core/fs/zfs/zfscrypt.c: New file.
9439 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9440 (grub_crypto_ecb_encrypt): Make input const.
9441 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9442 (grub_crypto_ecb_encrypt): Make input const.
9443 (GRUB_CIPHER_AES): New macro.
9444 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9445 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9446 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9447 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9448 prefix. All users updated.
9449 (grub_zfs_add_key): New proto.
9450 (grub_zfs_decrypt): Likewise.
9451 (grub_zfs_load_key): Likewise.
9452 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9453 * util/grub-fstest.c (options): Add -K option.
9454 (argp_parser): Likewise.
9455
9456 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 Support zle compression on ZFS.
9459
9460 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9461 (decomp_table): Add zle.
9462 * include/grub/zfs/zio.h (zio_compress): Add zle.
9463
9464 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9465
9466 Support BtrFS embedding.
9467
9468 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9469 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9470 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9471 * util/grub-setup.c (setup): Use fs embedding if available.
9472 Add additional sanity check.
9473
9474 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9475
9476 * util/grub-install.in: Fix condition for config_opt.
9477
9478 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9479
9480 Support third redundancy strip on raidz3.
9481
9482 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9483 Return error on singularity. All users updated.
9484 (read_device): Don't stop on 3rd failure on raidz3.
9485
9486 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9487
9488 Support case-insensitive ZFS subvolumes.
9489
9490 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9491 All users updated.
9492 (zap_hash): Likewise.
9493 (name_cmp): New function.
9494 (zap_leaf_array_equal): New parameter case_insensitive.
9495 All users updated.
9496 (zap_leaf_lookup): Likewise.
9497 (fzap_lookup): Likewise.
9498 (zap_lookup): Likewise.
9499 (dnode_get_path): New parameter case_insensitive. Retrieve case
9500 sensitiviness of a volume. All users updated.
9501 (dnode_get_fullpath): New parameter case_insensitive.
9502 All users updated.
9503 (grub_zfs_dir): Set info.case_insensitiveness.
9504
9505 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9506
9507 Support second redundancy strip on raidz(2,3).
9508
9509 * grub-core/fs/zfs/zfs.c (powx): New array.
9510 (powx_inv): Likewise.
9511 (poly): New const.
9512 (xor_out): New function.
9513 (gf_mul): Likewise.
9514 (recovery): Likewise.
9515 (read_device): Use second redundancy strip.
9516
9517 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 Use a power of generator representation of GF(256) multiplication group
9520 to save space time and complexity.
9521
9522 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9523 (raid6_table2): Likewise.
9524 (powx): New array.
9525 (powx_inv): Likewise.
9526 (poly): New const.
9527 (grub_raid_block_mul): Replace with ...
9528 (grub_raid_block_mulx): ...this.
9529 (grub_raid6_init_table): Rewritten.
9530 (grub_raid6_recover): Use power of generator representation.
9531
9532 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9535 for the right device.
9536
9537 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9540 expected by grub-mkimage and it's more clear since there is no implicit
9541 padding.
9542
9543 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9546 disk.
9547 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9548
9549 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9550
9551 * util/grub-mkrescue.in: Fix handling xorriso option.
9552
9553 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9554
9555 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9556 NULL.
9557
9558 2011-11-03 crocket <crockabiscuit@gmail.com>
9559
9560 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9561
9562 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9563
9564 XZ CRC64 and SHA256 support.
9565
9566 * Makefile.util.def (libgrubmods): Add crc64.c.
9567 * grub-core/Makefile.core.def (crc64): New module.
9568 * grub-core/lib/crc64.c: New file.
9569 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9570 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9571 Fix the type.
9572 (MAX_HASH_SIZE): New define.
9573 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9574 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9575 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9576 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9577 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9578 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9579 Handle non-crc32 hashes.
9580 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9581 (dec_stream_header): Handle non-crc32 hashes.
9582 (dec_stream_footer): Likewise.
9583 (dec_block_header): Likewise.
9584 (dec_main): Likewise.
9585 (xz_dec_init): Likewise.
9586 (xz_dec_reset): Likewise.
9587 (xz_dec_end): Likewise.
9588 * util/import_gcry.py: Add CRC64 line.
9589
9590 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9593 as well.
9594
9595 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9596
9597 Make reiserfs label retrieval similar to other *_label functions.
9598
9599 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9600 (REISERFS_MAX_LABEL_LENGTH): Removed.
9601 (REISERFS_LABEL_OFFSET): Likewise.
9602 (grub_reiserfs_label): Rewritten.
9603
9604 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9605
9606 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9607 field.
9608
9609 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9612
9613 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9616 drive failure on both raidz and raidz2.
9617
9618 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9619
9620 Fix RAIDZ(2) for >= 5 devices.
9621
9622 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9623 asize argument. All users updated.
9624
9625 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9626
9627 Fix RAIDZ(2).
9628
9629 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9630 (fill_vdev_info_real): Set ashift.
9631 (read_device): Rewrite RAIDZ part based on reverse engineering.
9632
9633 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9634
9635 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9636 don't report potentially unavialiable fields in debug output.
9637 (find_path): Fix double-free and memory leak.
9638
9639 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9640
9641 Read label on UFS1.
9642
9643 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9644 (grub_ufs_fs): Always set .label.
9645
9646 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 Use shifts in UFS.
9649
9650 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9651 (grub_ufs_data): New field log2_blksz.
9652 (grub_ufs_read_file): Use shifts.
9653 (grub_ufs_mount): Check block size and logarithm it.
9654
9655 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9658 long symlinks.
9659
9660 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Handle symlinks and long names on tar and cpio.
9663
9664 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9665 (ATTR_FILE): Likewise.
9666 (ATTR_DIR): Likewise.
9667 (ATTR_LNK): Likewise.
9668 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9669 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9670 L and K entries.
9671 (grub_cpio_mount): Zero-fill data.
9672 (handle_symlink): New function.
9673 (grub_cpio_dir): Handle symlinks.
9674 (grub_cpio_open): Likewise.
9675 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9676
9677 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 Fix iso9660 filename limitations and fix memory leaks.
9680
9681 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9682 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9683
9684 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9685
9686 Fix JFS file name length limitations.
9687
9688 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9689 (grub_jfs_diropen): Fix maximum filename length.
9690 (grub_jfs_getent): Fix filename length.
9691 (grub_jfs_lookup_symlink): Fix size checks.
9692
9693 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9696 string.
9697
9698 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 Leverage BFS implementation to read AFS.
9701
9702 * Makefile.util.def (libgrubmods): Add afs.c.
9703 * grub-core/Makefile.core.def (afs): New module
9704 * grub-core/fs/afs.c: New file.
9705 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9706
9707 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9708
9709 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9710
9711 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 * grub-core/fs/bfs.c: Run indent.
9714
9715 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 BFS implementation based on the specification.
9718
9719 * grub-core/fs/bfs.c: New file.
9720 * Makefile.util.def (libgrubmods): Add bfs.c.
9721 * grub-core/Makefile.core.def (bfs): New module.
9722
9723 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9724
9725 * util/grub-fstest.c (cmd_cp): Clarify error message.
9726 (cmd_cmp): Likewise.
9727
9728 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9729
9730 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9731 and befs_be.
9732
9733 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9734
9735 Remove afs and befs because of copyright problem.
9736
9737 * grub-core/fs/afs.c: Removed.
9738 * grub-core/fs/afs_be.c: Removed.
9739 * grub-core/fs/befs.c: Removed.
9740 * grub-core/fs/befs_be.c: Removed.
9741 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9742 * grub-core/Makefile.core.def (afs): Removed.
9743 (afs_be): Likewise.
9744 (befs): Likewise.
9745 (befs_be): Likewise.
9746
9747 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 Prefer rockridge over Joliet.
9750
9751 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9752 to ...
9753 (set_rockridge): ... here.
9754 (grub_iso9660_mount): Check rockridge on the primary label when
9755 discovering. Ignore Joliet if Rockridge is present.
9756
9757 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 Use shifts in nilfs2.
9760
9761 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9762 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9763 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9764 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9765 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9766 (grub_nilfs2_entries_per_block): Replaced with ...
9767 (grub_nilfs2_log_entries_per_block_log): ... this.
9768 (grub_nilfs2_blocks_per_group): Replaced with ...
9769 (grub_nilfs2_blocks_per_group_log): ... this.
9770 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9771 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9772 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9773 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9774 (grub_nilfs2_palloc_entry_offset): Replaced ...
9775 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9776 (grub_nilfs2_dat_translate): Use shifts.
9777 (grub_nilfs2_read_inode): Likewise.
9778 (GRUB_MOD_INIT): Ensure that logs are correct.
9779
9780 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9781
9782 Use shifts in minix filesystem.
9783
9784 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9785 (GRUB_MINIX_ZONE2SECT): Likewise.
9786 (grub_minix_data): Replace block_size with log_block_size.
9787 (grub_minix_read_file): Use shifts.
9788 (grub_minix_mount): Check block size and take a logarithm.
9789
9790 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9791
9792 Use shifts in squash4.
9793
9794 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9795 (squash_mount): Check block size and take logarithm.
9796 (direct_read): Use shifts.
9797
9798 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9799
9800 Correct befs block counting logic.
9801
9802 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9803 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9804 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9805 (grub_afs_read_inode): Use block_shift.
9806 (RANGE_SHIFT): New definition.
9807 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9808 unexpected conditions, use shifts and appropriate types.
9809 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9810
9811 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9812
9813 * grub-core/disk/raid.c (scan_devices): Check partition.
9814 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9815
9816 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9817
9818 Support BFS (befs) UUID.
9819
9820 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9821 (grub_afs_small_data_element_header): New struct.
9822 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9823 (grub_afs_read_attribute) [MODE_BFS]: New function.
9824 (grub_afs_iterate_dir): Allocate for complete inode.
9825 (grub_afs_mount): Likewise.
9826 (grub_afs_uuid) [MODE_BFS]: New function.
9827 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9828
9829 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9830
9831 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9832 (zfs_unmount): Fix memory leak.
9833
9834 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9835
9836 Support NTFS reparse points.
9837
9838 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9839 (symlink_descriptor): New struct.
9840 (grub_ntfs_read_symlink): New function.
9841 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9842 (grub_ntfs_open): Likewise.
9843
9844 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9845
9846 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9847
9848 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9849
9850 fstest xnu_uuid subcommand.
9851
9852 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9853 grub-core/commands/xnu_uuid.c.
9854 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9855 (fstest): Handle xnu_uuid.
9856 (options): Document xnu_uuid.
9857 (argp_parser): Parse xnu_uuid.
9858
9859 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9860
9861 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9862 -l argument. Add newline at the end if printing.
9863 (GRUB_MOD_INIT): Document -l.
9864
9865 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9868
9869 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9870
9871 ZFS multi-device and version 33 support.
9872
9873 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9874 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9875 (grub_zfs_data): Add multidev-ice-related fields.
9876 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9877 (dva_get_offset): Make dva const.
9878 (zfs_fetch_nvlist): New function.
9879 (fill_vdev_info_real): Likewise.
9880 (fill_vdev_info): Likewise.
9881 (check_pool_label): Likewise.
9882 (scan_disk): Likewise.
9883 (scan_devices): Likewise.
9884 (read_device): Likewise.
9885 (read_dva): Likewise.
9886 (zio_read_gang): Use read_dva.
9887 (zio_read_data): Likewise.
9888 (zap_leaf_lookup): Add missing endian conversion.
9889 (zap_verify): Add missing endian conversion. All users updated.
9890 (fzap_lookup): Likewise.
9891 (fzap_iterate): Likewise.
9892 (dnode_get_path): Handle SA bonus.
9893 (nvlist_find_value): Make input const. All users updated.
9894 (unmount_device): New function.
9895 (zfs_unmount): Use unmount_device.
9896 (zfs_mount): Use scan_disk.
9897 (zfs_mtime): New function.
9898 (grub_zfs_open): Handle system attributes.
9899 (fill_fs_info): Likewise.
9900 (grub_zfs_dir): Likewise.
9901 (grub_zfs_fs): Add mtime.
9902 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9903 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9904 (SA_MTIME_OFFSET): Likewise.
9905 (SA_SYMLINK_OFFSET): Likewise.
9906 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9907 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9908 (fstest): Support zfsinfo.
9909 (argp_parser): Likewise.
9910
9911 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9912
9913 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9914 error.
9915
9916 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9917
9918 ZFS fixes.
9919
9920 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9921 sharing the same block. Iterate over correct number of indices.
9922 (dnode_get_path): Handle symlinks correctly.
9923
9924 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9927
9928 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 Read label on HFS+.
9931
9932 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9933 (grub_hfsplus_btree_search): Fix types.
9934 (grub_hfsplus_label): Implement.
9935
9936 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9937
9938 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9939
9940 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9943
9944 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9945
9946 Fix symlink handling on iso9660.
9947
9948 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9949 All users updated.
9950 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9951 (grub_iso9660_read_symlink): Moved most of code ...
9952 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9953
9954 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9957 Use union to avoid breaking strict-aliasing rules.
9958
9959 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9960
9961 Support multi-extent iso files.
9962
9963 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9964 Add node.
9965 (grub_fshelp_node): Revamp. All users updated.
9966 (FLAG_*): New enum.
9967 (read_node): New function.
9968 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9969 All users updated.
9970 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9971 (get_node_size): New function.
9972 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9973 entries.
9974 Fix memory leak on . and ..
9975 (grub_iso9660_read): Use read_node.
9976 (grub_iso9660_close): Free node.
9977
9978 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9979
9980 Fix tar 4G limit and handle paths containing dot.
9981
9982 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9983 (canonicalize): New function.
9984 (grub_cpio_find_file): Use canonicalize. Store offs in
9985 grub_disk_addr_t.
9986 (grub_cpio_dir): Use grub_disk_addr_t.
9987 (grub_cpio_open): Likewise.
9988
9989 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9992
9993 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9994 unused flags.
9995 (grub_squash_inode): Add long_file and block_size.
9996 (grub_squash_cache_inode): New struct.
9997 (grub_squash_dirent): Make types into enum.
9998 (SQUASH_TYPE_LONG_REGULAR): New type.
9999 (grub_squash_frag_desc): Add field size.
10000 (SQUASH_BLOCK_FLAGS): New enum.
10001 (grub_squash_data): Use grub_squash_cache_inode.
10002 (grub_fshelp_node): Make ino_chunk 64-bit.
10003 (read_chunk): Minor argument change. All users updated.
10004 (squash_mount): Use correct le_to_cpu.
10005 (grub_squash_open): Handle LONG_REGULAR.
10006 (direct_read): New function.
10007 (grub_squash_read_data): Handle blocks correctly.
10008
10009 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10010
10011 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10012
10013 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10016
10017 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 Fix 2G limit on ZFS.
10020
10021 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10022 types.
10023 (uberblock_verify): Likewise.
10024 (dmu_read): Likewise.
10025 (grub_zfs_read): Likewise. Remove invalid cast.
10026
10027 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10030 (grub_jfs_blkno): Fix incorrect shift.
10031 (grub_jfs_read_file): Use more appropriate types.
10032
10033 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10034
10035 Support triple indirect on minix2 and minix3.
10036
10037 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10038 Declare triple_indir_zone.
10039 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10040 indirect.
10041
10042 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10043
10044 Minix FS fixes.
10045
10046 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10047 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10048 Rename ctime to mtime. All users updated.
10049 (grub_minix_get_file_block): Fix types and double indirect computations.
10050
10051 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10054 if no label is found.
10055 (grub_fat_iterate_dir): Fix file size type.
10056 (grub_fat_iterate_dir): Likewise.
10057
10058 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10059
10060 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10061 save some space.
10062 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10063 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10064
10065 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10066
10067 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10068
10069 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10070
10071 * util/import_gcry.py: Accept space between # and include.
10072
10073 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10074
10075 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10076
10077 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10078
10079 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10080
10081 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10082 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10083 yylex_strncpy.
10084 * grub-core/script/yylex.l: Add fine-grained #pragma.
10085
10086 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10089 New inline function.
10090 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10091 Likewise.
10092 (memset) [GRUB_UTIL]: Likewise.
10093 (memcmp) [GRUB_UTIL]: Likewise.
10094
10095 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10098 inline function rather than a define.
10099
10100 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * util/grub-setup.c: Add missing include.
10103
10104 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10105
10106 * util/ieee1275/grub-ofpathname.c: Add missing include.
10107
10108 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10109
10110 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10111 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10112 Likewise.
10113
10114 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10115
10116 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10117 grub_memcmp usage.
10118
10119 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10120
10121 * util/grub-install.in: Add datarootdir as per automake manual
10122 suggestion.
10123 * util/grub-mknetdir.in: Likewise.
10124
10125 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10126
10127 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10128 suggestion.
10129 * util/grub.d/10_kfreebsd.in: Likewise.
10130 * util/grub.d/10_linux.in: Likewise.
10131 * util/grub.d/10_netbsd.in: Likewise.
10132 * util/grub.d/10_windows.in: Likewise.
10133 * util/grub.d/20_linux_xen.in: Likewise.
10134
10135 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10136
10137 Remove redundant grub_kernel_image_size.
10138
10139 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10140 _edata and _start.
10141 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10142 the small code. It moves it only by few bytes but simplifies the code.
10143 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10144 _start.
10145 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10146 (grub_kernel_image_size): Removed.
10147 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10148 (grub_kernel_image_size): Removed.
10149 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10150 compiled with Apple toolchain.
10151 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10152 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10153 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10154 (grub_total_module_size): Likewise.
10155 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10156 Removed.
10157 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10158 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10159 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10160 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10161 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10162 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10163 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10164 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10165 Removed.
10166 (grub_total_module_size): Removed.
10167 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10168 (image_targets): Likewise.
10169 Set .compressed_size to no field on sparc.
10170 (generate_image): Remove kernel_image_size handling.
10171
10172 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10173
10174 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10175 NULL pointer dereference.
10176
10177 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10180 done with a dedicated section.
10181
10182 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10183 Ensure the correct position of boot_path.
10184 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10185 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10186 other fields.
10187 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10188 * include/grub/boot.h: Removed. All references removed.
10189 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10190 Removed.
10191 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10192
10193 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10194
10195 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10196 name.
10197
10198 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10199
10200 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10201
10202 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10203
10204 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10205 Don't add the bogus brackets.
10206
10207 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10208
10209 ExFAT support.
10210
10211 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10212 * grub-core/Makefile.core.def (exfat): New module.
10213 * grub-core/fs/exfat.c: New file.
10214 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10215 (GRUB_FAT_ATTR_*): Make into an enum.
10216 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10217 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10218 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10219 (GRUB_FAT_MAXFILE): Removed.
10220 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10221 (grub_current_fat_bpb_t): New type.
10222 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10223 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10224 (grub_fat_dir_node_t): New type.
10225 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10226 (fat_log2) [MODE_EXFAT]: Removed.
10227 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10228 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10229 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10230 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10231 (grub_fat_label) [MODE_EXFAT]: New function.
10232 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10233 reserved_first_sector to 0.
10234
10235 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10236
10237 Move grub_reboot out of the kernel.
10238
10239 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10240 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10241 * grub-core/lib/efi/reboot.c: ... here.
10242 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10243 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10244 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10245 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10246 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10247 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10248 * grub-core/lib/ieee1275/reboot.c: ... here.
10249 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10250 * grub-core/lib/mips/arc/reboot.c: ... here.
10251 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10252 * grub-core/lib/mips/loongson/reboot.c: ...here.
10253 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10254 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10255 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10256 * include/grub/i386/reboot.h: New file.
10257 * include/grub/mips/loongson/ec.h: Fix includes.
10258 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10259 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10260 * grub-core/lib/i386/reboot.c: New file.
10261
10262 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10263
10264 Make grub_prefix into module to fix the arbitrary limit and save
10265 some space.
10266
10267 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10268 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10269 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10270 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10271 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10272 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10273 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10274 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10275 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10276 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10277 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10278 * include/grub/ia64/efi/kernel.h: Removed.
10279 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10280 (grub_prefix): Removed.
10281 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10282 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10283 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10284 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10285 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10286 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10287 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10288 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10289 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10290 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10291 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10292 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10293 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10294 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10295 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10296 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10297 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10298 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10299 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10300 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10301 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10302 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10303 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10304 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10305 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10306 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10307 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10308 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10309 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10310 from module.
10311 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10312 prefix_end.
10313 (image_targets): Likewise.
10314 (generate_image): Put prefix as a module.
10315
10316 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10317
10318 Replace grub_module_iterate with FOR_MODULES.
10319
10320 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10321 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10322 (grub_efi_modules_addr): ...this.
10323 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10324 (grub_efi_init): Set grub_modbase.
10325 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10326 (grub_modbase): New variable.
10327 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10328 (grub_modbase): New variable.
10329 (grub_machine_init): Set grub_modbase.
10330 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10331 (grub_modbase): New variable.
10332 (grub_machine_init): Set grub_modbase.
10333 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10334 (grub_modbase): New variable.
10335 (grub_machine_init): Set grub_modbase.
10336 * grub-core/kern/main.c (grub_module_iterate): Remove.
10337 (grub_modules_get_end): Use grub_modbase.
10338 (grub_load_modules): Use FOR_MODULES.
10339 (grub_load_config): Likewise.
10340 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10341 (grub_modbase): New variable.
10342 (grub_machine_init): Set grub_modbase.
10343 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10344 (grub_modbase): New variable.
10345 (grub_machine_init): Set grub_modbase.
10346 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10347 Removed.
10348 (grub_modbase): New variable.
10349 (grub_machine_init): Set grub_modbase.
10350 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10351 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10352 (grub_module_iterate): Likewise.
10353 (grub_modbase): New variable declaration.
10354 (FOR_MODULES): New macro.
10355
10356 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10357
10358 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10359 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10360
10361 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10362
10363 Fix few obvious type discrepancies.
10364
10365 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10366 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10367 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10368 variable.
10369 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10370 and connected types.
10371 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10372 offset.
10373 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10374 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10375 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10376 and connected types.
10377
10378 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10379
10380 Fix python 3.x incompatibilities.
10381
10382 * gentpl.py: Put brackets around print strings.
10383 * util/import_gcry.py: Open explicitly as utf-8.
10384 Use in instead of has_key.
10385
10386 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10389 (GRUB_XFS_INO_AGBITS): Make into inline function.
10390 (GRUB_XFS_INO_INOINAG): Likewise.
10391 (GRUB_XFS_INO_AG): Likewise.
10392 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10393 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10394 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10395 (GRUB_XFS_EXTENT_SIZE): Likewise.
10396 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10397 (GRUB_XFS_NEXT_DIRENT): Likewise.
10398 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10399 (grub_xfs_read_file): Fix offset type.
10400
10401 2011-10-15 Robert Millan <rmh@gnu.org>
10402
10403 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10404
10405 2011-10-15 Robert Millan <rmh@gnu.org>
10406
10407 Fix build problem on FreeBSD and GNU/kFreeBSD.
10408
10409 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10410
10411 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10412
10413 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10414
10415 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10416 types.
10417 (grub_hfsplus_btree_recoffset): Likewise.
10418 (grub_hfsplus_btree_recptr): Likewise.
10419 (grub_hfsplus_find_block): Likewise.
10420 (grub_hfsplus_btree_search): Likewise.
10421 (grub_hfsplus_read_block): Likewise.
10422 (grub_hfsplus_read_file): Likewise.
10423 (grub_hfsplus_mount): Likewise.
10424 (grub_hfsplus_btree_iterate_node): Likewise.
10425 (grub_hfsplus_btree_search): Likewise.
10426 (grub_hfsplus_iterate_dir): Likewise.
10427 (grub_hfsplus_read): A small code simplification.
10428
10429 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10430
10431 * grub-core/kern/emu/hostdisk.c
10432 (convert_system_partition_to_system_disk): Don't assume that children
10433 of mapper nodes are mapper nodes.
10434
10435 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10438 * include/grub/misc.h (grub_isxdigit): New function.
10439 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10440 switched to grub_isxdigit.
10441 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10442 number starting with a letter.
10443
10444 2011-10-09 Robert Millan <rmh@gnu.org>
10445
10446 LVM support for FreeBSD and GNU/kFreeBSD.
10447
10448 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10449 GNU/kFreeBSD.
10450 (LVM_DEV_MAPPER_STRING): Move from here ...
10451 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10452 * util/getroot.c: Include `<grub/util/lvm.h>'.
10453 (grub_util_get_dev_abstraction): Enable
10454 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10455 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10456 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10457 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10458 support it.
10459 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10460 GNU/kFreeBSD.
10461 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10462 when LVM abstraction is required for ${GRUB_DEVICE}.
10463
10464 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10465
10466 Add support for LZO compression in GRUB:
10467 - import of minilzo library,
10468 - LZO decompression for btrfs,
10469 - lzop files decompression.
10470
10471 * grub-core/io/lzopio.c: New file.
10472 * grub-core/lib/adler32.c: Likewise.
10473 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10474 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10475 * grub-core/lib/minilzo/minilzo.c: Likewise.
10476 * grub-core/lib/minilzo/minilzo.h: Likewise.
10477 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10478 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10479 grub-core/lib/minilzo/minilzo.c to common.
10480 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10481 cflags in cppflags.
10482 * grub-core/Makefile.core.def (btrfs): Likewise.
10483 * grub-core/Makefile.core.def (lzopio): New module.
10484 (adler32): Likewise.
10485 * grub-core/fs/btrfs.c: Include minilzo.h.
10486 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10487 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10488 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10489 (grub_btrfs_lzo_decompress): New function.
10490 (grub_btrfs_extent_read): Add support for LZO compression type.
10491 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10492 (GRUB_USHRT_MAX): Likewise.
10493 (GRUB_UINT_MAX): Likewise.
10494 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10495 (UINT_MAX): Likewise.
10496 (CHAR_BIT): Likewise.
10497 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10498 grub-core/lib/posix_wrap/limits.h
10499 (UCHAR_MAX): Likewise.
10500 * include/grub/file.h (grub_file_filter_id): New compression filter
10501 GRUB_FILE_FILTER_LZOPIO.
10502 * include/grub/file.h (grub_file_filter_id): Set
10503 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10504 * include/grub/types.h (grub_get_unaligned16): New function.
10505 (grub_get_unaligned32): Likewise.
10506 (grub_get_unaligned64): Likewise.
10507 * util/import_gcry.py (cryptolist): Add adler32.
10508
10509 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10510
10511 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10512 in perspective decreases the complexity of build system and fixes
10513 compilation right now.
10514
10515 2011-10-01 Ales Nesrsta <starous@volny.cz>
10516
10517 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10518 (fixed problem related to using UHCI with coreboot).
10519
10520 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10521
10522 * gentpl.py: Use Autogen macros so that the output template file
10523 (Makefile.tpl) size is reduced.
10524
10525 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10526
10527 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10528 extra_dist.
10529
10530 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10531
10532 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10533 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10534
10535 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10536
10537 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10538 _fullpath.
10539
10540 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10541
10542 Remove extra declaration of sleep for mingw32.
10543
10544 * util/misc.c (sleep) [__MINGW32__]: Removed.
10545 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10546
10547 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10548
10549 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10550 type and packname.
10551 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10552 Resurrected.
10553 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10554 (grub_netbsd_btinfo_bootwedge): New struct.
10555 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10556 New function.
10557 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10558
10559 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10560
10561 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10562 loader.
10563
10564 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10565
10566 Fix incorrect identifiers in bash-completion.
10567
10568 * util/bash-completion.d/grub-completion.bash.in
10569 (_grub_mkpasswd-pbkdf2): Rename to ...
10570 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10571 (_grub_script-check): Rename to ...
10572 (_grub_script_check): ... this. All users updated.
10573
10574 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10575
10576 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10577 Return 0 if disk isn't biosdisk.
10578
10579 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10580
10581 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10582 on NetBSD.
10583 * Makefile.util.def (grub-fstest): Likewise.
10584
10585 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10586
10587 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10588 Get sector size from disk label.
10589
10590 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10591
10592 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10593 */README* as well as README*.
10594 Reported by: Axel Beckert.
10595
10596 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10599 case of less than 256 MiB of RAM.
10600
10601 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10602
10603 * grub-core/commands/wildcard.c (make_regex): Handle @.
10604
10605 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10606
10607 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10608
10609 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10610
10611 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10612 AC_LANG_CONFTEST macros.
10613
10614 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10615
10616 Add grub-fstest option to uncompress data for commands.
10617
10618 * util/grub-fstest.c (uncompress): New var.
10619 (options): New option -u.
10620
10621 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10622
10623 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10624 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10625
10626 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10627
10628 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10629 file type was not recognized correctly (not gzip or corrupted).
10630
10631 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10632
10633 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10634 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10635
10636 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10637
10638 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10639 loongson.
10640 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10641 video_radeon_fuloong2e.
10642 * grub-core/video/radeon_fuloong2e.c: New file.
10643 * include/grub/video.h (grub_video_id_t): Add new ID
10644 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10645
10646 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10647
10648 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10649 define.
10650 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10651 that PRID matches the detected subplatform and reset the subplatform
10652 if it doesn't.
10653
10654 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10657
10658 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10659
10660 Fix PCI iterating on functions >= 4.
10661
10662 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10663 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10664 Removed.
10665 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10666 (grub_pci_read): Fix bitmask.
10667 (grub_pci_read_word): Likewise.
10668 (grub_pci_read_byte): Likewise.
10669 (grub_pci_write): Likewise.
10670 (grub_pci_write_word): Likewise.
10671 (grub_pci_write_byte): Likewise.
10672
10673 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10676 can still be specified in TARGET_CFLAGS)
10677
10678 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10679
10680 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10681
10682 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10683 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10684 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10685 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10686 (FULOONG): Rename to ...
10687 (FULOONG2F): ... this. All users updated.
10688 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10689 (machtype_fuloong2f_str): ... this.
10690 (machtype_fuloong2e_str): New string.
10691 Check for machtype_fuloong2e_str.
10692 * grub-core/loader/mips/linux.c (loongson_machtypes)
10693 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10694 * grub-core/term/serial.c (loongson_defserial)
10695 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10696 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10697 loongson_defserial.
10698 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10699 Rename to ...
10700 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10701 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10702 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10703 to IMAGE_FULOONG2F_FLASH. All users updated.
10704 (image_targets): Rename images.
10705 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10706
10707 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10708
10709 Make enable of disk cache statistics code configurable.
10710
10711 * configure.ac: --enable-cache-stats added.
10712 * config.h.in (DISK_CACHE_STATS): New define.
10713 * grub-core/Makefile.core.def (cacheinfo): New command.
10714 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10715 * grub-core/commands/cacheinfo.c: New file.
10716 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10717 moved to cacheinfo.c.
10718 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10719 debug code.
10720 * include/grub/disk.h: Likewise.
10721
10722 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10723
10724 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10725 * grub-core/Makefile.am: Likewise.
10726
10727 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10728
10729 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10730 non-zero pull.
10731
10732 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10733
10734 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10735 All users updated.
10736 (grub_jfs_lookup_symlink): Use correct starting inode.
10737
10738 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10739
10740 * util/grub-setup.c (main): Add missing gcry initialisation.
10741
10742 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 Don't accept text modes on EFI when booting Linux.
10745
10746 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10747 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10748
10749 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10750 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10751
10752 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10753 use of "/path/.." as in grub-install for EFI as well as handling
10754 symlinks correctly.
10755 Fixes Debian bug #637768.
10756
10757 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
10758
10759 * util/grub-probe.c: Remove duplicate #include.
10760
10761 2011-08-10 Robert Millan <rmh@gnu.org>
10762
10763 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10764
10765 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10766 function.
10767 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10768 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10769
10770 2011-08-03 Robert Millan <rmh@gnu.org>
10771
10772 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10773 la_array as packed.
10774 Reported by: Zachary Bedell
10775
10776 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10777
10778 * configure.ac: The Loongson port requires grub-mkfont due to its
10779 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10780 be built.
10781
10782 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
10783
10784 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10785 processing arguments (otherwise help2man fails when GRUB has not yet
10786 been installed).
10787
10788 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 New script grub-mkstandalone.
10791
10792 * Makefile.util.def (grub-mkstandalone): New script.
10793 * docs/man/grub-mkstandalone.h2m: New file.
10794 * util/grub-mkstandalone.in: Likewise.
10795
10796 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 Support ATA disks with 4K sectors.
10799
10800 * include/grub/ata.h (grub_ata): New member log_sector_size.
10801 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10802 (grub_ata_identify): Read sector size.
10803 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10804
10805 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10806
10807 * util/grub-install.in: Don't use uhci outside of x86.
10808
10809 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10810
10811 * util/grub-mkrescue.in: Add missing quotes.
10812
10813 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10814
10815 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10816 dereference.
10817
10818 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10819
10820 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10821
10822 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10823
10824 * include/grub/video.h: add missing EXPORT_FUND on
10825 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10826
10827 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10828
10829 * include/grub/mips/kernel.h: Fix define conflict.
10830
10831 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10832
10833 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10834 all four ways.
10835
10836 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
10837
10838 Preferred resolution detection for VBE.
10839
10840 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10841 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10842 the Flat Panel extension, in line with the X.org VESA driver.
10843 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10844 New function.
10845 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10846 (grub_vbe_bios_read_edid): Likewise.
10847 (grub_vbe_get_preferred_mode): Likewise.
10848 (grub_video_vbe_setup): When the mode is "auto", try to get the
10849 preferred mode from VBE, and use the largest mode that is no larger
10850 than the preferred mode (some BIOSes expose a preferred mode that is
10851 not in their mode list!). If this fails, fall back to 640x480 as a
10852 safe conservative choice.
10853 (grub_video_vbe_get_edid): New function.
10854 (grub_video_vbe_adapter): Add get_edid.
10855 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10856 (struct grub_video_adapter): Add get_edid.
10857 (grub_video_edid_checksum): Add prototype.
10858 (grub_video_edid_preferred_mode): Likewise.
10859 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10860 structure.
10861
10862 * grub-core/commands/videoinfo.c (print_edid): New function.
10863 (grub_cmd_videoinfo): Print EDID if available.
10864
10865 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10866 is more appropriate on a wider range of platforms than 640x480.
10867 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10868 documentation.
10869
10870 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10873
10874 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10875
10876 * po/POTFILES.in: Regenerate.
10877
10878 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10879
10880 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10881 incorrect memory usage.
10882
10883 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10884
10885 * util/grub-install.in: Source grub-mkconfig_lib.
10886
10887 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10888
10889 Remove getroot.c from core on emu platform.
10890
10891 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10892 kern/emu/raid.c.
10893 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10894 useless.
10895 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10896 * util/getroot.c (get_win32_path): ... here.
10897 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10898 * util/getroot.c (fini_libzfs): ... here.
10899 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10900 * util/getroot.c (grub_get_libzfs_handle): ... here.
10901 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10902 Moved from here...
10903 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10904 * grub-core/kern/emu/misc.c
10905 (grub_make_system_path_relative_to_its_root): Moved from here...
10906 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10907 * grub-core/kern/emu/getroot.c: Moved from here ...
10908 * util/getroot.c: ... here. All users updated.
10909 * grub-core/kern/emu/raid.c: Moved from here ...
10910 * util/raid.c: ... here. All users updated.
10911
10912 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10913
10914 * po/POTFILES.in: Regenerate.
10915
10916 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10917
10918 Fix compilation on GNU/Linux.
10919
10920 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10921 Disable geli.
10922 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10923 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10924 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10925
10926 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10927 2011-07-07 Michael Gorven <michael@gorven.za.net>
10928 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10929
10930 LUKS and GELI support.
10931
10932 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10933 grub-core/disk/luks.c, grub-core/disk/geli.c,
10934 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10935 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10936 grub-core/lib/arg.c.
10937 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10938 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10939 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10940 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10941 (grub-bin2h): Add libgcry.a.
10942 (grub-mkimage): Likewise.
10943 (grub-mkrelpath): Likewise.
10944 (grub-script-check): Likewise.
10945 (grub-editenv): Likewise.
10946 (grub-mkpasswd-pbkdf2): Likewise.
10947 (grub-pe2elf): Likewise.
10948 (grub-fstest): Likewise.
10949 (grub-mkfont): Likewise.
10950 (grub-mkdevicemap): Likewise.
10951 (grub-probe): Likewise.
10952 (grub-ofpath): Likewise.
10953 (grub-mklayout): Likewise.
10954 (example_unit_test): Likewise.
10955 (grub-menulst2cfg): Likewise.
10956 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10957 * grub-core/Makefile.core.def (cryptodisk): New module.
10958 (luks): Likewise.
10959 (geli): Likewise.
10960 * grub-core/disk/AFSplitter.c: New file.
10961 * grub-core/disk/cryptodisk.c: Likewise.
10962 * grub-core/disk/geli.c: Likewise.
10963 * grub-core/disk/luks.c: Likewise.
10964 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10965 grub_util_is_lvm.
10966 (grub_util_get_dm_abstraction): New function.
10967 (grub_util_follow_gpart_up): Likewise.
10968 (grub_util_get_geom_abstraction): Likewise.
10969 (grub_util_get_dev_abstraction): Use new functions.
10970 (grub_util_pull_device): Pull GELI and LUKS.
10971 (grub_util_get_grub_dev): Handle LUKS and GELI.
10972 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10973 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10974 (follow_geom_up): Removed.
10975 (grub_util_fd_seek): New function.
10976 (open_device): Use grub_util_fd_seek.
10977 (nread): Rename to ..
10978 (grub_util_fd_read): ... this. All users updated.
10979 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10980 (grub_crypto_cbc_decrypt): Likewise.
10981 (grub_crypto_hmac_write): Likewise.
10982 (grub_crypto_hmac_buffer): Likewise.
10983 (grub_password_get): Extend to util.
10984 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10985 New member modname.
10986 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10987 * include/grub/cryptodisk.h: New file.
10988 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10989 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10990 LUKS and GELI.
10991 (grub_util_follow_gpart_up): New proto.
10992 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10993 (grub_util_fd_read): Likewise.
10994 (grub_cryptodisk_cheat_mount): Likewise.
10995 (grub_util_cryptodisk_print_uuid): Likewise.
10996 (grub_util_get_fd_sectors): Likewise.
10997 * util/grub-fstest.c (mount_crypt): New var.
10998 (fstest): Mount crypto if requested.
10999 (options): New option -C.
11000 (argp_parser): Parse -C.
11001 (main): Init and fini gcry.
11002 * util/grub-install.in: Support cryptodisk install.
11003 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11004 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11005 cryptodisk.
11006 (prepare_grub_to_access_device): Likewise.
11007 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11008 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11009 (probe_cryptodisk_uuid): New function.
11010 (probe_abstraction): Likewise.
11011 (probe): Use new functions.
11012 * util/import_gcry.py: Create Makefile.utilgcry.def.
11013 Add modname member.
11014
11015 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 Lazy device scanning.
11018
11019 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11020 (grub-setup): Remove util/raid.c.
11021 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11022 * grub-core/disk/lvm.c (scan_depth): New variable.
11023 (grub_lvm_iterate): Rescan if necessary.
11024 (find_lv): New function based on grub_lvm_open.
11025 (grub_lvm_open): Use find_lv. Rescan on error.
11026 (is_node_readable): New function.
11027 (is_lv_readable): Likewise.
11028 (grub_lvm_scan_device): Skip already found disks.
11029 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11030 Stop if searched device is found and readable.
11031 * grub-core/disk/raid.c (inscnt): New variable.
11032 (scan_depth): Likewise.
11033 (scan_devices): New function based on grub_raid_register. Abort if
11034 looked for device is found.
11035 (grub_raid_iterate): Rescan if needed.
11036 (find_array): NEw function based on -grub_raid_open.
11037 (grub_raid_open): Use find_array and rescan.
11038 (insert_array): Set became_readable_at.
11039 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11040 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11041 New function.
11042 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11043 (grub_util_pull_device): New function.
11044 (grub_util_get_grub_dev): Call grub_util_pull_device.
11045 * util/raid.c: Moved to ..
11046 * grub-core/kern/emu/raid.c: ... here.
11047 (grub_util_raid_getmembers): New parameter "bootable".
11048 All users updated. Support 1.x.
11049 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11050 All users updated.
11051 * include/grub/disk.h (grub_disk_pull_t): New enum.
11052 (grub_disk_dev): Change iterate prototype.
11053 All users updated.
11054 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11055 New proto.
11056 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11057 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11058 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11059 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11060 All users updated.
11061 * include/grub/util/raid.h: Removed.
11062
11063 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11064
11065 * po/POTFILES.in: Regenerate.
11066
11067 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11068
11069 Unify sparc init with other ieee1275.
11070
11071 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11072 instead of kern/sparc64/ieee1275/init.c.
11073 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11074 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11075 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11076 grub/machine/kernel.h.
11077 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11078 (grub_claim_heap) [__sparc__]: Use sparc version.
11079 (grub_machine_init): Moved args parsing to
11080 (grub_parse_cmdline): ...this.
11081 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11082 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11083 New definition.
11084 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11085
11086 Move BOOTP to separate file.
11087
11088 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11089 * grub-core/net/net.c: Move all BOOTP functions to
11090 * grub-core/net/bootp.c: ... here.
11091
11092 Use frame interface on PXE.
11093
11094 * grub-core/Makefile.core.def (pxecmd): Removed.
11095 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11096 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11097 * grub-core/i386/pc/pxe.c: Moved from here ...
11098 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11099 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11100 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11101
11102 EFI network support.
11103
11104 * grub-core/Makefile.core.def (efinet): New module.
11105 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11106 here...
11107 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11108 All users updated.
11109 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11110 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11111 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11112 * grub-core/net/drivers/efi/efinet.c: New file.
11113 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11114 (grub_efi_net_config): New extern var.
11115
11116 Various cleanups and bugfixes.
11117
11118 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11119 error.
11120 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11121 disk declared as partition.
11122 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11123 leak on failure.
11124 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11125 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11126 (grub_debug_zalloc): Likewise.
11127 (grub_debug_realloc): Likewise.
11128 (grub_debug_memalign): Likewise.
11129 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11130 Check that target is IPv4.
11131 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11132 local-mac-address as fallback.
11133 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11134 memory leak.
11135 * grub-core/net/ip.c (ipchksum): Rename to ...
11136 (grub_net_ip_chksum): ... this. All users updated.
11137 (grub_net_recv_ip_packets): Special handling for DHCP.
11138 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11139
11140 Unify prefix handling
11141
11142 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11143 (grub_machine_get_bootlocation): ... this.
11144 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11145 (grub_machine_get_bootlocation): ... this.
11146 (grub_prefix): New variable.
11147 (prefix): Removed.
11148 (root_dev): New variable.
11149 (dir): Likewise.
11150 (main): Use new variables.
11151 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11152 Revamped into ...
11153 (grub_machine_get_bootlocation): ... this.
11154 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11155 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11156 (grub_machine_get_bootlocation): ... this.
11157 (grub_machine_set_prefix): Removed.
11158 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11159 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11160 Revamped into ...
11161 (grub_machine_get_bootlocation): ... this.
11162 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11163 (grub_set_prefix_and_root): ... this. All users updated.
11164 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11165 Revamped into ...
11166 (grub_machine_get_bootlocation): ... this.
11167 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11168 (grub_machine_get_bootlocation): New proto.
11169 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11170
11171 Less intrusive and more reliable seek on network implementation.
11172
11173 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11174 (grub_file_seek): Don't call grub_file_net_seek.
11175 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11176 (grub_net_fs_read_real): .. this.
11177 (grub_net_seek_real): Use net->offset.
11178 (grub_net_fs_read): Seek if necessary.
11179
11180 Unify IEEE1275 netwotk config with the other platforms.
11181
11182 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11183 New variable.
11184 (grub_machine_get_bootlocation): Support network.
11185 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11186 Support type and device parsing.
11187 (grub_ieee1275_get_device_type): New function.
11188 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11189 into ...
11190 (grub_ieee1275_net_config_real): ... this.
11191 (grub_ofnet_probecards): Removed.
11192 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11193 * include/grub/ieee1275/ofnet.h: Removed.
11194 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11195 extern var.
11196 (grub_ieee1275_get_device_type): New function.
11197
11198 Unify network device closing across platforms and make more robust.
11199
11200 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11201 grub_grubnet_fini.
11202 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11203 already.
11204 * grub-core/net/net.c (grub_net_network_level_interface_register):
11205 Update num_ifaces.
11206 (grub_net_card_unregister): Close all interfaces.
11207 (receive_packets): Don't poll if no iterfaces are registered.
11208 Open if necessary.
11209 (grub_net_fini_hw): New function.
11210 (grub_net_restore_hw): Likewise.
11211 (fini_hnd): New variable.
11212 (GRUB_MOD_INIT): Register preboot hook.
11213 (GRUB_MOD_FINI): Run and unregister preboot hook.
11214
11215 Poll network cards when idle.
11216
11217 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11218 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11219 * grub-core/net/net.c (receive_packets): Save last poll time.
11220 (grub_net_poll_cards_idle_real): New function.
11221 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11222 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11223 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11224
11225 Rename ofnet interfaces.
11226
11227 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11228 (grub_ofnet_findcards): Use ofnet_%s names.
11229
11230 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11231
11232 Cleanup socket opening.
11233
11234 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11235 (grub_net_fs_close): Likewise.
11236 (grub_net_fs_read_real): Use eof member.
11237 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11238 (+grub_net_udp_close): New inline function.
11239
11240 * include/grub/net/tftp.h: Moved to the top of ...
11241 * grub-core/net/tftp.c: ... here.
11242 * include/grub/net/ip.h: Moved mostly to the top of ...
11243 * grub-core/net/ip.c: ... here.
11244 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11245 * grub-core/net/ethernet.c: ... here.
11246
11247 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11248
11249 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11250 FS name.
11251
11252 * include/grub/net/ip.h (ipv4_ini): Removed.
11253 (ipv4_fini): Likewise.
11254
11255 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11256 (grub_net_send_ip_packets): Likewise.
11257
11258 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11259
11260 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11261 grub_read_cmos prototype.
11262
11263 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11264
11265 VGA text support in qemu-mips
11266
11267 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11268 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11269 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11270 text.
11271 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11272 * grub-core/kern/vga_init.c: ... this.
11273 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11274 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11275 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11276 Adjust.
11277 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11278 GRUB_MACHINE_PCI_IO_BASE.
11279
11280 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 MIPS qemu flash support.
11283
11284 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11285 magic.
11286 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11287 (grub_machine_init): Probe memory if its size isn't known.
11288 * util/grub-mkimage.c (image_targets): Add flash targets.
11289 (generate_image): Handle flash targets.
11290
11291 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11292
11293 MIPS qemu at_keyboard support.
11294
11295 * gentpl.py (videoinkernel): Add qemu-mips.
11296 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11297 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11298 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11299 modules.
11300 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11301 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11302 * grub-core/term/serial.c (grub_serial_register)
11303 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11304
11305 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11306
11307 CMOS support on sparc.
11308
11309 * gentpl.py (cmos): Add powerpc and sparc.
11310 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11311 powerpc and sparc.
11312 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11313 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11314 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11315 grub_set_datetime_cmos.
11316 * grub-core/lib/ieee1275/cmos.c: New file.
11317 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11318 (find_rtc): Set no_ieee1275_rtc on error.
11319 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11320 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11321 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11322 fail. Move value to argument. All users updated
11323 (grub_cmos_write): Likewise.
11324 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11325 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11326 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11327 grub_get_datetime_cmos and grub_set_datetime_cmos.
11328
11329 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11330
11331 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11332 sourcing grub-mkconfig_lib.
11333 * util/update-grub_lib.in: Likewise.
11334 * util/grub.d/00_header.in: Likewise.
11335 * util/grub.d/10_hurd.in: Likewise.
11336 * util/grub.d/10_kfreebsd.in: Likewise.
11337 * util/grub.d/10_linux.in: Likewise.
11338 * util/grub.d/10_netbsd.in: Likewise.
11339 * util/grub.d/10_windows.in: Likewise.
11340 * util/grub.d/20_linux_xen.in: Likewise.
11341 * util/grub.d/30_os-prober.in: Likewise.
11342
11343 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11344
11345 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11346 default_bg_color rather than black.
11347 (grub_gfxterm_fullscreen): Likewise.
11348 (grub_gfxterm_background_color_cmd): Save new background color in
11349 default_bg_color.
11350
11351 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11352
11353 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11354
11355 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11356
11357 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11358 mismerge.
11359
11360 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11361
11362 Chainloading on coreboot support.
11363
11364 * grub-core/Makefile.core.def (chain): Add coreboot.
11365 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11366
11367 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11368
11369 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11370 if it happens.
11371
11372 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11373
11374 Implement time command.
11375
11376 * grub-core/Makefile.core.def (time): New module.
11377 * grub-core/commands/time.c: New file.
11378 * grub-core/script/parser.y: Remove "time" keyword.
11379 * grub-core/script/yylex.l: Likewise.
11380
11381 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11382
11383 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11384
11385 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11386
11387 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11388 when handling leftovers.
11389
11390 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11393 so that help2man doesn't fail.
11394
11395 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11398 type in pointers on sparc64.
11399 (get_card_packet): Likewise.
11400
11401 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11402
11403 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11404 with `*'.
11405 (grub_cmd_videoinfo): Fetch current video mode.
11406
11407 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11410 because of underlying system restrictions.
11411
11412 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11413
11414 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11415 necessary.
11416
11417 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11418
11419 Coreboot video support.
11420
11421 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11422 (vbe): Likewise.
11423 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11424 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11425 here ...
11426 * grub-core/kern/i386/int.S: ... here.
11427 * grub-core/video/i386/pc/vbe.c: Updated includes.
11428 * grub-core/video/i386/pc/vga.c: Likewise.
11429 * include/grub/i386/coreboot/memory.h
11430 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11431 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11432 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11433 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11434 Disable interrupts.
11435 * include/grub/i386/pc/vga.h: Removed. All users updated.
11436
11437 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11440 definitions for dprintf.
11441 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11442
11443 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11444
11445 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11446 prototype.
11447 (get_card_packet): Likewise.
11448
11449 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11450
11451 Display the path of the file when file is not found
11452
11453 * grub-core/fs/fat.c: Display the filename when file is not found.
11454 * grub-core/fs/fshelp.c: Likewise.
11455 * grub-core/fs/hfs.c: Likewise.
11456 * grub-core/fs/jfs.c: Likewise.
11457 * grub-core/fs/minix.c: Likewise.
11458 * grub-core/fs/ufs.c: Likewise.
11459 * grub-core/fs/btrfs.c: Likewise.
11460 * grub-core/commands/i386/pc/play.c: Likewise.
11461
11462 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11463
11464 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11465 pointer checks before calling grub_free().
11466 * grub-core/commands/wildcard.c (match_devices): Likewise.
11467 * grub-core/commands/wildcard.c (match_files): Likewise.
11468 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11469 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11470 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11471 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11472 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11473 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11474 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11475 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11476 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11477
11478 2011-06-25 Patrick <p55@mailinator.com>
11479
11480 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11481
11482 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11483
11484 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11485 (grub_pxe_send): Likewise.
11486 (GRUB_MOD_INIT): Fix types.
11487
11488 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11489
11490 * grub-core/io/xzio.c: Fix code style issues
11491
11492 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11493 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11494
11495 Network infrastructure.
11496 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11497
11498 * include/grub/net/arp.h: New file.
11499 * include/grub/net/device.h: Likewise.
11500 * include/grub/net/ethernet.h: Likewise.
11501 * include/grub/net/ip.h: Likewise.
11502 * include/grub/net/netbuff.h: Likewise.
11503 * include/grub/net/tftp.h: Likewise.
11504 * include/grub/net/udp.h: Likewise.
11505 * include/grub/ieee1275/ofnet.h: Likewise.
11506 * include/grub/emu/export.h: Likewise.
11507 * include/grub/net.h: Likewise.
11508 * grub-core/net/arp.c: Likewise.
11509 * grub-core/net/ethernet.c: Likewise.
11510 * grub-core/net/ip.c: Likewise.
11511 * grub-core/net/udp.c: Likewise.
11512 * grub-core/net/tftp.c: Likewise.
11513 * grub-core/net/netbuff.c: Likewise.
11514 * grub-core/net/net.c: Likewise.
11515 * grub-core/net/drivers/emu/emunet.c: Likewise.
11516 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11517 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11518 export.h.
11519 * grub-core/Makefile.core.def (net): New module.
11520 (tftp): Likewise.
11521 (ofnet): Likewise.
11522 (emunet): Likewise.
11523 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11524 network protocols.
11525 * grub-core/kern/device.c (grub_net_open) : New variable.
11526 (grub_device_open): Handle network device.
11527 (grub_device_close): Likewise.
11528 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11529 (grub_grubnet_fini): Likewise.
11530 (grub_file_seek): Seek in network device.
11531 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11532 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11533 network root.
11534 (grub_machine_fini): Call grub_grubnet_fini.
11535 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11536 network.
11537 (grub_ieee1275_get_aliasdevname): New function.
11538 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11539 Add unofficial Solaris network info.
11540 (grub_multiboot_make_mbi): Likewise.
11541 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11542 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11543 * include/grub/device.h (grub_fs): Removed.
11544 * include/grub/err.h (grub_err_t): Add network-related values.
11545 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11546 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11547 (grub_ieee1275_get_aliasdevname): New proto.
11548 * include/grub/net.h: Rewritten.
11549
11550 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11551
11552 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11553 names.
11554
11555 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11556
11557 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11558 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11559 it truncates the output.
11560 Reported by: Ximin Luo.
11561
11562 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11565
11566 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11567
11568 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11569 partmap before abstraction.
11570
11571 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11572
11573 * util/grub-mkconfig_lib.in: Add missing quotes.
11574
11575 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11576
11577 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11578 old method if mountinfo would return /dev/root and /dev/root doesn't
11579 exist.
11580
11581 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11582
11583 ZFS zlib support
11584
11585 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11586 (decomp_table): Add zlib entries.
11587 (zio_read): USe 8 bits for compression function rather than 3.
11588 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11589
11590 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11591
11592 * grub-core/disk/ahci.c: Add missing license statements.
11593 * grub-core/fs/romfs.c: Likewise.
11594 * grub-core/lib/ia64/setjmp.S: Likewise.
11595 * grub-core/loader/i386/pc/freedos.c: Likewise.
11596 * grub-core/loader/ia64/efi/linux.c: Likewise.
11597 * grub-core/video/colors.c: Likewise.
11598 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11599
11600 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11601
11602 AHCI support.
11603
11604 * grub-core/Makefile.core.def (ata_pthru): Removed.
11605 (ahci): New module.
11606 (pata): Likewise.
11607 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11608 on unload.
11609 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11610 readwrite.
11611 (grub_hdparm_do_check_powermode_cmd): Likewise.
11612 (grub_hdparm_do_smart_cmd): Likewise.
11613 (grub_hdparm_set_val_cmd): Likewise.
11614 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11615 * grub-core/disk/ahci.c: New file.
11616 * grub-core/disk/ata.c: Factor out the low-level part into ...
11617 * grub-core/disk/pata.c: ... here.
11618 * grub-core/disk/ata_pthru.c: Contents moved to ...
11619 * grub-core/disk/pata.c: ... here.
11620 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11621 (grub_scsi_iterate): Use grub_scsi_names.
11622 (grub_scsi_open): Likewise.
11623 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11624 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11625 (grub_ata_regs_t): New struct.
11626 (grub_disk_ata_pass_through_parms): Likewise.
11627 (grub_ata_device): Renamed to ...
11628 (grub_ata): ... this.
11629 (grub_ata_dev): New struct.
11630 Removed all low-level inline functions.
11631 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11632 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11633 iterate hooks and open. All users updated.
11634 * util/grub-install.in: Handle AHCI disk module.
11635
11636 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11637
11638 Add support for DRI and RSTn markers in JPEG files.
11639
11640 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11641 (JPEG_MARKER_RST0): Likewise.
11642 (JPEG_MARKER_RST1): Likewise.
11643 (JPEG_MARKER_RST2): Likewise.
11644 (JPEG_MARKER_RST3): Likewise.
11645 (JPEG_MARKER_RST4): Likewise.
11646 (JPEG_MARKER_RST5): Likewise.
11647 (JPEG_MARKER_RST6): Likewise.
11648 (JPEG_MARKER_RST7): Likewise.
11649 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11650 (grub_jpeg_decode_dri): New function.
11651 (grub_jpeg_decode_sos): Move image data related part into
11652 grub_jpeg_decode_data function.
11653 (grub_jpeg_decode_data): New function.
11654 (grub_jpeg_reset): New function.
11655 (grub_jpeg_decode_jpeg): Handle new markers.
11656
11657 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11658
11659 * util/ieee1275/ofpath.c (check_sas): Close fd.
11660 (main): Free of_path.
11661 Reported by: David Volgyes <dvolgyes>.
11662
11663 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11664
11665 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11666 Reported by: David Volgyes <dvolgyes>.
11667
11668 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11669
11670 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11671 file after stat.
11672 Reported by: David Volgyes <dvolgyes>.
11673
11674 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11675
11676 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11677
11678 Reported by: David Volgyes <dvolgyes>.
11679
11680 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11683 Prevent memory leak.
11684
11685 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11686
11687 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11688 (main): Close file.
11689 Reported by: David Volgyes <dvolgyes>.
11690
11691 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11692
11693 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11694 to continue if allocation is failed.
11695
11696 Reported by: David Volgyes <dvolgyes>.
11697
11698 2011-06-23 David Volgyes <dvolgyes>
11699
11700 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11701 dereference.
11702
11703 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11704
11705 Fix spurious warning.
11706
11707 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11708 (acorn_partition_map_find): Use .bin member.
11709
11710 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11713 /dev/root as a valid device.
11714
11715 2011-06-23 Jim Meyering <meyering@redhat.com>
11716
11717 Avoid NULL deref in grub_device_open.
11718
11719 * grub-core/kern/device.c (grub_device_open): Don't dereference
11720 a NULL pointer upon failed grub_env_get.
11721
11722 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11723
11724 Support non-512B sectors and agglomerate reads.
11725
11726 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11727 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11728 (disk_io_guid): Removed.
11729 (make_devices): Locate solely by BlockIO.
11730 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11731 (grub_efidisk_read): Use read_blocks.
11732 (grub_efidisk_write): Use write_blocks.
11733 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11734 log_sector_size.
11735 (get_safe_sectors): Handle non-512B sectors.
11736 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11737 sectors.
11738 (grub_biosdisk_write): Handle non-512B sectors.
11739 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11740 (grub_scsi_read): Remove special non-512B block handling (now handled
11741 one level up).
11742 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11743 and do sanity checks.
11744 (grub_disk_adjust_range): Handle non-512B sectors.
11745 (transform_sector): New function.
11746 (grub_disk_read_small): Likewise.
11747 (grub_disk_read): Rewritten.
11748 (grub_disk_write): Handle non-512B sectors.
11749 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11750 log_sector_size.
11751 (open_device): Use log_sector_size.
11752 (grub_util_biosdisk_read): Likewise.
11753 (grub_util_biosdisk_write): Likewise.
11754 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11755 non-512B sectors.
11756 (pc_partition_map_embed): Likewise.
11757 * include/grub/disk.h (grub_disk): New field log_sector_size.
11758 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11759 (GRUB_DISK_CACHE_BITS): Increased to 6.
11760 * util/grub-fstest.c (fstest): New command testload.
11761 (argp_parser): Likewise.
11762
11763 2011-06-16 Robert Millan <rmh@gnu.org>
11764
11765 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11766 `ata' driver on kernel of FreeBSD 9.
11767
11768 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11769 (get_ataraid_disk_name): New functions.
11770 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11771 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11772 get_ataraid_disk_name() and get_ada_disk_name().
11773
11774 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
11775
11776 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11777 input format.
11778
11779 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
11780
11781 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11782 `ftp.gnu.org' for `alpha.gnu.org'.
11783
11784 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11785
11786 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11787 partitions under /dev/disk/by-id/.
11788
11789 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
11790
11791 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11792 after ten consecutive open failures. Scanning all the way up to
11793 10000 is excessive and can cause serious performance problems in
11794 some configurations.
11795 Fixes Ubuntu bug #787461.
11796
11797 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11798
11799 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11800 opening new one.
11801
11802 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
11803 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11804
11805 Don't stat devices unless we have to.
11806
11807 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11808 dir == /dev/mapper.
11809 (grub_guess_root_device): Use already known os_dev if possible.
11810 * grub-core/kern/emu/hostdisk.c
11811 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11812 if device is known to be a dm one.
11813
11814 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
11815
11816 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11817 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11818 Reported by: Pawel Tecza.
11819
11820 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11821
11822 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11823 (lsefisystab): Likewise.
11824 (lssal): Likewise.
11825 (lsefimmap): Likewise.
11826 (hdparm): Enable on qemu-mips.
11827 (setjmp): Add ia64 nodist.
11828 (serial): Simplify tags.
11829
11830 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11831
11832 * Makefile.util.def (grub-ofpathname): Install manual page.
11833
11834 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11835
11836 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11837
11838 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11839
11840 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11841
11842 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11843
11844 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11845 into dprintf.
11846
11847 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 Use full 64-bit division.
11850
11851 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11852 (grub_divmod64): ... this.
11853 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11854 version.
11855
11856 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11857
11858 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11859 `source'.
11860
11861 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11862
11863 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11864 to avoid accidents when debugging with 'sh -x'.
11865 * grub-core/gensyminfo.sh.in: Likewise.
11866 * tests/example_scripted_test.in: Likewise.
11867 * tests/grub_cmd_regexp.in: Likewise.
11868 * tests/grub_script_blanklines.in: Likewise.
11869 * tests/grub_script_dollar.in: Likewise.
11870 * tests/grub_script_expansion.in: Likewise.
11871 * tests/grub_script_final_semicolon.in: Likewise.
11872 * tests/partmap_test.in: Likewise.
11873 * tests/util/grub-shell-tester.in: Likewise.
11874 * tests/util/grub-shell.in: Likewise.
11875
11876 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11877
11878 Move gfxmenu color handling to video, so that gfxterm can use it
11879 too.
11880
11881 * grub-core/gfxmenu/named_colors.c: Move to ...
11882 * grub-core/video/colors.c: ... here. Rename
11883 grub_gui_get_named_color to grub_video_get_named_color.
11884 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11885 * grub-core/video/colors.c (my_isxdigit): ... here.
11886 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11887 Move to ...
11888 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11889 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11890 to ...
11891 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11892
11893 * include/grub/gui.h (grub_gui_color_t): Move to ...
11894 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11895 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11896 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11897 * include/grub/gui.h (grub_gui_map_color): Move to ...
11898 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11899 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11900 to ...
11901 * include/grub/video.h (grub_video_get_named_color): ... here.
11902 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11903 * include/grub/video.h (grub_video_parse_color): ... here.
11904
11905 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11906 video/colors.c.
11907 (gfxmenu): Remove gfxmenu/named_colors.c.
11908 (video) [videomodules]: Add video/colors.c.
11909
11910 Add a background_color command.
11911
11912 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11913 function.
11914 (GRUB_MOD_INIT): Register background_color command.
11915 (GRUB_MOD_FINI): Unregister background_color command.
11916 (redraw_screen_rect): Allow blend/replace of text layer to be
11917 controlled independently from whether there is a background bitmap.
11918 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11919 changing bitmap.
11920
11921 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11922
11923 Patch BPB in ntldr and chainloader --bpb.
11924
11925 * grub-core/fs/fat.c: Include grub/fat.h.
11926 (grub_fat_bpb): Moved to ...
11927 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11928 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11929 grub/ntfs.h.
11930 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11931 Moved from here...
11932 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11933 here.
11934 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11935 New function.
11936 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11937 (GRUB_MOD_INIT): Show --bpb.
11938 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11939 * grub-core/normal/main.c (features): New variable.
11940 (GRUB_MOD_INIT): Set feature_* variables.
11941 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11942 proto.
11943 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11944
11945 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11946
11947 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11948 for cleanness.
11949
11950 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11951
11952 FreeDOS direct loading support.
11953
11954 * docs/grub.texi (Supported OS): Add FreeDOS.
11955 * grub-core/Makefile.core.def (freedos): New module.
11956 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11957 variable.
11958 (grub_relocator16_boot): Handle %ebx.
11959 * grub-core/lib/i386/relocator16.S: Likewise.
11960 * grub-core/loader/i386/pc/freedos.c: New file.
11961
11962 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11963
11964 Long Linux command line support.
11965
11966 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11967 (maximal_cmdline_size): New variable.
11968 (allocate_pages): Use maximal_cmdline_size.
11969 (grub_cmd_linux): Set and use maximal_cmdline_size.
11970 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11971 (allocate_pages): Use maximal_cmdline_size.
11972 (grub_cmd_linux): Set and use maximal_cmdline_size.
11973 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11974 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11975 and cmdline_size.
11976
11977 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11978 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
11979
11980 Improve devmapper support
11981
11982 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11983 (grub_util_is_lvm): New function.
11984 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11985 than lvm if not dmraid.
11986 Handle mapped md nodes.
11987 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11988 (grub_util_device_is_mapped): ... this. Make always available. All users
11989 updated.
11990 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11991 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11992 dmraid nodes.
11993 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11994
11995 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11996
11997 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11998
11999 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12000 * grub-core/modinfo.sh.in: New file.
12001 * grub-core/Makefile.core.def (modinfo.sh): New script.
12002 * util/grub-mknetdir.in: Use modinfo.sh.
12003 * util/grub-mkrescue.in: Likewise.
12004
12005 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12006
12007 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12008 Fix potential usage of Elf32 instead of Elf64 when compiling on
12009 32-bit architecture. Add endianness macros while on it.
12010
12011 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 Use mipsel- rather than mips- in directories involving mipsel ports to
12014 allow both endiannesses coexist.
12015
12016 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12017 mips. All conditions adjusted.
12018 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12019 variable.
12020 * util/grub-install.in: Adjust conditions to take renaming into account.
12021 * util/grub-mkimage.c (image_targets): Likewise. New target
12022 mips-qemu_mips-elf for bigendian mips.
12023
12024 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 Avoid unnecessary copying on MIPS.
12027
12028 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12029 early if src == dest.
12030 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12031 compression is none.
12032
12033 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12034
12035 Reduce memory footprint on SGI by putting modules before the kernel
12036 as opposed to after.
12037
12038 * grub-core/Makefile.core.def (kernel): Increase linking address.
12039 (none_decompress): Likewise.
12040 (xz_decompress): Likewise.
12041 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12042 address.
12043 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12044 layout change.
12045 (grub_arch_modules_addr): New function.
12046 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12047 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12048 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12049 here.
12050 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12051 (grub_total_modules_size): ... this. Make global.
12052 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12053 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12054 New definition.
12055 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12056 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12057 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12058 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12059 * util/grub-mkimage.c (image_target_desc): New flag
12060 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12061 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12062 (generate_image): Handle images with modules before kernel.
12063
12064 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12065
12066 Prevent potential loss of memory map by overwrite on qemu-mips.
12067
12068 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12069 Save ram size in $s4.
12070 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12071 All users changed to grub_arch_memsize.
12072 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12073 Loongson.
12074 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12075 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12076 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12077 external variable.
12078
12079 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12080
12081 * .bzrignore: Remove grub-dumpbios.
12082
12083 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12084
12085 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12086 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12087 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12088 existing options which append).
12089 * docs/grub.texi (Simple configuration): Document new options.
12090 Reported by: Ian Jackson. Fixes Debian bug #617538.
12091
12092 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12093
12094 * util/grub-fstest.c (cmd_cat): New function.
12095 (fstest): Handle CMD_CAT.
12096 (options): Add cat.
12097 (argp_parser): Handle cat.
12098
12099 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12100
12101 * Makefile.util.def (grub-bin2h): Don't install.
12102 * docs/man/grub-bin2h.h2m: Remove.
12103
12104 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12107 place.
12108
12109 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12110
12111 Reenable qemu-mips port.
12112
12113 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12114 Fix small arc bug while on it.
12115 * gentpl.py: Handle qemu_mips.
12116 * grub-core/Makefile.am: Likewise.
12117 * grub-core/Makefile.core.def: Likewise.
12118 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12119 inappropriate includes.
12120 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12121 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12122 * grub-core/kern/main.c (grub_modules_get_end)
12123 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12124 * grub-core/kern/mips/qemu-mips: Moved to ..
12125 * grub-core/kern/mips/qemu_mips: ... this.
12126 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12127 (grub_machine_init): Call terminfo_init and serial_init.
12128 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12129 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12130 New variable.
12131 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12132 parameter passing.
12133 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12134 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12135 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12136 * include/grub/mips/qemu_mips/cmos.h: New file.
12137 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12138 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12139 Removed.
12140 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12141 Use correct mips-style address.
12142 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12143 (GRUB_TICKS_PER_SECOND): Removed.
12144 (grub_get_rtc): Likewise.
12145 (grub_cpu_idle): Likewise.
12146 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12147 New definition.
12148 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12149 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12150 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12151 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12152 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12153 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12154 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12155 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12156
12157 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12158
12159 SGI ARCS port.
12160
12161 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12162 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12163 platforms.
12164 * configure.ac: New target mips-arc.
12165 * gentpl.py: Likewise.
12166 * grub-core/Makefile.am: Likewise.
12167 * grub-core/Makefile.core.def: Likewise.
12168 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12169 (none_decompress): Likewise.
12170 (lsdev): New module.
12171 (datetime): Use lib/arc/datetime.c on ARC.
12172 (part_dvh): New module.
12173 * grub-core/commands/arc/lsdev.c: New file.
12174 * grub-core/disk/arc/arcdisk.c: Likewise.
12175 * grub-core/kern/mips/arc/init.c: Likewise.
12176 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12177 aligned addresses.
12178 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12179 support.
12180 (grub_arch_dl_relocate_symbols): Likewise.
12181 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12182 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12183 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12184 platforms.
12185 * grub-core/lib/arc/datetime.c: New file.
12186 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12187 pci.h on non-loongson.
12188 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12189 (grub_linux_boot): Set unused registers to 0.
12190 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12191 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12192 * grub-core/mmap/mips/uppermem.c: ...here.
12193 * grub-core/partmap/dvh.c: New file.
12194 * grub-core/term/arc/console.c: Likewise.
12195 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12196 (grub_terminfo_set_current): Add terminal "arc".
12197 (grub_terminfo_readkey): Support ARC sequences.
12198 * include/grub/arc/arc.h: New file.
12199 * include/grub/arc/console.h: Likewise.
12200 * include/grub/disk.h (grub_disk_dev_id): Add
12201 GRUB_DISK_DEVICE_ARCDISK_ID.
12202 * include/grub/mips/arc/kernel.h: New file.
12203 * include/grub/mips/arc/memory.h: Likewise.
12204 * include/grub/mips/arc/time.h: Likewise.
12205 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12206 * include/grub/mips/kernel.h (grub_halt): ... here.
12207 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12208 here...
12209 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12210 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12211 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12212 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12213 proto.
12214 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12215 from here ...
12216 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12217 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12218 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12219 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12220 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12221 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12222 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12223 (grub_phys_addr_t): Moved from here ...
12224 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12225 (grub_vtop): Moved from here ...
12226 * include/grub/mips/memory.h (grub_vtop): ... here.
12227 (grub_map_memory): Moved from here ...
12228 * include/grub/mips/memory.h (grub_map_memory): ... here.
12229 (grub_unmap_memory): Moved from here ...
12230 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12231 (grub_machine_mmap_iterate): Moved from here ...
12232 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12233 (grub_mmap_get_lower): Moved from here ...
12234 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12235 (grub_mmap_get_upper): Moved from here ...
12236 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12237 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12238 here ...
12239 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12240 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12241 here ...
12242 * include/grub/mips/time.h (grub_get_rtc): ... here.
12243 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12244 here ...
12245 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12246 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12247 here ...
12248 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12249 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12250 definition.
12251 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12252 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12253 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12254 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12255 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12256 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12257 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12258 (GRUB_MACHINE_LINK_ADDR): Likewise.
12259 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12260 to 6.
12261 * util/grub-install.in: Run dvhtool on ARC.
12262 * util/grub-mkimage.c (image_targets): Add mips-arc.
12263 (generate_image): Handle ECOFF output for mips-arc.
12264
12265 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12266
12267 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12268 blocks.
12269
12270 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12271
12272 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12273 after enabling port.
12274
12275 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12276
12277 Skip incorrect USB devices.
12278
12279 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12280 configcnt == 0.
12281 * include/grub/usb.h (grub_usb_err_t): New enum value
12282 GRUB_USB_ERR_BADDEVICE.
12283
12284 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12285
12286 Fuloong video init support.
12287
12288 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12289 well.
12290 (grub_vga_read_arx): New function.
12291 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12292 definition.
12293 (framebuffer): New members io, mmioptr and mmiobase.
12294 (read_sis_cmd): New function.
12295 (write_sis_cmd): Likewise.
12296 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12297 rather than 640x400.
12298 * grub-core/video/sis315_init.c: New file.
12299
12300 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12303 non-loongson.
12304 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12305 to grub_dl_register_symbol.
12306
12307 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12308
12309 Fix compilation errors.
12310
12311 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12312 potentially unused.
12313 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12314 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12315 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12316 to loongson machines.
12317
12318 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12319
12320 Several FS mtime support.
12321
12322 * grub-core/fs/affs.c (grub_affs_time): New struct.
12323 (grub_affs_file): New field mtime.
12324 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12325 type. Removed 'size'. New field 'di'. All users updated.
12326 (grub_affs_mount): Simplify checsum checking.
12327 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12328 (grub_affs_dir): Handle mtime.
12329 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12330 (grub_cpio_dir): Likewise.
12331 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12332 (grub_hfs_filerec): New field mtime.
12333 (grub_hfs_dir): Handle mtime.
12334 (grub_hfs_mtime): New function.
12335 (grub_hfs_fs): Register grub_hfs_mtime.
12336 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12337 (grub_iso9660_dir): New field mtime.
12338 (grub_fshelp_node): New field dirent.
12339 (iso9660_to_unixtime): New function.
12340 (iso9660_to_unixtime2): Likewise.
12341 (grub_iso9660_read_symlink): Use node->dirent.
12342 (grub_iso9660_iterate_dir): Likewise.
12343 (grub_iso9660_dir): Set mtime.
12344 (grub_iso9660_mtime): New function.
12345 (grub_iso9660_fs): Register grub_iso9660_mtime.
12346 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12347 (grub_jfs_inode): New fields atime, ctime and mtime.
12348 (grub_jfs_dir): Set mtime.
12349 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12350 * grub-core/fs/ntfs.c (list_file): Set mtime.
12351 (grub_ntfs_dir): Likewise.
12352 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12353 (grub_reiserfs_iterate_dir): Set mtime.
12354 (grub_reiserfs_dir): Likewise.
12355 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12356 (grub_fshelp_node): Likewise.
12357 (grub_sfs_iterate_dir): Set mtime.
12358 (grub_sfs_dir): Likewise.
12359 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12360 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12361 (grub_xfs_inode): New fields atime, mtime, ctime.
12362 (grub_xfs_dir): Set mtime.
12363 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12364 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12365 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12366
12367 Support UDF symlinks.
12368
12369 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12370 (grub_ufs_read_symlink): New function. All users updated.
12371
12372 Check amiga partmap checksum.
12373
12374 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12375 (grub_amiga_partition): Likewise.
12376 (amiga_partition_map_checksum): New function.
12377 (amiga_partition_map_iterate): Check checksum.
12378
12379 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12380
12381 ROMFS support.
12382
12383 * Makefile.util.def (libgrubmods.a): Add romfs.
12384 * grub-core/Makefile.core.def (romfs): New module.
12385 * grub-core/fs/romfs.c: New file.
12386
12387 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12388
12389 Squashfs v4 support.
12390
12391 * Makefile.util.def (libgrubmods.a): Add squash4.
12392 * grub-core/Makefile.core.def (squash4): New module.
12393 * grub-core/fs/squash4.c: New file.
12394 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12395 disk_input_start, disk_input.
12396 (get_byte): Handle disk_input.
12397 (grub_zlib_disk_read): New function.
12398 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12399
12400 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12401 2011-05-15 Feiran Zheng <famcool@gmail.com>
12402
12403 * Makefile.util.def (libgrubmods.a): Add minix3.
12404 * grub-core/Makefile.core.def (minix3): New module.
12405 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12406 (GRUB_MINIX_BSIZE): Removed.
12407 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12408 (grub_minix_ino_t): New type.
12409 (grub_minix_le_to_cpu_ino): New macro.
12410 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12411 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12412 (grub_minix_data): New field block_size.
12413 (grub_minix_read_file): Handle 64-bit correctly.
12414 * grub-core/fs/minix3.c: New file.
12415
12416 2011-05-15 Tristan Gingold <gingold@free.fr>
12417 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12418 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12419
12420 IA64 support.
12421
12422 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12423 * configure.ac: Add ia64-efi target.
12424 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12425 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12426 * gentpl.py: Add ia64_efi platform.
12427 Rename x86_efi to efi and Add ia64-efi. All users updated.
12428 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12429 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12430 Remove kern/generic/rtc_get_time_ms.c on EFI.
12431 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12432 kern/ia64/dl_helper.c on ia64-efi.
12433 Add kern/emu/cache.c on emu.
12434 (linux): Use on loader/ia64/efi/linux.c on ia64.
12435 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12436 whether symbol is a function.
12437 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12438 (grub_symbol): New field 'isfunc'.
12439 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12440 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12441 (grub_dl_load_segments): Place all sections into the same region.
12442 [__ia64__]: Create trampolines and got.
12443 [GRUB_MACHINE_EMU]: Call mprotect.
12444 (grub_dl_resolve_symbols): Resolve symbol type as well.
12445 [__ia64__]: Create function descriptors.
12446 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12447 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12448 (grub_get_rtc): New function.
12449 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12450 * grub-core/kern/emu/cache.S: Renamed to ...
12451 * grub-core/kern/emu/cache_s.S: ... this.
12452 [__ia64__]: Add a nop.
12453 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12454 [__ia64__]: New function.
12455 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12456 * grub-core/kern/ia64/dl.c: New file.
12457 * grub-core/kern/ia64/dl_helper.c: Likewise.
12458 * grub-core/kern/ia64/efi/init.c: New file.
12459 * grub-core/kern/ia64/efi/startup.S: Likewise.
12460 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12461 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12462 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12463 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12464 * grub-core/loader/ia64/efi/linux.c: New file.
12465 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12466 (GRUB_MOD_DEP): Likewise.
12467 (grub_dl) [__ia64__]: New fields got and tramp.
12468 (grub_dl): New field 'base'.
12469 (grub_dl_register_symbol): New argument isfunc. All users updated.
12470 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12471 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12472 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12473 (grub_ia64_dl_get_tramp_got_size): New proto.
12474 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12475 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12476 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12477 * include/grub/efi/api.h: Skip call wrappers on ia64.
12478 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12479 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12480 * include/grub/elf.h (ELF_ST_INFO): New definition.
12481 * include/grub/ia64/efi/kernel.h: New file.
12482 * include/grub/ia64/efi/memory.h: Likewise.
12483 * include/grub/ia64/efi/time.h: Likewise.
12484 * include/grub/ia64/kernel.h: Likewise.
12485 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12486 * include/grub/ia64/time.h: New file.
12487 * include/grub/ia64/types.h: Likewise.
12488 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12489 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12490 New protos.
12491 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12492 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12493 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12494 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12495 All users updated.
12496 (EFI64_HEADER_SIZE): New definition. All users updated.
12497 (image_targets): Add ia64-efi.
12498 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12499 jumpers_addr. All users updated.
12500 Create function descriptors.
12501 (count_funcs): New function.
12502 (unaligned_uint32): New struct.
12503 (MASK20): New definition.
12504 (MASK19): Likewise.
12505 (MASKF21): Likewise.
12506 (add_value_to_slot_20b): New function.
12507 (add_value_to_slot_21_real): Likewise.
12508 (add_value_to_slot_21): Likewise.
12509 (ia64_kernel_trampoline): New struct.
12510 (nopm): New variable.
12511 (jump): Likewise.
12512 (make_trampoline): New function.
12513 (relocate_addresses): Handle ia64.
12514 (make_reloc_section): Likewise.
12515 (load_image): Likewise.
12516
12517 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12518
12519 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12520 warning. Move variables before code while on it.
12521
12522 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12523
12524 Fuloong support.
12525
12526 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12527 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12528 * grub-core/boot/mips/loongson/fuloong.S: New file.
12529 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12530 Explicitly init CS5536.
12531 [FULOONG]: Don't use serial until CS5536 is available.
12532 Set GPIO based on dumps.
12533 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12534 [FULOONG]: Handle GPIO and memory controller differences.
12535 Parse machine type in $a2.
12536 * grub-core/boot/mips/startup_raw.S: Determine and save the
12537 architecture.
12538 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12539 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12540 init on architecture type.
12541 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12542 SIS315E. Don't init at_keyboard on fuloong.
12543 (grub_halt): Support Fuloong.
12544 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12545 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12546 (loongson_machtypes): New array.
12547 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12548 type.
12549 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12550 config. All users updated. Handle CS5536 serial.
12551 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12552 default port on machine type. Register serial as inactive.
12553 * grub-core/video/sis315pro.c: New file.
12554 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12555 definition.
12556 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12557 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12558 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12559 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12560 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12561 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12562 to ...
12563 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12564 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12565 definition.
12566 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12567 (grub_arch_machine): New extern var.
12568 * include/grub/mips/loongson/serial.h
12569 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12570 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12571 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12572 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12573 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12574 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12575 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12576 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12577 * include/grub/term.h (grub_term_register_input_inactive): New inline
12578 function.
12579 (grub_term_register_output_inactive): Likewise.
12580 * include/grub/video.h (grub_video_driver_id): New value
12581 GRUB_VIDEO_DRIVER_SIS315PRO.
12582 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12583 New field "names". All users updated.
12584 New field value IMAGE_FULOONG_FLASH.
12585 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12586
12587 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12588
12589 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12590 and add some clarification.
12591
12592 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12593
12594 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12595 platforms if kernel is compressed.
12596
12597 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12598
12599 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12600 unused modules since currently referrence counter isn't reliable and
12601 there isn't much memory to recover there anyway.
12602
12603 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12604
12605 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12606 rather than resetting it to allow modules to reference themselves
12607 in init.
12608
12609 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12610
12611 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12612 counter on dependencies since grub_dl_unref already handles this.
12613
12614 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12615
12616 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12617 on error if not already done.
12618
12619 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12620
12621 Fix few potential memory misusage.
12622
12623 * grub-core/font/font.c (load_font_index): Don't free char_index to
12624 avoid double free.
12625 (grub_font_load): Zero-fill font at alloc for safety.
12626 Close file on error.
12627 (free_font): Free bmp_idx.
12628
12629 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12630
12631 * docs/grub.texi (Installation): Fix several outdated claims.
12632
12633 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12634
12635 Handle module_license on windows.
12636
12637 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12638 sections shifted.
12639 (insert_string): Make argument const char * instead of char *.
12640 (write_section_data): Handle long section names.
12641 Handle module_license.
12642
12643 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12644
12645 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12646 handle class-free menuentries.
12647 (grub_normal_add_menu_entry): Add a check to be sure.
12648
12649 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12650
12651 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12652 PgUp and PgDown.
12653
12654 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12655
12656 * configure.ac: Bump version to 1.99.
12657
12658 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 Give ATA device a bit more time on first try in order to allow disks
12661 to spin up.
12662
12663 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12664 if dev->present is 1. Reset dev->present on failure.
12665 (grub_ata_device_initialize): Set dev->present to 1.
12666 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12667 (grub_ata_device): New member 'present'.
12668
12669 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12670
12671 * util/grub-mkimage.c (generate_image): Update hash.
12672
12673 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12674
12675 Flush caches on DMA memory.
12676
12677 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12678 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12679 (grub_dma_free): Likewise.
12680 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12681
12682 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12683
12684 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12685 to avoid asm treating ld and sd as macros.
12686
12687 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12688
12689 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12690 decompressor.
12691
12692 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12693
12694 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12695 grub_decompress_core since later would fail if grub_decompress_core
12696 is too far.
12697
12698 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12699
12700 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12701 R_MIPS_JALR since it's used by newer compiler.
12702
12703 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12706
12707 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12708
12709 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12710 file_path to 0 for surety.
12711 (grub_chainloader_boot): Set exit_data to NULL.
12712 Unset the loader once done.
12713 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12714
12715 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12716
12717 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12718 unknown key into a dprintf.
12719
12720 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12721
12722 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12723 on first non-existant partition.
12724
12725 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12726
12727 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12728 openning fails.
12729 Reported by: Mark Korenberg.
12730
12731 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12732
12733 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12734 overflow.
12735
12736 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12737
12738 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12739 before closing to ensure that it will be readable by grub-setup.
12740
12741 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12742
12743 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12744 (devpath_1): Use MAKE_PIWG_PATH.
12745 (devpath_2): Likewise.
12746 (devpath_3): Likewise.
12747 (devpath_4): Likewise.
12748 (devpath_5): Likewise.
12749 (devpath_6): Likewise.
12750
12751 The appleldr.mod was checked that to be binary identical to previous
12752 version.
12753
12754 2011-05-05 Zach <mikezackles>
12755
12756 Support 2010 Macbooks.
12757
12758 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12759 (devs): Add devpath_6.
12760
12761 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12762
12763 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12764 /dev/random. /dev/urandom is good enough for our purposes (salting).
12765
12766 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12767
12768 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12769
12770 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12771
12772 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12773 hexadecimal.
12774
12775 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12776
12777 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12778 and not 0 on failure.
12779
12780 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12781
12782 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12783 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12784 disk; otherwise grub_fs_probe will not fall back to the next
12785 filesystem.
12786 (grub_pxefs_open): Likewise, for consistency.
12787 Reported and tested by: Ezekiel Grave.
12788
12789 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
12790
12791 * tests/partmap_test.in: Don't hardcode path to parted.
12792 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12793
12794 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
12795
12796 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12797 of `ls' to find out which devices are available.
12798
12799 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12800
12801 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12802 than source address for efi mmap buffer.
12803
12804 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12805
12806 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12807 wrong action on non-detecting the magic.
12808
12809 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12810
12811 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12812 already supplied by another part of the module (fixes compilation on
12813 FreeBSD).
12814
12815 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12816
12817 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12818 match the one used by mdadm.
12819
12820 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12821
12822 * po/README: Add instructions for creating po/LINGUAS.
12823
12824 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12825
12826 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12827 #551428.
12828
12829 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12830 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12831 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12832 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12833 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12834 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12835 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12836 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12837 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12838 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12839 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12840 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12841 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12842 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12843 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12844 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12845 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12846 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12847 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12848 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12849 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12850 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12851
12852 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12853
12854 * grub-core/kern/emu/getroot.c
12855 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12856 test that was incorrectly reintroduced in r3214.
12857 Reported by: Ian Dall. Fixes Savannah bug #33133.
12858
12859 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
12860
12861 Fix stack pointer handling in 16-bit relocator.
12862
12863 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12864 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12865 Fixes Ubuntu bug #683904.
12866
12867 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12868
12869 * configure.ac: Bump version to 1.99~rc2.
12870
12871 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12872
12873 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12874 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12875 * grub-core/lib/x86_64/setjmp.S: Likewise.
12876 * grub-core/lib/mips/setjmp.S: Likewise.
12877 * grub-core/lib/powerpc/setjmp.S: Likewise.
12878 * grub-core/lib/sparc64/setjmp.S: Likewise.
12879
12880 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12883 * grub-core/lib/efi/datetime.c: Likewise.
12884
12885 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12888 New function.
12889 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12890 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12891 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12892
12893 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12894
12895 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12896 bitmap.
12897 (grub_gfxterm_term_init): Likewise.
12898
12899 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12900
12901 Take into account the decorations the computing menu entry width.
12902
12903 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12904 (grub_gfxmenu_create_box): Register get_border_width.
12905 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12906 if available.
12907 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12908 get_border_width.
12909
12910 2011-04-18 Endres Puschner <code@e7p.de>
12911
12912 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12913 Don't skip first class.
12914
12915 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12918 chunks.
12919 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12920
12921 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12922
12923 Complete 64-bit division support.
12924
12925 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12926 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12927 * include/grub/misc.h (grub_divmod64): Rename to ...
12928 (grub_divmod64_full): ... this.
12929 (grub_divmod64): New inline function.
12930
12931 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12932
12933 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12934
12935 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12936
12937 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12938 performing the necessary test.
12939
12940 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12941
12942 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12943 (kfreebsd.elf): Likewise.
12944 (pc-chainloader.elf): Likewise.
12945 (ntldr.elf): Likewise.
12946
12947 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12948
12949 Identify RAID by its UUID rather than (guessed) name.
12950
12951 * grub-core/disk/raid.c (ascii2hex): New function.
12952 (grub_raid_open): Accept mduuid/%s specification.
12953 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12954 (get_mdadm_uuid): ... this.
12955 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12956
12957 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12958
12959 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12960 to negative size.
12961
12962 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12963
12964 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12965 btrfs subvolume.
12966 * util/grub.d/20_linux_xen.in: Likewise.
12967
12968 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
12969
12970 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12971 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12972
12973 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12974 Build a list of relevant visible mounts using the mnt_id and
12975 parent_mnt_id fields, and then scan that list at the end.
12976
12977 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12978
12979 * docs/grub.texi (normal): New section.
12980 (normal_exit): New section.
12981 (Embedded configuration): Add reference to normal.
12982 (GRUB only offers a rescue shell): Likewise.
12983 * docs/grub-dev.texi (Error Handling): Fix typo.
12984
12985 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12986
12987 * NEWS: Drop obsolete entry about probe-only btrfs support.
12988
12989 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
12990
12991 * util/import_gcry.py: Fix typo.
12992
12993 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12994
12995 * NEWS: Add btrfs support.
12996
12997 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12998 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
12999
13000 BtrFS support. Written by me (Vladimir) with important bugfixes and
13001 even more important testing by Colin.
13002
13003 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13004 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13005 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13006 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13007 mem_input_off and mem_input. All users updated to accept in-RAM input.
13008 (gzio_seek): New function.
13009 (test_zlib_header): Likewise.
13010 (grub_gzio_read): Likewise.
13011 (grub_zlib_decompress): Likewise.
13012 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13013 Accept partial and non-virtual mounts.
13014 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13015 avoid receiving /dev/dm-X as device.
13016 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13017 Handle bind and partial mounts.
13018 * grub-core/lib/crc.c: New file.
13019 * include/grub/deflate.h: Likewise.
13020 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13021 proto.
13022 * include/grub/lib/crc.h: New file.
13023
13024 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 Implement automatic module license checking according to new GNU
13027 guidelines.
13028
13029 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13030 (grub_dl_load_core): Use grub_dl_check_license.
13031 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13032 (GRUB_MOD_LICENSE): Likewise.
13033 (GRUB_MOD_DUAL_LICENSE): Likewise.
13034 All modules updated.
13035
13036 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13037
13038 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13039 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13040 loaders.
13041 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13042
13043 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13044
13045 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13046
13047 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13048
13049 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13050 failed.
13051
13052 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13053
13054 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13055 parenthesis in the middle of the filename.
13056
13057 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13058
13059 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13060 rather than trying to put initrd way too high.
13061 Reported by: Ryan Lortie <desrt@desrt.ca>
13062
13063 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13064
13065 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13066 improperly removed string.
13067
13068 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13069
13070 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13071 is_disk.
13072 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13073 (open_device) Likewise.
13074 (grub_util_biosdisk_close): Likewise.
13075 Reported by: Mark Korenberg.
13076
13077 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13078
13079 * util/grub-mkconfig_lib.in: Add missing quotes.
13080
13081 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13082
13083 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13084 is NULL.
13085
13086 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13087
13088 Dynamically count the number of lines for the lower banner.
13089
13090 * grub-core/normal/menu_entry.c (per_term_screen): New member
13091 num_entries.
13092 (print_down): Use num_entries.
13093 (update_screen): Likewise.
13094 (grub_menu_entry_run): Set num_entries.
13095 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13096 num_entries.
13097 (grub_print_message_indented): Move real part to ...
13098 (grub_print_message_indented_real): ... here. Additional argument
13099 dry_run.
13100 (draw_border): Additional argument num_entries.
13101 (print_message): Additional argument dry_run.
13102 (print_entries): Receive menu viewer data.
13103 (grub_menu_init_page): New argment num_entries.
13104 (menu_text_set_chosen_entry): Use num_entries.
13105 (grub_menu_try_text): Likewise.
13106 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13107 All users updated.
13108 (grub_ucs4_count_lines): New function.
13109 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13110 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13111 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13112 (grub_term_border_height): Likewise.
13113 (grub_term_num_entries): Likewise.
13114
13115 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13116
13117 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13118 Remove now unused string.
13119
13120 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13121
13122 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13123 build system.
13124 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13125
13126 (Comment): Fix typo.
13127 (Getting started): General copy-editing.
13128 (Typical Development Experience): Likewise.
13129 (Error Handling): Likewise.
13130 (Video API): Likewise.
13131
13132 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13133
13134 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13135 throughout.
13136
13137 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13138
13139 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13140 directory.
13141
13142 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13143
13144 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13145 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13146 "development".
13147
13148 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13149
13150 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13151 grub_strcpy since the lines aren't necessarily 0-terminated.
13152
13153 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13154
13155 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13156 root on legacy.
13157
13158 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13159
13160 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13161 (GRUB_MOD_INIT): DEVICE isn't optional.
13162
13163 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13164
13165 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13166 word on new line if it's too long anyway. Fixes a hang.
13167
13168 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13169
13170 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13171 const.
13172 * util/grub-setup.c (main): Reuse md device name if available.
13173 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13174 not GRUB name as argument.
13175 Based on patch by: Florian Wagner <fwagner>.
13176
13177 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13178
13179 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13180 Place mbi on low memory for better compatibility.
13181
13182 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13183
13184 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13185
13186 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13187 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13188
13189 * autogen.sh: Ensure that collate and ctype locale is C.
13190 * conf/Makefile.common: Likewise.
13191
13192 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13193
13194 * grub-core/normal/menu.c: Add missing include.
13195
13196 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13197
13198 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13199
13200 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13201
13202 * util/grub-mkconfig.in: Ignore emacsen backup.
13203
13204 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13205
13206 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13207 on open.
13208 (grub_util_biosdisk_close): Likewise.
13209
13210 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13211
13212 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13213 const attribute and use grub_isdigit.
13214
13215 2011-04-06 Andrey <dev_null@ukr.net>
13216
13217 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13218 gcc warning.
13219
13220 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13221
13222 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13223 useful grub_dprintf's.
13224
13225 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13226
13227 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13228
13229 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13230
13231 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13232
13233 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13234
13235 Output errors if theme loading failed.
13236
13237 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13238 grub_gfxterm_fullscreen on error paths to ...
13239 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13240 theme loading error.
13241
13242 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13243
13244 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13245 space for older compilers.
13246 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13247
13248 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13249
13250 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13251 and report them as not RAID members since they are useless for GRUB.
13252 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13253
13254 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 Increase LVM implementation robustness in order not to crash on
13257 configurations like pvmove. Previously code assumed that in some places
13258 only lvs or only pvs are used whereas it seems that they are used
13259 interchangeably.
13260
13261 * grub-core/disk/lvm.c (read_node): New function.
13262 (read_lv): Use read_node.
13263 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13264 Match volumes only at the end when all lvs are found. Take both
13265 pvs (first) and lvs (second) into account.
13266 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13267 mirror_* into node_*. All users updated.
13268 (grub_lvm_stripe): Merge this ...
13269 (grub_lvm_mirror): ... and this ...
13270 (grub_lvm_node): ... into this. All users updated.
13271
13272 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13273
13274 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13275 of function to allow further scanning for LVMs.
13276
13277 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13278
13279 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13280 on failed seek as it breaks open fd reusage.
13281
13282 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13283
13284 * util/grub-install.in: Add a recommendation to use --recheck before
13285 reporting bugs.
13286
13287 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13288
13289 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13290 are obtained.
13291
13292 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13293
13294 GRUB developper manual based on existing Internals section and
13295 contributions by the various authors with active copyright assignment.
13296
13297 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13298 * docs/font_char_metrics.png: New file.
13299 * docs/font_char_metrics.txt: Likewise.
13300 * docs/grub-dev.texi: Likewise.
13301 * docs/grub.texi (Internals): Move from here ...
13302 * docs/grub-dev.texi: ... here.
13303
13304 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13305
13306 Store the loopback device as data on loopback grub_disk structures,
13307 rather than the file it points to. This fixes use of freed memory
13308 if an existing loopback device is replaced.
13309
13310 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13311 disk->data, not dev->file.
13312 (grub_loopback_read): Adjust file assignment to match.
13313 Fixes Ubuntu bug #742967.
13314
13315 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13316
13317 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13318 when replacing an existing device.
13319
13320 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13323 memory corruptions.
13324
13325 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13326 unsigned.
13327 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13328 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13329 (grub_jfs_read_inode): Likewise.
13330 (grub_jfs_opendir): Likewise. Remove now useless casts.
13331 (grub_jfs_getent): Likewise.
13332 Make ino a grub_uint32_t rather than int.
13333 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13334 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13335 division and module with bit operations.
13336 (grub_jfs_find_file): Make ino a grub_uint32_t.
13337 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13338
13339 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13340
13341 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13342 warning. (This was in fact always initialised before use, but GCC
13343 wasn't smart enough to prove that.)
13344 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13345
13346 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13349 stack alignment.
13350 (efi_wrap_1): Likewise.
13351 (efi_wrap_2): Likewise.
13352 (efi_wrap_3): Likewise.
13353 (efi_wrap_4): Likewise.
13354 (efi_wrap_5): Likewise.
13355 (efi_wrap_6): Likewise.
13356 (efi_wrap_10): Likewise.
13357 Based on information by: Red Hat/Peter Jones.
13358
13359 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13360
13361 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13362 set-but-not-used variable.
13363
13364 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13365
13366 * docs/grub.texi (Simple configuration): Be more explicit about
13367 GRUB_DEFAULT, and add an example.
13368 Reported by: Leslie Rhorer.
13369
13370 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13371
13372 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13373 shell".
13374
13375 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13376
13377 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13378 * util/grub.d/20_linux_xen.in: Likewise.
13379
13380 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13381
13382 * util/grub.d/10_linux.in: Try alternative config filenames where
13383 we parse config file.
13384 * util/grub.d/20_linux_xen.in: Likewise.
13385
13386 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13387
13388 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13389 * util/grub.d/20_linux_xen.in: Likewise.
13390
13391 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13392
13393 * grub-core/disk/raid.c (insert_array): Add few potentially
13394 useful grub_util_info.
13395 (grub_raid_register): Likewise.
13396
13397 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13398
13399 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13400 Preserve partition number in mdadm code path.
13401
13402 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13403
13404 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13405 few potentially useful grub_util_info.
13406
13407 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13408
13409 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13410
13411 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13412
13413 * docs/grub.texi (default): Use @example rather than nested
13414 itemized lists to avoid breaking gendocs.
13415
13416 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13417
13418 * docs/grub.texi (Future): Update.
13419
13420 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13421
13422 * docs/grub.texi (Environment): New chapter.
13423 (Changes from GRUB Legacy): Link to "Environment block" section for
13424 details of limitations.
13425 (Simple configuration): Likewise. Link to documentation of gfxmode
13426 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13427 respectively.
13428 (Shell-like scripting): Note that normal variables are stored in the
13429 environment.
13430 (gettext): Link to documentation of lang and locale_dir.
13431 (list_env): New section.
13432 (load_env): New section.
13433 (save_env): New section.
13434
13435 (Reporting bugs): Fix typo.
13436
13437 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13438
13439 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13440 the example.
13441
13442 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 * grub-core/term/at_keyboard.c (set_scancodes)
13445 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13446
13447 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13448
13449 * docs/grub.texi (Menu-specific commands): Remove some semantics
13450 that were true in GRUB Legacy but not in GRUB 2.
13451 (submenu): New section.
13452 (false): New section.
13453 (read): New section.
13454 (true): New section.
13455
13456 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13457
13458 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13459
13460 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13461
13462 * docs/grub.texi (Simple configuration): Explain some of the
13463 current limitations of grub-mkconfig.
13464 Reported by: Leslie Rhorer.
13465
13466 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13467
13468 Old macs search for boot.efi rather than for bootia32.efi.
13469
13470 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13471 * util/grub-mkrescue.in: Likewise.
13472 Suggested by: Peter Jones.
13473
13474 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13475
13476 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13477
13478 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13479
13480 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13481 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13482 (grub_lvm_mirror): New struct.
13483 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13484 (grub_lvm_iterate): Iterate only visible volumes.
13485 (grub_lvm_read): Factor out to ..
13486 (read_lv): ... this. Support mirrors.
13487 (grub_lvm_read): New wrapper function.
13488 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13489 stripped or mirrored.
13490
13491 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13494
13495 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13496
13497 * docs/grub.texi (loopback): New section.
13498
13499 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13500
13501 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13502 removed -p option.
13503
13504 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13505
13506 * docs/grub.texi (BIOS installation): New section, partly based on
13507 previous text in other sections.
13508 (Installing GRUB using grub-install): Replace BIOS discussion with a
13509 cross-reference.
13510 (Images): Likewise.
13511
13512 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13515 [HAVE_DIOCGDINFO]: Add safety checks.
13516
13517 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13520 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13521
13522 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13523
13524 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13525 real_sb->size is zero (e.g. RAID-0), get the disk size from
13526 real_sb->data_size instead.
13527 Fixes Ubuntu bug #743136.
13528
13529 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13530
13531 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13532 printf clauses for printing size and start.
13533
13534 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13535
13536 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13537 Reported and tested by: Timothy Nikkel.
13538
13539 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13540
13541 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13542 (dirty_region_add_real): ... this.
13543 (dirty_region_add): Don't discard margin refresh when performing
13544 scheduled repaint.
13545
13546 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13547
13548 * grub-core/lib/relocator.c (allocate_regstart)
13549 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13550 terminals are capabple of malloc-free operation.
13551 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13552 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13553
13554 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13555
13556 * util/grub-setup.c: Copy the partition table zone if floppy support
13557 is disabled, even if no partition table is found.
13558
13559 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13560 during POST if an invalid partition table is contained in the PBR
13561 of the active partition when GRUB is installed to a partition.
13562
13563 2011-03-28 Colin Watson <cjwatson@debian.org>
13564
13565 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13566 comment.
13567
13568 2011-03-28 Colin Watson <cjwatson@debian.org>
13569
13570 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13571 to be specific about what kind of RAID device we're scanning for.
13572
13573 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13574
13575 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13576 return freed string.
13577
13578 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13579
13580 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13581
13582 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13583
13584 Use libgeom on FreeBSD to detect partitions.
13585
13586 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13587 (grub-mkrelpath): Likewise.
13588 (grub-script-check): Likewise.
13589 (grub-editenv): Likewise.
13590 (grub-mkpasswd-pbkdf2): Likewise.
13591 (grub-fstest): Likewise.
13592 (grub-mkfont): Likewise.
13593 (grub-mkdevicemap): Likewise.
13594 (grub-probe): Likewise.
13595 (grub-setup): Likewise.
13596 (grub-ofpathname): Likewise.
13597 (grub-mklayout): Likewise.
13598 (example_unit_test): Likewise.
13599 (grub-menulst2cfg): Likewise.
13600 * grub-core/Makefile.core.def (grub-emu): Likewise.
13601 (grub-emu-lite): Likewise.
13602 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13603 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13604 define HAVE_DIOCGDINFO.
13605 (follow_geom_up) [FreeBSD]: New function.
13606 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13607 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13608 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13609 unconditionally of HAVE_DIOCGDINFO.
13610
13611 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13612
13613 Fix FreeBSD compilation problem.
13614
13615 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13616 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13617
13618 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13619
13620 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13621 Switch back to page zero before loading a kernel, since some kernel
13622 drivers expect that.
13623 Thanks to: Felix Kuehling.
13624
13625 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13628 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13629 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13630
13631 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13632
13633 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13634 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13635
13636 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13637
13638 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13639 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13640 malloc is disabled.
13641
13642 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13643
13644 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13645 for modules headers when counting the needed allocation size.
13646
13647 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13650 if no ASCII character is found to prevent crash.
13651
13652 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13653
13654 * grub-core/video/bitmap.c (match_extension): Ignore case.
13655
13656 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13657
13658 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13659
13660 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13661
13662 * grub-core/script/parser.y: Declare "time" as valid argument.
13663
13664 2011-03-23 Peter Jones <pjones@redhat.com>
13665
13666 Fix incorrect assert failure reporting.
13667
13668 * grub-core/tests/example_functional_test.c (example_test): Add
13669 a failure comment.
13670 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13671 (failure_start): ...this. Check that malloc succeeded.
13672 Don't call xvasprintf. Return failure struct.
13673 (failure_append_vtext): New function.
13674 (failure_append_text): Likewise.
13675 (add_failure): Likewise.
13676 (grub_test_assert_helper): Likewise.
13677 * include/grub/test.h (grub_test_assert_helper): New declaration.
13678 (grub_test_assert): Macro rewritten.
13679
13680 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13681
13682 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13683
13684 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13685
13686 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13687
13688 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13689
13690 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13691 into GRUB-style one.
13692
13693 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13694
13695 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13696 error and not grub_errno.
13697 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13698
13699 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13700
13701 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13702 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13703
13704 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13705
13706 * grub-core/efiemu/i386/pc/cfgtables.c
13707 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13708 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13709 (grub_xnu_unlock): Likewise.
13710 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13711
13712 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13713
13714 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13715 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13716 * grub-core/commands/hashsum.c (aliases): Likewise.
13717 * grub-core/commands/setpci.c (pci_registers): Likewise.
13718 * grub-core/disk/usbms.c (attach_hook): Likewise.
13719 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13720 (zio_checksum_table): Likewise.
13721 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13722 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13723 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13724 * grub-core/lib/relocator.c (leftovers): Likewise.
13725 (extra_blocks): Likewise.
13726 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13727 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13728 (modules_last): Likewise.
13729 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13730 (devices): Likewise.
13731 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13732 (modules_last): Likewise.
13733 * grub-core/normal/auth.c (users): Likewise.
13734 * grub-core/normal/context.c (initial_menu): Likewise.
13735 (current_menu): Likewise.
13736 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13737 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13738 (grub_serial_terminfo_input_template): Likewise.
13739 (grub_serial_terminfo_output_template): Likewise.
13740 (grub_serial_terminfo_input): Likewise.
13741 (grub_serial_terminfo_output): Likewise.
13742 (registered): Likewise.
13743 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13744
13745 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13746
13747 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13748 grub_video_mode_type_t.
13749 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13750 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13751 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13752
13753 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13754
13755 * util/grub-install.in: Correct the x86-64 name as x86_64.
13756
13757 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
13758
13759 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13760 initial chunk read from the kernel always includes GRUB's multiboot
13761 header, which is now outside the first sector.
13762
13763 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13764
13765 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13766 cached mmap_size, so that this works correctly when called multiple
13767 times.
13768 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13769
13770 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
13771
13772 * docs/grub.texi (Simple configuration): Tidy up formatting.
13773
13774 2011-03-07 Szymon Janc <szymon@janc.net.pl>
13775
13776 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13777 Set-but-not-used variable removed.
13778
13779 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 Workaround yet another IEEE1275 bug.
13782
13783 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13784 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13785 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13786 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13787 is set.
13788 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13789 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13790
13791 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13794 error.
13795
13796 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
13797
13798 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13799 empty, since in that case we can only generate either nothing or a
13800 syntactically invalid configuration file.
13801 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13802
13803 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13804
13805 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13806 (Making a GRUB bootable CD-ROM): Likewise.
13807 (Invoking grub-mkrescue): New section.
13808 Reported by: Yann Dirson. Fixes Debian bug #612585.
13809
13810 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
13811
13812 * util/grub-install.in: Remove unnecessary brackets from tr
13813 arguments.
13814 * util/grub.d/10_hurd.in: Likewise.
13815 * util/grub.d/10_kfreebsd.in: Likewise.
13816 * util/grub.d/10_linux.in: Likewise.
13817 * util/grub.d/20_linux_xen.in: Likewise.
13818 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13819
13820 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
13821
13822 * include/grub/file.h (not_easly_seekable): Rename to ...
13823 (not_easily_seekable): ... this. Update all users.
13824
13825 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
13826
13827 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13828 grub-mkrescue.
13829
13830 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 * util/grub-mkimage.c (generate_image): Refuse to create the images
13833 bigger than the actual flash (512K) in Loongson machines. 512K is also
13834 the biggest chip supported by them.
13835
13836 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13839
13840 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
13841
13842 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13843 super_offset field.
13844
13845 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * util/grub-install.in: Ignore install device on platforms
13848 where it doesn't make sense. Always use UUIDs except on pc, efi and
13849 sparc64.
13850 Reported by: Daniel Kahn Gillmor.
13851
13852 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13853
13854 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13855
13856 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13857
13858 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13859 (iterate_real): Don't rely on partition being non-NULL.
13860
13861 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13862
13863 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13864 supported platforms. Put a compile time assert for this rather than
13865 generate a warning with 32-bit shift.
13866
13867 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13868
13869 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13870 logical expression more readable.
13871
13872 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13873
13874 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13875 even if some elements have a name.
13876 Reported by: Alexander GQ Gerasiov.
13877
13878 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13879
13880 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13881 path unreadable if `grub-probe -t abstraction' fails, for example if
13882 memberlist fails on an LVM volume group.
13883 Reported by: Darius Jahandarie.
13884
13885 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
13886
13887 * docs/grub.texi (Simple configuration): Document
13888 GRUB_PRELOAD_MODULES.
13889
13890 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
13891
13892 * .bzrignore: Remove nonexistent grub-pbkdf2.
13893
13894 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13895
13896 * configure.ac: Bump version to 1.99~rc1.
13897
13898 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13899
13900 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13901 for safety.
13902
13903 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13906 module.
13907
13908 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13909
13910 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13911
13912 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13913
13914 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13915 diskdevid.
13916
13917 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13918
13919 Fix compilation on cygwin.
13920
13921 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13922 -R .drectve on cygwin.
13923 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13924 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13925 (COND_CYGWIN): New condition.
13926 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13927 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13928 not @TARGET_OBJ2ELF@.
13929 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13930 type to determine whether aux is to be used.
13931
13932 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13935 realpath'ed device string.
13936 Handle floppy (somewhat).
13937 Issue error in unknown case rather than garbage.
13938 Reported by: Axel Beckert.
13939
13940 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13941
13942 * util/grub.d/00_header.in (load_video): Handle the case when no video
13943 drivers available.
13944 Thanks to: Axel Beckert.
13945
13946 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13947
13948 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13949 variable. Fixes problem on big endian platforms.
13950
13951 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13952
13953 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13954 It doesn't work well there.
13955
13956 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13959 warning.
13960 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13961 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13962 counter.
13963
13964 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13965
13966 Use alias->path rather than buggy "canon".
13967
13968 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13969 (ofdisk_hash_add): New argument curcan. All users updated.
13970
13971 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13972
13973 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13974
13975 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13976
13977 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13978 loadmask before doing any calculations. Use correct type for offset.
13979 (grub_linux_load64): Likewise.
13980
13981 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
13982
13983 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13984 with NULL.
13985 (console_grub_equivalences_unshift): Likewise.
13986 Reported by: Daniel Dehennin.
13987
13988 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13989
13990 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13991 (set_env_limn_ro): Likewise.
13992 (GRUB_MOD_INIT): Likewise.
13993 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13994 ARRAY_SIZE while on it.
13995 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13996 * grub-core/normal/context.c (grub_env_export): Move from here ...
13997 * grub-core/kern/env.c (grub_env_export): ... here.
13998 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13999 prefix.
14000 * grub-core/kern/main.c (grub_main): Export root and prefix.
14001 * include/grub/env.h (grub_env_export): Export.
14002 Reported by: Seth Goldberg.
14003
14004 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14007 Take into account space used by ELF sections and multiboot palette.
14008 Reported by: Grégoire Sutre.
14009
14010 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14011
14012 * BUGS: New file.
14013
14014 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14015
14016 Pass more appropriate video id to Linux.
14017
14018 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14019 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14020 fill have_vga.
14021 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14022 shift params->lfb_size.
14023 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14024
14025 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14026
14027 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14028
14029 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14030
14031 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14032 separator and pass bootpath/devid even if only one of them is available.
14033 Reported by: Seth Goldberg.
14034
14035 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14036
14037 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14038 implementations bug on them.
14039
14040 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14041 memory.
14042 (filter_memory_map): Likewise.
14043
14044 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14045
14046 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14047 Reported by: nebuchadnezzar.
14048
14049 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14050
14051 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14052 Reported by: nebuchadnezzar.
14053
14054 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14055
14056 Submenu default support.
14057
14058 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14059 auto_boot. All users updated.
14060 Declared static.
14061 Handle chosen and default with submenus.
14062 (grub_menu_execute_with_fallback): Declared static.
14063 Don't notify failure if autobooted. Upper level does it.
14064 (menuentry_eq): New function.
14065 (get_entry_number): Use menuentry_eq.
14066 (show_menu): New parameter "autobooted". All users updated.
14067 (grub_show_menu): Likewise.
14068 * include/grub/normal.h (grub_show_menu): Likewise.
14069 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14070 (grub_menu_execute_with_fallback): Likewise.
14071
14072 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 * util/grub-mklayout.c (usage): Update help text.
14075
14076 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14077
14078 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14079
14080 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 * util/grub-menulst2cfg.c (main): Trim the line.
14083
14084 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14087 (grub_machine_init): Don't check amount of low memory as reportedly
14088 INT 12h can be broken and if low memory is too low we wouldn't have
14089 gotten into grub_machine_init anyway.
14090
14091 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14092
14093 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14094 (grub_machine_mmap_iterate): Take low memory into account
14095
14096 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14097
14098 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14099 badfs.
14100 Reported by: TiCPU.
14101
14102 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14103
14104 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14105 members errors.
14106
14107 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14108
14109 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14110 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14111
14112 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14113
14114 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14115 openbsd and netbsd types being in part_bsd module.
14116
14117 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14118
14119 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14120 (_FILE_OFFSET_BITS): Likewise.
14121 Reported by: Seth Goldberg.
14122
14123 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14124
14125 * configure.ac: Check for libdevmapper header.
14126
14127 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14130 avoid aliasing.
14131 (fzap_lookup): Likewise.
14132 (dnode_get): Likewise.
14133 (make_mdn): Likewise.
14134 (zfs_mount): Likewise.
14135 (fzap_iterate): Use temporary pointer to avoid aliasing.
14136 (grub_zfs_read): Likewise.
14137 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14138 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14139 pointers to avoid aliasing.
14140 (grub_cmd_xnu_kernel64): Likewise.
14141 (grub_xnu_load_driver): Likewise.
14142
14143 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14144
14145 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14146 aliasing warning.
14147 (grub_cmd_terminal_output): Likewise.
14148 Reported and tested by: Grégoire Sutre.
14149
14150 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14151
14152 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14153 warning.
14154 Reported and tested by: Grégoire Sutre.
14155
14156 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14157
14158 * configure.ac: Do CPU substitution even if it's specified explicitly.
14159 Reported and tested by: Alain Greppin.
14160
14161 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14162
14163 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14164 Reported and tested by: Alain Greppin.
14165
14166 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14167
14168 Satisfy some bison versions need for inttypes.h.
14169
14170 * grub-core/lib/posix_wrap/inttypes.h: New file.
14171 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14172 (int16_t): Likewise.
14173 (int32_t): Likewise.
14174 (int64_t): Likewise.
14175 Reported and tested by: Alain Greppin.
14176
14177 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14178
14179 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14180 Silence spurious warning.
14181 Reported and tested by: Alain Greppin.
14182
14183 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14184
14185 * docs/grub.texi (Support automatic decompression): Update with xz
14186 decompression support.
14187
14188 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14189
14190 Improve loaders' kernel command line handling.
14191
14192 * grub-core/lib/cmdline.c: New file.
14193 * include/grub/lib/cmdline.h: Likewise.
14194 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14195 grub_create_loader_cmdline to create kernel command line.
14196 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14197 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14198 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14199 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14200 (linux): Add lib/cmdline.c on common.
14201
14202 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14203
14204 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14205 inopos might be unaligned.
14206
14207 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14208
14209 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14210 endian transformations.
14211 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14212 Based on report by: Doug Nazar.
14213
14214 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14215
14216 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14217 array->members[i].start_sector.
14218 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14219
14220 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14221
14222 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14223 Reported and tested by: Grégoire Sutre.
14224
14225 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14226
14227 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14228 avoid causing test failures by clearing the screen.
14229
14230 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14231
14232 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14233 Fix prefix check to handle the case where dir ends with a slash
14234 (most significantly, "/" itself).
14235 Reported by: Michael Vogt.
14236
14237 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 Run terminfo_cls on initing terminfo output to clear the screen and
14240 move the cursor to (0,0).
14241
14242 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14243 Call grub_terminfo_output_init.
14244 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14245 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14246 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14247
14248 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14251 only when needed.
14252
14253 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14254
14255 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14256 CTRL.
14257
14258 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14259
14260 The E820 type 5 is BADRAM, not EXEC_CODE.
14261
14262 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14263 (GRUB_E820_BADRAM): New define.
14264 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14265 into reserved. Propagate BADRAM.
14266 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14267 (GRUB_E820_BADRAM): New define.
14268
14269 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14270
14271 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14272 Ignore the memory post-4G.
14273 (grub_relocator_firmware_alloc_region): Additional debug statement.
14274
14275 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14276
14277 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14278 names.
14279 Reported by: David Pravec.
14280
14281 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14282
14283 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14284 BIOSes.
14285
14286 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14287
14288 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14289 Prevent overflow.
14290 (grub_reed_solomon_recover): Likewise.
14291
14292 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14293
14294 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14295
14296 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14299 variable.
14300
14301 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14302
14303 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14304 descriptions of extract_legacy_entries_source and
14305 extract_legacy_entries_configfile.
14306 Reported by: Seung Soo, Ha.
14307
14308 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14309
14310 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14311 on devices that do not implement function 0.
14312
14313 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14314
14315 * grub-core/fs/hfsplus.c: Make parent unsigned.
14316 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14317 overflows.
14318 (grub_hfsplus_cmp_extkey): Likewise
14319
14320 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14321
14322 * util/grub-install.in: Correctly use bootloader_id and not
14323 GRUB_DISTRIBUTOR on efibootmgr line.
14324
14325 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14326
14327 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14328
14329 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14330
14331 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14332 Xen and reorder menu item wording to make it clearer that this entry
14333 will launch Xen. Print separate messages when loading Xen and
14334 Linux.
14335
14336 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14339 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14340 loop in case of incorrect amiga partmap.
14341
14342 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14343
14344 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14345 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14346 Reported by:EHeM.
14347
14348 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14349
14350 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14351 spurious warning.
14352 Reported by: crocket
14353
14354 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14355
14356 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14357 Preload EFIemu.
14358 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14359
14360 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14361
14362 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14363 is loaded
14364 (grub_cmd_xnu_kextdir): Likewise.
14365 (grub_cmd_xnu_splash): Likewise.
14366
14367 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14368
14369 Avoid using Reed-Solomon with 0 redundancy.
14370
14371 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14372 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14373 or 0 redundancy.
14374 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14375 (grub_reed_solomon_recover): Likewise.
14376
14377 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14378
14379 Don't use disk subsystem in freebsd_boot.
14380
14381 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14382 (freebsd_biosdev): Likewise.
14383 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14384 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14385
14386 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14387
14388 Handling of files of unknown size is currently limited. They can't be
14389 used e.g. for initrd or modules. Moreover gzip handling of not
14390 easily seekable files is buggy. Disable unknown file size for now. May
14391 be inefficient but works.
14392
14393 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14394 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14395
14396 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14397
14398 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14399 floppy probe.
14400
14401 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14402
14403 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14404
14405 2010-12-25 Shea Levy <shlevy>
14406
14407 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14408
14409 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14412 Windows Server 2008.
14413 Reported by: Devin Giddings.
14414
14415 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14418 writing an error message because of async power management.
14419 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14420 (grub_reboot): Likewise.
14421
14422 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14423
14424 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14425 keep unit tests from failing when they shouldn't.
14426
14427 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14428
14429 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14430 previous patch increased the size of the RS code by 20 bytes (at
14431 least with gcc-4.4), so increase this by 20 bytes to match.
14432 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14433
14434 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14435
14436 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14437 scratch area. Make sure to initialise chosen in standalone mode as
14438 well as non-standalone.
14439 Reported by: Robert Hooker and Andy Whitcroft.
14440 Tested by: Andy Whitcroft.
14441
14442 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14443
14444 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14445 constructing a new unescaped string and passing it to grub_xputs in
14446 one go, rather than passing characters to grub_printf one at a time.
14447
14448 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14449
14450 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14451 initialising utf16.
14452
14453 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14454
14455 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14456 comment. Add an extra layer of quotation, requiring the output of
14457 this function to be used in a printf format string.
14458 (gettext_printf): New function.
14459 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14460 Extract translatable strings from here-documents and use a temporary
14461 variable instead, so that xgettext can find them.
14462 * util/grub.d/10_kfreebsd.in: Likewise.
14463 * util/grub.d/10_linux.in: Likewise.
14464 * util/grub.d/20_linux_xen.in: Likewise.
14465
14466 * po/grub.d.sed: New file.
14467 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14468 arguments. Set c-format flags on all strings extracted from
14469 util/grub.d/ (xgettext refuses to include these itself for strings
14470 it extracted from a shell file, but these really are c-format).
14471
14472 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14473
14474 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14475 Avoid next pointing to nowhere.
14476
14477 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14478
14479 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14480 rather than assuming than rootblock is exactly in the middle.
14481 (grub_affs_label): Likewise.
14482
14483 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14484
14485 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14486 reserved_first_sector to 0.
14487 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14488 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14489 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14490
14491 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14492
14493 Fix handling of UTF-16 UDF labels.
14494
14495 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14496 (read_string): .. here.
14497 (grub_udf_label): Use read_string.
14498
14499 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14500
14501 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14502 editor under argument scope.
14503 Reported by: Jordan Uggla
14504
14505 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14506
14507 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14508
14509 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14510
14511 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14512 line, and other keys scroll an entire page (previous handling was
14513 for \r and \n to scroll a page and other keys to scroll two lines).
14514
14515 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14516
14517 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14518 Set ptrdest to correct get_physical_target_address rather than
14519 incorrect get_virtual_current_address.
14520
14521 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14522
14523 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14524 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14525
14526 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14527
14528 * .bzrignore: Ignore grub-core/rs_decoder.S.
14529
14530 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14531
14532 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14533 .mo/.mo.gz opening sequence to ...
14534 (grub_mofile_open_lang): ... here.
14535 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14536 * util/grub.d/00_header.in (grub_lang): Include country part of
14537 locale.
14538 Reported by: Mario Limonciello.
14539
14540 2010-12-09 Robert Millan <rmh@gnu.org>
14541
14542 * NEWS: Document addition of ZFS support.
14543
14544 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14545
14546 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14547 rather than `/ 2', as the latter requires -Wa,--divide which would
14548 require bumping our minimum binutils version.
14549
14550 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14551
14552 * util/grub-script-check.c (main): Print script line number on
14553 error.
14554
14555 2010-12-01 Robert Millan <rmh@gnu.org>
14556
14557 * grub-core/fs/zfs/zfs.c: New file.
14558 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14559 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14560 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14561 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14562
14563 * include/grub/zfs/dmu.h: Likewise.
14564 * include/grub/zfs/dmu_objset.h: Likewise.
14565 * include/grub/zfs/dnode.h: Likewise.
14566 * include/grub/zfs/dsl_dataset.h: Likewise.
14567 * include/grub/zfs/dsl_dir.h: Likewise.
14568 * include/grub/zfs/sa_impl.h: Likewise.
14569 * include/grub/zfs/spa.h: Likewise.
14570 * include/grub/zfs/uberblock_impl.h: Likewise.
14571 * include/grub/zfs/vdev_impl.h: Likewise.
14572 * include/grub/zfs/zap_impl.h: Likewise.
14573 * include/grub/zfs/zap_leaf.h: Likewise.
14574 * include/grub/zfs/zfs.h: Likewise.
14575 * include/grub/zfs/zfs_acl.h: Likewise.
14576 * include/grub/zfs/zfs_znode.h: Likewise.
14577 * include/grub/zfs/zil.h: Likewise.
14578 * include/grub/zfs/zio.h: Likewise.
14579 * include/grub/zfs/zio_checksum.h: Likewise.
14580
14581 * Makefile.util.def: Build ZFS into libgrubmods.
14582 * grub-core/Makefile.core.def: Build zfs.mod.
14583
14584 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14585
14586 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14587 variable.
14588 * grub-core/commands/wildcard.c (match_files): Likewise.
14589
14590 2010-11-30 Robert Millan <rmh@gnu.org>
14591
14592 * grub-core/loader/i386/bsd.c
14593 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14594 whether kernel is loaded using grub_loader_is_loaded(), rather
14595 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14596 certain error conditions.
14597
14598 2010-11-30 Robert Millan <rmh@gnu.org>
14599
14600 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14601 (grub_cmd_echo): Call grub_refresh() after printing a message.
14602
14603 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14604
14605 Avoid using tricks for initialising endian variables.
14606
14607 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14608 Make const.
14609 (GRUB_MOD_INIT): Don't byte-swap.
14610 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14611 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14612 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14613 (grub_swap_bytes32_compile_time): Likewise.
14614 (grub_cpu_to_le32_compile_time): Likewise.
14615 (grub_cpu_to_le16_compile_time): Likewise.
14616
14617 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14618
14619 * util/grub-setup.c (setup): Stop recommending --force. People who
14620 understand the dangers of blocklists are able to find this option
14621 anyway and the ones who don't shouldn't use it anyway.
14622
14623 2010-11-26 Robert Millan <rmh@gnu.org>
14624
14625 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14626 Update all users.
14627
14628 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14629
14630 Fix LVM-on-RAID probing.
14631
14632 * util/grub-probe.c (probe): Remember which disk was detected as
14633 RAID (perhaps an LVM physical volume). Use that disk's raidname
14634 rather than that of the top-level disk.
14635
14636 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14637
14638 Fix cmdline argument quotes for setparams command of menuentry
14639 definitions.
14640
14641 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14642 quotes for arguments.
14643 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14644 grub_strchrsub function instead.
14645
14646 * include/grub/misc.h (grub_strchrsub): New function.
14647
14648 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14649
14650 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14651 effort by skipping "." and ".." entries up-front.
14652 Suggested by: Michael Lazarev.
14653
14654 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14655
14656 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14657 ldflags to ldadd, to fix link line ordering.
14658 (none_decompress): Likewise.
14659
14660 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14661
14662 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14663 platforms.
14664 (grub-emu-lite): Remove kern/emu/cache.S.
14665
14666 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14667
14668 * util/deviceiter.c (compare_devices): If the by-id link for a
14669 device couldn't be resolved, fall back to sorting by the by-id link
14670 rather than segfaulting.
14671 Reported and tested by: Daniel Mierswa.
14672
14673 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14674
14675 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14676 ldflags, to fix link line ordering.
14677
14678 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14679
14680 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14681 linkers are picky about this.
14682
14683 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14684
14685 * grub-core/Makefile.am (command.lst): Adjust sed expression
14686 ordering so that extended and priority commands aren't treated as
14687 ordinary commands.
14688
14689 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14690
14691 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14692 Remove byte-swapping function calls, which are not valid in
14693 structure initialisers.
14694 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14695 non-const.
14696 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14697 grub_gpt_partition_type_bios_boot.
14698
14699 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14700
14701 Fix test program build on GNU/kFreeBSD.
14702
14703 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14704 $(LIBNVPAIR)' library dependencies.
14705
14706 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14707
14708 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14709
14710 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14711
14712 * util/grub-install.in: Remove excessive quoting that broke
14713 installations to RAID devices.
14714
14715 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14716
14717 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14718 bootloader version instead of 0.
14719
14720 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14721
14722 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14723 warning.
14724
14725 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14726
14727 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14728 retrieve the metadat sector if size isn't known.
14729 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14730
14731 2010-11-18 Robert Millan <rmh@gnu.org>
14732
14733 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14734 with grub_memcmp().
14735
14736 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14737
14738 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14739 arrow.
14740 Reported by: Jordan Uggla.
14741
14742 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14743
14744 Make better UTF compliant.
14745
14746 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14747 sequences as incorrect.
14748 (grub_is_valid_utf8): Likewise.
14749 (grub_utf8_to_ucs4): Likewise.
14750 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14751 (grub_ucs4_to_utf8_alloc): Likewise.
14752 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14753
14754 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14755
14756 Make legacy_source behave like source.
14757
14758 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14759 grub_show_menu.
14760 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14761
14762 2010-11-16 Colin Watson <cjwatson@debian.org>
14763
14764 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14765 (-Wunused implies -Wunused-parameter, but not vice versa).
14766
14767 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
14768
14769 * configure.ac: Make error messages less confusing by testing for
14770 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14771 accepted, but produces a diagnostic if something else is wrong).
14772
14773 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14774
14775 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14776 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14777 (now unused).
14778 (grub_keyboard_controller_init)
14779 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14780 read the initial state since controller isn't inited yet.
14781
14782 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14783
14784 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14785 allocate_regbeg may need to create new chunk header.
14786
14787 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14788
14789 Fix quoting in legacy parser.
14790
14791 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14792 single quotes.
14793 (grub_legacy_parse): Likewise.
14794 Reported by: Jordan Uggla.
14795 Tested by: Jordan Uggla.
14796
14797 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14798
14799 Don't add -lgcc on i386 and x86_64.
14800
14801 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14802 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14803 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14804
14805 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14806
14807 * configure.ac: Add -Wno-trampolines when supported.
14808
14809 2010-11-14 Modestas Vainius <modax@debian.org>
14810
14811 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14812 fakeraid.
14813
14814 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14815
14816 Add generic logical block size support for UDF.
14817
14818 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14819 (GRUB_UDF_BLKSZ): Removed.
14820 (struct grub_udf_data): New field "lbshift" to hold the logical block
14821 size of the file system in log2 format. All users updated.
14822 (sblocklist): Change type to unsigned.
14823 (grub_udf_mount): Change type of "sblklist" to unsigned.
14824 Move AVDP search before VRS recognition, because the latter requires
14825 knowledge of the logical block size, which is detected during the
14826 former.
14827 Detect and validate logical block size during AVDP search, adding
14828 support for block sizes 512, 1024 and 4096.
14829 Make VRS recognition independent of block size.
14830
14831 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14832
14833 Properly handle deleted files on UDF.
14834
14835 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14836 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14837 set.
14838
14839 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14840
14841 Support reading files larger than 2 GiB.
14842
14843 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14844 "offset" to grub_off_t.
14845 (grub_udf_read_file): Likewise for parameter "pos".
14846
14847 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14848
14849 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14850 unavailable.
14851 (Simple configuration): Refer to Changes from GRUB Legacy about
14852 save_env availability.
14853
14854 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 * util/grub-install.in: Ignore empty partition table detection
14857 instead of trying to include part_ module.
14858
14859 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14860
14861 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14862 LVM on RAID support.
14863
14864 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 Properly define WORDS_BIGENDIAN in wrapped environments.
14867
14868 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14869 definition.
14870 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14871
14872 Reported by: Manoel Rebelo Abranches.
14873 Tested by: Manoel Rebelo Abranches.
14874
14875 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14876
14877 * util/grub-mkconfig.in: Fix quoting.
14878
14879 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14880
14881 Support big ext2 files.
14882
14883 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14884 (grub_ext2_read_block): Support triple indirect blocks.
14885 (grub_ext2_read_file): Use 64-bit types and read size_high.
14886 (grub_ext2_open): Read size_high.
14887 Reported by: Ximin Luo.
14888 Tested by: Manoel Rebelo Abranches.
14889
14890 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14891
14892 * util/grub-install.in: Handle filenames containing spaces.
14893 Reported by: Jordan Uggla.
14894 Tested by: Jordan Uggla.
14895
14896 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14897
14898 * util/grub-mkconfig.in (grub_script_check): New variable.
14899 Use grub_script_check instead of grub-script-check.
14900 Reported by: Barry Jackson.
14901
14902 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14903
14904 * docs/grub.texi (menu): Correct the order.
14905 Reported by: D. Hugh Redelmeier.
14906
14907 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14908
14909 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14910 jump.
14911
14912 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14913
14914 * include/grub/elfload.h (grub_elf32_size): New parameter.
14915 All users updated.
14916 Return maximum segments alignment.
14917 (grub_elf64_size): Likewise.
14918 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14919 Return maximum segments alignment.
14920 (grub_elf64_size): Likewise.
14921 * grub-core/loader/powerpc/ieee1275/linux.c:
14922 (grub_linux_claimmap_iterate): New function. Uses the
14923 "available" property in the "memory" node for memory allocation
14924 for kernel in the PowerPC loader.
14925 (grub_linux_load32): Correctly find linux entry point offset.
14926 (grub_linux_load64): Likewise.
14927
14928 2010-11-07 Robert Millan <rmh@gnu.org>
14929
14930 On mips-yeeloong, build with -march=loongson2f when this flag is
14931 available (GCC >= 4.4).
14932 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14933 `-march=mips3'.
14934 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14935 or otherwise add -march=mips3.
14936
14937 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14938
14939 Suppress shell expansion on echo '*' and echo "*" like cases.
14940 Reported by: Jordan Uggla.
14941
14942 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14943 string arguments before shell expansion.
14944 * tests/grub_cmd_echo.in: New testcases.
14945
14946 2010-11-07 Robert Millan <rmh@gnu.org>
14947
14948 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14949 transition.
14950
14951 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14952
14953 * grub-core/kern/emu/hostdisk.c
14954 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14955
14956 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14957
14958 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14959 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14960 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14961
14962 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14963
14964 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14965
14966 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14967
14968 * util/grub-install.in: Replace useless recomendation to pass
14969 --modules with a recomendation to report a bug.
14970
14971 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14972
14973 Properly register serial terminfo.
14974 Reported by: Jordan Uggla
14975
14976 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14977 const.
14978 (grub_serial_terminfo_output_template): Likewise.
14979 (grub_cmd_serial): Register "serial" with terminfo.
14980 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14981 grub_serial_terminfo_output.
14982
14983 2010-11-05 Robert Millan <rmh@gnu.org>
14984
14985 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14986 needed).
14987
14988 2010-11-05 Robert Millan <rmh@gnu.org>
14989
14990 On Yeeloong, pass machine type information to Linux.
14991
14992 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14993 (LOONGSON_MACHTYPE): New macro, set to
14994 "machtype=lemote-yeeloong-2f-8.9inches".
14995 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14996 additional argument to Linux.
14997
14998 2010-11-04 Robert Millan <rmh@gnu.org>
14999
15000 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15001 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15002 (its SATA disks are detected as slaveless IDE master drives on
15003 kFreeBSD).
15004 Reported by Carsten Aulbert.
15005
15006 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15007
15008 * util/bin2h.c (main): Fix spelling error in generated output.
15009
15010 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15011
15012 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15013
15014 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15015
15016 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15017 vga= option is supplied.
15018
15019 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15020
15021 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15022 * util/grub.d/10_kfreebsd.in: Likewise.
15023 * util/grub.d/10_linux.in: Likewise.
15024 * util/grub.d/20_linux_xen.in: Likewise.
15025
15026 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15027
15028 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15029 argument as an argument to no-argument option.
15030
15031 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15032
15033 * util/grub.d/10_linux.in: Add missing load_video with explicit
15034 GRUB_GFXPAYLOAD_LINUX.
15035
15036 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15039
15040 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15041
15042 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15043 elements with invlid index.
15044 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15045 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15046 members.
15047 * include/grub/raid.h (grub_raid_member): New struct.
15048 (grub_raid_array): Transform devices and start_sector into usage of
15049 grub_raid_member. All users updated
15050 (allocated_devs): New member.
15051
15052 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15055 is modified
15056
15057 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15058
15059 NetBSD build fix for getline function conflict from gnulib.
15060
15061 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15062 components that depend on gnulib headers.
15063 (libgrubmods.a): Renamed from earlier libgrub.a.
15064 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15065
15066 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15067
15068 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15069 install rather than creating a broken install.
15070
15071 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15072
15073 * util/grub-setup.c (argp): Remove misleading example of installing to
15074 a partition.
15075
15076 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 * util/grub-setup.c (setup): Clarify the error message.
15079
15080 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15081
15082 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15083
15084 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15085
15086 * grub-core/kern/emu/misc.c
15087 (grub_make_system_path_relative_to_its_root)
15088 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15089
15090 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15091
15092 * grub-core/kern/emu/misc.c
15093 (grub_make_system_path_relative_to_its_root): Revert r2882.
15094
15095 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15096
15097 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15098 useless field head. All users updated.
15099 (free_subchunk): Correct handling of IN_REGION subchunk.
15100
15101 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15102
15103 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15104 (Supported kernels): Likewise.
15105
15106 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15107
15108 Make mktemp invocations portable.
15109
15110 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15111 exit if mktemp fails.
15112 * tests/grub_script_blockarg.in: Likewise.
15113 * tests/partmap_test.in: Likewise.
15114 * tests/util/grub-shell-tester.in: Likewise.
15115 * tests/util/grub-shell.in: Likewise.
15116 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15117 * Makefile.am: Likewise, and chain shell commands with `&&'
15118 instead of ';'.
15119 * util/grub-mkrescue.in: Use the same explicit template as above, and
15120 exit if mktemp fails.
15121
15122 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15123
15124 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15125 Linux kernel, reported by Dennis Schridde.
15126
15127 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15128
15129 * grub-core/normal/auth.c (grub_auth_check_authentication):
15130 Set-but-not-used variable removed.
15131
15132 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15133
15134 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15135 32-bit linux protocol.
15136
15137 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15138
15139 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15140 cursor shape for sanity.
15141
15142 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15143
15144 * docs/grub.texi (Installation): Document buggy BIOS install.
15145
15146 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15147
15148 * docs/grub.texi (Installation): Indent.
15149
15150 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 * util/grub-setup.c (setup): New parameter allow_floppy.
15153 (arguments): New member allow_floppy.
15154 (argp_parser): Handle --allow-floppy.
15155 (main): Pass allow_floppy.
15156 * util/grub-install.in: New option --allow-floppy passed though to
15157 grub-setup.
15158
15159 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15160
15161 * util/grub-install.in: Handle partitionless disks.
15162
15163 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15164
15165 * util/grub-setup.c (setup): Don't clean blocklists before readability
15166 verfification.
15167
15168 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15169
15170 * docs/grub.texi (Installation): Document embedding zone. Remove
15171 obsolete grub-install example.
15172
15173 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15174
15175 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15176 Set-but-not-used variable ifdef'ed.
15177 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15178 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15179 variable removed.
15180 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15181 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15182 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15183 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15184 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15185 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15186 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15187 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15188 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15189 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15190 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15191 Likewise.
15192
15193 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15194
15195 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15196 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15197 enum value.
15198
15199 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15200
15201 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15202 synonym to _S5_. Needed for some DSDTs.
15203
15204 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15205
15206 Userspace ACPI parser debugging.
15207
15208 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15209 headers and add relevant defines. Don't include standard headers.
15210 (main) [GRUB_DSDT_TEST]: New function.
15211 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15212 Don't declare functions.
15213
15214 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15215
15216 Remove dead grub_efi_mm_fini.
15217
15218 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15219 (ALLOCATED_PAGES_SIZE): Likewise.
15220 (MAX_ALLOCATED_PAGES): Likewise.
15221 (allocated_pages): Likewise.
15222 (grub_efi_allocate_pages): Don't record allocated pages.
15223 (grub_efi_free_pages): Likewise.
15224 (grub_efi_mm_init): Likewise.
15225 (grub_efi_mm_fini): Removed.
15226
15227 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15228
15229 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15230 (grub_efi_mm_init): Take into account the memory map size increase.
15231
15232 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15233
15234 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15235 (serial_hw_put): Wait based on real time rather than port reads. Don't
15236 roken ports.
15237 * include/grub/serial.h (grub_serial_port): New field broken.
15238
15239 2010-10-16 Robert Millan <rmh@gnu.org>
15240
15241 * grub-core/kern/emu/misc.c
15242 (grub_make_system_path_relative_to_its_root): Fix premature return
15243 when processing non-root ZFS filesystems.
15244 Reported by Sergio Talens-Oliag.
15245
15246 2010-10-15 Robert Millan <rmh@gnu.org>
15247
15248 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15249 guarantee compressed ones are processed first.
15250
15251 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15252
15253 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15254 grub_efiemu_autocore.
15255
15256 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15257
15258 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15259 rather than 0x1b.
15260 (grub_console_getkey): Use correct jae opcode rather than ja.
15261
15262 2010-10-12 Robert Millan <rmh@gnu.org>
15263
15264 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15265 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15266 variable. All references updated.
15267
15268 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15269
15270 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 Correctly distinguish mdraid flavours.
15273
15274 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15275 (insert_array): New argument raid.
15276 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15277 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15278 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15279
15280 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15281
15282 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15283 handling of special keys.
15284
15285 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15286
15287 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15288 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15289
15290 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15291
15292 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15293 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15294 users updated.
15295 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15296 Use right endpoint when querying descriptor.
15297
15298 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15299
15300 Clear out 0x80 color bit on EFI.
15301 Tested by: decoder
15302 Reported by: decoder and meta tech.
15303
15304 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15305 (grub_console_setcolorstate): Clear out 0x80 bit.
15306 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15307 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15308 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15309
15310 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15313 Set to "auto".
15314
15315 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15316
15317 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15318 mo_file after freeing.
15319
15320 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15321
15322 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15323
15324 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15325
15326 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15327 flags.
15328
15329 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15330
15331 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15332 usage.
15333
15334 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15335
15336 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15337
15338 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15339 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15340 and terminfo.h when needed.
15341 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15342 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15343 (terminfo): Enable only on terminfokernel.
15344 (extcmd): Likewise.
15345 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15346 * include/grub/lib/arg.h: Likewise.
15347 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15348 incorrect usage of ->.
15349
15350 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15351
15352 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15353 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15354
15355 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15356
15357 Fix coreboot compilation.
15358
15359 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15360 Take VBE info into account even if only text is supported.
15361 (fill_vbe_info): Take into account the case when only VGA text
15362 is supported.
15363 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15364 on coreboot, multiboot and qemu.
15365
15366 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15367
15368 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15369 debug messages.
15370 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15371
15372 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15373
15374 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15375 parameters.
15376
15377 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15378
15379 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15380 if they were BSD-style.
15381
15382 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15383
15384 * grub-core/boot/i386/pc/lnxboot.S: Replace
15385 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15386 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15387
15388 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15389
15390 Write embedding zone using Reed-Solomon.
15391
15392 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15393 * grub-core/Makefile.am (rs_decoder.S): New target.
15394 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15395 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15396 (multiboot): Move to RS part.
15397 (post_reed_solomon): New label.
15398 (grub_boot_drive): Move to non-RS part since it's modified in memory
15399 on boot.
15400 Include rs_decoder.S.
15401 * grub-core/lib/reed_solomon.c: New file.
15402 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15403 New definition.
15404 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15405 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15406 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15407 * include/grub/partition.h (grub_partition_map): Change prototype of
15408 embed to allow returning additional sectors.
15409 * include/grub/reed_solomon.h: New file.
15410 * util/grub-setup.c (setup): Handle Reed-Solomon.
15411
15412 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15413
15414 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15415 i386 and x86-64 definedness tests.
15416
15417 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15418
15419 Fix generation of kernel_syms.lst
15420
15421 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15422 ASM_PREFIX
15423
15424 2010-09-26 Robert Millan <rmh@gnu.org>
15425
15426 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15427
15428 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15429 the pool is an array of devices, iterate through it and return the
15430 first device that passes a stat() test (instead of blindly returning
15431 the first one).
15432
15433 2010-09-26 Robert Millan <rmh@gnu.org>
15434
15435 Build fixes for GNU/kFreeBSD.
15436
15437 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15438 to programs that require ZFS conversion.
15439 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15440 kernels that don't have FLOPPY_MAJOR.
15441
15442 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15443
15444 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15445
15446 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15447
15448 Fix grub-emu build.
15449
15450 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15451 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15452 mdraid09 and mdraid1x.
15453
15454 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15455
15456 Re-enable grub-extras.
15457
15458 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15459 avoid confusing Automake. Run autogen only twice, once for the top
15460 level and once for grub-core. Add Makefile.util.def and
15461 Makefile.core.def from extra modules to the appropriate autogen
15462 invocations. If Makefile.common exists in an extra module, include
15463 it in both Makefile.util.am and grub-core/Makefile.core.am;
15464 similarly, include any Makefile.util.common file in Makefile.util.am
15465 and any Makefile.core.common file in grub-core/Makefile.core.am.
15466 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15467 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15468 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15469 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15470
15471 * gentpl.py (gvar_add): Turn GVARS into a set.
15472 (global_variable_initializers): Sort global variables on output.
15473 (vars_init): New function.
15474 (first_time): Likewise.
15475 (library): Ensure that non-global variable initialisations are
15476 emitted before the first time we emit code for a library block.
15477 Append to variables rather than setting them. Only emit
15478 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15479 each conditional path.
15480 (program): installdir() emits an Autogen macro, so must be passed to
15481 var_add rather than gvar_add.
15482 (data): Likewise.
15483 (script): Likewise.
15484 (rules): New function, centralising handling for different target
15485 types. Set up Guile association lists for first_time and vars_init,
15486 and send most output to a diversion so that variable initialisations
15487 can be emitted first.
15488 (module_rules): Use new rules function.
15489 (kernel_rules): Likewise.
15490 (image_rules): Likewise.
15491 (library_rules): Likewise.
15492 (program_rules): Likewise.
15493 (script_rules): Likewise.
15494 (data_rules): Likewise.
15495
15496 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15497
15498 * .bzrignore: Add contrib and grub-core/contrib. Remove
15499 grub-core/Makefile.gcry.am.
15500
15501 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15502
15503 * grub-core/lib/LzFind.c: Add missing include.
15504 * grub-core/lib/LzmaEnc.c: Likewise.
15505 * grub-core/script/lexer.c: Likewise.
15506 * grub-core/script/yylex.l: Likewise.
15507 * util/grub-macho2img.c: Likewise.
15508 * util/grub-menulst2cfg.c: Likewise.
15509 * util/grub-mklayout.c: Likewise.
15510 * util/grub-mkpasswd-pbkdf2.c
15511 * util/grub-mkrelpath.c: Likewise.
15512 * util/resolve.c: Likewise.
15513
15514 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15515
15516 * Makefile.util.def (example_unit_test): Add
15517 grub-core/gnulib/libgnu.a.
15518
15519 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15520
15521 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15522
15523 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15524
15525 Support xz compression on yeeloong.
15526
15527 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15528 * configure.ac: Check for LZMA.
15529 * grub-core/Makefile.core.def (xz_decompress): New target.
15530 (none_decompress): Likewise.
15531 * grub-core/boot/decompressor/minilib.c: New file.
15532 * grub-core/boot/decompressor/none.c: Likewise.
15533 * grub-core/boot/decompressor/xz.c: Likewise.
15534 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15535 * grub-core/kern/mips/cache_flush.S: Likewise.
15536 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15537 * grub-core/kern/mips/startup.S: Move first stage to ...
15538 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15539 nomacro.
15540 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15541 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15542 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15543 Allocate statically.
15544 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15545 Allocate statically or use scratch. Don't check CRC32.
15546 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15547 Allocate statically. Don't check CRC32.
15548 * include/grub/decompressor.h: New file.
15549 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15550 Removed.
15551 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15552 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15553 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15554 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15555 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15556 * util/grub-mkimage.c (grub_compression_t): New type.
15557 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15558 (image_target_desc): New field default_compression.
15559 (image_targets): Adjust yeeloong targets.
15560 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15561 (compress_kernel): New parameter comp.
15562 (generate_image): Likewise. Handle new compression case.
15563 (options): New option --compression
15564 (help): Likewise.
15565 (main): Handle new option.
15566
15567 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15568
15569 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15570
15571 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15572
15573 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15574 typo in __i386__ conditional.
15575
15576 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15577
15578 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15579 include.
15580
15581 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15582
15583 Implement EFI and ACPI multiboot2 extensions.
15584
15585 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15586 new tags as supported.
15587 (acpiv2_size): New function.
15588 (grub_multiboot_get_mbi_size): Take new tags into account.
15589 (grub_multiboot_make_mbi): Add new tags.
15590 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15591
15592 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15593
15594 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15595 Added missing configuration of USB device.
15596
15597 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15598
15599 * grub-core/normal/menu_entry.c (run): Make sure we always return
15600 a value.
15601
15602 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15603
15604 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15605 NumberOfPages is UINT64 according to the UEFI specification, not
15606 UINTN. Fix printf format.
15607
15608 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15609
15610 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15611 `err' to grub_usb_err_t.
15612 Reported and tested by: KESHAV P.R.
15613
15614 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15615
15616 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15617 tpart non-const, so that we can assign to it. (Since this is a
15618 typedef, the constness refers to the pointer rather than what it
15619 points to.)
15620
15621 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15622
15623 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15624 $(top_srcdir)/grub-core/gnulib as well as
15625 $(top_builddir)/grub-core/gnulib.
15626 Reported by: KESHAV P.R.
15627
15628 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15629
15630 * util/grub-install.in: Fix the bootloader ID option to be
15631 consistently --bootloader-id, not --bootloader_id.
15632 Reported by: KESHAV P.R.
15633
15634 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15635
15636 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15637 check hash checksum." consistently translatable.
15638
15639 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15640
15641 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15642 $(top_builddir).
15643
15644 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15645
15646 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15647 (GRUB_MOD_INIT): Register sha1sum command.
15648 (GRUB_MOD_FINI): Unregister sha1sum command.
15649
15650 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15651
15652 Keep boot and grub directory names in sync with utils scripts
15653
15654 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15655 * config.h.in: Add previous macros.
15656 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15657 * util/grub-install.in: Use $bootdir and $grubdir variables.
15658
15659 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15660
15661 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15662 convert partition names to disk names if the new `convert' parameter
15663 is set.
15664 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15665 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15666 disk in its own right. This can happen with Xen disk images.
15667
15668 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15669
15670 * util/grub-editenv.c: Update strings to avoid warnings when generating
15671 grub.pot file.
15672 * util/grub-setup.c: Likewise.
15673
15674 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15675
15676 * configure.ac: Change version to 1.99~beta0.
15677
15678 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15679
15680 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15681 Add BADRAM.
15682 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15683 Likewise.
15684 * include/multiboot.h: Resynced with specification.
15685 * include/multiboot2.h: Likewise.
15686
15687 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15688
15689 Fix po directory handling.
15690
15691 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15692 * grub-core/gnulib/Makefile.am: Import gettext module.
15693 * m4/gnulib-cache.m4: Likewise.
15694 * m4/gnulib-comp.m4: Likewise.
15695 * m4/gettext.m4: New file, from gnulib.
15696 * m4/glibc2.m4: Likewise.
15697 * m4/iconv.m4: Likewise.
15698 * m4/intdiv0.m4: Likewise.
15699 * m4/intl.m4: Likewise.
15700 * m4/intldir.m4: Likewise.
15701 * m4/intlmacosx.m4: Likewise.
15702 * m4/intmax.m4: Likewise.
15703 * m4/inttypes-pri.m4: Likewise.
15704 * m4/lcmessage.m4: Likewise.
15705 * m4/lib-ld.m4: Likewise.
15706 * m4/lib-link.m4: Likewise.
15707 * m4/lib-prefix.m4: Likewise.
15708 * m4/lock.m4: Likewise.
15709 * m4/nls.m4: Likewise.
15710 * m4/po.m4: Likewise.
15711 * m4/printf-posix.m4: Likewise.
15712 * m4/progtest.m4: Likewise.
15713 * m4/threadlib.m4: Likewise.
15714 * m4/uintmax_t.m4: Likewise.
15715 * m4/visibility.m4: Likewise.
15716 * po/Makefile.am: Remove.
15717 * po/Makefile.in.in: New file, from gettext.
15718 ($(DOMAIN).pot-update): Support POTFILES-shell.
15719 * po/Makevars: New file.
15720 * po/POTFILES-shell: Rename to ...
15721 * po/POTFILES-shell.in: ... this. Update.
15722 * po/POTFILES: Rename to ...
15723 * po/POTFILES.in: ... this. Update.
15724 * po/Rules-quot: New file, from gettext.
15725 * po/boldquot.sed: Likewise.
15726 * po/en@boldquot.header: Likewise.
15727 * po/en@quot.header: Likewise.
15728 * po/insert-header.sin: Likewise.
15729 * po/quot.sed: Likewise.
15730 * po/remove-potcdate.sin: Likewise.
15731
15732 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15733
15734 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15735
15736 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15737
15738 * util/grub.d/20_linux_xen.in: Use submenus.
15739
15740 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15741
15742 Support submenus.
15743
15744 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15745 parameter submenu. All users updated.
15746 * grub-core/normal/main.c (free_menu): Rename to ...
15747 (grub_normal_free_menu): ... this. Made global.
15748 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15749 if requested.
15750 * grub-core/normal/menu_entry.c (screen): New field submenu.
15751 (make_screen): Set submenu.
15752 (run): Open new context if requested.
15753 * include/grub/menu.h (grub_menu_entry): New field submenu.
15754 * include/grub/normal.h (grub_normal_free_menu): New proto.
15755
15756 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15757
15758 Menu entries extractor.
15759
15760 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15761 variants.
15762 (GRUB_MOD_INIT): Register new variants.
15763 (GRUB_MOD_FINI): Unregister new variants.
15764 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15765 into grub_cmd_legacy_source.
15766 (grub_cmd_legacy_source): Implement extractor variants.
15767 (GRUB_MOD_INIT): Register new variants.
15768 (GRUB_MOD_FINI): Unregister new variants.
15769 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15770 as an extractor.
15771 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15772 search as an extractor.
15773 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15774 test as an extractor.
15775 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15776 as an extractor.
15777 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15778 (grub_env_new_context): New function.
15779 (grub_env_context_open): Likewise.
15780 (grub_env_extractor_open): Likewise.
15781 (grub_env_extractor_close): Likewise.
15782 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15783 grub_extractor_level.
15784 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15785 * include/grub/env.h (grub_env_extractor_open): New proto.
15786 (grub_env_extractor_close): Likewise.
15787 * include/grub/normal.h (grub_extractor_level): New external variable.
15788
15789 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15790
15791 Make cutmem accept a region specification.
15792 Suggested by: Samuel Thibault
15793
15794 * grub-core/mmap/mmap.c (parsemem): New function.
15795 (grub_cmd_cutmem): Handle new arguments.
15796
15797 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15798
15799 New command cutmem.
15800
15801 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15802 (GRUB_MOD_INIT): Register new command.
15803 (GRUB_MOD_FINI): Unregister new command.
15804
15805 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15806
15807 Support some annoying BSD and Minix subpartitions.
15808
15809 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15810 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15811 Properly handle concatenation.
15812 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15813 * grub-core/normal/completion.c (iterate_partition): Likewise.
15814 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15815 contain partition. All users updated.
15816 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15817 struct.
15818 (grub_openbsdlabel_partition_map): Likewise.
15819 (bsdlabel_partition_map_iterate): Rename to ..
15820 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15821 (bsdlabel_partition_map_iterate): New function.
15822 (netopenbsdlabel_partition_map_iterate): Likewise.
15823 (netbsdlabel_partition_map_iterate): Likewise.
15824 (openbsdlabel_partition_map_iterate): Likewise.
15825 (GRUB_MOD_INIT): Register new partmaps.
15826 (GRUB_MOD_FINI): Unregister new partmaps.
15827 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15828 (grub_partition_msdos_iterate): ... this. All users updated.
15829 Don't support embedding other than in a minix partition.
15830 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15831 proto.
15832 * include/grub/partition.h (grub_partition): New field msdostype.
15833 * util/grub-install.in: Handle openbsd and netbsd types being in
15834 part_bsd module.
15835
15836 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15837
15838 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15839
15840 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15841 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15842 (mdraid09): ... this.
15843 (mdraid1x): New module.
15844 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15845 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15846
15847 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15848
15849 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15850 vsprintf.
15851
15852 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15853
15854 * grub-core/commands/efi/lsefimmap.c: Correct header.
15855 * NEWS: Update.
15856
15857 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15858
15859 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15860 as printf format strings; the translations might contain '%' which
15861 could cause a crash.
15862 (main): Likewise.
15863 * util/grub-fstest.c (argp_parser): Likewise.
15864 * util/grub-setup.c (argp_parser): Likewise.
15865 (main): Likewise.
15866
15867 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15868
15869 Use argp in grub-fstest.
15870
15871 * util/grub-fstest.c: Don't include getopt.h.
15872 Include argp.h.
15873 (root): New variable.
15874 (args_count): Likewise.
15875 (nparm): Likewise.
15876 (num_disks): Likewise.
15877 (images): Likewise.
15878 (cmd): Likewise.
15879 (debug_str): Likewise.
15880 (args): Likewise.
15881 (options): Transformed to argp.
15882 (usage): Removed.
15883 (main): Split argument parsing into ...
15884 (argp_parser): ... this. Changed to argp format.
15885 (argp): New variable.
15886 (main): Use argp_parse.
15887
15888 2010-09-20 Tristan Gingold <gingold@free.fr>
15889 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
15890 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15891
15892 * grub-core/commands/efi/lsefimmap.c: New file.
15893 * grub-core/Makefile.core.def (lsefimmap): New module.
15894 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15895
15896 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15897
15898 Pause the execution (10s max) if any errors are displayed so the user
15899 has a chance to see them.
15900
15901 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15902 (grub_print_error): Increment grub_err_printed_errors.
15903 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15904 execution if any errors were displayed.
15905 (show_menu): Remove old code for pause.
15906 * grub-core/normal/menu_entry.c (run): Likewise.
15907 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15908 users updated.
15909 (grub_normal_get_char_counter): Likewise.
15910 * include/grub/err.h (grub_err_printed_errors): New external variable.
15911 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15912
15913 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 Support multiboot VBE info.
15916
15917 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15918 Take VBE info into account.
15919 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15920 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15921 Call fill_vbe_info when appropriate.
15922 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15923 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15924 as supported.
15925 (grub_multiboot_get_mbi_size): Take new tags into account.
15926 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15927 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15928 Call fill_vbe_tag when appropriate.
15929 (grub_multiboot_make_mbi): Properly align tags.
15930 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15931 function.
15932 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15933 proto.
15934 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15935
15936 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15937
15938 Suport manual terminal geometry specification.
15939
15940 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15941 Save state in grub_ofconsole_terminfo_output.
15942 (grub_ofconsole_term): Use grub_terminfo_getwh.
15943 (grub_ofconsole_getwh): Removed.
15944 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15945 (grub_serial_term): Use grub_terminfo_getwh.
15946 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15947 (options): New struct.
15948 (OPTION_*): New enum.
15949 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15950 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15951 width and height.
15952 (grub_terminfo_getwh): New proto.
15953 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15954
15955 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 Handle legacy "terminal" command.
15958
15959 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15960 and FLAG_TERMINAL.
15961 (legacy_commands): Add terminal and title.
15962 (grub_legacy_parse): Handle terminal. Simplify title handling.
15963
15964 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15965
15966 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15967 parameters overflow.
15968
15969 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15970
15971 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15972 widthspec.h.
15973
15974 * docs/grub.texi (Shell-like scripting): Document `!'.
15975 (Network): Simplify using new i386-pc-pxe format. Mention
15976 grub-mknetdir.
15977
15978 * NEWS: Update.
15979
15980 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15981
15982 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15983 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15984 when needed.
15985
15986 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15987
15988 * grub-core/commands/efi/lsefisystab.c: Correct header.
15989 * grub-core/commands/efi/lssal.c: Likewise.
15990 * grub-core/commands/testload.c: Likewise.
15991
15992 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15993
15994 * util/grub-mkrescue.in: Add explicit root argument to --set to
15995 prevent the UUID being interpreted as an argument to --set (matches
15996 previous change to prepare_grub_to_access_device).
15997
15998 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
15999
16000 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16001 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16002 the verbosity of later #ifs.
16003 (find_partition_start): Define this function on FreeBSD too.
16004 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16005 function.
16006 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16007 on FreeBSD.
16008
16009 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16010
16011 * util/grub-editenv.c: Use argp instead of getopt.
16012
16013 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16014
16015 * util/grub-setup.c: Use argp instead of getopt.
16016
16017 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16018
16019 Use gnulib-tool to create gnulib source files.
16020
16021 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16022 grub-core/gnulib directories
16023 * .bzignore: Add **/.deps and autogenerated gnulib files
16024 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16025 of gnulib macros, add grub-core/gnulib/Makefile
16026 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16027 include m4 directory to aclocal.
16028 * Makefile.util.def: Remove direct compilation of gnulib source files
16029 and use the new grub-core/gnulib/libgnu.a.
16030 * build-aux/config.rpath: move config.rpath from top directory to
16031 build-aux
16032 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16033 in gnulib headers
16034 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16035 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16036 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16037 header.
16038 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16039 string.
16040
16041 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16042
16043 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16044 grub-core/genmod.sh and grub-core/gensyminfo.sh
16045
16046 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16047
16048 Add a test for echo command options.
16049
16050 * tests/grub_cmd_echo.in: New test.
16051 * Makefile.util.def: Rules for new test.
16052
16053 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16054
16055 Remove crc.mod and move crc command to hashsum.mod.
16056 Remove lib/crc.c - users updated to use gcrypt implementation.
16057
16058 * grub-core/commands/crc.c: Removed.
16059 * grub-core/Makefile.core.def (crc): Module removed.
16060 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16061 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16062 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16063 * grub-core/lib/crc.c: Removed.
16064 * include/grub/lib/crc.h: Removed.
16065 * Makefile.util.def (crc): Remove lib/crc.c
16066 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16067 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16068 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16069 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16070 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16071 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16072
16073 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16074
16075 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16076
16077 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16078
16079 Split config.h for util and core.
16080
16081 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16082 (ADDR32): Likewise.
16083 (DATA32): Likewise.
16084 (BSS_START_SYMBOL): Likewise.
16085 (END_SYMBOL): Likewise.
16086 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16087 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16088 * config.h.in: New file.
16089 * configure.ac: Use config-util.h as config define file.
16090 Rename MACHINE into GRUB_MACHINE. All users updated.
16091 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16092 updated.
16093 (NESTED_FUNC_ATTR): Likewise.
16094 Substitue new variables.
16095 (COND_HAVE_ASM_USCORE): New conditional.
16096 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16097 (kernel_syms.lst): Use ASM_PREFIX.
16098 * grub-core/kern/emu/console.c: Include config-util.h.
16099 * grub-core/kern/emu/misc.c: Likewise.
16100 * grub-core/kern/emu/mm.c: Likewise.
16101 * include/grub/emu/misc.h: Likewise.
16102 * include/grub/libgcc.h: Likewise.
16103
16104 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16105
16106 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16107 constants usage.
16108 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16109 Fix GRUB_TERM_KEY_* constants usage.
16110 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16111
16112 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16113
16114 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16115 print pointer.
16116 * grub-core/bus/usb/uhci.c: Remove empty define.
16117 (grub_uhci_check_transfer): Add missing cast.
16118 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16119 print pointer.
16120 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16121 PRIuGRUB_SIZE.
16122 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16123
16124 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16125
16126 * grub-core/Makefile.core.def (legacycfg): Add
16127 lib/i386/pc/vesa_modes_table.c on emu.
16128
16129 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16130
16131 Reduce number of temporary files generated by build system.
16132
16133 * grub-core/gencmdlist.sh: Removed.
16134 * grub-core/genfslist.sh: Removed.
16135 * grub-core/genhandlerlist.sh: Removed.
16136 * grub-core/genmodsrc.sh: Removed.
16137 * grub-core/genpartmaplist.sh: Removed.
16138 * grub-core/genparttoollist.sh: Removed.
16139 * grub-core/gentermiinallist.sh: Removed.
16140 * grub-core/genvideolist.sh: Removed.
16141
16142 * grub-core/genmod.sh.in: New file.
16143 * grub-core/gensyminfo.sh.in: New file.
16144
16145 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16146 * conf/Makefile.extra-dist: Update with new files.
16147 * gentpl.py: Remove rules related to unnecessary temporary files.
16148 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16149 and und-* files.
16150 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16151 genmod.sh scripts.
16152 * grub-core/bus/usb/uhci.c: Remove empty #define.
16153 * grub-core/genmoddep.awk: Updated with new syminfo format.
16154 * util/bash-completion.d/Makefile.am: Add config.log to
16155 CLEANFILES.
16156
16157 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16158
16159 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16160
16161 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16162
16163 * util/grub-mkconfig.in: Check the config script for syntax errors
16164 before saving.
16165
16166 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16167 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16168
16169 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16170 platforms.
16171 * util/grub-install.in: Add EFI and IEEE1275 support.
16172 * util/i386/efi/grub-install.in: Removed.
16173 * util/ieee1275/grub-install.in: Likewise.
16174
16175 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16176
16177 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16178 (grub_cmd_cmosclean): Likewise.
16179 (GRUB_MOD_INIT): Register command cmosclean.
16180 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16181 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16182
16183 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16184 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16185 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16186
16187 Add keyboard layouts support.
16188
16189 * Makefile.util.def (grub-mklayout): New file.
16190 (grub-kbdcomp): New script.
16191 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16192 Add keyboard_layouts.h.
16193 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16194 commands/boot.c on yeeloong.
16195 (keylayouts): New module.
16196 * grub-core/bus/usb/ohci.c
16197 * grub-core/bus/usb/uhci.c
16198 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16199 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16200 (attach_root_port): Likewise.
16201 (poll_nonroot_hub): Likewise.
16202 (grub_usb_poll_devices): Likewise.
16203 (detach_device): Close transfer.
16204 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16205 function.
16206 (grub_usb_bulk_setup_readwrite): Likewise.
16207 (grub_usb_bulk_finish_readwrite): Likewise.
16208 * grub-core/commands/keylayouts.c: New file.
16209 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16210 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16211 aliases.
16212 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16213 support scancode 2.
16214 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16215 * include/grub/keyboard_layouts.h: New file.
16216 * util/grub-mklayout.c: New file.
16217 * util/grub-kbdcomp.in: Likewise.
16218
16219 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16220
16221 Unify memory types.
16222
16223 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16224 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16225 types.
16226 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16227 (grub_upper_mem): Likewise.
16228 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16229 * include/grub/memory.h (grub_memory_type_t): New enum.
16230 All users updated.
16231
16232 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16233
16234 * grub-core/Makefile.core.def (lsapm): New module.
16235 * grub-core/commands/i386/pc/lsapm.c: New file.
16236 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16237 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16238 Likewise.
16239 * include/grub/i386/pc/apm.h: New file.
16240 * include/multiboot.h (multiboot_apm_info): New struct.
16241
16242 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 GRUB-legacy configuration file support.
16245
16246 * Makefile.util.def (grub-menulst2cfg): New util.
16247 * docs/man/grub-menulst2cfg.h2m: New file.
16248 * grub-core/Makefile.core.def (legacycfg): New module.
16249 * grub-core/commands/legacycfg.c: New file.
16250 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16251 (grub_normal_add_menu_entry): ... this.
16252 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16253 (grub_normal_set_password): ...this.
16254 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16255 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16256 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16257 * grub-core/lib/legacy_parse.c: New file.
16258 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16259 * include/grub/i386/pc/vesa_modes_table.h: New file.
16260 * include/grub/legacy_parse.h: Likewise.
16261 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16262 * util/grub-menulst2cfg.c: New file.
16263
16264 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16265
16266 * grub-core/kern/emu/hostdisk.c
16267 (convert_system_partition_to_system_disk): Initialise node.
16268
16269 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16270
16271 * grub-core/kern/emu/hostdisk.c
16272 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16273 leak.
16274 Reported and based on patch by: Modestas Vainius.
16275
16276 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16277
16278 Fix DM-RAID probing with recent versions of device-mapper udev
16279 rules.
16280
16281 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16282 canonicalise device paths under /dev/mapper/.
16283 (convert_system_partition_to_system_disk): Compare the
16284 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16285 path, since device nodes under /dev/mapper/ are often symlinks.
16286
16287 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16288
16289 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16290
16291 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16292
16293 * configure.ac: Avoid some annoying error messages if freetype-config
16294 program is not found.
16295
16296 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16297
16298 Support RAID on virtio devices, and others.
16299
16300 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16301 Rename to ...
16302 [__MINGW32__] (grub_find_device): ... this.
16303 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16304 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16305 reasonable default if dir is NULL.
16306 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16307 ...
16308 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16309 (grub_guess_root_device): Update callers.
16310 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16311
16312 * util/raid.c (grub_util_getdiskname): Remove.
16313 (grub_util_raid_getmembers): Use grub_find_device rather than
16314 grub_util_getdiskname.
16315
16316 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16317
16318 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16319 needing to be compiled with serial support.
16320 (ls): Indicate that multiple files are accepted.
16321 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16322 indicate that multiple files are accepted.
16323
16324 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16325
16326 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16327 libgrub_a_init.c, and util/bash-completion.d/grub.
16328
16329 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16330
16331 * util/grub-setup.c (setup): Fix incorrect container semantics.
16332
16333 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16334
16335 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16336 misusage.
16337 Reported by: J. Nick Terry
16338
16339 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16340
16341 Move embedding routines to partmap sources files.
16342
16343 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16344 [GRUB_UTIL]: New variable.
16345 (gpt_partition_map_iterate): Set part.parent.
16346 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16347 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16348 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16349 New function.
16350 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16351 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16352 (grub_partition_map) [GRUB_UTIL]: New field embed.
16353 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16354 (setup): Use ->embed.
16355
16356 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16357
16358 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16359 function.
16360 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16361 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16362
16363 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16364
16365 Add function to get completions from usage.
16366
16367 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16368 completions from usage. Use LC_ALL=C to get options properly.
16369
16370 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16371
16372 * grub-core/gnulib/basename-lgpl.c: Imported.
16373 * grub-core/gnulib/basename.c: Likewise.
16374 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16375 * grub-core/gnulib/dirname.c: Likewise.
16376 * grub-core/gnulib/dirname.h: Likewise.
16377 * grub-core/gnulib/stripslash.c: Likewise.
16378
16379 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16380
16381 * grub-core/gnulib/error.c: Resynced.
16382 * grub-core/gnulib/getopt.c: Likewise.
16383 * grub-core/gnulib/getopt_int.h: Likewise.
16384 * grub-core/gnulib/regex.h: Likewise.
16385 * grub-core/gnulib/regex_internal.c: Likewise.
16386 * grub-core/gnulib/regex_internal.h: Likewise.
16387
16388 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16389
16390 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16391 CRC calculations and validity checks.
16392 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16393 calculations.
16394
16395 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16396
16397 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16398
16399 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16400
16401 Fix incorrect echo options handling.
16402 Reported by: Yves Blusseau.
16403
16404 * include/grub/command.h (grub_command_flags_t): New flags
16405 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16406 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16407 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16408
16409 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16410
16411 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16412 users updated.
16413 (GRUB_COMMAND_FLAG_MENU): Likewise.
16414 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16415 (GRUB_COMMAND_FLAG_TITLE): Removed.
16416 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16417 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16418 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16419 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16420 (grub_command_flags_t): New enum. All users updated.
16421
16422 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16423
16424 Fix solaris compilation.
16425
16426 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16427 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16428 (grub-emu-list): Likewise.
16429
16430 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16431
16432 Remove deprecated root command.
16433
16434 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16435 updated.
16436
16437 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16438
16439 * util/i386/pc/grub-setup.c: Merge this ...
16440 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16441 * util/grub-setup.c: ... into this.
16442 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16443 New struct.
16444
16445 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16446
16447 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16448 possible.
16449
16450 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16453 allocate p.
16454
16455 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16456
16457 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16458 explicit root argument to set to prevent UUID to be interpreted as
16459 argument to set.
16460
16461 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16462
16463 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16464
16465 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16466
16467 Don't export grub_gate_a20.
16468
16469 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16470 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16471 to ...
16472 (grub_gate_a20): ... this. All users updated.
16473 * include/grub/i386/pc/init.h: Removed. All users updated.
16474
16475 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16476
16477 Create euro.pf2 which supports most European languages.
16478
16479 * Makefile.am (grubdata_DATA): Add euro.pf2.
16480 (euro.pf2): New target.
16481 (CLEANFILES): Add euro.pf2.
16482
16483 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * configure.ac: Disable emu-usb by default to prevent inadvertent
16486 device takeover.
16487
16488 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 Disable usbserial on grub-emu since our libusb code isn't good enough
16491 yet.
16492
16493 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16494 (usbserial_pl2303): Likewise.
16495 (usbserial_ftdi): Likewise.
16496
16497 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16498
16499 * include/grub/disk.h (grub_disk): Remove has_partitions.
16500 All users updated.
16501 * disk/loopback.c (grub_loopback): Remove has_partitions.
16502 All users updated.
16503 (options): Remove partitions. All users updated.
16504 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16505 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16506 actual partition table is found.
16507
16508 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16509
16510 Remove readability checks (too many false negatives).
16511
16512 * util/grub-install.in: Remove readability checks.
16513 * util/grub-mkconfig.in: Likewise.
16514 * util/grub.d/10_hurd.in: Likewise.
16515 * util/grub.d/10_kfreebsd.in: Likewise.
16516 * util/grub.d/10_linux.in: Likewise.
16517 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16518 way.
16519
16520 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16521
16522 Enable acpi shutdown on all ACPI platforms.
16523
16524 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16525 on coreboo, multiboot and EFI.
16526 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16527 (grub_acpi_halt): Likewise.
16528 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16529 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16530 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16531 * grub-core/lib/i386/halt.c (grub_halt)
16532 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16533
16534 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16535
16536 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16537 context.
16538
16539 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16540
16541 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16542 * grub-core/video/efi_uga.c: Likewise.
16543
16544 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16545
16546 Filter devaliases and never open same device twice.
16547
16548 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16549 (last_ihandle): Likewise.
16550 (ofdisk_hash_ent): New member shortest.
16551 (ofdisk_hash_add): Add canonical path too.
16552 (scan): New function.
16553 (grub_ofdisk_iterate): Iterate over hashed entries.
16554 (compute_dev_path): Don't add :0.
16555 (grub_ofdisk_open): Don't really open the disk.
16556 (grub_ofdisk_close): Avoid closing unrelated disk.
16557 (grub_ofdisk_read): Implement reopen logic.
16558 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16559 New function.
16560 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16561 New proto.
16562
16563 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16564
16565 Fix sparc64.
16566
16567 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16568 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16569 right address. Add sparc64_ieee1275_ldflags.
16570 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16571 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16572 to grub_host_to_target_addr
16573 (load_image): Likewise.
16574
16575 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16576
16577 * grub-core/normal/completion.c (complete_file): Handle device
16578 containing slash.
16579 Fix based on patch by Doug Nazar.
16580
16581 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16582
16583 grub-mknetdir script.
16584
16585 * Makefile.util.def (grub-mknetdir): New module.
16586 * tests/util/grub-shell.in: Support boot=net
16587 * util/grub-mknetdir.in: New file.
16588
16589 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16590
16591 videoinfo on non-vbe.
16592
16593 * grub-core/Makefile.core.def (vbeinfo): Removed.
16594 (vbetest): Removed.
16595 (videoinfo): New module.
16596 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16597 * grub-core/commands/i386/pc/vbetest.c: Removed.
16598 * grub-core/commands/videoinfo.c: New file.
16599 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16600 specification.
16601 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16602 as vbetest.
16603 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16604 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16605 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16606 mode_number. New parameter mode. All users updated.
16607 (grub_video_gop_iterate): New function.
16608 (grub_video_efi_gop): New member iterate.
16609 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16610 (grub_vbe_set_video_mode): Remove setting useless fields.
16611 (vbe2videoinfo): New function.
16612 (grub_video_vbe_iterate): Likewise.
16613 (grub_video_vbe_setup): Use vbe2videoinfo.
16614 (grub_video_vbe_print_adapter_specific_info): New function.
16615 (grub_video_vbe_adapter): New fields iterate and
16616 print_adapter_specific_info.
16617 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16618 All users updated.
16619 (grub_video_mode_info): New field mode_number.
16620 (grub_video_adapter): New fields iterate and
16621 print_adapter_specific_info.
16622
16623 2010-09-13 Tristan Gingold <gingold@free.fr>
16624 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16625 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16626
16627 * grub-core/commands/efi/lsefisystab.c: New file.
16628 * grub-core/commands/efi/lssal.c: Likewise.
16629 * grub-core/Makefile.core.def (lsacpi): New module.
16630 (lsefisystab): Likewise.
16631 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16632 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16633 (grub_efi_sal_system_table): New struct.
16634 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16635 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16636 (grub_efi_sal_system_table_platform_features): Likewise.
16637 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16638 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16639 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16640 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16641
16642 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 Support explicit user claim that a device is BIOS-visible.
16645
16646 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16647 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16648 * grub-core/kern/emu/hostdisk.c
16649 (convert_system_partition_to_system_disk): Support mdX.
16650 (find_system_device): New parameter add. All users updated.
16651 (grub_util_biosdisk_is_present): New function.
16652 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16653 proto.
16654
16655 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16656
16657 Search hints support.
16658
16659 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16660 All users updated.
16661
16662 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16663
16664 Bash completion script for util commands
16665
16666 * Makefile.am: Add util/bash-completion.d directory
16667 * configure.ac: Likewise.
16668 * util/bash-completion.d/Makefile.am: New file.
16669 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16670
16671 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16672
16673 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16674 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16675 Reported by: Yves Blusseau.
16676
16677 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16678
16679 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16680 partition size and offset.
16681
16682 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16683
16684 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16685
16686 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16687
16688 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16689
16690 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16691
16692 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16693 (grub_xvasprintf): Likewise.
16694
16695 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16696
16697 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16698
16699 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16700
16701 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16702 args ending with NULL.
16703
16704 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16707 pointer.
16708
16709 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16710
16711 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16712
16713 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16714
16715 Shutdown using ACPI.
16716
16717 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16718 * grub-core/commands/acpihalt.c: New file.
16719 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16720 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16721 (grub_acpi_halt): New proto.
16722 (GRUB_ACPI_SLP_EN): New const.
16723 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16724 (GRUB_ACPI_OPCODE_*): New enum.
16725 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16726
16727 2010-09-11 Tristan Gingold <gingold@free.fr>
16728 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16729 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16730
16731 * commands/lsacpi.c: New file.
16732 * grub-core/Makefile.core.def (lsacpi): New module.
16733 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16734 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16735 (grub_acpi_madt_entry_header): New struct.
16736 (grub_acpi_madt): Likewise.
16737 (grub_acpi_madt_entry_interrupt_override): Likewise.
16738 (grub_acpi_madt_entry_sapic): Likewise.
16739 (grub_acpi_madt_entry_lsapic): Likewise.
16740 (grub_acpi_madt_entry_platform_int_source): Likewise.
16741 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16742 (PRIuGRUB_UINT32_T): Likewise.
16743 (PRIxGRUB_UINT64_T): Likewise.
16744
16745 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16746
16747 Implement loading palette on ieee1275_fb.
16748
16749 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16750 (have_setcolors): Likewise.
16751 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16752 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16753 (grub_video_ieee1275_set_palette): Implement.
16754
16755 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16756 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
16757
16758 * util/grub-install.in (grub_partition): New variable.
16759 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16760 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16761 Fixes a bug reported by Yves Blusseau.
16762
16763 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16764
16765 Fix emu on mipsel.
16766
16767 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16768 =grub_cpu_flush_cache on all mips and not only yeeloong.
16769 * configure.ac (COND_mips): New conditional.
16770 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16771 platforms.
16772 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16773 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16774 [GRUB_LINKER_HAVE_INIT]: New function.
16775 (grub_emu_post_init): Likewise.
16776 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16777 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16778 * include/grub/cache.h (_mips): Include mips/cache.h.
16779 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16780 LVM and RAID prototypes.
16781 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16782 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16783 function.
16784
16785 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16786
16787 * util/grub-install.in: Don't try to verify core.img until after
16788 running grub-mkimage to create it.
16789
16790 2010-09-10 Robert Millan <rmh@gnu.org>
16791
16792 * util/grub.d/10_hurd.in: Add misc readability checks.
16793 * util/grub.d/10_kfreebsd.in: Likewise.
16794 * util/grub.d/10_linux.in: Likewise.
16795
16796 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16797
16798 * util/grub-install.in: ${imgext} won't be defined here until the
16799 install branch is merged. For the meantime, only verify core.img on
16800 i386-pc and sparc64-ieee1275 platforms.
16801
16802 2010-09-10 Robert Millan <rmh@gnu.org>
16803
16804 Solaris support in grub_find_zpool_from_dir(). Thanks
16805 Seth Goldberg for referring to getextmntent() facility.
16806
16807 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16808 `sys/mkdev.h'.
16809 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16810 `<sys/mnttab.h>'.
16811 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16812 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16813 method for finding zpool name.
16814
16815 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
16816
16817 grub-fstest needs the host and hostfs modules while other utilities
16818 actively require those modules to be absent, so grub-fstest needs
16819 its own initialisation and finalisation code.
16820
16821 * Makefile.am (grub_fstest.pp): New target.
16822 (grub_fstest_init.lst): Likewise.
16823 (grub_fstest_init.c): Likewise.
16824 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16825
16826 2010-09-10 Robert Millan <rmh@gnu.org>
16827
16828 * configure.ac: Check for `struct statfs.f_fstypename' and
16829 `struct statfs.f_mntfromname'.
16830
16831 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16832 kFreeBSD-specific code.
16833
16834 2010-09-10 Robert Millan <rmh@gnu.org>
16835
16836 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16837 on ZFS. Now non-main filesystems are supported as / too.
16838
16839 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
16840
16841 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16842 and grub-core/disk/host.c to ...
16843 (grub-fstest): ... here. Having the host disk implementation
16844 present confuses grub-probe and other utility programs.
16845
16846 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16847 when writing to a file, not when writing to stdout.
16848
16849 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16850
16851 * tests/partmap_test.in: New test for partitions.
16852 * Makefile.util.def: Rules for new test.
16853
16854 2010-09-09 Robert Millan <rmh@gnu.org>
16855
16856 * util/grub-probe.c (probe): Fix a pair of unhandled error
16857 conditions.
16858
16859 2010-09-09 Robert Millan <rmh@gnu.org>
16860
16861 Basic Btrfs support (detection and UUID).
16862
16863 * grub-core/fs/btrfs.c: New file.
16864 * Makefile.util.def (library): Register btrfs.c.
16865 * grub-core/Makefile.core.def: Likewise.
16866
16867 2010-09-08 Robert Millan <rmh@gnu.org>
16868
16869 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16870 with (optional) parameters to specify device and relative path.
16871 * util/grub-install.in: Use is_path_readable_by_grub() to
16872 verify readability of a few critical files.
16873 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16874 verify readability of grub.cfg.new.
16875
16876 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16877
16878 Split minix.mod into minix.mod and minix2.mod.
16879
16880 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16881 * grub-core/Makefile.core.def (minix2): New module.
16882 * grub-core/fs/minix.c: Use definitions instead of runtime version
16883 checking.
16884 * grub-core/fs/minix2.c: New file.
16885
16886 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16887
16888 Add new --boot-directory option to replace --root-directory
16889
16890 * util/grub-install.in: Add new --boot-directory option
16891 * util/grub-reboot.in: Likewise.
16892 * util/grub-set-default.in: Likewise.
16893
16894 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16895
16896 * util/grub-mkconfig.in: Use new variable.
16897
16898 2010-09-08 Yves Blusseau <blusseau@zetam.org>
16899
16900 * configure.ac: Define some useful variables.
16901
16902 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16903
16904 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16905 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16906 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16907 Use terminfo and don't use cursor-on/cursor-off unless it's known
16908 to work.
16909 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16910 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16911
16912 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
16913
16914 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16915 starts with "(,", fill the drive containing the loaded image in
16916 between those two characters, but expect that a full partition
16917 specification including partition map names will follow.
16918
16919 2010-09-08 Robert Millan <rmh@gnu.org>
16920
16921 * configure.ac: Remove `--enable-grub-fstest' option.
16922 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16923
16924 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16925 `grub-fstest' instead of `grub-probe' for readability verification.
16926 * util/grub-probe.c (probe): Remove readability verification kludge.
16927
16928 2010-09-08 Robert Millan <rmh@gnu.org>
16929
16930 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16931 initializing `GRUB_FS'.
16932
16933 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16934
16935 Not command (!) support to GRUB script.
16936
16937 * tests/grub_script_not.in: New test.
16938 * Makefile.util.def: Rules for new test.
16939
16940 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16941 ! command as a special case.
16942 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16943
16944 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16945
16946 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16947 grub_free.
16948
16949 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16950
16951 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16952
16953 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16954
16955 * docs/grub.texi (Shell-like scripting): Documentation for break,
16956 continue, shift and return commands.
16957
16958 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16959
16960 Rename CD-ROM to cd on BIOS.
16961
16962 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16963 "cd".
16964 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16965
16966 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16969 * util/grub-probe.c (main): Likewise.
16970 * util/i386/pc/grub-setup.c (main): Likewise.
16971 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16972 Reported and debugged by: alexxy
16973
16974 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16975
16976 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16977 diagnostic info.
16978
16979 2010-09-05 Jo Shields <directhex@apebox.org>
16980
16981 * util/grub.d/30_os-prober.in: Add missing classes.
16982
16983 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 * docs/grub.texi (Theme file format): Document new position format.
16986
16987 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16988
16989 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16990 a table. Use @code instead of @verbatim.
16991
16992 2010-09-05 Colin D Bennett <colin@gibibit.com>
16993
16994 Gfxmenu documentation.
16995
16996 * docs/grub.texi (Theme file format): New chapter.
16997
16998 2010-09-05 Szymon Janc <szymon@janc.net.pl>
16999
17000 * grub-core/Makefile.core.def (xzio): New module.
17001 * grub-core/io/xzio.c: New file.
17002 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17003 * grub-core/lib/xzembed/xz_config.h: Likewise.
17004 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17005 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17006 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17007 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17008 * grub-core/lib/xzembed/xz_private.h: Likewise.
17009 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17010 * include/grub/file.h (grub_file_filter_id): New compression filter
17011 GRUB_FILE_FILTER_XZIO.
17012
17013 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17014
17015 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17016 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17017 size.
17018
17019 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17020
17021 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17022 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17023
17024 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17025
17026 Uncompressed checksum support.
17027
17028 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17029 (check_list): New parameter uncompress.
17030 (grub_cmd_hashsum): Handle --uncompress.
17031
17032 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17033
17034 Reintroduce testload.
17035
17036 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17037 from here ...
17038 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17039 (GRUB_MOD_INIT): New function.
17040 (GRUB_MOD_FINI): Likewise.
17041 * grub-core/Makefile.core.def (testload): New module.
17042
17043 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17044
17045 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17046 (uint8_t): New type.
17047 (uint16_t): Likewise.
17048 (uint32_t): Likewise.
17049 (uint64_t): Likewise.
17050
17051 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17052
17053 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17054
17055 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17056
17057 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17058 Made static.
17059 (grub_gzfile_open): Removed. All users updated.
17060 (GRUB_MOD_INIT): New function.
17061 (GRUB_MOD_FINI): Likewise.
17062 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17063 (grub_file_filters_enabled): Likewise.
17064 (grub_file_open): Handle filters.
17065 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17066 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17067 * include/grub/file.h (grub_file_filter_id_t): New type.
17068 (grub_file_filter_t): Likewise.
17069 (grub_file_filters_all): New extern variable.
17070 (grub_file_filters_enabled): Likewise.
17071 (grub_file_filter_register): New inline function.
17072 (grub_file_filter_unregister): Likewise.
17073 (grub_file_filter_disable): Likewise.
17074 (grub_file_filter_disable_compression): Likewise.
17075 * include/grub/gzio.h: Removed.
17076
17077 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17078
17079 Filename expansion support for wildcards in GRUB script.
17080
17081 * tests/grub_script_expansion.in: New test.
17082 * Makefile.util.def: Rule for new test.
17083
17084 * grub-core/commands/wildcard.c: New file, implements filename
17085 expansion support for GRUB script.
17086 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17087 * grub-core/script/argv.c: Cosmetic changes.
17088 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17089 Refactored to perform wildcard expansion on arguments.
17090 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17091 struct.
17092
17093 * tests/util/grub-shell.in: Fix quoting for read input.
17094
17095 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17096
17097 Support for updating environment variables with matched substrings
17098 of regexp.
17099
17100 * tests/grub_cmd_regexp.in: New test.
17101 * Makefile.util.def: Rule for new test.
17102
17103 * grub-core/commands/regexp.c: New option -s to update environment
17104 variables with regexp matches.
17105
17106 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17107
17108 * include/grub/file.h (grub_file): New member not_easly_seekable.
17109 (grub_file_seekable): New inline function.
17110 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17111 easily seekable.
17112 (grub_gzio_open): Set not_easly_seekable.
17113 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17114 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17115
17116 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17117
17118 Support for options to appear multiple times on cmdline.
17119
17120 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17121 * grub-core/commands/extcmd.c: Support for repeatable option.
17122 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17123 repeatable option support.
17124
17125 Refactor menuentry into a regular command.
17126
17127 * grub-core/commands/menuentry.c: New file, menuentry command
17128 implementation.
17129 * grub-core/Makefile.core.def: Rule update for normal.mod.
17130 * grub-core/normal/main.c: Moved menuentry creation to
17131 grub-core/commands/menuentry.c.
17132 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17133 (grub_menu_execute_entry_real): Removed.
17134 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17135 function.
17136 (grub_script_execute_menuentry): Removed.
17137 * grub-core/script/parser.y (menuentry): Removed.
17138 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17139 * grub-core/script/yylex.l (menuentry): Removed.
17140 * include/grub/menu.h (grub_menu_init): New prototype.
17141 (grub_menu_fini): New prototype.
17142 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17143 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17144 (grub_script_execute_sourcecode): New prototype.
17145
17146 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17147
17148 "return" command for GRUB script functions.
17149
17150 * tests/grub_script_return.in: New test.
17151 * Makefile.util.def: Rules for new test.
17152
17153 * grub-core/script/execute.c (grub_script_return): New function.
17154 * grub-core/script/main.c: Register/unregister return commaond.
17155 * include/grub/script_sh.h (grub_script_return): New prototype.
17156
17157 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17158
17159 "setparams" command to update positional parameters.
17160
17161 * tests/grub_script_setparams.in: New test.
17162 * Makefile.util.def: Rules for new test.
17163
17164 * grub-core/script/argv.c (grub_script_argv_make): New function.
17165 * grub-core/script/execute.c (replace_scope): New function.
17166 (grub_script_setparams): New function.
17167 * grub-core/script/lexer.c: Remove unused variables.
17168 * grub-core/script/main.c: Register/unregister setparams command.
17169 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17170 (grub_script_setparams): New prototype.
17171
17172 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17173
17174 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17175 grub_free order.
17176
17177 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17178
17179 Support for passing block of commands as an argument to extcmds.
17180
17181 * Makefile.util.def: Rules for new test.
17182 * tests/grub_script_blockarg.in: New test.
17183 * grub-core/tests/test_blockarg.c: New file, block argument
17184 command used in the test.
17185
17186 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17187 (grub_register_extcmd_prio): New function prototype.
17188 (grub_extcmd_dispatcher): New function prototype.
17189 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17190 type.
17191 * include/grub/script_sh.h (struct grub_script): New members
17192 `children', `next_siblings' and `refcnt' for block arguments and
17193 reference counting.
17194 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17195 (grub_script_arg): New member `script' for block argument.
17196 (grub_script_argv): New member `script' for block argument.
17197 (grub_parser_param): New member `scripts' for block argument.
17198 (grub_script_mem_free): New extern function prototype.
17199 (grub_script_ref): New function prototype.
17200 (grub_script_unref): New function prototype.
17201
17202 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17203 extcmd form to support block arguments.
17204 * grub-core/script/argv.c: Block arguments support.
17205 * grub-core/script/execute.c: Likewise.
17206 * grub-core/script/lexer.c: Likewise.
17207 * grub-core/script/main.c: Likewise.
17208 * grub-core/script/script.c: Likewise.
17209 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17210 non-terminals.
17211
17212 * grub-core/commands/acpi.c: Update extcmd implementations with
17213 grub_extcmd_context_t.
17214 * grub-core/commands/cat.c: Likewise.
17215 * grub-core/commands/echo.c: Likewise.
17216 * grub-core/commands/extcmd.c: Likewise.
17217 * grub-core/commands/hashsum.c: Likewise.
17218 * grub-core/commands/hdparm.c: Likewise.
17219 * grub-core/commands/help.c: Likewise.
17220 * grub-core/commands/hexdump.c: Likewise.
17221 * grub-core/commands/i386/cpuid.c: Likewise.
17222 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17223 * grub-core/commands/i386/pc/halt.c: Likewise.
17224 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17225 * grub-core/commands/iorw.c: Likewise.
17226 * grub-core/commands/keystatus.c: Likewise.
17227 * grub-core/commands/loadenv.c: Likewise.
17228 * grub-core/commands/ls.c: Likewise.
17229 * grub-core/commands/lspci.c: Likewise.
17230 * grub-core/commands/memrw.c: Likewise.
17231 * grub-core/commands/probe.c: Likewise.
17232 * grub-core/commands/search_wrap.c: Likewise.
17233 * grub-core/commands/setpci.c: Likewise.
17234 * grub-core/commands/sleep.c: Likewise.
17235 * grub-core/disk/loopback.c: Likewise.
17236 * grub-core/hello/hello.c: Likewise.
17237 * grub-core/loader/i386/bsd.c: Likewise.
17238 * grub-core/loader/xnu.c: Likewise.
17239 * grub-core/term/gfxterm.c: Likewise.
17240 * grub-core/term/serial.c: Likewise.
17241 * grub-core/tests/lib/functional_test.c: Likewise.
17242
17243 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17244
17245 Multi-line quoted strings support.
17246
17247 * grub-core/script/lexer.c (append_newline): Removed.
17248 (grub_script_lexer_yywrap): Refactored.
17249 (grub_script_lexer_init): Refactored.
17250 * grub-core/script/yylex.l (yywrap): New function.
17251 (grub_lexer_resplit): New function.
17252 (grub_lexer_unput): New function.
17253 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17254 and resplit.
17255 * tests/grub_script_echo1.in: Added few more testcases.
17256
17257 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 * grub-core/kern/misc.c: Don't add abort alias in utils.
17260 Reported by: echoline.
17261
17262 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17263
17264 Add missing files into "make dist" tarball for other platforms.
17265
17266 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17267 * conf/Makefile.common (dist_noinst_DATA): New variable.
17268 * conf/Makefile.extra-dist: Added missing make dist files.
17269 * grub-core/Makefile.core.def: Likewise.
17270
17271 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17272
17273 Compress grub_prefix.
17274
17275 * grub-core/boot/i386/pc/lnxboot.S: Use
17276 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17277 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17278 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17279 GRUB_MACHINE_PREFIX_END. All users updated.
17280 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17281 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17282 + 0x40.
17283 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17284 * util/grub-mkimage.c (image_target_desc): Change data_end to
17285 prefix_end. All users updated.
17286
17287 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17288
17289 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17290 value.
17291 (grub_openbsd_boot): Likewise.
17292 (grub_netbsd_boot): Likewise.
17293 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17294 (grub_xnu_boot): Likewise.
17295
17296 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17297
17298 * configure.ac: Clean LIBS variable after tests.
17299
17300 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17301
17302 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17303
17304 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17305
17306 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17307 echo if libdevmapper will be used.
17308
17309 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17310
17311 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17312 constant for the same file.
17313
17314 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17315
17316 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17317
17318 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17319
17320 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17321 grub-core/*.pp.
17322
17323 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17324
17325 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17326 required by the boot protocol.
17327
17328 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17329 ebp and edi members.
17330 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17331 state.ebp and state.edi.
17332 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17333 %ebp and %edi according to grub_relocator32_ebp and
17334 grub_relocator32_edi respectively.
17335 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17336 and state.edi.
17337
17338 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17339
17340 Add i386-pc-pxe image target.
17341
17342 * util/grub-mkimage.c (image_target_desc): New enum value
17343 IMAGE_I386_PC_PXE.
17344 (image_targets): New target i386-pc-pxe.
17345 (generate_image): Handle i386-pc-pxe image.
17346
17347 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17348
17349 Fix grub_pxe_scan.
17350
17351 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17352 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17353 All users updated.
17354 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17355 (grub_pxe_pxenv): Correct type.
17356
17357 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17358
17359 * NEWS: Document most of the important changes since 1.98.
17360
17361 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17362
17363 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17364 generated manual page) a little.
17365
17366 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17367
17368 * docs/grub.texi: Add myself as an author.
17369
17370 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 * Makefile.util.def (libgrub.a): Add missing sunpc.
17373 Reported by: Seth Goldberg.
17374
17375 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17376
17377 Interrupt wrapping and code simplifications.
17378
17379 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17380 x86_noieee1275 which are functionaly equivalent in this case.
17381 (grub-install): Make source on each platform explicit. Enable on
17382 all noemu.
17383 * gentpl.py (x86_efi_pc): Removed group.
17384 (x86_noefi): Likewise.
17385 (i386_noefi): Likewise.
17386 (x86_noieee1275): Likewise.
17387 (i386_noieee1275): Likewise.
17388 (i386_noefi_noieee1275): Likewise.
17389 (i386_pc_qemu_coreboot): Likewise.
17390 (i386_coreboot_multiboot): Likewise.
17391 (i386_pc_coreboot_multiboot_qemu): Likewise.
17392 (x86_noefi_mips): Likewise.
17393 (noieee1275): Likewise.
17394 (ieee1275_mips): Likewise.
17395 (noemu_noieee1275): Likewise.
17396 (cmos): New group.
17397 (usb): Likewise.
17398 (videoinkernel): Likewise.
17399 (videomodules): Likewise.
17400 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17401 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17402 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17403 include/grub/loader.h, include/grub/msdos_partition.h,
17404 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17405 include/grub/machine/console.h, include/grub/machine/vga.h,
17406 include/grub/machine/vbe.h, include/grub/machine/init.h,
17407 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17408 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17409 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17410 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17411 * grub-core/Makefile.core.def (kernel): Explicit the source for
17412 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17413 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17414 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17415 Use videoinkernel tag.
17416 (usb): Enable on all usb.
17417 (usbserial_common): Likewise.
17418 (usbserial_pl2303): Likewise.
17419 (usbserial_ftdi): Likewise.
17420 (uhci): Enable on all x86.
17421 (ohci): Enable on all pci.
17422 (cmostest): Enable on all CMOS.
17423 (acpi): Include commands/acpi.c on all platforms.
17424 (halt): Add relevant lib/*/halt.c.
17425 (hdparm): Enable on all pci.
17426 (lspci): Likewise.
17427 (usbtest): Enable on all usb.
17428 (ata): Enable on all pci.
17429 (ata_pthru): Likewise.
17430 (usbms): Enable on all usb.
17431 (usb_keyboard): Likewise.
17432 (font): Use tag videomodules.
17433 (bufio): Likewise.
17434 (datetime): Use tag cmos. Enable on all noemu.
17435 (mmap): Use tags common and x86.
17436 (gfxterm): Use tag videomodules.
17437 (bitmap): Likewise.
17438 (bitmap_scale): Likewise.
17439 (video_fb): Likewise.
17440 (video): Likewise.
17441 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17442 adjust padding accordingly. All users updated.
17443 (grub_ohci_transaction): Fix bad format specification.
17444 (GRUB_MOD_INIT): Add asserts for struct size.
17445 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17446 (grub_alloc_td): Likewise.
17447 (grub_free_queue): Likewise.
17448 (grub_uhci_transfer): Likewise.
17449 (grub_uhci_transaction): Fix bad format specification.
17450 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17451 (grub_usb_bulk_readwrite): Likewise.
17452 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17453 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17454 Made static.
17455 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17456 Made static.
17457 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17458 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17459 Transformed into C.
17460 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17461 Moved from here ...
17462 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17463 ... here. Transformed into C. Made static.
17464 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17465 Moved from here ...
17466 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17467 ... here. Transformed into C. Made static.
17468 * grub-core/kern/i386/pc/startup.S
17469 (grub_biosdisk_check_int13_extensions): Moved from here ...
17470 * grub-core/disk/i386/pc/biosdisk.c
17471 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17472 Made static.
17473 * grub-core/kern/i386/pc/startup.S
17474 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17475 * grub-core/disk/i386/pc/biosdisk.c
17476 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17477 Transformed into C. Made static.
17478 * grub-core/kern/i386/pc/startup.S
17479 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17480 * grub-core/disk/i386/pc/biosdisk.c
17481 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17482 Transformed into C. Made static.
17483 * grub-core/kern/i386/pc/startup.S
17484 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17485 * grub-core/disk/i386/pc/biosdisk.c
17486 (grub_biosdisk_get_diskinfo_standard): ... here.
17487 Transformed into C. Made static.
17488 * grub-core/kern/i386/pc/startup.S
17489 (grub_biosdisk_get_num_floppies): Moved from here ...
17490 * grub-core/disk/i386/pc/biosdisk.c
17491 (grub_biosdisk_get_num_floppies): ... here.
17492 Transformed into C. Made static.
17493 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17494 New function.
17495 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17496 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17497 Transformed into C. Made static.
17498 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17499 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17500 Transformed into C. Made static.
17501 * grub-core/kern/i386/ieee1275/init.c: Removed.
17502 * grub-core/kern/i386/misc.S: Likewise.
17503 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17504 Splitted from here ...
17505 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17506 Transformed into C. Made static. All users updated.
17507 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17508 Transformed into C. Made static. All users updated.
17509 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17510 Moved from here...
17511 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17512 Transformed into C. Made static. All users updated.
17513 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17514 Moved from here...
17515 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17516 Transformed into C. Made static. All users updated.
17517 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17518 Removed (replaced by C version).
17519 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17520 Moved from here...
17521 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17522 Transformed into C. Made static.
17523 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17524 Moved from here...
17525 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17526 ... here. Transformed into C.
17527 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17528 Moved from here...
17529 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17530 ... here. Transformed into C.
17531 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17532 Moved from here...
17533 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17534 ... here. Transformed into C. Made static.
17535 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17536 Moved from here...
17537 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17538 ... here. Transformed into C.
17539 * grub-core/kern/i386/pc/startup.S
17540 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17541 * grub-core/video/i386/pc/vbe.c
17542 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17543 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17544 Moved from here...
17545 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17546 ... here. Transformed into C.
17547 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17548 Moved from here...
17549 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17550 ... here. Transformed into C.
17551 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17552 Moved from here...
17553 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17554 ... here. Transformed into C.
17555 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17556 Moved from here...
17557 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17558 ... here. Transformed into C.
17559 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17560 Moved from here...
17561 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17562 ... here. Transformed into C. Made static.
17563 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17564 Moved from here...
17565 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17566 ... here. Transformed into C. Made static.
17567 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17568 Moved from here...
17569 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17570 ... here. Transformed into C. Made static.
17571 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17572 pxe_rm_entry as third argument.
17573 (grub_bios_interrupt): New function.
17574 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17575 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17576 of calling grub_stop.
17577 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17578 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17579 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17580 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17581 * grub-core/lib/i386/halt.c: Moved from here ...
17582 * grub-core/lib/i386/halt.c: ... here.
17583 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17584 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17585 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17586 grub_stop_floppy.
17587 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17588 * include/grub/i386/coreboot/init.h: Removed.
17589 * include/grub/i386/multiboot/init.h: Likewise.
17590 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17591 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17592 * include/grub/i386/pc/int.h: New file.
17593 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17594 (grub_pxe_scan): Removed.
17595 (grub_pxe_call): Update prototype.
17596 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17597 prototypes.
17598 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17599 * include/grub/i386/qemu/init.h: Removed.
17600 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17601 noreturn.
17602 (grub_halt): Likewise.
17603 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17604 (grub_reboot): Likewise.
17605 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17606 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17607 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17608
17609 2010-08-30 Robert Millan <rmh@gnu.org>
17610
17611 * NEWS: Document addition of ZFS support in `grub-install' and
17612 `grub-mkconfig'.
17613
17614 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17615
17616 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17617 dprintf output.
17618
17619 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17620
17621 Remove leftover embedding of font objects.
17622
17623 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17624 * util/grub-install.in (font): Removed.
17625 * util/grub-mkimage.c (generate_image): Remove font support. All users
17626 updated.
17627
17628 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17629
17630 Remove leftover embedding of font objects.
17631
17632 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17633 * util/grub-install.in (font): Removed.
17634 * util/grub-mkimage.c (generate_image): Remove font support. All users
17635 updated.
17636
17637 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17638
17639 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17640 Reported by: Ian Turner
17641
17642 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17643
17644 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17645 timeout to avoid indefinite boot stalling.
17646
17647 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17648
17649 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17650 (grub_env_write_color_highlight): Likewise.
17651
17652 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17653
17654 * grub-core/normal/term.c (print_more): Return to normal and not
17655 to standard state after printing "---MORE---".
17656
17657 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17658
17659 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17660 Mask out the bit 0x80 since it has other meaning that specifiing color.
17661
17662 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17663
17664 New relocator. Allows for more kernel support and more straightforward
17665 loader writing.
17666
17667 * Makefile.am (BOOTTARGET): New variable.
17668 (QEMU32): Likewise.
17669 (linux.init.x86_64): New target.
17670 (linux.init.i386): Likewise.
17671 (multiboot.elf): Likewise.
17672 (kfreebsd.elf): Likewise.
17673 (kfreebsd.aout): Likewise.
17674 (pc-chainloader.elf): Likewise.
17675 (pc-chainloader.bin): Likewise.
17676 (ntldr.elf): Likewise.
17677 (ntldr.bin): Likewise.
17678 (multiboot2.elf): Likewise.
17679 (kfreebsd.init.x86_64): Likewise.
17680 (kfreebsd.init.i386): Likewise.
17681 (knetbsd.init.i386): Likewise.
17682 (kopenbsd.init.i386): Likewise.
17683 (knetbsd.init.x86_64): Likewise.
17684 (kopenbsd.init.x86_64): Likewise.
17685 (linux-initramfs.i386): Likewise.
17686 (linux-initramfs.x86_64): Likewise.
17687 (kfreebsd-mfsroot.i386.img): Likewise.
17688 (knetbsd.image.i386): Likewise.
17689 (kopenbsd.image.i386): Likewise.
17690 (kopenbsd.image.x86_64): Likewise.
17691 (knetbsd.miniroot-image.i386.img): Likewise.
17692 (kfreebsd-mfsroot.x86_64.img): Likewise.
17693 (knetbsd.image.x86_64): Likewise.
17694 (knetbsd.miniroot-image.x86_64.img): Likewise.
17695 (kfreebsd-mfsroot.i386.gz): Likewise.
17696 (bootcheck-kfreebsd-i386): Likewise.
17697 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17698 (bootcheck-kfreebsd-x86_64): Likewise.
17699 (knetbsd.miniroot-image.i386.gz): Likewise.
17700 (bootcheck-knetbsd-i386): Likewise.
17701 (bootcheck-kopenbsd-i386): Likewise.
17702 (bootcheck-kopenbsd-x86_64): Likewise.
17703 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17704 (bootcheck-knetbsd-x86_64): Likewise.
17705 (bootcheck-linux-i386): Likewise.
17706 (bootcheck-linux-x86_64): Likewise.
17707 (bootcheck-linux16-i386): Likewise.
17708 (bootcheck-linux16-x86_64): Likewise.
17709 (bootcheck-multiboot): Likewise.
17710 (bootcheck-multiboot2): Likewise.
17711 (bootcheck-kfreebsd-aout): Likewise.
17712 (bootcheck-pc-chainloader): Likewise.
17713 (bootcheck-ntldr): Likewise.
17714 (CLEANFILES): Add new targets.
17715 (BOOTCHECKS): New variable.
17716 (.PHONY): Add bootchecks.
17717 (SUCCESSFUL_BOOT_STRING): New variable.
17718 (BOOTCHECK_TIMEOUT): Likewise.
17719 (bootcheck): New target
17720 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17721 * configure.ac: Correct efiemu excuse.
17722 * docs/grub.texi (Supported kernels): New chapter.
17723 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17724 include/grub/mm_private.h. Simplify inclusion of
17725 include/grub/boot.h, include/grub/loader.h
17726 and include/grub/msdos_partition.h
17727 (KERNEL_HEADER_FILES) [i386_coreboot]:
17728 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17729 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17730 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17731 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17732 include/grub/machine/loader.h.
17733 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17734 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17735 extra_dist.
17736 (pci.mod): Enable on i386-multiboot.
17737 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17738 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17739 i386-qemu.
17740 (relocator.mod): Rewritten.
17741 (aout.mod): Enable on all x86.
17742 (bsd.mod): Likewise.
17743 (ntldr.mod): New module.
17744 (linux.mod): Use loader/i386/linux.c on all x86.
17745 (xnu.mod): Enable on all x86.
17746 (vga_text.mod): disable on EFI and QEMU.
17747 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17748 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17749 * grub-core/efiemu/loadcore.c: Likewise.
17750 * grub-core/efiemu/main.c: Likewise.
17751 (grub_efiemu_exit_boot_services): Removed.
17752 (grub_efiemu_finish_boot_services): Likewise.
17753 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17754 function.
17755 * grub-core/efiemu/i386/nocfgtables.c: New file.
17756 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17757 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17758 (grub_efi_finish_boot_services): Moved from here ...
17759 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17760 Fille finish memory map and related data.
17761 (finish_mmap_buf): New variable.
17762 (grub_efi_uintn_t finish_mmap_size): Likewise.
17763 (grub_efi_uintn_t finish_key): Likewise.
17764 (grub_efi_uintn_t finish_desc_size): Likewise.
17765 (grub_efi_uint32_t finish_desc_version): Likewise.
17766 (grub_efi_is_finished): Likewise.
17767 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17768 finished.
17769 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17770 (grub_elf64_phdr_iterate): Likewise.
17771 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17772 (grub_os_area_size): Likewise.
17773 (grub_machine_init): Don't reserve os area.
17774 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17775 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17776 * grub-core/kern/i386/loader.S: Removed.
17777 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17778 (grub_os_area_size): Likewise.
17779 (grub_machine_init): Don't reserve os area.
17780 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17781 Don't call grub_dl_unload_all.
17782 Don't include loader.S.
17783 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17784 Declare the memory after _end as available.
17785 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
17786 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
17787 (GRUB_MM_ALLOC_MAGIC): Moved from here...
17788 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17789 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17790 * include/grub/mm_private.h (grub_mm_header): ... here.
17791 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17792 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
17793 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17794 (grub_mm_region): ..here. Removed addr. Added pre_size.
17795 All users updated.
17796 * grub-core/kern/mm.c (base): Renamed to ...
17797 (grub_mm_base): ... this. Made global.
17798 (grub_real_malloc): Alloc from end of region.
17799 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17800 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17801 * grub-core/kern/powerpc/cache_flush.S: ... here.
17802 * grub-core/lib/efi/relocator.c: New file.
17803 * grub-core/lib/i386/relocator.c: Rewritten.
17804 * grub-core/lib/i386/relocator16.S: New file.
17805 * grub-core/lib/i386/relocator32.S: Likewise.
17806 * grub-core/lib/i386/relocator64.S: Likewise.
17807 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17808 * grub-core/lib/i386/relocator_common.S: New file.
17809 * grub-core/lib/ieee1275/relocator.c: Likewise.
17810 * grub-core/lib/mips/relocator.c: Rewritten.
17811 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17812 stylistic adjustments.
17813 * grub-core/lib/powerpc/relocator.c: New file.
17814 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17815 * grub-core/lib/relocator.c: Rewritten.
17816 * grub-core/lib/x86_64/relocator_asm.S: New file.
17817 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17818 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17819 (bsd_tag): New struct.
17820 (tags): New variable.
17821 (tags_last): Likewise.
17822 (netbsd_module): New struct.
17823 (netbsd_mods): New variable.
17824 (netbsd_mods_last): Likewise.
17825 (openbsd_opts): New parameter "serial".
17826 (OPENBSD_SERIAL_ARG): New definition.
17827 (netbsd_opts): New parameter "serial".
17828 (NETBSD_SERIAL_ARG): New definition.
17829 (grub_freebsd_add_meta): Reorganised into ...
17830 (grub_bsd_add_meta): ...this. All users updated.
17831 (grub_freebsd_add_mmap): Reorganised into ...
17832 (generate_e820_mmap): ...this...
17833 (grub_bsd_add_mmap): ...and this. All users updated.
17834 (grub_freebsd_list_modules): Use tags.
17835 (grub_netbsd_add_meta_module): New function.
17836 (grub_netbsd_list_modules): Likewise.
17837 (grub_freebsd_boot): Use relocator and finish EFI.
17838 (grub_openbsd_boot): Likewise.
17839 (grub_netbsd_setup_video): New function.
17840 (grub_netbsd_add_modules): Likewise.
17841 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17842 and finish EFI.
17843 (grub_bsd_unload): Unload tags.
17844 (grub_bsd_load_aout): Use relocator.
17845 (grub_bsd_elf32_size_hook): New function.
17846 (grub_bsd_elf32_hook): Use relocator.
17847 (grub_bsd_elf64_size_hook): New function.
17848 (grub_bsd_elf64_hook): Use relocator.
17849 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17850 (grub_bsd_load): Zero-out openbsd_ramdisk.
17851 (grub_bsd_load): Use relocator.
17852 (grub_cmd_openbsd): Support serial.
17853 (grub_cmd_netbsd): Support modules.
17854 (grub_cmd_freebsd_module): Use relocator.
17855 (grub_netbsd_module_load): New function.
17856 (grub_cmd_netbsd_module): Likewise.
17857 (grub_cmd_openbsd_ramdisk): Likewise.
17858 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17859 kopenbsd_ramdisk.
17860 (GRUB_MOD_FINI): Unregister new commands.
17861 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17862 (grub_freebsd_load_elfmodule_obj): Use relocator.
17863 (grub_freebsd_load_elfmodule): Likewise.
17864 (grub_freebsd_load_elf_meta): Likewise.
17865 (grub_netbsd_load_elf_meta): New function.
17866 (grub_openbsd_find_ramdisk): Likewise.
17867 * grub-core/loader/i386/bsd_helper.S: Removed.
17868 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17869 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17870 * grub-core/loader/i386/efi/linux.c: Likewise.
17871 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17872 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17873 (DEFAULT_VIDEO_MODE): Likewise.
17874 (real_mode_target): New variable.
17875 (prot_mode_target): Likewise.
17876 (initrd_mem_target): Likewise.
17877 (relocator): Likewise.
17878 (efi_mmap_buf): Likewise.
17879 (efi_mmap_size): Likewise.
17880 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17881 (free_pages): Use relocator.
17882 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17883 (grub_linux_setup_video): Return error.
17884 (grub_linux_trampoline_start): Removed.
17885 (grub_linux_trampoline_end): Likewise.
17886 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17887 andd video parameters depending on firmware.
17888 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17889 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17890 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17891 (grub_cmd_initrd): Use relocator.
17892 * grub-core/loader/i386/linux_trampoline.S: Removed.
17893 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17894 (elf_sec_entsize): Likewise.
17895 (elf_sec_shstrndx): Likewise.
17896 (elf_sections): Likewise.
17897 (grub_multiboot_load): Use relocator.
17898 (grub_multiboot_get_mbi_size): Account for sections.
17899 (grub_multiboot_make_mbi): Use relocator and support sections.
17900 (grub_multiboot_add_elfsyms): New function.
17901 (grub_multiboot_free_mbi): Free sections.
17902 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17903 (grub_linux_real_target): Likewise.
17904 (grub_linux_real_chunk): Likewise.
17905 (grub_linux16_prot_size): Likewise.
17906 (grub_linux16_boot): Use relocator.
17907 (grub_linux_unload): Unload relocator.
17908 (grub_cmd_linux): Use relocator.
17909 (grub_cmd_initrd): Likewise.
17910 * grub-core/loader/i386/pc/ntldr.c: New file.
17911 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17912 Don't try to guess CPU frequency.
17913 (grub_xnu_set_video): Stretch bitmap.
17914 (grub_xnu_boot): Use relocator.
17915 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17916 (grub_linux_unload): Free relocator.
17917 (grub_linux_load32): Use relocator.
17918 (grub_linux_load64): Likewise.
17919 (grub_cmd_initrd): Likewise.
17920 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17921 (grub_multiboot_unload): Unload relocator.
17922 (grub_cmd_multiboot): Use relocator.
17923 (grub_cmd_module): Likewise.
17924 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17925 Use relocator and support sections.
17926 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17927 (elf_sec_entsize): Likewise.
17928 (elf_sec_shstrndx): Likewise.
17929 (elf_sections): Likewise.
17930 (grub_multiboot_load): Use relocator.
17931 (grub_multiboot_get_mbi_size): Account for sections.
17932 (grub_multiboot_make_mbi): Use relocator and support sections.
17933 (grub_multiboot_add_elfsyms): New function.
17934 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17935 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17936 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17937 Prototype changed. All users updated.
17938 (grub_xnu_align_heap): Simplified.
17939 (grub_xnu_writetree_toheap): Likewise.
17940 (grub_xnu_unload): Unload relocator.
17941 (grub_cmd_xnu_kernel): Use relocator.
17942 (grub_cmd_xnu_kernel64): Likewise.
17943 (grub_xnu_register_memory): Simplified.
17944 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
17945 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17946 EFI is finished.
17947 (grub_console_checkkey): Likewise.
17948 (grub_console_getkey): Likewise.
17949 (grub_console_getwh): Likewise.
17950 (grub_console_getxy): Likewise.
17951 (grub_console_gotoxy): Likewise.
17952 (grub_console_cls): Likewise.
17953 (grub_console_setcolorstate): Likewise.
17954 (grub_console_setcursor): Likewise.
17955 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17956 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17957 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17958 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17959 * grub-core/tests/boot/kernel-8086.S: Likewise.
17960 * grub-core/tests/boot/kernel-i386.S: Likewise.
17961 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17962 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17963 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17964 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17965 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17966 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17967 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17968 * grub-core/tests/boot/linux.cfg: Likewise.
17969 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17970 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17971 * grub-core/tests/boot/linux16.cfg: Likewise.
17972 * grub-core/tests/boot/multiboot.cfg: Likewise.
17973 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17974 * grub-core/tests/boot/ntldr.cfg: Likewise.
17975 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17976 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17977 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17978 New definition.
17979 * include/grub/dl.h (grub_dl_unload_all): Removed.
17980 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17981 (grub_efi_finish_boot_services): Change prototype.
17982 (grub_efi_is_finished): New variable.
17983 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17984 Changed prototype.
17985 (grub_efiemu_finish_boot_services): Removed.
17986 (grub_machine_efiemu_init_tables): New prototype.
17987 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17988 (grub_elf64_phdr_iterate): Likewise.
17989 * include/grub/i386/bsd.h: Include relocator.h.
17990 (freebsd_tag_header): New struct.
17991 (grub_openbsd_bios_mmap): Removed.
17992 (grub_unix_real_boot): Removed.
17993 (grub_freebsd_load_elfmodule32): Changed prototype.
17994 (grub_freebsd_load_elfmodule_obj64): Likewise.
17995 (grub_freebsd_load_elf_meta32): Likewise.
17996 (grub_freebsd_load_elf_meta64): Likewise.
17997 (grub_freebsd_add_meta): Removed.
17998 (grub_netbsd_load_elf_meta32): New prototype.
17999 (grub_netbsd_load_elf_meta64): Likewise.
18000 (grub_bsd_add_meta): Likewise.
18001 (grub_openbsd_ramdisk_descriptor): New struct.
18002 (grub_openbsd_find_ramdisk32): New prototype.
18003 (grub_openbsd_find_ramdisk64): Likewise.
18004 * include/grub/i386/coreboot/loader.h: Removed.
18005 * include/grub/i386/efi/loader.h: Likewise.
18006 * include/grub/i386/ieee1275/loader.h: Likewise.
18007 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18008 to grub_uint32_t.
18009 * include/grub/i386/loader.h: Removed.
18010 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18011 value.
18012 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18013 (grub_phys_addr_t): New type.
18014 (grub_vtop): New inline function.
18015 (grub_map_memory): Likewise.
18016 (grub_unmap_memory): Likewise.
18017 * include/grub/i386/multiboot/loader.h: Removed.
18018 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18019 (NETBSD_BTINFO_CONSOLE): New definition.
18020 (NETBSD_BTINFO_SYMTAB): Likewise.
18021 (NETBSD_BTINFO_MODULES): Likewise.
18022 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18023 (grub_netbsd_bootinfo): New struct.
18024 (grub_netbsd_btinfo_common): Use explicit bitsize.
18025 (grub_netbsd_btinfo_mmap_entry): Removed.
18026 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18027 (grub_netbsd_btinfo_bootdisk): New struct.
18028 (grub_netbsd_btinfo_symtab): Likewise.
18029 (grub_netbsd_btinfo_serial): Likewise.
18030 (grub_netbsd_btinfo_modules): Likewise.
18031 (grub_netbsd_btinfo_framebuf): Likewise.
18032 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18033 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18034 Likewise.
18035 (grub_openbsd_bootargs): Use explicit bitsize.
18036 (grub_openbsd_bootarg_console): New struct.
18037 (GRUB_OPENBSD_COM_MAJOR): New definition.
18038 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18039 * include/grub/i386/pc/efiemu.h: Removed.
18040 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18041 * include/grub/i386/qemu/loader.h: Removed.
18042 * include/grub/i386/relocator.h: Rewritten.
18043 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18044 * include/grub/mips/memory.h: New file.
18045 * include/grub/mips/multiboot.h: Rewritten.
18046 * include/grub/mips/relocator.h: Rewritten.
18047 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18048 (grub_vtop): New function.
18049 (grub_map_memory): Likewise.
18050 (grub_unmap_memory): Likewise.
18051 * include/grub/misc.h (ALIGN_DOWN): New definition.
18052 * include/grub/mm.h (grub_mm_check_real): New proto.
18053 (GRUB_MM_CHECK): New definition.
18054 * include/grub/mm_private.h: New file.
18055 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18056 (grub_multiboot_get_mbi_size): Removed.
18057 (grub_multiboot_make_mbi): Change prottype.
18058 (grub_multiboot_set_accepts_video): New proto.
18059 (grub_multiboot_add_elfsyms): Likewise.
18060 (grub_multiboot_payload_eip): New variable.
18061 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18062 New prototype.
18063 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18064 New definition.
18065 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18066 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18067 * include/grub/powerpc/ieee1275/loader.h: Removed.
18068 * include/grub/powerpc/memory.h: New file.
18069 * include/grub/powerpc/relocator.h: Likewise.
18070 * include/grub/relocator.h: Likewise.
18071 * include/grub/relocator_private.h: Likewise.
18072 * include/grub/sparc64/ieee1275/loader.h: Removed.
18073 * include/grub/x86_64/memory.h: New file.
18074 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18075 (grub_xnu_heap_malloc): Likewise.
18076 (grub_xnu_heap_real_start): Removed.
18077 (grub_xnu_heap_start): Likewise.
18078 (grub_xnu_relocator): New variable.
18079 (grub_xnu_heap_target_start): Likewise.
18080 * tests/util/grub-shell.in: Support non-pc.
18081 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18082
18083 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18084
18085 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18086 on malloc error.
18087 (grub_bidi_logical_to_visual): Check that malloc succeded.
18088 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18089 puts.
18090 (grub_xputs_normal): Likewise.
18091
18092 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18093
18094 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18095 extra_dist.
18096
18097 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18098
18099 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18100
18101 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18102
18103 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18104
18105 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18106
18107 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18108 dprintf.
18109
18110 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18111
18112 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18113
18114 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18115
18116 * grub-core/normal/term.c (print_more): Fix a memory leak.
18117 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18118 (grub_xputs_normal): Likewise.
18119
18120 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18121
18122 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18123 the begining of the string
18124
18125 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18126
18127 * grub-core/script/script.c (grub_script_parse): Free parsed on
18128 failure.
18129
18130 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18131
18132 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18133 on failure.
18134
18135 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18136
18137 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18138 return.
18139
18140 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18141
18142 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18143 (scroll_up): Fix a memory leak.
18144
18145 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18146
18147 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18148 errors.
18149
18150 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18151
18152 Handle USB pendrives exposed as floppies.
18153
18154 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18155 floppy.
18156 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18157 Check for partitions on all devices.
18158
18159 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18162 (readkey): Likewise.
18163
18164 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18165
18166 Multiple variable names support to "export" command.
18167
18168 * normal/context.c (grub_cmd_export): "export" command supports
18169 multiple variable names.
18170
18171 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18172
18173 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18174 --target=drive output to Mach device name.
18175
18176 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18177
18178 New Automake based build system for GRUB.
18179
18180 * ABOUT-NLS: New file.
18181 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18182 in Makefile.util.def file.
18183 * Makefile.util.def: New file. Autogen build definitions file for
18184 GRUB host utils.
18185 * conf/Makefile.common: New file. Common variables for GRUB host
18186 utils and target modules.
18187 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18188 * docs/Makefile.am: New file. Automake file for docs.
18189 * gentpl.py: New file. Python script to generate Autogen
18190 template.
18191 * grub-core/Makefile.am: New file. GRUB target modules' rules
18192 that doesn't fit in Makefile.core.def file.
18193 * grub-core/Makefile.core.def: New file. Autogen build
18194 definitions file for GRUB target modules.
18195 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18196 specific setjmp.S file.
18197 * po/Makefile.am: New file.
18198
18199 * .bzrignore: New ignores.
18200 * INSTALL: New requirements, without Ruby.
18201 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18202 * autogen.sh: Updated to invoke autogen as necessary.
18203 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18204 and defines for Automake conditionals.
18205 * geninit.sh: Refactoring.
18206
18207 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18208 necessary.
18209 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18210 New prototype.
18211
18212 * include/grub/test.h: Fix functional test modules' naming.
18213 * grub-core/tests/example_functional_test.c: Fix test module name.
18214
18215 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18216 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18217 * util/grub-editenv.c: Likewise.
18218 * util/grub-fstest.c: Likewise.
18219 * util/grub-mkdevicemap.c: Likewise.
18220 * util/grub-mkfont.c: Likewise.
18221 * util/grub-mkimage.c: Likewise.
18222 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18223 * util/grub-probe.c: Likewise.
18224 * util/grub-script-check.c: Likewise.
18225 * util/i386/pc/grub-setup.c: Likewise.
18226 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18227
18228 * tests/util/grub-shell.in: Fix override directory path.
18229 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18230 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18231
18232 * util/lvm.c: Update #includes.
18233 * util/raid.c: Likewise.
18234 * util/resolve.c: Likewise.
18235 * grub-core/bus/emu/pci.c: Likewise.
18236 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18237 * grub-core/lib/posix_wrap/string.h: Likewise.
18238 * grub-core/kern/emu/main.c: Likewise.
18239
18240 * grub-core/gensymlist.sh: New file. Script for generating kernel
18241 symbols file.
18242 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18243
18244 * grub-core/gentrigtables.c: Fix unused variable warnings.
18245
18246 * Makefile.in: Removed.
18247 * conf/any-emu.rmk: Removed.
18248 * conf/common.rmk: Removed.
18249 * conf/i386-coreboot.rmk: Removed.
18250 * conf/i386-efi.rmk: Removed.
18251 * conf/i386-ieee1275.rmk: Removed.
18252 * conf/i386-multiboot.rmk: Removed.
18253 * conf/i386-pc.rmk: Removed.
18254 * conf/i386-qemu.rmk: Removed.
18255 * conf/i386.rmk: Removed.
18256 * conf/mips-yeeloong.rmk: Removed.
18257 * conf/mips.rmk: Removed.
18258 * conf/powerpc-ieee1275.rmk: Removed.
18259 * conf/sparc64-ieee1275.rmk: Removed.
18260 * conf/tests.rmk: Removed.
18261 * conf/x86-efi.rmk: Removed.
18262 * conf/x86_64-efi.rmk: Removed.
18263 * gendistlist.sh: Removed.
18264 * geninitheader.sh: Removed.
18265 * genkernsyms.sh.in: Removed.
18266 * genmk.rb: Removed.
18267 * gensymlist.sh.in: Removed.
18268 * mkinstalldirs: Removed.
18269 * boot: Moved ...
18270 * grub-core/boot: ... to here.
18271 * bus: Moved ...
18272 * grub-core/bus: ... to here.
18273 * commands: Moved ...
18274 * grub-core/commands: ... to here.
18275 * disk: Moved ...
18276 * grub-core/disk: ... to here.
18277 * efiemu: Moved ...
18278 * grub-core/efiemu: ... to here.
18279 * font: Moved ...
18280 * grub-core/font: ... to here.
18281 * fs: Moved ...
18282 * grub-core/fs: ... to here.
18283 * gencmdlist.sh: Moved ...
18284 * grub-core/gencmdlist.sh: ... to here.
18285 * genemuinit.sh: Moved ...
18286 * grub-core/genemuinit.sh: ... to here.
18287 * genemuinitheader.sh: Moved ...
18288 * grub-core/genemuinitheader.sh: ... to here.
18289 * genfslist.sh: Moved ...
18290 * grub-core/genfslist.sh: ... to here.
18291 * genhandlerlist.sh: Moved ...
18292 * grub-core/genhandlerlist.sh: ... to here.
18293 * genmoddep.awk: Moved ...
18294 * grub-core/genmoddep.awk: ... to here.
18295 * genmodsrc.sh: Moved ...
18296 * grub-core/genmodsrc.sh: ... to here.
18297 * genpartmaplist.sh: Moved ...
18298 * grub-core/genpartmaplist.sh: ... to here.
18299 * genparttoollist.sh: Moved ...
18300 * grub-core/genparttoollist.sh: ... to here.
18301 * genterminallist.sh: Moved ...
18302 * grub-core/genterminallist.sh: ... to here.
18303 * gentrigtables.c: Moved ...
18304 * grub-core/gentrigtables.c: ... to here.
18305 * genvideolist.sh: Moved ...
18306 * grub-core/genvideolist.sh: ... to here.
18307 * gettext: Moved ...
18308 * grub-core/gettext: ... to here.
18309 * gfxmenu: Moved ...
18310 * grub-core/gfxmenu: ... to here.
18311 * gnulib: Moved ...
18312 * grub-core/gnulib: ... to here.
18313 * hello: Moved ...
18314 * grub-core/hello: ... to here.
18315 * hook: Moved ...
18316 * grub-core/hook: ... to here.
18317 * io: Moved ...
18318 * grub-core/io: ... to here.
18319 * kern: Moved ...
18320 * grub-core/kern: ... to here.
18321 * lib: Moved ...
18322 * grub-core/lib: ... to here.
18323 * loader: Moved ...
18324 * grub-core/loader: ... to here.
18325 * mmap: Moved ...
18326 * grub-core/mmap: ... to here.
18327 * normal: Moved ...
18328 * grub-core/normal: ... to here.
18329 * partmap: Moved ...
18330 * grub-core/partmap: ... to here.
18331 * parttool: Moved ...
18332 * grub-core/parttool: ... to here.
18333 * script: Moved ...
18334 * grub-core/script: ... to here.
18335 * term: Moved ...
18336 * grub-core/term: ... to here
18337 * tests/example_functional_test.c: Moved ...
18338 * grub-core/tests/example_functional_test.c: ... to here.
18339 * tests/lib/functional_test.c: Moved ...
18340 * grub-core/tests/lib/functional_test.c: ... to here.
18341 * tests/lib/test.c: Moved ...
18342 * grub-core/tests/lib/test.c: ... to here.
18343 * video: Moved ...
18344 * grub-core/video: ... to here.
18345
18346 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18347
18348 Replace --enable-grub-emu-modules with grub-emu-lite.
18349
18350 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18351 cache.S.
18352
18353 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18354 * kern/emu/full.c: New file. For grub-emu specific initialization.
18355 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18356 * kern/emu/main.c: Call initialization function grub_emu_init.
18357
18358 * Makefile.in: Include grub-emu-lite in install.
18359 * commands/parttool.c: Use grub_no_autoload to differentiate
18360 between grub-emu and grub-emu-lite.
18361 * include/grub/misc.h: New variable grub_no_autoload.
18362
18363 * conf/any-emu.rmk: New rules for grub-emu-lite.
18364 * configure.ac: Remove --enable-grub-emu-modules.
18365 * genmk.rb: Cleanup unnecessary rules.
18366 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18367
18368 * normal/main.c: Don't load list files on grub-emu-lite.
18369 * util/misc.c (grub_arch_sync_caches): Removed.
18370
18371 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18372
18373 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18374 grub-mkimage rather than grub-mkelfimage.
18375 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18376
18377 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18378
18379 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18380 a key after CapsLock or NumLock. It's just a qemu bug.
18381
18382 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18383
18384 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18385 needed by libusb wrapper.
18386
18387 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18388
18389 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18390
18391 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18392
18393 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18394 --nounzip is passed.
18395
18396 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18397
18398 USB hotunplugging and USB serial support.
18399
18400 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18401 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18402 (grub_uhci_transfer): Respect timeout and set *actual.
18403 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18404 non-standard length.
18405 (grub_usb_device_attach): Autoload modules.
18406 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18407 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18408 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18409 users updated.
18410 (grub_usb_add_hub): Fill nports and children.
18411 (attach_root_port): Receive hub instead of controller.
18412 All users updated. Fill hub->devices.
18413 (grub_usb_root_hub): Allocate hub->devices.
18414 (detach_device): New function.
18415 (poll_nonroot_hub): Fill children and detach devices.
18416 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18417 actual arguments. All users updated.
18418 (grub_usb_bulk_read_extended): New function.
18419 * bus/usb/serial/common.c: New file.
18420 * bus/usb/serial/ftdi.c: Likewise.
18421 * bus/usb/serial/pl2303.c: Likewise.
18422 * commands/terminal.c (handle_command): Support wildcard.
18423 * commands/usbtest.c: Output "Unknown" instead of empty string.
18424 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18425 (usbserial_common_mod_SOURCES): New variable.
18426 (usbserial_common_mod_CFLAGS): Likewise.
18427 (usbserial_common_mod_LDFLAGS): Likewise.
18428 (pkglib_MODULES): Add usbserial_pl2303.mod.
18429 (usbserial_pl2303_mod_SOURCES): New variable.
18430 (usbserial_pl2303_mod_CFLAGS): Likewise.
18431 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18432 (pkglib_MODULES): Add usbserial_ftdi.mod.
18433 (usbserial_ftdi_mod_SOURCES): New variable.
18434 (usbserial_ftdi_mod_CFLAGS): Likewise.
18435 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18436 (pkglib_MODULES): Add serial.mod.
18437 (serial_mod_SOURCES): New variable.
18438 (serial_mod_CFLAGS): Likewise.
18439 (serial_mod_LDFLAGS): Likewise.
18440 * conf/i386-pc.rmk: Likewise.
18441 * conf/mips-yeeloong.rmk: Likewise.
18442 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18443 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18444 * disk/usbms.c (first_available_slot): New variable.
18445 (grub_usbms_attach): Don't reuse free slots due to potential cache
18446 problems.
18447 * include/grub/serial.h: Moved to ..
18448 * include/grub/ns8250.h: ...this.
18449 * include/grub/serial.h: New file.
18450 * include/grub/term.h (grub_term_poll_usb): New variable.
18451 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18452 readkey. All users updated.
18453 (grub_terminfo_output_state): Pass term to put.
18454 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18455 (grub_usb_controller_dev): Add timeout and actual arguments to
18456 transfer. All users updated.
18457 (grub_usb_interface): New field detach_data.
18458 (grub_usb_device): New fields children and nports.
18459 (grub_usb_ep_type_t): New type.
18460 (grub_usb_get_ep_type): New function.
18461 (grub_usb_bulk_read_extended): Likewise.
18462 * include/grub/usbdesc.h (grub_usb_desc): New type.
18463 * include/grub/usbserial.h: New file.
18464 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18465 * kern/term.c (grub_term_poll_usb): New variable.
18466 (grub_getkey): Call grub_term_poll_usb if set.
18467 (grub_checkkey): Likewise.
18468 (grub_getkeystatus): Likewise.
18469 * term/serial.c: Moved controller-specific parts to ...
18470 * term/ns8250.c: ... here.
18471 * term/serial.c: Mostly rewritten.
18472 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18473 according to spec.
18474
18475 2010-08-20 Robert Millan <rmh@gnu.org>
18476
18477 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18478 a separate module and maybe other interesting combinations.
18479
18480 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18481 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18482 (kfreebsd_entry): Add generic filesystem module load routine.
18483 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18484
18485 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18486
18487 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18488 "numcenter" (I misunderstood the purpose of this entry).
18489 * docs/grub.texi (sendkey): Likewise.
18490
18491 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18492
18493 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18494 status flag options; simply omitting the option is equivalent and
18495 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18496 (keysym_table): Rename "num5numlock" to "numlock".
18497 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18498 can uniformly say that only the last of multiple `sendkey'
18499 invocations has any effect.
18500 * docs/grub.texi (sendkey): New section.
18501
18502 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18503
18504 * commands/i386/pc/sendkey.c (options): Fix three typos.
18505
18506 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18507
18508 Implement sendkey support.
18509
18510 * commands/i386/pc/sendkey.c: New file.
18511 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18512 (sendkey_mod_SOURCES): New variable.
18513 (sendkey_mod_CFLAGS): Likewise.
18514 (sendkey_mod_LDFLAGS): Likewise.
18515
18516 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18517
18518 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18519 fix warnings from Autoconf.
18520
18521 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18522
18523 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18524 to avoid false positives with some assemblers that output things
18525 like "someprefix_func" as part of their output.
18526
18527 2010-08-15 Robert Millan <rmh@gnu.org>
18528
18529 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18530 errors.
18531 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18532 grub_get_libzfs_handle() errors.
18533
18534 2010-08-14 Robert Millan <rmh@gnu.org>
18535
18536 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18537 filesystem is not ZFS.
18538
18539 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18540
18541 Fix for misspelled color names defaulting to black/black (bug
18542 reported by Doug Nazar)
18543
18544 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18545 status to prototype.
18546 * normal/color.c (grub_parse_color_name_pair): Return failure
18547 status.
18548 (grub_env_write_color_normal): Ignore bad color names.
18549 (grub_env_write_color_highlight): Likewise.
18550 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18551
18552 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18553
18554 "shift" command support to GRUB script.
18555
18556 * include/grub/script_sh.h (grub_script_shift): New prototype.
18557 * script/execute.c (grub_script_shift): New function.
18558 * script/main.c (grub_script_init): Register shift command.
18559 (grub_script_fini): Unregister shift command.
18560 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18561
18562 * tests/grub_script_shift.in: New testcase.
18563 * conf/tests.rmk: Rules for new testcase.
18564
18565 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18566
18567 "continue" command support to GRUB script.
18568
18569 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18570 (grub_script_break): Continue support.
18571 * script/main.c (grub_script_init): Register continue command.
18572 (grub_script_fini): Unregister continue command.
18573
18574 * tests/grub_script_continue.in: New testcase.
18575 * conf/tests.rmk: Rules for new testcase.
18576
18577 2010-08-12 BVK Chaitanya <bvk@dbook>
18578
18579 "break" command support to GRUB script.
18580
18581 * conf/common.rmk: Rule updates to grub-script-check.
18582 * include/grub/misc.h (grub_min): New function.
18583 * include/grub/script_sh.h (grub_script_init): New prototype.
18584 (grub_script_fini): New prototype.
18585 (grub_script_break): New prototype.
18586 * script/main.c (grub_script_init): New function.
18587 (grub_script_fini): New function.
18588 * script/execute.c (grub_script_break): New function.
18589 * normal/main.c: Calls to grub_script_{init,fini}.
18590 * util/grub-script-check.c (grub_script_break): New function.
18591
18592 * tests/grub_script_break.in: New testcase.
18593 * conf/tests.rmk: Rules for new test case.
18594
18595 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18596
18597 Function parameters support to GRUB script.
18598
18599 * script/yylex.l (VARIABLE): Regular expression update.
18600 * script/function.c (grub_script_function_call): Moved ...
18601 * script/execute.c (grub_script_function_call): ... to here.
18602 (grub_script_execute_arglist_to_argv): Removed.
18603 (grub_script_arglist_to_argv): New function.
18604 * script/argv.c: New file.
18605 (grub_script_argv_free): New function.
18606 (grub_script_argv_next): Likewise.
18607 (grub_script_argv_append): Likewise.
18608 (grub_script_argv_split_append): Likewise.
18609 * include/grub/script_sh.h (grub_script_argv): New struct.
18610 (grub_script_argv_free): New function.
18611 (grub_script_argv_next): Likewise.
18612 (grub_script_argv_append): Likewise.
18613 (grub_script_argv_split_append): Likewise.
18614
18615 * conf/common.rmk (normal.mod): New source script/argv.c.
18616
18617 * tests/grub_script_echo1.in: More tests.
18618 * tests/grub_script_vars1.in: Likewise.
18619 * tests/grub_script_functions.in: New test case.
18620 * conf/tests.rmk: Rules for new testcase.
18621
18622 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18623
18624 Remove grub_script_cmdblock struct.
18625
18626 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18627 * script/parser.y: Likewise.
18628 * script/execute.c: Rename cmdblock suffix to cmdlist.
18629 * script/script.c: Likewise.
18630 * util/grub-script-check.c: Likewise.
18631
18632 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18633
18634 * .bzrignore: add grub-macho2img
18635
18636 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18637
18638 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18639
18640 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18641
18642 Remove the dump of sm712 initialisation sequence.
18643
18644 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18645 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18646 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18647 (GRUB_VGA_CR_*): Added many registers.
18648 (GRUB_VGA_SR_*): Likewise.
18649 (GRUB_VGA_GR_*): Likewise.
18650 (grub_vga_write_arx): New function.
18651 (grub_video_hw_config): New struct.
18652 (grub_vga_set_geometry): New function.
18653 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18654 GRUB_PCI_CLASS_SUBCLASS_VGA.
18655 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18656 * video/sm712.c (grub_sm712_write_reg): New function
18657 (grub_sm712_read_reg): Likewise.
18658 (grub_sm712_sr_write): Likewise.
18659 (grub_sm712_gr_write): Likewise.
18660 (grub_sm712_cr_write): Likewise.
18661 (grub_sm712_write_arx): Likewise.
18662 (grub_sm712_cr_shadow_write): Likewise.
18663 (grub_sm712_write_dda_lookup): Likewise.
18664 (grub_video_sm712_setup): Initialise the video rather then
18665 blindly replay the dump.
18666 (main) [TEST]: Add a routine to be able to compile as standalone for
18667 tests.
18668 * video/sm712_init.c (sm712_init): Removed.
18669 (sm712_sr_seq1): New array.
18670 (sm712_sr_seq2): Likewise.
18671
18672 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 * include/grub/vga.h: Add missing grub/pci.h include.
18675
18676 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18677
18678 * util/grub-macho2img.c (main): fix typo
18679
18680 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18681
18682 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18683 (grub_vga_gr_read): Likewise.
18684 (grub_vga_cr_write): Likewise.
18685 (grub_vga_cr_read): Likewise.
18686 (grub_vga_sr_write): Likewise.
18687 (grub_vga_sr_read): Likewise.
18688 (grub_vga_palette_read): Likewise.
18689 (grub_vga_palette_write): Likewise.
18690 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18691 (grub_sm712_sr_read): New function.
18692 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18693 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18694
18695 2010-08-09 Robert Millan <rmh@gnu.org>
18696
18697 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18698 out unused variables on non-ZFS build.
18699
18700 2010-08-08 Robert Millan <rmh@gnu.org>
18701
18702 Fix path generation for sub-filesystems in ZFS.
18703
18704 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18705 missing slash.
18706
18707 2010-08-08 Robert Millan <rmh@gnu.org>
18708
18709 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18710
18711 2010-08-08 Robert Millan <rmh@gnu.org>
18712
18713 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18714 exist, issue a proper error message (rely on `ls' for translated
18715 strings).
18716
18717 2010-08-08 Robert Millan <rmh@gnu.org>
18718
18719 Fix grub-probe invocation.
18720
18721 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18722
18723 2010-08-04 Robert Millan <rmh@gnu.org>
18724
18725 * configure.ac: Remove checks for getfsstat() and getmntany().
18726 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18727 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18728 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18729 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18730 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18731 function.
18732 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18733 via find_mount_point_from_dir() and getfsstat() / getmntany().
18734
18735 2010-08-04 Robert Millan <rmh@gnu.org>
18736
18737 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18738 (grub_find_zpool_from_mount_point): Merge into ...
18739 (grub_find_zpool_from_dir): ... this.
18740 * kern/emu/misc.c: Likewise.
18741
18742 * kern/emu/misc.c
18743 (grub_make_system_path_relative_to_its_root): Replace
18744 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18745 with grub_find_zpool_from_dir().
18746 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18747
18748 2010-08-04 Robert Millan <rmh@gnu.org>
18749
18750 Support OpenSolaris in ZFS device resolution.
18751
18752 * configure.ac: Check for getmntany().
18753 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18754 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18755 support.
18756
18757 2010-08-03 Robert Millan <rmh@gnu.org>
18758
18759 Fix grub-emu build.
18760
18761 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18762 * include/grub/emu/misc.h: ... here.
18763
18764 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18765 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18766
18767 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18768 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18769 (grub_get_libzfs_handle): Move to ...
18770 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18771 (grub_get_libzfs_handle): ... here.
18772
18773 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18774
18775 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18776 as command name case.
18777
18778 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
18779
18780 * disk/raid.c (insert_array): Select unique numbers for named arrays
18781 as well, for use as keys in the disk cache.
18782
18783 2010-08-01 Robert Millan <rmh@gnu.org>
18784
18785 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18786 kFreeBSD device name, except on ZFS where the filesystem label is
18787 used.
18788 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18789 `/boot/zfs/zpool.cache'.
18790 Set mountfrom kernel variable using ${kfreebsd_device}.
18791
18792 2010-08-01 Robert Millan <rmh@gnu.org>
18793
18794 Make it even harder to use uninitialized `libzfs_handle' (and
18795 make the interface a bit simpler).
18796
18797 * include/grub/util/misc.h (grub_util_init_libzfs)
18798 (libzfs_handle): Remove.
18799 (grub_get_libzfs_handle): New prototype.
18800
18801 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18802 attribute.
18803 (grub_util_init_libzfs): Remove.
18804 (grub_get_libzfs_handle): New function.
18805
18806 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18807 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18808 accessing `libzfs_handle' directly.
18809
18810 2010-08-01 Robert Millan <rmh@gnu.org>
18811
18812 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18813 (grub_find_zpool_from_mount_point): New function prototypes.
18814
18815 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18816 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18817
18818 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18819 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18820 `static' attribute.
18821
18822 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18823 finding zpool from mount point into ...
18824 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18825
18826 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18827 requested path is part of a ZFS pool, use
18828 grub_find_zpool_from_mount_point() to detect its filesystem name,
18829 and generate a path with `/fsname@path' syntax.
18830
18831 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18832
18833 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18834 (void) rather than () so that this is a proper prototype.
18835
18836 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18837
18838 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18839
18840 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18841
18842 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18843 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18844
18845 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18846
18847 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18848
18849 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18850
18851 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18852
18853 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18854
18855 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18856 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18857 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18858 disable gfxpayload.
18859 (Shell-like scripting): Add real content.
18860 (Serial terminal): Suggest `terminal_input serial; terminal_output
18861 serial' rather than putting the two commands on separate lines,
18862 since console input will be inoperative after the first command.
18863 (menuentry): Document --class, --users, and --hotkey options.
18864 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18865 Vladimir Serbinenko).
18866
18867 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18868 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18869
18870 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18871
18872 2010-08-01 Robert Millan <rmh@gnu.org>
18873
18874 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18875 (grub_find_zpool_from_mount_point): New function prototypes.
18876
18877 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18878 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18879
18880 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18881 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18882 `static' attribute.
18883
18884 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18885 finding zpool from mount point into ...
18886 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18887
18888 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18889 requested path is part of a ZFS pool, use
18890 grub_find_zpool_from_mount_point() to detect its filesystem name,
18891 and generate a path with `/fsname@path' syntax.
18892
18893 2010-08-01 Robert Millan <rmh@gnu.org>
18894
18895 Prevent accidental use of uninitialized libzfs_handle.
18896
18897 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18898 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18899 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18900
18901 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
18902
18903 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18904 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18905
18906 2010-08-01 Robert Millan <rmh@gnu.org>
18907
18908 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
18909
18910 2010-07-31 Robert Millan <rmh@gnu.org>
18911
18912 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18913
18914 2010-07-31 Robert Millan <rmh@gnu.org>
18915
18916 * kern/emu/misc.c: Add missing license header.
18917
18918 2010-07-31 Robert Millan <rmh@gnu.org>
18919
18920 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18921
18922 * include/grub/util/libnvpair.h: Include `<config.h>'.
18923 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18924 declaring libnvpair prototypes ourselves.
18925 * include/grub/util/libzfs.h: Include `<config.h>'.
18926 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18927 declaring libzfs prototypes ourselves.
18928
18929 (libzfs_handle): Moved to ...
18930 * include/grub/util/misc.h (libzfs_handle): ... here.
18931 Include `<grub/util/libzfs.h>'.
18932
18933 2010-07-30 Robert Millan <rmh@gnu.org>
18934
18935 * include/grub/emu/misc.h: Add missing license header.
18936
18937 2010-07-30 Robert Millan <rmh@gnu.org>
18938
18939 Enable `grub-probe -t device' resolution on ZFS.
18940
18941 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18942 * include/grub/util/libnvpair.h: New file.
18943 * include/grub/util/libzfs.h: New file.
18944
18945 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18946 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18947 `<grub/util/libnvpair.h>'.
18948 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18949
18950 (find_mount_point_from_dir): New static function.
18951 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18952 function.
18953 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18954 find_root_device_from_libzfs() before ressorting to find_root_device().
18955
18956 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18957 prototype.
18958 * util/misc.c: Include `<grub/util/libzfs.h>'.
18959 (grub_util_init_libzfs): New function.
18960 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18961 [HAVE_LIBZFS] (fini_libzfs): New static function.
18962 (grub_util_init_libzfs): New function.
18963 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18964
18965 2010-07-30 Robert Millan <rmh@gnu.org>
18966
18967 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18968 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18969 `warn_unused_result' attribute.
18970 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18971 (grub_xasprintf, grub_xvasprintf): Likewise.
18972 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18973
18974 2010-07-29 Robert Millan <rmh@gnu.org>
18975
18976 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18977 (probe): Handle `PRINT_FS_LABEL'.
18978 (main): Handle `-t fs_label'.
18979
18980 2010-07-29 Robert Millan <rmh@gnu.org>
18981
18982 * configure.ac: Remove grub-mkisofs checks.
18983
18984 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18985
18986 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18987 Reported by: Lennart Sorensen.
18988
18989 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18990
18991 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18992 prior to terminal_input/terminal_output separation. It's been over 1.5
18993 years and those versions weren't widely deployed.
18994
18995 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
18996
18997 * disk/raid.c (insert_array): Don't count named arrays when looking
18998 for unused array numbers.
18999 Reported and tested by: Michael Guntsche.
19000
19001 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19002
19003 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19004 implementation of this so that grub-emu links again, with a note
19005 that this should support hotplugging in the future.
19006
19007 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19008
19009 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19010
19011 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19012
19013 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19014 handle on failure.
19015 (grub_loopback_close): Remove empty function.
19016 (grub_loopback_dev): Remove close method.
19017
19018 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19019
19020 Disable EFI cursor when the EFI console becomes inactive.
19021
19022 * term/efi/console.c (grub_efi_console_init): New function.
19023 (grub_efi_console_fini): New function.
19024 (grub_console_term_output): Register init and fini methods.
19025
19026 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19027
19028 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19029 sh script.
19030
19031 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * disk/loopback.c (grub_loopback): Replace filename with file.
19034 (delete_loopback): Handle new semantics.
19035 (grub_cmd_loopback): Likewise.
19036 (grub_loopback_iterate): Likewise.
19037 (grub_loopback_close): Likewise.
19038
19039 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19040
19041 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19042 with -p "".
19043 Reported by: Tito Keitel.
19044
19045 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19046
19047 * docs/grub.texi (Naming convention): Document new naming convention.
19048
19049 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19050 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19051
19052 Generate device.map in something closer to the old ordering.
19053
19054 * util/deviceiter.c (struct device): New declaration.
19055 (compare_file_names): Rename to ...
19056 (compare_devices): ... this. Sort by kernel name in preference to
19057 the stable by-id name, but keep the latter as a fallback comparison.
19058 Update header comment.
19059 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19060 of `struct device' rather than of plain file names.
19061
19062 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19063
19064 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19065 on i386.
19066
19067 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19068
19069 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19070 hardcoding size.
19071 (setv1table): Likewise.
19072
19073 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19074
19075 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19076 removing the homehost if present.
19077 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19078 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19079 removing the homehost if present.
19080 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19081 if possible.
19082 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19083
19084 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19085 parameter. Set its pointer target to 0.
19086 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19087 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19088 `data_offset' value from the superblock for 1.x metadata.
19089 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19090 data on the device.
19091 (insert_array): Record the start sector of data on the device.
19092 (grub_raid_register): Pass start_sector parameters to
19093 grub_raid_list->detect and insert_array.
19094 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19095 member.
19096 (struct grub_raid): Add start_sector parameter to `detect'.
19097
19098 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19099 __attribute__ ((packed)), leaving a comment.
19100 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19101 (grub_mdraid_detect_09): ... here and ...
19102 (grub_mdraid_detect_1x): ... here.
19103
19104 2010-07-20 Peter Henn <peter.henn@web.de>
19105
19106 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19107 chunk size and disk size, which are already given as sector counts
19108 as distinct from the 0.90 units. Fetch the correct device number
19109 from the role table instead of using the table index.
19110
19111 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19112
19113 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19114 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19115 (WriteMostly1): New macro.
19116 Set array->name to NULL for metadata format 0.90. Add support for
19117 metadata 1.x. Fix some comments.
19118 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19119 few comments.
19120 * util/getroot.c (grub_util_get_grub_dev): Add support for
19121 /dev/md/name style devices.
19122
19123 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19124
19125 * .bzrignore: Ignore 20_linux_xen.
19126
19127 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19128
19129 * util/import_unicode.py: Remove unnecessary imports.
19130
19131 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19132
19133 Hotplugging and USB hub support.
19134
19135 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19136 (grub_ohci): Likewise.
19137 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19138 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19139 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19140 (GRUB_OHCI_CTRL_EDS): Likewise.
19141 (GRUB_OHCI_BULK_EDS): Likewise.
19142 (GRUB_OHCI_TDS): Likewise.
19143 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19144 (grub_ohci_ed_phys2virt): New function.
19145 (grub_ohci_virt_to_phys): Likewise.
19146 (grub_ohci_td_phys2virt): Likewise.
19147 (grub_ohci_td_virt2phys): Likewise.
19148 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19149 attachment.
19150 (grub_ohci_find_ed): New function.
19151 (grub_ohci_alloc_td): Likewise.
19152 (grub_ohci_free_td): Likewise.
19153 (grub_ohci_free_tds): Likewise.
19154 (grub_ohci_transfer): Use previously allocated memory.
19155 (grub_ohci_portstatus): Reset status changed bit.
19156 (grub_ohci_detect_dev): Supply status changed.
19157 (grub_ohci_fini_hw): Free memory.
19158 (grub_ohci_restore_hw): Reallocate memory.
19159 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19160 Reset status change.
19161 (grub_uhci_detect_dev): Supply status_change.
19162 * bus/usb/usb.c (attach_hooks): New var.
19163 (grub_usb_device_attach): New function.
19164 (grub_usb_register_attach_hook_class): Likewise.
19165 (grub_usb_unregister_attach_hook_class): Likewise.
19166 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19167 (grub_usb_add_hub): Reset connection changed bit.
19168 (attach_root_port): New function.
19169 (grub_usb_root_hub): Likewise.
19170 (poll_nonroot_hub): Likewise.
19171 (grub_usb_poll_devices): Likewise.
19172 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19173 * disk/usbms.c (grub_usbms_open): Use device hooks.
19174 (grub_usbms_iterate) :Poll devices.
19175 (grub_usbms_finddevs): Split into ...
19176 (grub_usbms_attach): ... this ...
19177 (grub_usbms_attach): ... and this.
19178 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19179 in detect_dev.
19180 (grub_usb_interface): New fields attached and detach_hook.
19181 (grub_usb_attach_hook_class): New type.
19182 (grub_usb_attach_desc): New struct.
19183 (grub_usb_register_attach_hook_class): New function.
19184 (grub_usb_unregister_attach_hook_class): Likewise.
19185 (grub_usb_poll_devices): Likewise.
19186 (grub_usb_device_attach): Likewise.
19187 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19188 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19189
19190 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19191
19192 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19193 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19194 delta determination style. Works with most NetBSD partitions too.
19195
19196 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19197
19198 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19199 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19200
19201 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19202
19203 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19204
19205 2010-07-14 Anton Blanchard <anton@samba.org>
19206
19207 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19208 ET_DYN files.
19209
19210 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19211
19212 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19213
19214 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19215
19216 * kern/partition.c (grub_partition_check_containment): New function to
19217 check that a partition is physically contained in a parent. Since
19218 offsets are relative (and non-negative), this reduces to checking that
19219 the partition ends before its parent.
19220 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19221 (grub_partition_iterate): Likewise.
19222 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19223 comments.
19224 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19225 partitions that start before their parent, and add debug printfs.
19226
19227 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19228
19229 * Makefile.in (.SUFFIX): Spell correctly, as ...
19230 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19231 bare module name without `.mod', e.g. `test') tried to invoke a
19232 Modula-2 compiler.
19233
19234 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19235
19236 * README: Point to the Info manual.
19237
19238 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19239
19240 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19241 2nd superblock position from partition size.
19242
19243 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19244
19245 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19246 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19247 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19248 outputs.
19249
19250 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19251
19252 Restructure SCSI .id handling.
19253 Reported and tested by: Aleš Nesrsta.
19254
19255 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19256 (grub_atapi_dev): Changed .name to "ata". New field .id.
19257 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19258 (grub_usbms_dev): New field .id.
19259 * disk/scsi.c (grub_scsi_iterate): Generate name.
19260 (grub_scsi_open): Parse name.
19261 * include/grub/scsi.h (grub_make_scsi_id): New function.
19262 (grub_scsi_dev): Change iterate and open to number instead of naming
19263 busses. All users updated.
19264 (grub_scsi): Remove name. Add .bus.
19265
19266 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19267
19268 * commands/help.c (grub_cmd_help): Fix a typo.
19269
19270 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19271
19272 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19273 Reported and tested by: Colin Watson.
19274
19275 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19276
19277 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19278 in this context.
19279
19280 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19281
19282 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19283
19284 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19285
19286 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19287 indentation.
19288
19289 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19290
19291 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19292 and disk/raid6_recover.c.
19293 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19294 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19295
19296 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19297
19298 * term/gfxterm.c (repaint_schedulded): Rename to ...
19299 (repaint_scheduled): ... this. Update all callers.
19300 (repaint_was_schedulded): Rename to ...
19301 (repaint_was_scheduled): ... this. Update all callers.
19302
19303 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19304
19305 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19306 which we expect to be handled by upper layers.
19307
19308 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19309
19310 * bus/usb/usbhub.c: #include time.h header.
19311
19312 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19313
19314 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19315 entry_name also for entries without stat blocks (e.g. ".."); fixes
19316 corruption of the first entry in a directory.
19317
19318 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19319
19320 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19321 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19322 doesn't work otherwise.
19323
19324 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19325
19326 * docs/grub.texi (Features): Update list of supported file systems.
19327 (GNU/Linux): Update for GRUB 2.
19328 (Serial terminal): Remove mention of --disable-serial, which was a
19329 GRUB Legacy configure option. Update instructions to use
19330 `terminal_input' and `terminal_output' rather than `terminal'.
19331 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19332 configuration' and `Installing GRUB using grub-install'.
19333 (Menu entry editor): Update for GRUB 2.
19334 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19335 Document new -a, -u, and -v options.
19336 (initrd): New section.
19337 (initrd16): New section.
19338 (linux): New section.
19339 (linux16): New section.
19340 (search): The `var' argument to `--set' is optional.
19341 (GRUB only offers a rescue shell): Go into a little more detail on
19342 drive ordering.
19343
19344 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19345
19346 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19347
19348 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19349
19350 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19351 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19352
19353 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19354
19355 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19356 install_prefix, in line with install_dos_part and install_bsd_part.
19357 Add new prefix variable, which is copied to install_prefix after
19358 comparing core.img in memory with the one read from disk in the
19359 no-embedding case, and use that rather than overwriting
19360 install_prefix immediately when installing to a partition.
19361 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19362 Bicakci.
19363
19364 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19365
19366 * configure.ac: Avoid == in test command, it's not portable.
19367 * util/grub.d/30_os-prober.in: Likewise.
19368
19369 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19370
19371 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19372
19373 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19374
19375 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19376 multiple (top-level) partmaps.
19377
19378 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19379
19380 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19381 Reported by: Tino Keitel.
19382
19383 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19384
19385 Bidi and diacritics support.
19386
19387 * Makefile.in (widthspec.bin): New target.
19388 (widthspec.h): Likewise.
19389 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19390 * autogen.sh: Generate unidata.c.
19391 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19392 * commands/ls.c (grub_ls_list_devices): Likewise.
19393 (grub_ls_list_files): Likewise.
19394 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19395 (grub_mini_cmd_lsmod): Likewise.
19396 * commands/read.c: Likewise.
19397 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19398 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19399 * lib/arg.c (grub_arg_show_help): Likewise.
19400 * lib/crypto.c (grub_password_get): Likewise.
19401 * normal/auth.c (grub_username_get): Likewise.
19402 * normal/misc.c (grub_normal_print_device_info): Likewise.
19403 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19404 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19405 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19406 (normal/charset.c_DEPENDENCIES): New variable.
19407 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19408 (pkglib_MODULES): Remove charset.mod.
19409 (charset_mod_SOURCES): Removed.
19410 (charset_mod_CFLAGS): Likewise.
19411 (charset_mod_LDFLAGS): Likewise.
19412 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19413 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19414 and term/tparm.c.
19415 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19416 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19417 (kernel_img_HEADERS): Add terminfo.h.
19418 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19419 Fill ->font. Reverse ascii bitmaps.
19420 (grub_font_get_xheight): New function.
19421 * font/font.c (grub_font_get_string_width): Moved from here ...
19422 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19423 * font/font.c (grub_font_draw_string): Moved from here ...
19424 * gfxmenu/font.c (grub_font_draw_string): ... here.
19425 * font/font.c (grub_font_dup_glyph): New function.
19426 (grub_font_blit_glyph): Likewise.
19427 (grub_font_blit_glyph_mirror): Likewise.
19428 (blit_comb): Likewise.
19429 (grub_font_construct_dry_run): Likewise.
19430 (grub_font_get_constructed_device_width): Likewise.
19431 (grub_font_construct_glyph): Likewise.
19432 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19433 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19434 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19435 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19436 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19437 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19438 (grub_font_get_xheight): New proto.
19439 (grub_font_get_constructed_device_width): Likewise.
19440 (grub_font_construct_glyph): Likewise.
19441 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19442 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19443 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19444 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19445 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19446 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19447 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19448 (grub_console_getcharwidth): Likewise.
19449 * include/grub/misc.h (grub_xputs): New proto.
19450 (grub_puts): Inlined.
19451 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19452 (grub_normal_get_line_counter): Removed.
19453 (grub_install_newline_hook): Likewise.
19454 (grub_normal_get_char_counter): New proto.
19455 (grub_normal_reset_more): Likewise.
19456 (grub_xputs_normal): Likewise.
19457 * include/grub/powerpc/ieee1275/console.h: Removed.
19458 * include/grub/sparc64/ieee1275/console.h: Likewise.
19459 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19460 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19461 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19462 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19463 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19464 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19465 (grub_term_input): Pass reference to self. All users updated.
19466 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19467 Pass reference to self. New fields normal_color, highlight_color and
19468 data. All users updated.
19469 (grub_putchar): Removed.
19470 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19471 (grub_unicode_estimate_width): New function.
19472 (grub_term_getcharwidth): Add defaults.
19473 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19474 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19475 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19476 (grub_cls): Remove EXPORT_FUNC.
19477 (grub_setcolorstate): Inline.
19478 (grub_newline_hook): Removed.
19479 * include/grub/terminfo.h: Rewritten. All users updated.
19480 * include/grub/unicode.h: New file.
19481 * include/grub/video.h (grub_video_signed_rect): New type.
19482 * kern/emu/console.c (grub_console_highlight_color): Removed.
19483 (grub_console_normal_color): Likewise.
19484 (grub_console_standard_color): Made static.
19485 (grub_ncurses_putchar): Remove mapping.
19486 (grub_ncurses_getcharwidth): Removed.
19487 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19488 (grub_ncurses_setcolor): Removed.
19489 (grub_ncurses_getcolor): Likewise.
19490 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19491 (grub_console_putchar): ... this.
19492 (grub_console_putchar): Handle argument difference.
19493 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19494 console_init_early and console_init_lately.
19495 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19496 * kern/misc.c (grub_puts): Removed.
19497 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19498 (grub_vsnprintf_real): Remove str = NULL support.
19499 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19500 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19501 * kern/term.c (grub_putcode): Renamed to ...
19502 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19503 (grub_putchar): Removed.
19504 (grub_xputs_dumb): New function.
19505 (grub_xputs): New variable.
19506 * lib/charset.c: Move from here ...
19507 * normal/charset.c: ... to here.
19508 (grub_ucs4_to_utf8): New function.
19509 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19510 (join_types): New variable.
19511 (unpack_join): New function.
19512 (bidi_types): New variable.
19513 (unpack_bidi): New function.
19514 (get_bidi_type): Likewise.
19515 (get_join_type): Likewise.
19516 (is_mirrored): Likewise.
19517 (grub_unicode_get_comb_type): Likewise.
19518 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19519 (is_type_after): Likewise.
19520 (grub_unicode_aglomerate_comb): Likewise.
19521 (bidi_line_wrap): Likewise.
19522 (grub_bidi_line_logical_to_visual): Likewise.
19523 (grub_bidi_logical_to_visual): Likewise.
19524 (grub_unicode_mirror_code): Likewise.
19525 (grub_unicode_shape_code): Likewise.
19526 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19527 Don't use grub_putchar.
19528 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19529 (grub_normal_reader_init): Likewise.
19530 (grub_xputs_saved): New variable.
19531 (GRUB_MOD_INIT): Set grub_xputs.
19532 (GRUB_MOD_FINI): Restore grub_xputs.
19533 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19534 (menu_init): Avoid printing gfxmenu error.
19535 (show_menu): Use grub_normal_get_char_counter.
19536 * normal/menu_entry.c (update_screen): Fix out-of-array.
19537 (complete): Avoid NULL dereferencing.
19538 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19539 * normal/menu_text.c (print_spaces): Removed.
19540 (grub_print_ucs4): Likewise.
19541 (grub_print_message_indented): Use grub_print_ucs4.
19542 (print_message): Use grub_putcode.
19543 (print_entry): Hanlde diacritics.
19544 * normal/term.c (term_state): New type.
19545 (grub_more_lines): Removed.
19546 (term_states): New variable.
19547 (grub_normal_line_counter): Renamed to ..
19548 (grub_normal_char_counter): ...this. All users updated.
19549 (grub_normal_get_line_counter): Renamed to ...
19550 (grub_normal_get_char_counter): ... this.
19551 (grub_normal_reset_more): New function.
19552 (process_newline): Removed.
19553 (print_more): New function.
19554 (grub_install_newline_hook): Removed.
19555 (map_code): New function.
19556 (grub_puts_terminal): Use grub_print_ucs4.
19557 (putglyph): New function.
19558 (putcode_real): Likewise.
19559 (grub_putcode): Use putcode_real.
19560 (get_maxwidth): New function.
19561 (get_startwidth): Likewise.
19562 (print_ucs4_terminal): Likewise.
19563 (find_term_state): Likewise.
19564 (put_glyphs_terminal): Likewise.
19565 (print_backlog): Likewise.
19566 (print_ucs4_real): Likewise.
19567 (grub_print_ucs4): Likewise.
19568 (grub_xputs_normal): Likewise.
19569 * term/efi/console.c (grub_console_putchar): Output diacritics.
19570 (grub_console_getcharwidth): Removed.
19571 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19572 * term/gfxterm.c (clear_char): Free chars.
19573 (scroll_up): Avoid leaking memory.
19574 (grub_gfxterm_putchar): Support diacritics.
19575 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19576 * term/i386/pc/console.c (grub_console_term_output): Declare as
19577 GRUB_TERM_CODE_TYPE_VGA.
19578 * term/i386/pc/vga.c (grub_vga_term): Declare as
19579 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19580 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19581 GRUB_TERM_CODE_TYPE_VGA.
19582 * term/i386/vga_common.c (map_char): Removed.
19583 (grub_console_putchar): Likewise.
19584 (grub_console_getcharwidth): Likewise.
19585 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19586 (colors): Reordered to match terminfo.
19587 (grub_ofconsole_normal_color): Removed.
19588 (grub_ofconsole_writeesc): Likewise.
19589 (grub_ofconsole_highlight_color): Likewise.
19590 (grub_ofconsole_getcharwidth): Likewise.
19591 (grub_ofconsole_setcolorstate): Likewise.
19592 (grub_ofconsole_setcolor): Likewise.
19593 (grub_ofconsole_getcolor): Likewise.
19594 (grub_ofconsole_readkey): Renamed to ...
19595 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19596 key.
19597 (grub_ofconsole_checkkey): Removed.
19598 (grub_ofconsole_getkey): Likewise.
19599 (grub_ofconsole_getxy): Likewise.
19600 (grub_ofconsole_gotoxy): Likewise.
19601 (grub_ofconsole_cls): Likewise.
19602 (grub_ofconsole_refresh): Likewise.
19603 (grub_ofconsole_terminfo_input): New struct.
19604 (grub_ofconsole_terminfo_output): Likewise.
19605 (grub_ofconsole_term_input): Use terminfo.
19606 (grub_ofconsole_term_output): Likewise.
19607 (grub_console_init): Split into ...
19608 (grub_console_init_early): ...this and ...
19609 (grub_console_init_lately): ...this. Use terminfo.
19610 (grub_ofconsole_putchar): Renamed to ...
19611 (put): ... this. Remove mapping.
19612 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19613 * term/serial.c: Simplify using terminfo.
19614 (xpos): Removed.
19615 (ypos): Likewise.
19616 (keep_track): Likewise.
19617 (registered): Likewise.
19618 (input_buf): Likewise.
19619 (npending): Likewise.
19620 (serial_translate_key_sequence): Likewise.
19621 (fill_input_buf): Likewise.
19622 (grub_serial_checkkey): Likewise.
19623 (grub_serial_getkey): Likewise.
19624 (grub_serial_getxy): Likewise.
19625 (grub_serial_gotoxy): Likewise.
19626 (grub_serial_putchar): Likewise.
19627 (grub_serial_cls): Likewise.
19628 (grub_serial_setcolorstate): Likewise.
19629 (grub_serial_setcursor): Likewise.
19630 (serial_hw_init): Use serial_hw_fetch.
19631 (grub_serial_terminfo_input): New variable.
19632 (grub_serial_terminfo_output): Likewise.
19633 (grub_serial_term_input): Use terminfo.
19634 (grub_serial_term_output): Likewise.
19635 * term/terminfo.c (putstr): Use put.
19636 (grub_terminfo_all_free): New function
19637 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19638 (grub_terminfo_output_register): New function.
19639 (grub_terminfo_output_unregister): Likewise.
19640 (grub_terminfo_getxy): Likewise.
19641 (grub_terminfo_readkey): Likewise.
19642 (grub_terminfo_checkkey): Likewise.
19643 (grub_terminfo_getkey): Likewise.
19644 (grub_terminfo_input_init): Likewise.
19645 (print_terminfo): Likewise.
19646 (grub_cmd_terminfo): Handle encoding.
19647 (grub_terminfo_gotoxy): Track position.
19648 (grub_terminfo_cls): Likewise.
19649 (grub_terminfo_putchar): Likewise.
19650 (grub_terminfo_setcolorstate): Handle colors
19651 (grub_terminfo_cursor_on): This ...
19652 (grub_terminfo_cursor_off): ... and this merged into ...
19653 (grub_terminfo_setcursor): ... this.
19654 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19655 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19656 * unicode/BidiMirroring.txt: Likewise.
19657 * unicode/UnicodeData.txt: Likewise.
19658 * unicode/COPYING: Likewise.
19659 * util/grub-editenv.c (grub_putchar): Removed.
19660 (grub_xputs_real): New function.
19661 (grub_xputs): New variable.
19662 * util/grub-fstest.c (grub_putchar): Removed.
19663 (grub_xputs_real): New function.
19664 (grub_xputs): New variable.
19665 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19666 (grub_xputs_real): New function.
19667 (grub_xputs): New variable.
19668 * util/grub-probe.c (grub_putchar): Removed.
19669 (grub_xputs_real): New function.
19670 (grub_xputs): New variable.
19671 * util/grub-script-check.c (grub_putchar): Removed.
19672 (grub_xputs_real): New function.
19673 (grub_xputs): New variable.
19674 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19675 (grub_xputs_real): New function.
19676 (grub_xputs): New variable.
19677 * util/import_unicode.py: New file.
19678 * util/grub-mkfont.c (ft_errmsgs): New array.
19679 (grub_glyph_info): Make bitmap a pointer.
19680 (file_formats): New type WIDTH_SPEC.
19681 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19682 (options): Add width-spec.
19683 (help): Likewise.
19684 (add_char): Renamed to ...
19685 (add_glyph): ... this.
19686 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19687 (glyph_replace): New type.
19688 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19689 (add_char): New function.
19690 (add_subst): Likewise.
19691 (process_cursive): Likewise.
19692 (add_font): Handle GSUB.
19693 (write_font_width_spec): New function.
19694 (main): Sort glyphs.
19695 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19696 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19697 * kern/term.c (grub_cls): Moved from here...
19698 * normal/term.c (grub_cls): ... here.
19699
19700 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19701
19702 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19703 suitable for using within the format argument of printf when
19704 converting grub_size_t.
19705 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19706 "x" to convert grub_size_t arguments.
19707
19708 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19709
19710 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19711 too long captions.
19712 (list_get_minimal_size): Take selection box into account.
19713
19714 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19715
19716 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19717 NULL font.
19718
19719 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19720
19721 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19722 devices when iterating over /dev/disk/by-id; they will be handled
19723 later if appropriate, which they aren't always (e.g. LVM).
19724
19725 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19726
19727 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19728 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19729 fails.
19730 (grub_halt): Likewise.
19731 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19732 reset-all fails.
19733 (grub_halt): Don't return, even if all of shut-down, power-off, and
19734 poweroff fail.
19735
19736 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19737
19738 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19739 arguments, not three.
19740
19741 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19742
19743 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19744 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19745 LVM-on-RAID is handled correctly.
19746
19747 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19748
19749 * docs/grub.texi (Changes from GRUB Legacy): New section.
19750 (Future): Fix typo.
19751
19752 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19753
19754 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19755 grub.d/README accidentally ends up executable for one reason or
19756 another. Ignore it.
19757
19758 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19759
19760 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19761 (gpt_partition_map_iterate): Support non-512B sectors.
19762
19763 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19764
19765 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19766 Tested by: Seth Goldberg.
19767
19768 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19769
19770 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19771 Properly align mbi.
19772 Reported by: Seth Goldberg.
19773
19774 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19775
19776 * util/grub-mkrescue.in: Avoid module duplication.
19777
19778 2010-07-01 Sean Finney <seanius@seanius.net>
19779
19780 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19781
19782 2010-07-01 Sean Finney <seanius@seanius.net>
19783
19784 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19785
19786 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19787
19788 * disk/lvm.c (grub_lvm_checkvalue): New function.
19789 (grub_lvm_check_flag): Likewise.
19790
19791 2010-07-01 Robert Millan <rmh@gnu.org>
19792
19793 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19794 Support 'p' as partition separator on kernel of FreeBSD (used
19795 with GPT labels).
19796 (grub_util_biosdisk_get_grub_dev): Likewise.
19797
19798 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19799
19800 Yeeloong firmware port.
19801
19802 * boot/mips/yeeloong/fwstart.S: New file.
19803 * bus/cs5536.c (gpiodump): New const.
19804 (set_io_space): New function.
19805 (set_iod): Likewise.
19806 (set_p2d): Likewise.
19807 (grub_cs5536_init_geode): Likewise.
19808 * commands/mips/yeeloong/lsspd.c: New file.
19809 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19810 (serial_mod_SOURCES): New variable.
19811 (serial_mod_CFLAGS): Likewise.
19812 (serial_mod_LDFLAGS): Likewise.
19813 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19814 term/terminfo.c and term/tparm.c.
19815 (pkglib_IMAGES): Add fwstart.img.
19816 (fwstart_img_SOURCES): New variable.
19817 (fwstart_img_CFLAGS): Likewise.
19818 (fwstart_img_ASFLAGS): Likewise.
19819 (fwstart_img_LDFLAGS): Likewise.
19820 (fwstart_img_FORMAT): Likewise.
19821 (pkglib_MODULES): Add lsspd.mod.
19822 (lsspd_mod_SOURCES): New variable.
19823 (lsspd_mod_CFLAGS): Likewise.
19824 (lsspd_mod_LDFLAGS): Likewise.
19825 (pkglib_MODULES): Add halt.mod.
19826 (halt_mod_SOURCES): New variable.
19827 (halt_mod_CFLAGS): Likewise.
19828 (halt_mod_LDFLAGS): Likewise.
19829 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19830 (serial_mod_SOURCES): Removed.
19831 (serial_mod_CFLAGS): Likewise.
19832 (serial_mod_LDFLAGS): Likewise.
19833 * disk/ata.c (check_device): New function.
19834 (grub_ata_device_initialize): Use check_device.
19835 (grub_ata_iterate): Recheck devices.
19836 (grub_ata_open): Likewise.
19837 (grub_atapi_iterate): Likewise.
19838 (grub_atapi_open): Likewise.
19839 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19840 (GRUB_ATA_CH1_PORT1): Likewise.
19841 (GRUB_ATA_CH0_PORT2): Likewise.
19842 (GRUB_ATA_CH1_PORT2): Likewise.
19843 * include/grub/mips/loongson.h: New file.
19844 * include/grub/mips/yeeloong/ec.h: Likewise.
19845 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19846 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19847 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19848 * include/grub/misc.h (grub_halt): Declare as noreturn.
19849 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19850 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19851 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19852 (UART_ENABLE_DTRRTS): Likewise.
19853 (UART_ENABLE_MODEM): Removed.
19854 (UART_ENABLE_OUT2): New const.
19855 * include/grub/term.h (grub_term_register_input_active): New function.
19856 (grub_term_register_output_active): Likewise.
19857 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19858 argument.
19859 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19860 (init_pci): New function.
19861 (grub_machine_init): Execute platform init when firmware. Init serial.
19862 (grub_halt): Implement.
19863 (grub_exit): Likewise.
19864 (grub_reboot): Likewise.
19865 * term/serial.c (serial_hw_init): Update macros.
19866 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19867 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19868 (image_targets): New target mipsel-yeeloong-flash.
19869 (generate_image): Support IMAGE_YEELOONG_FLASH.
19870 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19871 (grub_video_sm712_setup): Init card.
19872 (grub_video_sm712_set_palette): Removed.
19873 * video/sm712_init.c: New file.
19874
19875 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
19876
19877 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19878 PATH when running help2man and then run it on the unadorned
19879 executable names, rather than passing $(builddir)/* paths to
19880 help2man. This avoids the build directory ending up in generated
19881 manual pages.
19882
19883 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19884
19885 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19886 to avoid accidents when debugging with 'sh -x'.
19887 * util/grub-mkrescue.in: Likewise.
19888 * util/grub.d/00_header.in: Likewise.
19889 * util/grub.d/10_hurd.in: Likewise.
19890 * util/grub.d/10_kfreebsd.in: Likewise.
19891 * util/grub.d/10_linux.in: Likewise.
19892 * util/grub.d/10_netbsd.in: Likewise.
19893 * util/grub.d/10_windows.in: Likewise.
19894 * util/grub.d/20_linux_xen.in: Likewise.
19895 * util/grub.d/30_os-prober.in: Likewise.
19896 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19897
19898 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
19899
19900 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19901 last character in the buffer.
19902 Reported by: Vladimir Serbinenko.
19903
19904 2010-06-29 Robert Millan <rmh@gnu.org>
19905
19906 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19907 (Command-line and menu entry commands): Document `badram' command.
19908
19909 2010-06-28 Robert Millan <rmh@gnu.org>
19910
19911 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19912 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19913 command using ${GRUB_BADRAM} as parameter.
19914
19915 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19916
19917 * docs/grub.texi (Device map): New section.
19918 (Themes): New section (stub).
19919 * Makefile.in (docs/grub.info): The info documentation now builds
19920 without errors. Make sure it stays that way.
19921
19922 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19923
19924 Use normal parser for menu entries.
19925 Reported by: Thomas Frauendorfer
19926
19927 * include/grub/parser.h (grub_parser_execute): Don't export.
19928 * normal/menu.c (grub_menu_execute_entry_real): New function.
19929 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19930
19931 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19932
19933 * docs/grub.texi (Embedded configuration): New section (replacing
19934 old "Preset Menu" stub).
19935 (Images): New section.
19936 (configfile): Note that any menu entries defined in `file' are shown
19937 immediately.
19938
19939 2010-06-28 Josh Triplett <josh@joshtriplett.org>
19940
19941 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19942
19943 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19944
19945 * util/grub-install.in: Add --debug-image= option.
19946
19947 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19948
19949 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19950 possible on Linux.
19951
19952 * util/deviceiter.c (check_device): Rename to ...
19953 (check_device_readable_unique): ... this. Update all callers.
19954 Maintain and check a list of which devices (by canonicalized name)
19955 have already been seen.
19956 (clear_seen_devices): New function.
19957 (compare_file_names) [__linux__]: New function.
19958 (grub_util_iterate_devices): Clear the list of seen devices on exit
19959 and (just in case) on entry.
19960 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19961 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19962 seen-devices list, superseded by general code in check_device.
19963
19964 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
19965
19966 * commands/cat.c (options): New variable.
19967 (grub_cmd_cat): Parse options. If the --dos option is given, print
19968 DOS-style "\r\n" line endings as simple newlines (Debian bug
19969 #586358).
19970 (GRUB_MOD_INIT): Use extcmd.
19971 (GRUB_MOD_FINI): Likewise.
19972 * docs/grub.texi (cat): Document --dos.
19973
19974 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19975
19976 XEN with Linux grub-mkconfig support.
19977
19978 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19979 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19980 GRUB_CMDLINE_XEN_DEFAULT.
19981 * util/grub.d/20_linux_xen.in: New file.
19982
19983 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19984
19985 Initialise VGA video on qemu ourselves.
19986
19987 * boot/i386/qemu/boot.S: Don't call 0xc000.
19988 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19989 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19990 (kernel_img_HEADERS): Add pci.h.
19991 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19992 * configure.ac: Force unifont on qemu and yeeloong.
19993 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19994 (grub_vga_palette_write): Use correct register.
19995 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19996 Call grub_qemu_init_cirrus.
19997 * kern/i386/qemu/init.c: New file.
19998 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19999
20000 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20001
20002 2010-06-26 Pavel Roskin <proski@gnu.org>
20003
20004 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20005 13.
20006
20007 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20008
20009 * docs/grub.texi (Simple configuration): Explain that
20010 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20011 set to `true' to disable their respective recovery entries, not
20012 merely set.
20013
20014 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20015
20016 Make the `source' command slightly faster.
20017
20018 * normal/main.c (grub_normal_execute): Don't re-read list files when
20019 nested.
20020
20021 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20022
20023 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20024 field position and mask size to red fields from mode_info, not
20025 green.
20026 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20027 Remove redundant tag->common.framebuffer_type assignment.
20028 Reported by: Seth Goldberg.
20029
20030 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20031
20032 Sync up other versions of the Linux loader with Robert Millan's
20033 change of 2010-01-09, "Make loader output a bit more user-friendly".
20034
20035 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20036 grub_dprintf().
20037 (grub_cmd_linux): Likewise.
20038 (grub_cmd_initrd): Likewise.
20039 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20040 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20041
20042 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20043
20044 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20045 larger than MEMORY_MAP_SIZE.
20046
20047 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20048
20049 Fix parallel build.
20050
20051 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20052 dependency.
20053 * script/parser.y: #include grub_script.tab.h header.
20054
20055 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20056
20057 Support >3GiB and <16MiB RAM in i386-qemu.
20058
20059 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20060 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20061 (grub_lower_mem): Removed.
20062 (grub_upper_mem): Likewise.
20063 (mem_size): Made static.
20064 (above_4g): New variable.
20065 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20066 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20067 support.
20068
20069 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20070
20071 Cirrus 5446 and Bochs video cards support.
20072
20073 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20074 video_bochs.mod
20075 (video_cirrus_mod_SOURCES): New variable.
20076 (video_cirrus_mod_CFLAGS): Likewise.
20077 (video_cirrus_mod_LDFLAGS): Likewise.
20078 (video_bochs_mod_SOURCES): Likewise.
20079 (video_bochs_mod_CFLAGS): Likewise.
20080 (video_bochs_mod_LDFLAGS): Likewise.
20081 * include/grub/vga.h: New file.
20082 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20083 (grub_video_fb_set_page_t): New type.
20084 (grub_video_fb_setup): New prototype.
20085 (grub_video_fb_swap_buffers): Likewise.
20086 (grub_video_fb_get_info_and_fini): Likewise.
20087 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20088 (CRTC_DATA_PORT): Likewise.
20089 (CRTC_CURSOR): Likewise.
20090 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20091 (CRTC_CURSOR_ADDR_LOW): Likewise.
20092 (CRTC_CURSOR_DISABLE): Likewise.
20093 (update_cursor): Use grub_vga_cr_write.
20094 (grub_vga_text_setcursor): Likewise.
20095 * video/bochs.c: New file.
20096 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20097 (palette): Likewise.
20098 (palette_size): Likewise.
20099 (framebuffer): New variable.
20100 (grub_video_fb_init): Use 'framebuffer'.
20101 (grub_video_fb_fini): Likewise.
20102 (grub_video_fb_get_info): Likewise.
20103 (grub_video_fb_get_palette): Likewise.
20104 (grub_video_fb_set_palette): Likewise.
20105 (grub_video_fb_set_viewport): Likewise.
20106 (grub_video_fb_get_viewport): Likewise.
20107 (grub_video_fb_map_color): Likewise.
20108 (grub_video_fb_map_rgb): Likewise.
20109 (grub_video_fb_map_rgba): Likewise.
20110 (grub_video_fb_unmap_color): Likewise.
20111 (grub_video_fb_unmap_color_int): Likewise.
20112 (grub_video_fb_fill_rect): Likewise.
20113 (grub_video_fb_blit_bitmap): Likewise.
20114 (grub_video_fb_blit_render_target): Likewise.
20115 (grub_video_fb_scroll): Likewise.
20116 (grub_video_fb_create_render_target): Likewise.
20117 (grub_video_fb_doublebuf_blit_init): Likewise.
20118 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20119 (doublebuf_pageflipping_update_screen): New function.
20120 (doublebuf_pageflipping_init): Likewise.
20121 (grub_video_fb_setup): Likewise.
20122 (grub_video_fb_swap_buffers): Likewise.
20123 (grub_video_fb_get_info_and_fini): Likewise.
20124 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20125 All users updated.
20126 (doublebuf_pageflipping_commit): Restructured into ...
20127 (doublebuf_pageflipping_set_page): ... this.
20128 (doublebuf_pageflipping_update_screen): Removed.
20129 (doublebuf_pageflipping_init): Likewise.
20130 (double_buffering_init): Likewise.
20131 (grub_video_vbe_setup): Use grub_video_fb_setup.
20132 (grub_video_vbe_swap_buffers): Removed.
20133 (grub_video_vbe_set_active_render_target): Likewise.
20134 (grub_video_vbe_get_active_render_target): Likewise.
20135 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20136 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20137 grub_video_fb_set_active_render_target and
20138 grub_video_fb_get_active_render_target.
20139 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20140 (SEQUENCER_DATA_PORT): Likewise.
20141 (MAP_MASK_REGISTER): Likewise.
20142 (CRTC_ADDR_PORT): Likewise.
20143 (CRTC_DATA_PORT): Likewise.
20144 (START_ADDR_HIGH_REGISTER): Likewise.
20145 (START_ADDR_LOW_REGISTER): Likewise.
20146 (GRAPHICS_ADDR_PORT): Likewise.
20147 (GRAPHICS_DATA_PORT): Likewise.
20148 (READ_MAP_REGISTER): Likewise.
20149 (INPUT_STATUS1_REGISTER): Likewise.
20150 (INPUT_STATUS1_VERTR_BIT): Likewise.
20151 (get_map_mask): Use grub_vga_sr_read.
20152 (set_map_mask): Use grub_vga_sr_write.
20153 (set_read_map): Use grub_vga_gr_write.
20154 (set_start_address): Use grub_vga_cr_write.
20155 * video/sm712.c (framebuffer): Remove leftover fields.
20156
20157 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20158
20159 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20160 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20161 instead. Replace the gfxterm backend check with a check that
20162 ${GRUB_PREFIX}/video.lst is non-empty.
20163 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20164 again.
20165 (load_video): New generated function. Call it before loading
20166 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20167 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20168 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20169 * docs/grub.texi (Simple configuration): Document
20170 GRUB_VIDEO_BACKEND.
20171
20172 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20173
20174 Use video functions in linux and xnu loaders.
20175
20176 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20177 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20178 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20179 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20180 loader/i386/pc/linux.c.
20181 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20182 (find_line_len): Removed.
20183 (find_framebuf): Likewise.
20184 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20185 * loader/i386/efi/xnu.c: Removed.
20186 * loader/i386/pc/xnu.c: Moved from here...
20187 * loader/i386/xnu.c: ...here.
20188
20189 Enable priorities in video drivers.
20190
20191 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20192 (grub_video_adapter): New field prio.
20193 (grub_video_register): Respect prio when inserting.
20194 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20195 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20196 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20197 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20198 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20199 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20200 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20201
20202 Fix SDL driver ID.
20203
20204 * include/grub/video.h (grub_video_driver_id_t): New value
20205 GRUB_VIDEO_DRIVER_SDL.
20206 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20207
20208 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20209
20210 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20211 argument to printf.
20212 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20213
20214 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20215
20216 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20217 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20218
20219 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20220
20221 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20222 directly, and recommend grub-install instead.
20223 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20224
20225 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20226
20227 Fix i386-pc prefix handling with nested partitions (Debian bug
20228 #585068). Note that the case where the core image is booted using
20229 multiboot and relocated from its original location still requires
20230 more work.
20231
20232 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20233 with "(,", fill the boot drive in between those two characters, but
20234 expect that a full partition specification including partition map
20235 names will follow.
20236 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20237 specified, write a prefix without the drive name but including a
20238 full partition specification.
20239
20240 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20241
20242 * util/grub-mkconfig.in: Ignore non-option arguments, for
20243 compatibility with older versions (before 2010-06-12) which did the
20244 same. In particular, this makes it easier to ship an update-grub
20245 wrapper which is compatible with that used with GRUB Legacy (Debian
20246 bug #586056).
20247
20248 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20249
20250 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20251 for manual page generation.
20252
20253 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20254
20255 * po/POTFILES: Remove leftover commands/handler.c.
20256
20257 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20258
20259 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20260 left this script non-functional.
20261
20262 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20263
20264 * docs/man/grub-emu.h2m: New file.
20265
20266 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20267
20268 * docs/grub.texi (Commands): Document reduced command set in rescue
20269 mode.
20270 (cpuid): New section.
20271
20272 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20273
20274 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20275 new partition naming style.
20276 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20277
20278 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20279
20280 Add "-o grub.iso" like cmdline options support.
20281
20282 * util/grub-install.in: Improve cmdline option parsing.
20283 * util/grub-mkconfig.in: Likewise.
20284 * util/grub-mkrescue.in: Likewise.
20285 * util/grub-reboot.in: Likewise.
20286 * util/grub-set-default.in: Likewise.
20287 * util/i386/efi/grub-install.in: Likewise.
20288 * util/ieee1275/grub-install.in: Likewise.
20289 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20290
20291 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20292
20293 * .bzrignore: Ignore 41_custom.
20294
20295 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20296
20297 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20298
20299 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20300
20301 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20302 prototype declarations.
20303
20304 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20305 generating fs, partmap, and video lists.
20306 * include/grub/fs.h (grub_fs_register): Omit prototype if
20307 GRUB_LST_GENERATOR is defined.
20308 * include/grub/partition.h (grub_partition_map_register): Likewise.
20309 * include/grub/video.h (grub_video_register): Likewise.
20310
20311 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20312
20313 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20314
20315 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20316
20317 * util/grub-mkrescue.in: Support --xorriso argument.
20318
20319 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20320
20321 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20322 Suggested by: Thomas Schmitt.
20323
20324 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20325
20326 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20327 Suggested by: Thomas Schmitt.
20328
20329 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20330
20331 custom.cfg support.
20332
20333 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20334 * util/grub.d/41_custom.in: New file.
20335
20336 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20337
20338 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20339 been merged back into normal.
20340
20341 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20342
20343 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20344 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20345
20346 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20347
20348 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20349 when generating manual pages.
20350 * docs/man/grub-bin2h.h2m: New file.
20351 * docs/man/grub-editenv.h2m: New file.
20352 * docs/man/grub-fstest.h2m: New file.
20353 * docs/man/grub-install.h2m: New file.
20354 * docs/man/grub-macho2img.h2m: New file.
20355 * docs/man/grub-mkconfig.h2m: New file.
20356 * docs/man/grub-mkdevicemap.h2m: New file.
20357 * docs/man/grub-mkfont.h2m: New file.
20358 * docs/man/grub-mkimage.h2m: New file.
20359 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20360 * docs/man/grub-mkrelpath.h2m: New file.
20361 * docs/man/grub-mkrescue.h2m: New file.
20362 * docs/man/grub-ofpathname.h2m: New file.
20363 * docs/man/grub-pe2elf.h2m: New file.
20364 * docs/man/grub-probe.h2m: New file.
20365 * docs/man/grub-reboot.h2m: New file.
20366 * docs/man/grub-script-check.h2m: New file.
20367 * docs/man/grub-set-default.h2m: New file.
20368 * docs/man/grub-setup.h2m: New file.
20369
20370 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20371
20372 Use FOR_* macros instead of *_iterate whenever possible.
20373
20374 * commands/handler.c: Removed.
20375 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20376 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20377 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20378 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20379 (grub_probe_SOURCES): Remove kern/parser.c.
20380 (util/grub-script-check.c_DEPENDENCIES): Removed.
20381 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20382 and grub_script_check_init.c.
20383 (grub_script_check_init.lst): Removed.
20384 (grub_script_check_init.h): Likewise.
20385 (grub_script_check_init.c): Likewise.
20386 (pkglib_MODULES): Remove handler.mod and sh.mod.
20387 (handler_mod_SOURCES): Removed.
20388 (handler_mod_CFLAGS): Likewise.
20389 (handler_mod_LDFLAGS): Likewise.
20390 (normal_mod_SOURCES): Remove normal/handler.c.
20391 Add script/main.c, script/script.c, script/execute.c,
20392 script/function.c, script/lexer.c, grub_script.tab.c
20393 and grub_script.yy.c.
20394 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20395 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20396 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20397 (grub_setup_SOURCES): Remove kern/parser.c.
20398 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20399 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20400 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20401 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20402 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20403 (grub_setup_SOURCES): Remove kern/parser.c.
20404 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20405 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20406 * include/grub/command.h (grub_command_iterate): Removed.
20407 (FOR_COMMANDS): New macro.
20408 * include/grub/dl.h (grub_dl): New member next.
20409 (grub_dl_iterate): Removed.
20410 (grub_dl_head): New variable declaration.
20411 (FOR_DL_MODULES): New macro.
20412 * include/grub/fs.h: Include list.h.
20413 (grub_fs): Make next first element.
20414 (grub_fs_list): New variable declaration.
20415 (grub_fs_register): Make inline.
20416 (grub_fs_unregister): Likewise.
20417 (grub_fs_iterate): Removed.
20418 (FOR_FILESYSTEMS): New macro.
20419 * include/grub/handler.h: Removed.
20420 * include/grub/list.h (grub_list_hook_t): Removed.
20421 (grub_list_test_t): Likewise.
20422 (grub_list_pop): Likewise.
20423 (grub_list_iterate): Likewise.
20424 (grub_list_insert): Likewise.
20425 (FOR_LIST_ELEMENTS): New macro.
20426 * include/grub/parser.h (grub_parser_class): Removed.
20427 (grub_parser_register): Likewise.
20428 (grub_parser_unregister): Likewise.
20429 (grub_parser_get_current): Likewise.
20430 (grub_parser_set_current): Likewise.
20431 (grub_register_rescue_parser): Likewise.
20432 (grub_rescue_parse_line): New function.
20433 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20434 * include/grub/script_sh.h (grub_script_function_list): New variable
20435 declaration.
20436 (FOR_SCRIPT_FUNCTIONS): New macro.
20437 (grub_script_function_iterate): Removed.
20438 (grub_normal_parse_line): New prototype.
20439 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20440 (FOR_DISABLED_TERM_INPUTS): Likewise.
20441 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20442 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20443 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20444 element.
20445 (grub_video_register): Inline.
20446 (grub_video_unregister): Likewise.
20447 (grub_video_adapter_list): New variable declaration.
20448 (grub_video_iterate): Removed.
20449 (FOR_VIDEO_ADAPTERS): New macro.
20450 * kern/dl.c (grub_dl_list): Removed. All users updated.
20451 (grub_dl_iterate): Removed.
20452 * kern/fs.c (grub_fs_list): Make global.
20453 (grub_fs_register): Removed.
20454 (grub_fs_unregister): Likewise.
20455 (grub_fs_iterate): Likewise.
20456 * kern/handler.c: Removed.
20457 * kern/list.c (grub_list_pop): Removed.
20458 (grub_list_iterate): Likewise.
20459 (grub_list_insert): Likewise.
20460 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20461 (grub_prio_list_insert): Don't use grub_list_insert.
20462 * kern/main.c (grub_register_rescue_parser): Don't call
20463 grub_register_rescue_parser.
20464 * kern/parser.c (grub_parser_class): Removed.
20465 (grub_parser_execute): Use grub_rescue_parse_line.
20466 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20467 (grub_rescue_parser): Removed.
20468 (grub_register_rescue_parser): Likewise.
20469 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20470 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20471 (grub_auth_check_authentication): Likewise.
20472 * normal/completion.c (iterate_command): Removed.
20473 (grub_normal_do_completion): Use FOR_COMMANDS.
20474 * normal/handler.c: Removed.
20475 * normal/main.c (read_config_file): Remove parser changing.
20476 (grub_normal_execute): Don't call read_handler_list.
20477 (grub_normal_read_line_real): Statically allocate prompt.
20478 (grub_cmdline_run): Use grub_normal_parse_line.
20479 (GRUB_MOD_FINI): Don't call free_handler_list.
20480 * normal/menu_entry.c (run): Likewise.
20481 * script/function.c (grub_script_function_list): Make global.
20482 (grub_script_function_iterate): Removed.
20483 * script/main.c (grub_normal_parse_line): Make global.
20484 (grub_sh_parser): Removed.
20485 (GRUB_MOD_INIT): Likewise.
20486 (GRUB_MOD_FINI): Likewise.
20487 * tests/lib/functional_test.c (grub_functional_test): Use
20488 FOR_LIST_ELEMENTS.
20489 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20490 (grub_test_run): Use FOR_LIST_ELEMENTS.
20491 * tests/lib/unit_test.c (main): Likewise.
20492 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20493 grub_list_pop.
20494 * util/grub-fstest.c (grub_term_input_class): Removed.
20495 (grub_term_output_class): Likewise.
20496 * util/grub-probe.c: Likewise.
20497 * util/i386/pc/grub-setup.c: Likewise.
20498 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20499 * util/grub-script-check.c (main): Don't call grub_init_all and
20500 grub_fini_all.
20501 * video/video.c (grub_video_adapter_list): Make global.
20502 (grub_video_register): Removed.
20503 (grub_video_unregister): Likewise.
20504 (grub_video_iterate): Likewise.
20505
20506 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20507
20508 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20509 reported by Henrique Ferreiro.
20510
20511 2010-06-09 Robert Millan <rmh@gnu.org>
20512
20513 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20514 ones, when both are available.
20515
20516 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20517
20518 Make --version uniform and avoid hard-coded program name.
20519
20520 * util/grub-mkimage.c (main): Use `program_name' instead of
20521 hard-coded string.
20522 * util/i386/pc/grub-setup.c (main): Likewise.
20523 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20524 * util/grub-install.in: Save the basename of $0 in $self, and use the
20525 latter in informational messages. Use the same format for --version
20526 as the binary programs.
20527 * util/grub-mkconfig.in: Likewise.
20528 * util/grub-mkrescue.in: Likewise.
20529 * util/grub-reboot.in: Likewise.
20530 * util/grub-set-default.in: Likewise.
20531 * util/i386/efi/grub-install.in: Likewise.
20532 * util/ieee1275/grub-install.in: Likewise.
20533 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20534
20535 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20536
20537 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20538 embedding area. Use <= instead of == when checking for non-emptiness.
20539
20540 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20541
20542 * configure.ac: Add `.' to the directories searched for unifont.
20543
20544 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20545
20546 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20547 grub_script.yy.h.
20548
20549 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20550
20551 * docs/grub.texi (History): Expand to cover GRUB 2.
20552 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20553 commands, not `terminal'.
20554 (serial): Likewise.
20555 (terminal_input): New section.
20556 (terminal_output): New section.
20557 (uppermem): New section (stub).
20558 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20559
20560 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20561
20562 * docs/grub.texi (Security): Menu entries are unrestricted by
20563 default, not restricted to superusers as I had previously thought.
20564 Reword to account for this.
20565
20566 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20567
20568 * kern/emu/misc.c (device_mapper_null_log): New function.
20569 (grub_device_mapper_supported): New function.
20570 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20571 prototype.
20572 * kern/emu/hostdisk.c (find_partition_start): Check whether
20573 device-mapper is supported before trying to use it.
20574 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20575
20576 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20577
20578 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20579 (File name syntax): Likewise.
20580 (help): --all is no longer supported in GRUB 2. Be more precise
20581 about pattern matching.
20582
20583 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20584
20585 * normal/completion.c (grub_normal_do_completion): When completing
20586 arguments to "set" and the current word contains an equals sign,
20587 skip to after the equals sign before starting completion.
20588
20589 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20590
20591 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20592
20593 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20594
20595 * docs/grub.texi (Network): New section.
20596 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20597 `(nd)' as in GRUB Legacy.
20598 (pxe_unload): New section.
20599
20600 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20601
20602 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20603 in the rescue shell, so recommend using `set' instead. Thanks,
20604 Jordan Uggla.
20605
20606 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20607
20608 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20609 (password): New section.
20610 (password_pbkdf2): New section.
20611 (search): New section.
20612 (Security): New section.
20613 (Troubleshooting): New section, currently very incomplete.
20614 (Invoking grub-mkpasswd-pbkdf2): New section.
20615 (Internals): New section, currently very incomplete.
20616
20617 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20618
20619 * util/grub.d/00_header.in: Add some more quoting (of
20620 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20621 work again.
20622 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20623
20624 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20625
20626 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20627 to `count', fixing variable shadowing that broke the -c option.
20628
20629 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20630
20631 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20632 in case they contain spaces.
20633
20634 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20635
20636 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20637 "part_" to partmap module names, in line with grub-install.
20638 Reported by: Jindřich Makovička (Debian bug #584426).
20639
20640 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20641
20642 * util/grub-mkimage.c: Make target-related error messages slightly
20643 more helpful; -O talks about "format". Explicitly point to the use
20644 of -O if no target is specified.
20645 Reported by: Didier Raboud (Debian bug #584415).
20646
20647 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20648
20649 * INSTALL: Document several build requirements for optional features
20650 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20651
20652 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20653
20654 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20655 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20656 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20657
20658 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20659
20660 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20661 Thanks to Jordan Uggla for spotting this.
20662
20663 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20664
20665 Finally make USB usable.
20666
20667 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20668 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20669 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20670 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20671 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20672 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20673 (GRUB_OHCI_FSMPS): Likewise.
20674 (GRUB_OHCI_PERIODIC_START): Likewise.
20675 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20676 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20677 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20678 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20679 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20680 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20681 (grub_ohci_transaction): Likewise.
20682 (grub_ohci_transfer): Improve condition detection algorithms.
20683 Handle toggle property. Program the transactions correctly.
20684 Improve error handling. Various important fixups.
20685 (grub_ohci_portstatus): Put register writes in right order.
20686 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20687 (grub_uhci_transfer): Don't show "failed" message on success.
20688 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20689 array.
20690 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20691 determine its size.
20692 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20693 before initialization is completed. Use IN direction for empty
20694 transfers. Use last_trans and compute toggle.
20695 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20696 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20697 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20698 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20699 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20700 (grub_usb_device): Increase toggle to 256.
20701 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20702 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20703 GRUB_USBMS_SUBCLASS_SFF8070.
20704 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20705 (grub_scsi_inquiry): New member page and alloc_length.
20706 (grub_scsi_request_sense): New structure.
20707 (grub_scsi_request_sense_data): Likewise.
20708 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20709 control.
20710 * disk/scsi.c (grub_scsi_request_sense): New function.
20711 (grub_scsi_test_unit_ready): Likewise.
20712 (grub_scsi_inquiry): Fill new fields.
20713 (grub_scsi_read_capacity): Likewise.
20714 (grub_scsi_read10): Add request sense at the end.
20715 (grub_scsi_read12): Likewise.
20716 (grub_scsi_write10): Likewise.
20717 (grub_scsi_write12): Likewise.
20718 (grub_scsi_open): Add Test Unit Ready.
20719 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20720 Support additional subclasses. Con't clear halt yet. Activate the
20721 proper config. Calculate LUNs correctly.
20722 (grub_usbms_transfer): Various important fixups.
20723
20724 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20725
20726 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20727 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20728 (grub_ohci_fini_hw): New function.
20729 (grub_ohci_restore_hw): Likewise.
20730 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20731 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20732 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20733
20734 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20735
20736 Dedicated DMA allocations.
20737
20738 * bus/pci.c (grub_memalign_dma32): New function
20739 (grub_dma_free): Likewise.
20740 (grub_dma_get_virt): Likewise.
20741 (grub_dma_get_phys): Likewise.
20742 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20743 (grub_ohci_pci_iter): Use dma32_alloc.
20744 (grub_ohci_transfer): Likewise.
20745 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20746 (grub_usb_bulk_readwrite): Likewise.
20747 * include/grub/pci.h: Add declarations.
20748
20749 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20750
20751 CS5536 support.
20752
20753 * bus/cs5536.c: New file.
20754 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20755 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20756 (cs5536_mod_SOURCES): New variable.
20757 (cs5536_mod_CFLAGS): Likewise.
20758 (cs5536_mod_LDFLAGS): Likewise.
20759 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20760 machine/pci.h.
20761 (kernel_img_SOURCES): Add bus/cs5536.c.
20762 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20763 usb_keyboard.mod.
20764 (usb_mod_SOURCES): New variable.
20765 (usb_mod_CFLAGS): New variable.
20766 (usb_mod_LDFLAGS): New variable.
20767 (usbtest_mod_SOURCES): New variable.
20768 (usbtest_mod_CFLAGS): New variable.
20769 (usbtest_mod_LDFLAGS): New variable.
20770 (ohci_mod_SOURCES): New variable.
20771 (ohci_mod_CFLAGS): New variable.
20772 (ohci_mod_LDFLAGS): New variable.
20773 (usbms_mod_SOURCES): New variable.
20774 (usbms_mod_CFLAGS): New variable.
20775 (usbms_mod_LDFLAGS): New variable.
20776 (usb_keyboard_mod_SOURCES): New variable.
20777 (usb_keyboard_mod_CFLAGS): New variable.
20778 (usb_keyboard_mod_LDFLAGS): New variable.
20779 * include/grub/smbus.h: New file.
20780 * include/grub/cs5536.h: New file.
20781
20782 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20783
20784 * util/grub.d/00_header.in: Add safety check to make sure that
20785 ${locale_dir} exists before trying to probe it.
20786
20787 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20788
20789 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20790 per the GNU Coding Standards; this is now too obscure to be worth
20791 documenting.
20792 (QNX): Likewise.
20793 (chainloader): Remove cross-reference to `SCO UnixWare'.
20794
20795 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20796
20797 * docs/grub.texi (Chain-loading): New section.
20798 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20799 adjusted for GRUB 2.
20800 (SCO UnixWare): Likewise.
20801 (QNX): Likewise.
20802 (chainloader): Add reference to `Block list syntax'.
20803 (drivemap): New section.
20804 (parttool): New section.
20805
20806 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20807
20808 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20809 the grub shell'.
20810 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20811 (Installing GRUB using grub-install): Remove reference to the grub
20812 shell; mention `grub-mkimage' and `grub-setup' instead.
20813 (Invoking grub-install): Likewise.
20814 (Interface): Add reference to `Menu entry editor'.
20815 (serial): Remove `--device' option.
20816
20817 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20818
20819 * docs/grub.texi (Configuration): New section, documenting
20820 configuration file generation using grub-mkconfig. I've left a slot
20821 for documenting the full shell scripting format but have not yet
20822 started on writing that up.
20823 (Invoking grub-mkconfig): New section.
20824
20825 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20826
20827 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20828 (GNU GRUB manual): Likewise.
20829 (General commands): Update description of `terminfo' for GRUB 2.
20830
20831 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20832
20833 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20834 (GRUB_MOD_INIT): Fix capitalisation.
20835 * docs/grub.texi (Command-line and menu entry commands): Document
20836 gettext and gptsync commands.
20837
20838 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20839
20840 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20841 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20842
20843 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
20844
20845 Add btrfs probing support, currently only in the single-device case.
20846
20847 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20848 function.
20849 (grub_guess_root_device): Call find_root_device_from_mountinfo
20850 before looking in /dev.
20851
20852 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20853
20854 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20855 GRUB_DISK_SIZE_UNKNOWN.
20856 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20857
20858 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
20859
20860 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20861 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20862 corrupted or not synced properly.
20863
20864 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20865
20866 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20867 Reported by: Seth Goldberg.
20868
20869 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20870
20871 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20872 addition of dest.
20873 Reported by: Seth Goldberg.
20874
20875 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20876
20877 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20878 Reported by: Seth Goldberg.
20879
20880 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20881
20882 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20883 64-bit address as signed on MIPS.
20884
20885 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20886
20887 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20888 to the empty string.
20889
20890 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20891
20892 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20893
20894 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20895 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20896 * kern/misc.c (__enable_execute_stack): Disable on
20897 GRUB_MACHINE_EMU.
20898
20899 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
20900
20901 Make grub-probe work with symbolic links under /dev/mapper as well
20902 as with real block devices. The Linux world seems to be (at best)
20903 in transition here, and GRUB shouldn't get caught in the middle.
20904
20905 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20906 /dev/mapper.
20907
20908 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20909
20910 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20911 input files (in which case exit zero).
20912
20913 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20914
20915 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20916 return NULL for various reasons even if it has a maximum-length
20917 buffer: for example, there might be a symlink loop, or the path
20918 might exceed PATH_MAX. If this happens, return NULL.
20919
20920 2010-05-27 Robert Millan <rmh@gnu.org>
20921
20922 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20923 partmap module to handle cross-partmap setups.
20924 Reported by Orestes Mas. Gràcies!
20925
20926 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
20927
20928 * util/grub-mkrescue.in: Initialise override_dir rather than
20929 assuming that it's unset or empty in the environment.
20930
20931 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20932
20933 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20934 variable index into p_index to suppress a warning with -Wshadow.
20935
20936 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20937
20938 * INSTALL: Added flex >= 2.5.35 requirement.
20939
20940 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20941
20942 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20943
20944 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20945
20946 cmostest support.
20947
20948 * commands/i386/cmostest.c: New file.
20949 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20950 (cmostest_mod_SOURCES): New variable.
20951 (cmostest_mod_CFLAGS): Likewise.
20952 (cmostest_mod_LDFLAGS): Likewise.
20953 * conf/i386-pc.rmk: Likewise.
20954 * docs/grub.texi (Vendor power-on keys): New section.
20955 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20956 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20957 and GRUB_BUTTON_CMOS_ADDRESS.
20958 * util/grub.d/00_header.in: Handle powering-on by separate button.
20959
20960 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20961
20962 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20963 Removed drawing_scrollbar argument. All users updated
20964 Fixes #29792.
20965 Reported by Jo Shields
20966
20967 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20968
20969 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20970 buffer since gfxterm handles double repaint.
20971
20972 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20973
20974 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20975 * term/gfxterm.c (real_scroll): Likewise.
20976
20977 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20978
20979 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20980 before calling BIOS.
20981
20982 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20983
20984 * include/grub/i18n.h: Always enable grub_gettext.
20985
20986 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20987
20988 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20989 partition naming style.
20990
20991 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
20992
20993 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20994 not the first option.
20995
20996 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
20997
20998 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20999
21000 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21001
21002 * util/misc.c: Move inclusion of <limits.h> to ...
21003 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21004
21005 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21006
21007 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21008 Fix merge error in NetBSD code.
21009 (find_partition_start) [__NetBSD__]: Likewise.
21010
21011 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21012
21013 Fix grub-mkrescue usage unit testing.
21014
21015 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21016
21017 2010-05-18 Christian Franke <franke@computer.org>
21018
21019 * util/grub.d/10_windows.in: Use path names instead of
21020 drive letters to prevent warning from Cygwin 1.7.
21021 Add drivemap command to menuentry if needed.
21022
21023 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21024
21025 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21026 gnumach and gnumach.gz.
21027
21028 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21029
21030 * include/grub/i18n.h (gettext): Inline instead of using #define.
21031 (grub_gettext): Likewise.
21032 (_): Likewise.
21033
21034 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21035
21036 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21037 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21038 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21039 (main): Add a slash after pkglibdirroot.
21040
21041 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21042
21043 * util/grub-install.in: Add missing "in" keyword.
21044
21045 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21046
21047 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21048 Reported by: Seth Goldberg.
21049
21050 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21051
21052 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21053
21054 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21055
21056 * configure.ac: Check for Linux device-mapper support.
21057
21058 * util/hostdisk.c (device_is_mapped): New function.
21059 (find_partition_start): New function, partly broken out from
21060 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21061 device-mapper support added.
21062 (linux_find_partition): Use find_partition_start.
21063 (convert_system_partition_to_system_disk): Add `st' argument.
21064 Support Linux /dev/mapper/* devices if device-mapper support is
21065 available; only DM-RAID devices are understood at present.
21066 (find_system_device): Add `st' argument. Pass it to
21067 convert_system_partition_to_system_disk.
21068 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21069 find_system_device and convert_system_partition_to_system_disk. Use
21070 find_partition_start.
21071
21072 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21073 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21074 * util/deviceiter.c [__linux__]: Define MINOR.
21075 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21076 * util/mkdevicemap.c (grub_putchar): New function.
21077 (grub_getkey): New function.
21078 (grub_refresh): New function.
21079 (main): Set debug=all if -v -v is used.
21080
21081 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21082
21083 Fix build with non-GNU libcs.
21084
21085 * util/misc.c (canonicalize_file_name): Move to ...
21086 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21087 grub_make_system_path_relative_to_its_root.
21088
21089 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21090
21091 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21092 we handle finding grub-mkimage. Default to finding grub-mkimage in
21093 ${bindir} with program_transform_name applied, and provide a
21094 --grub-mkimage option to override this.
21095
21096 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21097
21098 Remove grub-mkisofs.
21099
21100 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21101 (grub_mkisofs_SOURCES): Removed.
21102 (grub_mkisofs_CFLAGS): Removed.
21103 * util/mkisofs/defaults.h: Removed.
21104 * util/mkisofs/eltorito.c: Likewise.
21105 * util/mkisofs/exclude.h: Likewise.
21106 * util/mkisofs/hash.c: Likewise.
21107 * util/mkisofs/include/: Likewise.
21108 * util/mkisofs/include/fctldefs.h: Likewise.
21109 * util/mkisofs/include/mconfig.h: Likewise.
21110 * util/mkisofs/include/prototyp.h: Likewise.
21111 * util/mkisofs/include/statdefs.h: Likewise.
21112 * util/mkisofs/iso9660.h: Likewise.
21113 * util/mkisofs/joliet.c: Likewise.
21114 * util/mkisofs/match.c: Likewise.
21115 * util/mkisofs/match.h: Likewise.
21116 * util/mkisofs/mkisofs.c: Likewise.
21117 * util/mkisofs/mkisofs.h: Likewise.
21118 * util/mkisofs/msdos_partition.h: Likewise.
21119 * util/mkisofs/multi.c: Likewise.
21120 * util/mkisofs/name.c: Likewise.
21121 * util/mkisofs/rock.c: Likewise.
21122 * util/mkisofs/tree.c: Likewise.
21123 * util/mkisofs/write.c: Likewise.
21124
21125 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21126
21127 Unify grub-mkimage accross platforms.
21128
21129 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21130 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21131 (grub_mkelfimage_SOURCES): Removed.
21132 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21133 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21134 (bin_UTILITIES): Add grub-mkimage.
21135 (grub_mkimage_SOURCES): New variable.
21136 (kernel_img_HEADERS): Remove machine/kernel.h.
21137 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21138 (pkglib_PROGRAMS): Add kernel.img.
21139 (kernel_img_HEADERS): Add machine/kernel.h.
21140 (kernel_img_FORMAT): Removed.
21141 (bin_UTILITIES): Remove grub-mkimage.
21142 (grub_mkimage_SOURCES): Removed.
21143 (grub_mkimage_CFLAGS): Likewise.
21144 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21145 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21146 (pkglib_PROGRAMS): Add kernel.img.
21147 (bin_UTILITIES): Remove grub-mkimage.
21148 (grub_mkimage_SOURCES): Removed.
21149 (grub_mkimage_CFLAGS): Likewise.
21150 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21151 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21152 (pkglib_PROGRAMS): Add kernel.img.
21153 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21154 (pkglib_PROGRAMS): Add kernel.img.
21155 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21156 (grub_mkimage_SOURCES): Removed.
21157 (grub_mkimage_CFLAGS): Likewise.
21158 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21159 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21160 (pkglib_PROGRAMS): Add kernel.img.
21161 (bin_UTILITIES): Remove grub-mkimage.
21162 (grub_mkimage_SOURCES): Removed.
21163 (grub_mkimage_CFLAGS): Likewise.
21164 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21165 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21166 (grub_mkimage_SOURCES): Removed.
21167 (grub_mkimage_CFLAGS): Likewise.
21168 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21169 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21170 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21171 (grub_pe32_optional_header): ... this.
21172 (grub_pe64_optional_header): ... and this. All users updated.
21173 (GRUB_PE32_PE32_MAGIC): Split into ..
21174 (GRUB_PE32_PE32_MAGIC): .. this.
21175 (GRUB_PE32_PE64_MAGIC): .. and this.
21176 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21177 * include/grub/elf.h (PT_GNU_STACK): New definition.
21178 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21179 * include/grub/i386/efi/kernel.h: Likewise.
21180 * include/grub/i386/kernel.h: Likewise.
21181 * include/grub/i386/pc/kernel.h: Likewise.
21182 * include/grub/i386/qemu/boot.h: Likewise.
21183 * include/grub/mips/kernel.h: Likewise.
21184 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21185 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21186 * include/grub/powerpc/kernel.h: Likewise.
21187 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21188 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21189 * include/grub/sparc64/kernel.h: Likewise.
21190 * include/grub/x86_64/efi/kernel.h: Likewise.
21191 * include/grub/x86_64/kernel.h: Likewise.
21192 * include/grub/offsets.h: New file.
21193 * include/grub/kernel.h (grub_module_info): Split into ...
21194 (grub_module_info32): ... this.
21195 (grub_module_info64): ... and this.
21196 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21197 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21198 (grub_boot_blocklist): Moved from here ...
21199 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21200 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21201 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21202 * include/grub/types.h (grub_target_to_host16): Removed.
21203 (grub_target_to_host32): Likewise.
21204 (grub_target_to_host64): Likewise.
21205 (grub_host_to_target16): Likewise.
21206 (grub_host_to_target32): Likewise.
21207 (grub_host_to_target64): Likewise.
21208 (grub_host_to_target_addr): Likewise.
21209
21210 Support grub-mkrescue for efi, coreboot and qemu.
21211
21212 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21213 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21214 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21215 * util/grub-mkrawimage.c: Moved from here ...
21216 * util/grub-mkimage.c: ... here. All users updated.
21217 (ALIGN_ADDR): Use image_target.
21218 (TARGET_NO_FIELD): New const.
21219 (image_target_desc): New type.
21220 (image_targets): New array.
21221 (grub_target_to_host64): Use image_target.
21222 (grub_target_to_host32): Likewise.
21223 (grub_target_to_host16): Likewise.
21224 (grub_host_to_target64): Likewise.
21225 (grub_host_to_target32): Likewise.
21226 (grub_host_to_target16): Likewise.
21227 (grub_host_to_target_addr): Likewise.
21228 (generate_image): Handle multiimage.
21229 (main): Require -O parameter. All users updated.
21230 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21231 util/efi/grub-mkimage.c
21232 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21233 New option --rom-directory.
21234 Use xorriso.
21235 * util/i386/efi/grub-mkimage.c: Removed.
21236 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21237 (grub_target_to_host32): Likewise.
21238 (grub_target_to_host64): Likewise.
21239 (grub_host_to_target16): Likewise.
21240 (grub_host_to_target32): Likewise.
21241 (grub_host_to_target64): Likewise.
21242 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21243 (grub_target_to_host32): Likewise.
21244 (grub_target_to_host64): Likewise.
21245 (grub_host_to_target16): Likewise.
21246 (grub_host_to_target32): Likewise.
21247 (grub_host_to_target64): Likewise.
21248
21249 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21250
21251 Source tree is reorganized for emu build.
21252
21253 * include/grub/util/console.h: Move from here...
21254 * include/grub/emu/console.h: ...to here.
21255 * include/grub/util/getroot.h: Move from here...
21256 * include/grub/emu/getroot.h: ...to here.
21257 * include/grub/util/hostdisk.h: Move from here...
21258 * include/grub/emu/hostdisk.h: ...to here.
21259 * util/console.c: Move from here...
21260 * kern/emu/console.c: ...to here.
21261 * util/getroot.c: Move from here...
21262 * kern/emu/getroot.c: ...to here.
21263 * util/grub-emu.c: Move from here...
21264 * kern/emu/main.c: ...to here.
21265 * util/hostdisk.c: Move from here...
21266 * kern/emu/hostdisk.c: ...to here.
21267 * util/hostfs.c: Move from here...
21268 * kern/emu/hostfs.c: ...to here.
21269 * util/mm.c: Move from here...
21270 * kern/emu/mm.c: ...to here.
21271 * util/pci.c: Move from here...
21272 * bus/emu/pci.c: ...to here.
21273 * util/sdl.c: Move from here...
21274 * video/emu/sdl.c: ...to here.
21275 * util/time.c: Move from here...
21276 * kern/emu/time.c: ...to here.
21277 * util/usb.c: Move from here...
21278 * bus/usb/emu/usb.c: ...to here.
21279
21280 * include/grub/emu/misc.h: New header for grub-emu functions.
21281 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21282
21283 * conf/any-emu.rmk: Rule updates for above renames.
21284 * conf/common.rmk: Likewise.
21285 * conf/i386-pc.rmk: Likewise.
21286 * conf/i386-qemu.rmk: Likewise.
21287 * conf/mips.rmk: Likewise.
21288 * conf/sparc64-ieee1275.rmk: Likewise.
21289 * conf/x86-efi.rmk: Likewise.
21290
21291 * disk/lvm.h: #include updates for above renames.
21292 * util/grub-mkrelpath.c: Likewise.
21293 * util/grub-probe.c: Likewise.
21294 * util/i386/pc/grub-setup.c: Likewise.
21295 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21296 * kern/emu/console.c: Likewise.
21297 * kern/emu/getroot.c: Likewise.
21298 * kern/emu/hostdisk.c: Likewise.
21299 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21300
21301 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21302 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21303 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21304 * util/misc.c: Remove grub-emu functions.
21305
21306 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21307
21308 Fix gfxmenu crash.
21309 Reported by: Thorsten Grützmacher.
21310
21311 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21312 timeout hook.
21313 (circprog_set_property): Register and unregister timeout hook.
21314 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21315 (label_destroy): Free template. and unregister hook.
21316 (label_set_state): New function.
21317 (label_set_property): Handle templates and hooks.
21318 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21319 timeout hook.
21320 (progress_bar_set_property): Register and unregister timeout hook.
21321 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21322 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21323 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21324 (update_timeout_visit): Removed.
21325 (update_timeouts): New function.
21326 (redraw_timeouts): Likewise.
21327 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21328 (grub_gfxmenu_clear_timeout): Likewise.
21329 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21330 (grub_gfxmenu_timeout_notify): Likewise.
21331 (grub_gfxmenu_timeout_notifications): New external variable.
21332 (grub_gfxmenu_timeout_register): New function.
21333 (grub_gfxmenu_timeout_unregister): Likewise.
21334
21335 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21336
21337 Transform (broken) vga terminal into (working) vga video driver.
21338
21339 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21340 video/i386/pc/vga.c.
21341 * include/grub/video.h (grub_video_driver_id):
21342 Add GRUB_VIDEO_DRIVER_VGA.
21343 * term/i386/pc/vga.c: Renamed to ...
21344 * video/i386/pc/vga.c: ...this
21345 (DEBUG_VGA): Removed.
21346 (CHAR_WIDTH): Likewise.
21347 (CHAR_HEIGHT): Likewise.
21348 (TEXT_WIDTH): Likewise.
21349 (TEXT_HEIGHT): Likewise.
21350 (DEFAULT_FG_COLOR): Likewise.
21351 (DEFAULT_BG_COLOR): Likewise.
21352 (colored_char): Likewise.
21353 (xpos): Likewise.
21354 (ypos): Likewise.
21355 (cursor_state): Likewise.
21356 (fg_color): Likewise.
21357 (bg_color): Likewise.
21358 (text_buf): Likewise.
21359 (page): Likewise.
21360 (font): Likewise.
21361 (framebuffer): New variable.
21362 (set_read_map): Disabled.
21363 (setup): New variable.
21364 (is_target): Likewise.
21365 (grub_vga_mod_init): Likewise.
21366 (grub_vga_mod_fini): Likewise.
21367 (check_vga_mem): Likewise.
21368 (write_char): Likewise.
21369 (write_cursor): Likewise.
21370 (scroll_up): Likewise.
21371 (grub_vga_putchar): Likewise.
21372 (grub_vga_getcharwidth): Likewise.
21373 (grub_vga_getwh): Likewise.
21374 (grub_vga_getxy): Likewise.
21375 (grub_vga_gotoxy): Likewise.
21376 (grub_vga_cls): Likewise.
21377 (grub_vga_setcolorstate): Likewise.
21378 (grub_vga_setcursor): Likewise.
21379 (grub_video_vga_init): New function.
21380 (grub_video_vga_setup): Likewise.
21381 (grub_video_vga_fini): Likewise.
21382 (update_target): Likewise.
21383 (grub_video_vga_blit_bitmap): Likewise.
21384 (grub_video_vga_blit_render_target): Likewise.
21385 (grub_video_vga_set_active_render_target): Likewise.
21386 (grub_video_vga_get_active_render_target): Likewise.
21387 (grub_video_vga_swap_buffers): Likewise.
21388 (grub_video_vga_set_palette): Likewise.
21389 (grub_video_vga_get_info_and_fini): Likewise.
21390 (grub_vga_term): Removed.
21391 (grub_video_vga_adapter): New variable.
21392 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21393 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21394
21395 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21396
21397 * video/readers/jpeg.c: Indented.
21398
21399 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21400
21401 Various jpeg cleanups.
21402
21403 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21404 (grub_jpeg_decode_quan_table): Use sizeof.
21405 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21406
21407 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21408
21409 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21410 tables. Ignore non-last ac bit.
21411 (grub_jpeg_decode_quan_table): Likewise.
21412
21413 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21416 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21417 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21418 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21419 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21420 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21421
21422 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21423
21424 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21425 error.
21426
21427 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21428
21429 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21430
21431 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21432
21433 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21434 condition.
21435
21436 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21437
21438 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21439 part.
21440
21441 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21442
21443 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21444 pointers.
21445
21446 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21447
21448 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21449
21450 2010-05-01 Christian Franke <franke@computer.org>
21451
21452 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21453 Remove broken Cygwin path conversion.
21454 * util/misc.c: [__CYGWIN__] Add include and define.
21455 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21456 for Cygwin 1.7.
21457 (make_system_path_relative_to_its_root): Simplify loop, replace early
21458 return by break.
21459 [__CYGWIN__] Add conversion to win32 path.
21460 Include "/" case in trailing slash removal.
21461
21462 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21465 Reported by: Seth Goldberg
21466
21467 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21468
21469 * commands/help.c (grub_cmd_help): Fix a typo.
21470 Reported by: Seth Goldberg
21471
21472 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21473
21474 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21475 name and add N_.
21476 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21477 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21478 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21479 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21480 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21481 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21482 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21483 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21484 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21485 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21486 * normal/context.c (GRUB_MOD_INIT): Likewise.
21487 * normal/main.c (GRUB_MOD_INIT): Likewise.
21488 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21489 * term/serial.c (GRUB_MOD_INIT): Likewise.
21490 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21491
21492 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21493
21494 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21495 extra == 0.
21496
21497 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21498
21499 * commands/iorw.c: New file.
21500 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21501 (iorw_mod_SOURCES): New variable.
21502 (iorw_mod_CFLAGS): Likewise.
21503 (iorw_mod_LDFLAGS): Likewise.
21504
21505 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21506
21507 Hotkey support
21508
21509 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21510 * normal/main.c (hotkey_aliases): New variable.
21511 (grub_normal_add_menu_entry): Parse "--hotkey".
21512 * normal/menu_text.c (run_menu): Handle hotkeys.
21513
21514 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21515
21516 * kern/i386/coreboot/init.c (grub_machine_init): Call
21517 grub_machine_mmap_init on qemu.
21518
21519 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21520
21521 * boot/i386/qemu/boot.S: Add a missing .code16.
21522
21523 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21524
21525 Use LBIO on coreboot.
21526
21527 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21528 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21529 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21530 New declaration.
21531 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21532 grub_machine_mmap_init on coreboot.
21533 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21534 GRUB_LINUXBIOS_MEMBER_LINK.
21535 (grub_machine_mmap_iterate): Fix declaration.
21536 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21537
21538 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21539
21540 Split coreboot and multiboot ports.
21541
21542 * conf/i386-multiboot.rmk: New file.
21543 * configure.ac: Add multiboot port.
21544 * include/grub/i386/multiboot/boot.h: New file.
21545 * include/grub/i386/multiboot/console.h: Likewise.
21546 * include/grub/i386/multiboot/init.h: Likewise.
21547 * include/grub/i386/multiboot/kernel.h: Likewise.
21548 * include/grub/i386/multiboot/loader.h: Likewise.
21549 * include/grub/i386/multiboot/memory.h: Likewise.
21550 * include/grub/i386/multiboot/serial.h: Likewise.
21551 * include/grub/i386/multiboot/time.h: Likewise.
21552 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21553 * loader/multiboot.c: Likewise.
21554 * loader/multiboot_mbi2.c: Likewise.
21555 * util/grub-mkrescue.in: Generate multiboot rescue.
21556
21557 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21558
21559 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21560
21561 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21562
21563 Merge handling of input and output terminals. Fix a hang.
21564
21565 * commands/terminal.c (abstract_terminal): New struct.
21566 (handle_command): New function. Based on grub_cmd_terminal_input.
21567 (grub_cmd_terminal_input): Use handle_command.
21568 (grub_cmd_terminal_output): Use handle_command.
21569
21570 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21571
21572 Fix comment handling.
21573
21574 * tests/grub_script_comments.in: New testcase.
21575 * conf/tests.rmk: Rules for new testcase.
21576 * script/yylex.l: Updated flex rules.
21577
21578 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21579
21580 * docs/grub.texi (play): Document that zero pitches produce rests.
21581 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21582 if argc is 1.
21583
21584 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21585
21586 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21587 autogen issues.
21588
21589 2010-04-26 Christian Franke <franke@computer.org>
21590
21591 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21592 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21593 (grub_get_prefix): Remove function.
21594 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21595 make_system_path_relative_to_its_root ().
21596 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21597
21598 2010-04-24 Christian Franke <franke@computer.org>
21599
21600 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21601 (kernel_img_LDFLAGS): Remove -static-libgcc.
21602
21603 2010-04-24 Christian Franke <franke@computer.org>
21604
21605 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21606 and CHECK_END_SYMBOL if grub-emu is built.
21607 Unset TARGET_OBJ2ELF if grub-emu is built
21608 without module support.
21609
21610 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21611
21612 Nilfs2 support.
21613
21614 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21615 (grub_fstest_SOURCES): Likewise.
21616 (pkglib_MODULES): Add nilfs2.mod.
21617 (nilfs2_mod_SOURCES): New variable.
21618 (nilfs2_mod_CFLAGS): Likewise.
21619 (nilfs2_mod_LDFLAGS): Likewise.
21620 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21621 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21622 * fs/nilfs2.c: New file.
21623
21624 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21625
21626 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21627 is not supported.
21628
21629 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21630
21631 Add grub-mkconfig support for NetBSD.
21632
21633 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21634 * util/grub-mkconfig.in: export new NetBSD specific variables.
21635 * po/POTFILES-shell: added 10_netbsd.in.
21636 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21637
21638 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21639
21640 Fix emu build with grub-emu-pci and grub-emu-modules.
21641
21642 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21643 functions.
21644 * include/grub/libpciaccess.h: New file.
21645 * conf/any-emu.rmk: Update kernel headers for emu build.
21646
21647 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21648
21649 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21650
21651 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21652
21653 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21654
21655 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21656
21657 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21658 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21659 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21660 util/ieee1275/ofpath.c.
21661 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21662 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21663 * include/grub/sparc64/ieee1275/boot.h
21664 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21665 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21666 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21667 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21668 const char *.
21669 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21670 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21671 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21672 install.
21673
21674 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21675
21676 * util/grub-mkconfig.in: Corrected two == equality tests.
21677 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21678 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21679 expect a number appended to it.
21680 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21681 expects a number appended to it.
21682
21683 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21684
21685 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21686
21687 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21688
21689 * util/hostdisk.c (make_device_name): Change to new partition naming.
21690
21691 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21692
21693 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21694
21695 2010-04-17 Christian Franke <franke@computer.org>
21696
21697 * Makefile.in: Add missing localedir setting.
21698
21699 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21700
21701 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21702 mistake in r2156. Noticed by Anthony Fok.
21703
21704 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21705 @localedir@.
21706 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21707
21708 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21709
21710 Fix a spurious, uninitialized variable warning.
21711
21712 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21713 Initialize variable, shdr.
21714 (grub_freebsd_load_elfmodule): Likewise.
21715 (grub_freebsd_load_elf_meta): Likewise.
21716
21717 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21718
21719 Fix for escaped dollar in double quoted strings.
21720
21721 * script/yylex.l: Updated flex rules.
21722 * conf/tests.rmk: Rule for new testcase.
21723 * tests/grub_script_dollar.in: New testcase.
21724
21725 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21726 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21727
21728 Enclose all translated strings in grub.cfg in single quotes, and
21729 escape them appropriately (Ubuntu bug #552921).
21730
21731 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21732 * util/grub.d/10_hurd.in: Use it.
21733 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21734 * util/grub.d/10_linux.in (linux_entry): Likewise.
21735
21736 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21737
21738 Fix cygwin compilation.
21739
21740 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21741 * include/grub/misc.h (__register_frame_info)
21742 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21743 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21744 * kern/misc.c (__register_frame_info)
21745 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21746 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21747
21748 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21749
21750 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21751
21752 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21753
21754 Unify libgcc processing.
21755
21756 * Makefile.in (kernel_img_LDFLAGS): New variable.
21757 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21758 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21759 overwriting.
21760 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21761 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21762 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21763 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21764 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21765 overwriting. Remove -lgcc and -static-libgcc
21766 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21767 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21768 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21769 (kernel_img_LDFLAGS): Append instead of overwriting.
21770 Remove -lgcc and -static-libgcc
21771 * conf/sparc64-ieee1275.rmk: Likewise.
21772 * include/grub/powerpc/libgcc.h: Move to ...
21773 * include/grub/libgcc.h: .. this.
21774 * include/grub/libgcc.h: Don't export most of the function on x86.
21775 (__bswapsi2): New export.
21776 (__bswapdi2): Likewise.
21777 * include/grub/mips/libgcc.h: Removed.
21778 * include/grub/sparc64/libgcc.h: Likewise.
21779
21780 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21783 disk_info_msg (conflicts with gettexting into languages with cases).
21784
21785 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21786
21787 Add grub-probe support for NetBSD.
21788
21789 * util/getroot.c (find_root_device): Convert block device to
21790 character device on NetBSD.
21791 * util/probe.c (probe): Require character device on NetBSD.
21792 * util/hostdisk.c: NetBSD specific headers.
21793 (configure_device_driver): new function to tune device driver
21794 parameters (currently only for NetBSD floppy driver).
21795 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21796 via disklabel ioctl).
21797 (open_device): call configure_device_driver on NetBSD.
21798 (convert_system_partition_to_system_disk): NetBSD specific code.
21799 (device_is_wholedisk): Likewise.
21800 (grub_util_biosdisk_get_grub_dev): Likewise.
21801 (make_device_name): Fixed a typo in bsd_part_str.
21802 * configure.ac: check for opendisk() and getrawpartition() on
21803 NetBSD and set LIBUTIL.
21804 * Makefile.in: add LIBUTIL to LIBS.
21805
21806 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21807
21808 Documentation fix.
21809
21810 * util/grub-script-check.c: Better help message.
21811
21812 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21813
21814 Fix FreeBSD build.
21815
21816 * configure.ac: Flex version check.
21817 * conf/common.rmk: Add -Wno-error to sh.mod.
21818 * script/yylex.l: Remove all #pragma.
21819
21820 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21821
21822 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21823 prototype.
21824 Reported by: Seth Goldberg.
21825
21826 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21827
21828 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21829 Rename "module" to "module2".
21830 Reported by: Seth Goldberg.
21831
21832 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21833
21834 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21835 EXPORT_FUNC.
21836 Reported by: Seth Goldberg.
21837
21838 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21839
21840 * lib/posix_wrap/locale.h: Add missing file.
21841 Reported by: Seth Goldberg.
21842
21843 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21844
21845 grub-emu module load support.
21846
21847 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21848 NO_DYNAMIC_MODULES switched to this.
21849 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21850 (CFLAGS): Likewise.
21851 * conf/any-emu.rmk: Generate symlist.
21852 (kernel_img_HEADERS): Add util/datetime.h.
21853 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21854 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21855 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21856 kern/$(target_cpu)/cache.S.
21857 * configure.ac (grub-emu-modules): New option.
21858 * genmk.rb: Handle multiple source lists.
21859 * include/grub/sdl.h: New file.
21860 * include/grub/libusb.h: Likewise.
21861 * util/grub-emu.c (main): Hanle (host) root.
21862 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21863 GRUB_ERR_UNKNOWN_DEVICE.
21864 * util/misc.c: Move mm functions to ...
21865 * util/mm.c: ... here. All users updated.
21866
21867 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21868
21869 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21870 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21871 missing files.
21872 (maintainer-clean): Remove libgcrypt-grub.
21873
21874 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21875
21876 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21877
21878 2010-04-09 EFI Coder <eficoder@hotmail.com>
21879
21880 * normal/menu_text.c (print_message): Clean up the message and show
21881 the Fn information when on EFI
21882 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21883
21884 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21885
21886 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21887 All users updated.
21888 * normal/crypto.c (read_crypto_list): Likewise.
21889 * normal/dyncmd.c (read_command_list): Likewise.
21890 * normal/term.c (read_terminal_list): Likewise.
21891 * normal/main.c (read_lists): Use explicit prefix.
21892 (read_lists_hook): Use read_lists.
21893 (grub_normal_execute): Likewise.
21894
21895 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21896
21897 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21898 Reported by: Thomas Schmitt.
21899 Add -no-emul-boot to grub-mkisofs parameters.
21900
21901 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21902
21903 * font/font.c: Indented.
21904
21905 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21906
21907 Elif support to GRUB script (by Deepak Vankadaru).
21908
21909 * tests/grub_script_if.in: New testcase.
21910 * conf/tests.rmk: Rule for new testcase.
21911 * script/parser.y: Grammar rules for elif.
21912
21913 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21914
21915 While and until loops support to GRUB script.
21916
21917 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21918 (grub_script_create_cmdwhile): New function prototype.
21919 (grub_script_execute_cmdwhile): New function prototype.
21920 * script/execute.c (grub_script_execute_cmdwhile): New function.
21921 * script/parser.y (command): New commands.
21922 (whilecmd): New grammar rule.
21923 (untilcmd): New grammar rule.
21924 * script/script.c (grub_script_create_cmdwhile): New function.
21925 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21926 function.
21927
21928 * tests/grub_script_while1.in: New testcase.
21929 * conf/tests.rmk: Rule for new testcase.
21930
21931 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21932
21933 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21934 as *.jpg.
21935
21936 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
21937
21938 GRUB_BACKGROUND support.
21939
21940 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21941 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21942
21943 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21944
21945 Load fonts and modules for gfxmenu in grub-mkconfig.
21946 Idea by: Mario Vazquez
21947
21948 * util/grub.d/00_header.in: Load pf2 and image modules.
21949
21950 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21951
21952 grub-mkconfig multiple terminal support.
21953
21954 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21955 * util/grub.d/00_header.in: Likewise.
21956
21957 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21958
21959 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21960 we use cd $(srcdir).
21961
21962 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
21963
21964 * util/grub.d/10_linux.in: Only use the first word of
21965 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21966 spaces in GRUB_DISTRIBUTOR.
21967 * util/grub.d/10_kfreebsd.in: Likewise.
21968 * util/grub.d/10_hurd.in: Likewise.
21969
21970 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21971
21972 Fix unit testing framework for Qemu 0.12.
21973
21974 * tests/util/grub-shell.in: Remove -serial stdio option.
21975
21976 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21977
21978 POSIX header file wrappers.
21979
21980 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21981 equivalents.
21982 * lib/posix_wrap/ctype.h: Likewise.
21983 * lib/posix_wrap/errno.h: Likewise.
21984 * lib/posix_wrap/langinfo.h: Likewise.
21985 * lib/posix_wrap/limits.h: Likewise.
21986 * lib/posix_wrap/localcharset.h: Likewise.
21987 * lib/posix_wrap/stdint.h: Likewise.
21988 * lib/posix_wrap/stdio.h: Likewise.
21989 * lib/posix_wrap/stdlib.h: Likewise.
21990 * lib/posix_wrap/string.h: Likewise.
21991 * lib/posix_wrap/sys/types.h: Likewise.
21992 * lib/posix_wrap/unistd.h: Likewise.
21993 * lib/posix_wrap/wchar.h: Likewise.
21994 * lib/posix_wrap/wctype.h: Likewise.
21995 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21996 (grub_script.yy.h): Likewise.
21997 * script/yylex.l: Remove POSIX emulation #defines.
21998 * Makefile.in (POSIX_CFLAGS): New variable.
21999 (GNULIB_UTIL_CFLAGS): Likewise.
22000
22001 Regexp support.
22002
22003 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22004 (regexp_mod_SOURCES): New variable.
22005 (regexp_mod_CFLAGS): Likewise.
22006 (regexp_mod_LDFLAGS): Likewise.
22007 * commands/regexp.c: New file.
22008 * gnulib/regcomp.c: New file. Imported from gnulib.
22009 * gnulib/regex.c: Likewise.
22010 * gnulib/regex_internal.c: Likewise.
22011 * gnulib/regex_internal.h: Likewise.
22012 * gnulib/regexec.c: Likewise.
22013 * gnulib/regex.h: Likewise.
22014
22015 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22016
22017 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22018 unsupported video mode types.
22019
22020 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22021
22022 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22023
22024 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22025
22026 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22027 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22028
22029 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22030
22031 Remove unused grub_vga_get_font.
22032
22033 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22034 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22035
22036 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22037
22038 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22039 * include/grub/misc.h: Likewise.
22040
22041 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22042
22043 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22044 for which failure is fatal.
22045
22046 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22047
22048 * util/grub-install.in: Use mkdir -p to create grub directory.
22049 * util/i386/efi/grub-install.in: Likewise.
22050 * util/ieee1275/grub-install.in: Likewise.
22051
22052 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22053
22054 * Makefile.in (LEX): new variable.
22055
22056 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22057
22058 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22059 `=' and added double quotes on operands of this equality test.
22060
22061 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22062
22063 * Makefile.in (uninstall): Remove a leftover debug echo.
22064 Reported by: Grégoire Sutre
22065
22066 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22067
22068 MIPS multiboot2 support.
22069
22070 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22071 (multiboot2_mod_SOURCES): New variable.
22072 (multiboot2_mod_CFLAGS): Likewise.
22073 (multiboot2_mod_LDFLAGS): Likewise.
22074 (multiboot2_mod_ASFLAGS): Likewise.
22075 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22076 definition.
22077 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22078 (MULTIBOOT_MBI_REGISTER): Likewise.
22079 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22080 (MULTIBOOT_ELF32_MACHINE): Likewise.
22081 (MULTIBOOT_ELF64_MACHINE): Likewise.
22082 * include/grub/mips/multiboot.h: New file.
22083 * include/grub/video.h (grub_video_driver_id): New type
22084 GRUB_VIDEO_DRIVER_SM712.
22085 (grub_video_get_info_and_fini): Export.
22086 (grub_video_get_palette): Likewise.
22087 (grub_video_get_driver_id): Likewise.
22088 * include/multiboot2.h: Resynced with spec.
22089 * loader/i386/multiboot.c: Moved from here ...
22090 * loader/multiboot.c: ... here. All users updated.
22091 (grub_multiboot_boot): Use platform-specific macros.
22092 * loader/i386/multiboot_elfxx.c: Moved from here ...
22093 * loader/multiboot_elfxx.c: ... here. All users updated.
22094 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22095 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22096 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22097
22098 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22099
22100 Import gnulib argp module.
22101
22102 * gnulib/argp-ba.c: New file.
22103 * gnulib/argp-eexst.c: Likewise.
22104 * gnulib/argp-fmtstream.c: Likewise.
22105 * gnulib/argp-fmtstream.h: Likewise.
22106 * gnulib/argp-fs-xinl.c: Likewise.
22107 * gnulib/argp-help.c: Likewise.
22108 * gnulib/argp-namefrob.h: Likewise.
22109 * gnulib/argp-parse.c: Likewise.
22110 * gnulib/argp-pin.c: Likewise.
22111 * gnulib/argp-pv.c: Likewise.
22112 * gnulib/argp-pvh.c: Likewise.
22113 * gnulib/argp-version-etc.c: Likewise.
22114 * gnulib/argp-version-etc.h: Likewise.
22115 * gnulib/argp-xinl.c: Likewise.
22116 * gnulib/argp.h: Likewise.
22117
22118 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22119
22120 * kern/device.c (grub_device_iterate): Clear errors after failed
22121 opening device.
22122
22123 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22124
22125 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22126 returned by firmware.
22127
22128 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22129
22130 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22131 compilation on coreboot and qemu
22132
22133 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22134
22135 * include/multiboot2.h: Resync with spec.
22136
22137 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22138
22139 Multiboot2 tag support
22140
22141 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22142 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22143 Remove loader/multiboot_loader.c.
22144 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22145 (grub_multiboot2_real_boot): Likewise.
22146 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22147 (grub_get_multiboot_mmap_count): New proto.
22148 (grub_fill_multiboot_mmap): Likewise.
22149 (grub_multiboot_set_video_mode): Likewise.
22150 (grub_multiboot_set_console): Likewise.
22151 (grub_multiboot_load): Likewise.
22152 (grub_multiboot_load_elf): Likewise.
22153 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22154 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22155 * include/multiboot.h: Resynced with specification.
22156 * include/multiboot2.h: Resynced with specification.
22157 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22158 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22159 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22160 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22161 users updated.
22162 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22163 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22164 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22165 Removed.
22166 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22167 Moved from here...
22168 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22169 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22170 Moved from here...
22171 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22172 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22173 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22174 All users updated.
22175 * loader/i386/multiboot_mbi2.c: New file.
22176
22177 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22178
22179 Resync with gnulib.
22180
22181 * Makefile.in (GNULIB_CFLAGS): New variable.
22182 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22183 (grub_script_check_CFLAGS): New variable.
22184 * gnulib/alloca.h: Resync with gnulib.
22185 * gnulib/error.c: Likewise.
22186 * gnulib/error.h: Likewise.
22187 * gnulib/fnmatch.c: Likewise.
22188 * gnulib/fnmatch_loop.c: Likewise.
22189 * gnulib/getdelim.c: Likewise.
22190 * gnulib/getline.c: Likewise.
22191 * gnulib/getopt.c: Likewise.
22192 * gnulib/getopt1.c: Likewise.
22193 * gnulib/getopt_int.h: Likewise.
22194 * gnulib/gettext.h: Likewise.
22195 * gnulib/progname.c: Likewise.
22196 * gnulib/progname.h: Likewise.
22197
22198 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22199
22200 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22201 which is the case with --disabled-nls.
22202
22203 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22204 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22205 * util/misc.c: Likewise.
22206 * util/mkisofs/mkisofs.c: Likewise.
22207 * util/mkisofs/mkisofs.h: Likewise.
22208
22209 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22210
22211 Simplify Apple CC support.
22212
22213 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22214 Add 0 byte at the end not to have a symbol with empty target.
22215 * mmap/i386/pc/mmap_helper.S: Likewise.
22216 * genmk.rb: Ignore errors 2030 and 2050.
22217 * kern/i386/pc/startup.S: Use LOCAL when possible.
22218
22219 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22220
22221 Testcase and the fix for final semicolon on cmdline.
22222
22223 * tests/grub_script_final_semicolon.in: New testcase.
22224 * conf/tests.rmk: Rules for the new testcase.
22225 * script/parser.y: Grammar fix.
22226
22227 2010-03-26 BVK Chaitanya <bvk@localhost>
22228
22229 Blank lines testcase for GRUB script.
22230
22231 * tests/grub_script_blanklines.in: New testcase.
22232 * conf/tests.rmk: Rules for the new testcase.
22233
22234 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22235
22236 Don't use __FILE__.
22237
22238 * genmk.rb: Add -DGRUB_FILE to all C targets.
22239 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22240 * include/grub/list.h: Likewise.
22241 * include/grub/misc.h: Likewise.
22242 * include/grub/mm.h: Likewise.
22243 * include/grub/test.h: Likewise.
22244 * kern/mm.c: Likewise.
22245 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22246
22247 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22248
22249 Sunpc partitions support.
22250
22251 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22252 (grub_fstest_SOURCES): Likewise.
22253 (pkglib_MODULES): Add part_sunpc.mod.
22254 (part_sunpc_mod_SOURCES): New variable.
22255 (part_sunpc_mod_CFLAGS): Likewise.
22256 (part_sunpc_mod_LDFLAGS): Likewise.
22257 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22258 * partmap/sunpc.c: New file.
22259
22260 2010-03-26 BVK Chaitanya <bvk@localhost>
22261
22262 For loop support to GRUB script.
22263
22264 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22265 (grub_script_create_cmdfor): New function prototype.
22266 (grub_script_execute_cmdfor): New function prototype.
22267 * script/execute.c (grub_script_execute_cmdfor): New function.
22268 * script/parser.y (command): New for command.
22269 (forcmd): New grammar rule.
22270 * script/script.c (grub_script_create_cmdfor): New function.
22271 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22272 function.
22273 * tests/grub_script_for1.in: New testcase.
22274 * conf/tests.rmk: Rules for new testcase.
22275
22276 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22277
22278 Nested partitions
22279
22280 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22281 'partition' is NULL, grub_partition_get_start already does that.
22282 * commands/loadenv.c (check_blocklists): Likewise.
22283 (write_blocklists): Likewise.
22284 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22285 (grub_fstest_SOURCES): Likewise.
22286 (pkglib_MODULES): Add part_bsd.mod.
22287 (part_bsd_mod_SOURCES): New variable.
22288 (part_bsd_mod_CFLAGS): Likewise.
22289 (part_bsd_mod_LDFLAGS): Likewise.
22290 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22291 (grub_emu_SOURCES): Likewise.
22292 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22293 * include/grub/bsdlabel.h: New file.
22294 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22295 'get_name'.
22296 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22297 (grub_partition_map_list): New variable.
22298 (grub_partition_map_register): Inline.
22299 (grub_partition_map_unregister): Likewise.
22300 (FOR_PARTITION_MAPS): New macro.
22301 (grub_partition_map_iterate): Removed.
22302 (grub_partition_get_start): Handle nested partitions.
22303 * include/grub/msdos_partition.h: Remove bsd-related entries.
22304 (grub_pc_partition): Remove.
22305 * kern/disk.c (grub_disk_close): Free partition data.
22306 (grub_disk_adjust_range): Handle nested partitions.
22307 * kern/partition.c (grub_partition_map_probe): New function.
22308 (grub_partition_probe): Parse name to number, handle subpartitions.
22309 (get_partmap): New function.
22310 (grub_partition_iterate): Handle subpartitions.
22311 (grub_partition_get_name): Likewise.
22312 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22313 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22314 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22315 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22316 Set 'number'.
22317 (acorn_partition_map_probe): Remove.
22318 (acorn_partition_map_get_name): Likewise.
22319 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22320 Set 'number'.
22321 Set 'index' to 0 since there can be only one partition entry per sector.
22322 (amiga_partition_map_probe): Remove.
22323 (amiga_partition_map_get_name): Likewise.
22324 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22325 Set 'number'.
22326 Set 'offset' and 'index' to real positions of partitions.
22327 (apple_partition_map_probe): Remove.
22328 (apple_partition_map_get_name): Likewise.
22329 * partmap/bsdlabel.c: New file.
22330 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22331 Set 'number'.
22332 Allocate 'data' so it can be correctly freed.
22333 Set 'index' to offset inside sector.
22334 (gpt_partition_map_probe): Remove.
22335 (gpt_partition_map_get_name): Likewise.
22336 * partmap/msdos.c (grub_partition_parse): Remove.
22337 (pc_partition_map_iterate): Don't force raw access.
22338 Set 'number'.
22339 Make 'ext_offset' a local variable.
22340 (pc_partition_map_probe): Remove.
22341 (pc_partition_map_get_name): Remove.
22342 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22343 Set 'number'.
22344 (sun_partition_map_probe): Remove.
22345 (sun_partition_map_get_name): Likewise.
22346 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22347 (grub_pcpart_type): Likewise.
22348 * util/hostdisk.c (open_device): Handle new numbering scheme.
22349 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22350 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22351 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22352 * util/grub-install.in: Insert all subpartition modules.
22353 * util/ieee1275/grub-install.in: Likewise.
22354
22355 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22356
22357 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22358 grammar.
22359
22360 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22361
22362 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22363
22364 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22365
22366 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22367 match where 'make install' puts them.
22368 * util/i386/efi/grub-install.in: Likewise.
22369
22370 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22371
22372 * .bzrignore: Add gentrigtables, grub-script-check,
22373 grub_script_check_init.c, grub_script_check_init.h, and
22374 trigtables.c.
22375
22376 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22377
22378 * kern/parser.c: Indented.
22379
22380 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22381
22382 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22383
22384 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22385
22386 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22387 alpha_mask_size == 0 case.
22388
22389 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22390
22391 GRUB shell lexer and parser improvements.
22392
22393 * conf/any-emu.rmk: Build rule updates.
22394 * conf/common.rmk: Likewise.
22395 * conf/i386-coreboot.rmk: Likewise.
22396 * conf/i386-efi.rmk: Likewise.
22397 * conf/i386-ieee1275.rmk: Likewise.
22398 * conf/i386-pc.rmk: Likewise.
22399 * conf/powerpc-ieee1275.rmk: Likewise.
22400 * conf/x86_64-efi.rmk: Likewise.
22401
22402 * configure.ac: Configure check for flex.
22403
22404 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22405 types.
22406 (grub_lexer_param): Struct member updates.
22407 (grub_parser_param): Likewise.
22408 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22409 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22410 (grub_script_lexer_init): Prototype update.
22411 (grub_script_lexer_record_start): Likewise.
22412 (grub_script_lexer_record_stop): Likewise.
22413 (grub_script_lexer_yywrap): New function prototype.
22414 (grub_script_lexer_fini): Likewise.
22415 (grub_script_execute_argument_to_string): Removed by...
22416 (grub_script_execute_argument_to_argv): ...better version.
22417
22418 * script/execute.c (ROUND_UPTO): New macro.
22419 (grub_script_execute_cmdline): Out of memory fixes.
22420 (grub_script_execute_menuentry): Likewise.
22421 (grub_script_execute_argument_to_string): Removed. Update all
22422 users by...
22423 (grub_script_execute_argument_to_argv): ...better version.
22424 * script/function.c (grub_script_function_create): Use
22425 grub_script_execute_argument_to_argv instead of
22426 grub_script_execute_argument_to_string.
22427
22428 * script/lexer.c (check_varstate): Removed.
22429 (check_textstate): Removed.
22430 (grub_script_lexer_record_start): Likewise.
22431 (grub_script_lexer_record_stop): Likewise.
22432 (recordchar): Replaced with...
22433 (grub_script_lexer_record): ...new function.
22434 (nextchar): Removed.
22435 (grub_script_lexer_init): Rewritten.
22436 (grub_script_yylex): Rewritten.
22437 (append_newline): New function.
22438 (grub_script_lexer_yywrap): New function.
22439 (grub_script_lexer_fini): New function.
22440 (grub_script_yyerror): Sets error flag.
22441
22442 * script/yylex.l: New file.
22443 (grub_lexer_yyfree): Wrapper for flex yyffre.
22444 (grub_lexer_yyalloc): Likewise.
22445 (grub_lexer_yyrealloc): Likewise.
22446 * script/parser.y: Refactored.
22447
22448 * script/script.c (grub_script_arg_add): Out of memory fixes.
22449 (grub_script_add_arglist): Likewise.
22450 (grub_script_create_cmdline): Likewise.
22451 (grub_script_create_cmdmenu): Likewise.
22452 (grub_script_add_cmd): Likewise.
22453 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22454 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22455 unnecessary code.
22456
22457 * tests/grub_script_echo1.in: New testcase.
22458 * tests/grub_script_vars1.in: New testcase.
22459 * tests/grub_script_echo_keywords.in: New testcase.
22460
22461 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22462
22463 Remove some redundancy in build system.
22464
22465 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22466 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22467 (TARGET_LDFLAGS): Add -nostdlib.
22468 (TARGET_IMG_LDFLAGS): Likewise.
22469 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22470 anything since mmap isn't available.
22471 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22472 Add util/time.c.
22473 (pkglib_MODULES): Remove reboot.mod.
22474 (reboot_mod_SOURCES): Removed.
22475 (reboot_mod_CFLAGS): Likewise.
22476 (reboot_mod_LDFLAGS): Likewise.
22477 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22478 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22479 (DEFSYMFILES): Add kernel_syms.lst.
22480 (kernel_img_HEADERS): Add common headers.
22481 (symlist.c): New target.
22482 (kernel_syms.lst): Likewise.
22483 (pkglib_MODULES): Add memdisk.mod.
22484 (memdisk_mod_SOURCES): New variable.
22485 (memdisk_mod_CFLAGS): Likewise.
22486 (memdisk_mod_LDFLAGS): Likewise.
22487 (pkglib_MODULES): Add reboot.mod.
22488 (reboot_mod_SOURCES): New variable.
22489 (reboot_mod_CFLAGS): Likewise.
22490 (reboot_mod_LDFLAGS): Likewise.
22491 (pkglib_MODULES): Add date.mod.
22492 (date_mod_SOURCES): New variable.
22493 (date_mod_CFLAGS): Likewise.
22494 (date_mod_LDFLAGS): Likewise.
22495 (pkglib_MODULES): Add datehook.mod.
22496 (datehook_mod_SOURCES): New variable.
22497 (datehook_mod_CFLAGS): Likewise.
22498 (datehook_mod_LDFLAGS): Likewise.
22499 (pkglib_MODULES): Add lsmmap.mod.
22500 (lsmmap_mod_SOURCES): New variable.
22501 (lsmmap_mod_CFLAGS): Likewise.
22502 (lsmmap_mod_LDFLAGS): Likewise.
22503 (pkglib_MODULES): Add boot.mod.
22504 (boot_mod_SOURCES): New variable.
22505 (boot_mod_CFLAGS): Likewise.
22506 (boot_mod_LDFLAGS): Likewise.
22507 * conf/i386-coreboot.rmk: Removed redundant parts.
22508 * conf/i386-ieee1275.rmk: Likewise.
22509 * conf/i386-pc.rmk: Likewise.
22510 * conf/mips-yeeloong.rmk: Likewise.
22511 * conf/mips.rmk: Likewise.
22512 * conf/powerpc-ieee1275.rmk: Likewise.
22513 * conf/sparc64-ieee1275.rmk: Likewise.
22514 * conf/x86_64-efi.rmk: Likewise.
22515 * conf/i386-coreboot.rmk: Moved qemu parts ..
22516 * conf/i386-qemu.rmk: ... here
22517 * conf/i386-efi.rmk: Moved common parts to...
22518 * conf/x86-efi.rmk: ... here.
22519 * conf/i386.rmk: Added modules common to all x86 variants.
22520 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22521 * disk/memdisk.c: Remove grub/machine/kernel.h.
22522 * gensymlist.sh.in: Include symbol.h.
22523 * hook/datehook.c: Correct module name.
22524 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22525 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22526 * include/grub/i386/efi/serial.h: New file.
22527 * include/grub/x86_64/efi/serial.h: Likewise.
22528 * util/time.c: Likewise.
22529 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22530
22531 2010-03-14 Colin King <colin.king@ubuntu.com>
22532 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22533
22534 Shrink the pre-partition-table part of boot.img by eight bytes.
22535
22536 * boot/i386/pc/boot.S (ERR): New macro.
22537 (chs_mode): Use ERR.
22538 (geometry_error): Likewise.
22539 (hd_probe_error): Remove. This is only used once, so we wrwite
22540 it inline instead.
22541 (read_error): Instead of printing read_error_string, just set up
22542 %si and fall through to ...
22543 (error_message): ... this new function, also used by ERR.
22544
22545 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22546
22547 Speed up consecutive hostdisk operations on the same device.
22548
22549 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22550 (grub_util_biosdisk_open): Initialise disk->data.
22551 (struct linux_partition_cache): New structure.
22552 (linux_find_partition): Cache partition start positions; these are
22553 expensive to compute on every read and write.
22554 (open_device): Cache open file descriptor in disk->data, so that we
22555 don't have to reopen it and flush the buffer cache for consecutive
22556 operations on the same device.
22557 (grub_util_biosdisk_close): New function.
22558 (grub_util_biosdisk_dev): Set `close' member.
22559
22560 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22561 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22562 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22563 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22564 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22565
22566 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22567
22568 Compile parts of grub-emu as modules.
22569
22570 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22571 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22572 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22573 (all-local): Add $(GRUB_EMU).
22574 (install-local): Install $(GRUB_EMU).
22575 (uninstall): Uninstall $(GRUB_EMU).
22576 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22577 * kern/dl.c: Likewise.
22578 * commands/sleep.c: Not include machine/time.h.
22579 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22580 (COMMON_CFLAGS): Likewise.
22581 (sbin_UTILITIES): Remove grub-emu.
22582 (grub_emu_SOURCES): Removed.
22583 (kernel_img_RELOCATABLE): New variable.
22584 (pkglib_PROGRAMS): Add kernel.img.
22585 (kernel_img_SOURCES): New variable
22586 (kernel_img_CFLAGS): Likewise.
22587 (kernel_img_LDFLAGS): Likewise.
22588 (TARGET_NO_STRIP): Likewise.
22589 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22590 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22591 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22592 (grub-emu): New target.
22593 (GRUB_EMU): New variable.
22594 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22595 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22596 * loader/xnu.c: Likewise.
22597 * include/grub/pci.h: Likewise.
22598 * genemuinit.sh: New file.
22599 * genemuinitheader.sh: Likewise.
22600 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22601 Support TARGET_NO_DYNAMIC_MODULES.
22602 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22603 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22604 * disk/loopback.c: Likewise.
22605 * font/font_cmd.c: Likewise.
22606 * partmap/acorn.c: Likewise.
22607 * partmap/amiga.c: Likewise.
22608 * partmap/apple.c: Likewise.
22609 * partmap/gpt.c: Likewise.
22610 * partmap/msdos.c: Likewise.
22611 * partmap/sun.c: Likewise.
22612 * parttool/msdospart.c: Likewise.
22613 * term/gfxterm.c: Likewise.
22614 * video/bitmap.c: Likewise.
22615 * video/readers/jpeg.c: Likewise.
22616 * video/readers/png.c: Likewise.
22617 * video/readers/tga.c: Likewise.
22618 * video/video.c: Likewise.
22619 * util/grub-emu.c (read_command_list): Removed.
22620 (main): Don't call util_init_nls.
22621 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22622 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22623
22624 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22625
22626 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22627 date.mod, datehook.mod.
22628 (datetime_mod_SOURCES): New variable.
22629 (datetime_mod_CFLAGS): Likewise.
22630 (datetime_mod_LDFLAGS): Likewise.
22631 (date_mod_SOURCES): Likewise.
22632 (date_mod_CFLAGS): Likewise.
22633 (date_mod_LDFLAGS): Likewise.
22634 (datehook_mod_SOURCES): Likewise.
22635 (datehook_mod_CFLAGS): Likewise.
22636 (datehook_mod_LDFLAGS): Likewise.
22637 * conf/sparc64-ieee1275.rmk: Likewise.
22638 * lib/ieee1275/datetime.c: New file.
22639
22640 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22641
22642 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22643 (ieee1275_fb_mod_SOURCES): New variable.
22644 (ieee1275_fb_mod_CFLAGS): Likewise.
22645 (ieee1275_fb_mod_LDFLAGS): Likewise.
22646 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22647 New proto.
22648 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22649 (HEAP_MAX_ADDR): Likewise.
22650 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22651 type.
22652 Correct stop condition.
22653 (grub_ieee1275_devices_iterate): New function.
22654 * video/ieee1275.c: New file.
22655
22656 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22657
22658 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22659
22660 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22661 as scratch.
22662 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22663 SCRATCH_PAD_DISKBOOT as scratch.
22664 (bootit): Pass Openfirmware pointer in %o4.
22665 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22666 of 0x200000.
22667 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22668 with util/grub-mkrawimage.c.
22669 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22670 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22671 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22672 (grub_aout_load) [GRUB_UTIL]: Likewise.
22673 * include/grub/kernel.h (grub_modules_get_end): New proto.
22674 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22675 (SCRATCH_PAD_BOOT): New definition.
22676 (SCRATCH_PAD_DISKBOOT): Likewise.
22677 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22678 * include/grub/sparc64/ieee1275/ieee1275.h
22679 (grub_ieee1275_original_stack): New variable
22680 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22681 New definition
22682 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22683 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22684 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22685 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22686 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22687 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22688 (grub_platform_image_format_t): New type.
22689 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22690 * kern/main.c (grub_modules_get_end)
22691 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22692 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22693 (codestart): Switch stacks.
22694 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22695 variable.
22696 (grub_heap_init): Use grub_modules_get_end.
22697 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22698 stack.
22699 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22700 (main): Likewise.
22701 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22702
22703 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22704
22705 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22706
22707 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22708
22709 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22710 bug #559005).
22711
22712 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22713
22714 * genmoddep.awk: Output all missing symbols and not only first.
22715
22716 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22717
22718 * NEWS: Put the date of 1.98 release.
22719
22720 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22721
22722 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22723 ft2build.h.
22724
22725 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22726
22727 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22728 completition in the middle of string.
22729
22730 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22731
22732 * util/grub-mkrescue.in: Use mktemp with explicit template.
22733
22734 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22735
22736 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22737
22738 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22739
22740 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22741 right pointer.
22742
22743 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22744
22745 Fix FreeBSD compilation.
22746
22747 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22748 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22749
22750 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22751
22752 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22753
22754 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22755
22756 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22757
22758 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22759
22760 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22761
22762 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22763
22764 Support relative image path in theme file.
22765
22766 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22767 (image_set_property): Handle theme_dir and relative path.
22768
22769 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22770
22771 * configure.ac: Alias amd64 to x86_64.
22772
22773 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22774
22775 * NEWS: mention multiboot on EFI.
22776
22777 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22778
22779 * kern/main.c (grub_load_modules): Handle errors from init functions of
22780 embeded modules.
22781
22782 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22783
22784 * normal/autofs.c (autoload_fs_module): Handle errors.
22785
22786 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22787
22788 Disable linux.mod on qemu-mips since it's not functional and leads
22789 to compilation failure.
22790
22791 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22792 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22793 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22794 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22795 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22796 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22797 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22798 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22799 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22800 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22801 Reported by: BVK Chaitanya
22802
22803 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22804
22805 * INSTALL: Add gettext as a dependency and add qemu to a new section
22806 "Prerequisites for make-check".
22807
22808 2010-03-04 Christian Franke <franke@computer.org>
22809
22810 * util/grub-pe2elf.c: Add missing include "progname.h".
22811
22812 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22813
22814 * normal/crypto.c (read_crypto_list): Fix a typo.
22815 Reported by: Seth Goldberg.
22816
22817 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22818
22819 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
22820 Reported by: Seth Goldberg.
22821
22822 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22823
22824 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22825 ascii.bitmaps.
22826
22827 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22828
22829 * genmk.rb: Remove terminal*.lst in make clean.
22830 Reported by: Seth Goldberg.
22831
22832 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22833
22834 * util/i386/efi/grub-install.in: Copy gettext files.
22835
22836 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22837
22838 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22839
22840 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22841
22842 Wait for user entry basing on presence of output rather than on errors.
22843
22844 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22845 (grub_install_newline_hook): Likewise.
22846 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22847 * normal/menu.c (show_menu): Check line_counter to determine presence
22848 of output.
22849 * normal/term.c (grub_normal_line_counter): New variable.
22850 (grub_normal_get_line_counter): New function.
22851 (grub_install_newline_hook): Likewise.
22852
22853 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22854
22855 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22856
22857 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22858
22859 * configure.ac: Update version to 1.98.
22860
22861 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22862
22863 * util/grub.d/10_linux.in (linux_entry): Don't default to
22864 gfxpayload=keep if Linux doesn't support video handover.
22865
22866 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22867
22868 Don't compile video modules on yeeloong since video subsystem is part
22869 of kernel.
22870
22871 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22872 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22873 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22874 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22875 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22876 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22877 * include/grub/bitmap_scale.h: Likewise.
22878 * include/grub/bufio.h: Likewise.
22879 * include/grub/font.h: Likewise.
22880 * include/grub/gfxterm.h: Likewise.
22881 * include/grub/video.h: Likewise.
22882 * include/grub/vbe.h: Don't include video_fb.h.
22883 * video/i386/pc/vbe.c: Include video_fb.h.
22884 * commands/i386/pc/vbetest.c: Include video.h.
22885
22886 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22887
22888 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22889 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22890 default entry if GRUB_SAVEDEFAULT=true. This allows using
22891 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22892 saving a new default on every boot.
22893
22894 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22895
22896 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22897 * normal/term.c (read_terminal_list): Likewise.
22898 * normal/main.c (grub_normal_init_page): Likewise.
22899 (grub_normal_read_line_real): Likewise.
22900
22901 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22902
22903 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22904 memory leak.
22905 Reported by: Seth Goldberg.
22906
22907 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22908
22909 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22910 duplicate declaration of `start'.
22911
22912 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22913
22914 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22915 filename.
22916 Reported by: Georgy Buranov
22917
22918 2010-02-20 Carles Pina i Estany <carles@pina.cat>
22919
22920 * util/grub-mkrawimage.c (usage): Change string formatting to
22921 improve gettext.
22922
22923 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22924
22925 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22926 backspace keys.
22927
22928 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22929
22930 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22931 Reported by: Michael Suchanek.
22932
22933 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
22934
22935 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22936 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22937
22938 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22939
22940 Remove any reference to non-free fonts.
22941
22942 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22943 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22944 uses non-free components.
22945 * font/font.c (grub_font_get_name): Remove example name.
22946 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22947 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22948 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22949 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22950
22951 2010-02-16 Georgy Buranov <gburanov@gmail.com>
22952
22953 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22954
22955 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22956
22957 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22958 Double divisor.
22959 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22960 features.
22961 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22962
22963 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22964
22965 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22966
22967 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22968
22969 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22970 * docs/grub.texi (Command-line and menu entry commands): Document play
22971 command.
22972
22973 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22974
22975 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22976 parse arguments as inline tempo and notes. Move code for playing notes
22977 to...
22978 (play): ... new function.
22979
22980 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22981
22982 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22983 grub_uint16_t instead of short.
22984 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22985 disk from little endian to cpu endianness.
22986
22987 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22988
22989 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22990 GRUB_TICKS_PER_SECOND instead of 120.
22991
22992 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22993
22994 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22995 escape sequence after \e.
22996
22997 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22998
22999 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23000 non-ASCII characters.
23001
23002 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23003
23004 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23005 set root in single quotes to prevent \, from being unescaped.
23006
23007 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23008
23009 Prevent unknown commands from stopping menuentry execution.
23010
23011 * script/execute.c (grub_script_execute_cmdline): Print error after
23012 unknown command.
23013
23014 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23015
23016 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23017 Reported by: Pavel Pisa.
23018
23019 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23020
23021 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23022
23023 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23024
23025 Merge grub_ieee1275_map_physical into grub_map and rename to
23026 grub_ieee1275_map
23027
23028 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23029 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23030 Remove.
23031 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23032 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23033 necessary.
23034 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23035
23036 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23037
23038 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23039 opening and not after.
23040
23041 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23042
23043 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23044 constants.
23045
23046 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23047
23048 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23049 (alloc_phys): Use ALIGN_UP instead of align_addr.
23050
23051 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23052
23053 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23054
23055 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23056
23057 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23058
23059 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23060
23061 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23062 verbose dprintf.
23063
23064 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23065
23066 Fix over-4GiB seek on sparc64.
23067
23068 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23069 Replace pos_i and pos_lo with pos. All users updated.
23070 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23071 New constant.
23072 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23073 Likewise.
23074 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23075 and pos_lo.
23076
23077 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23078
23079 * util/grub-mkrawimage.c (main): Call set_program_name.
23080
23081 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 Properly align 64-bit targets.
23084
23085 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23086 (generate_image): Use ALIGN_ADDR.
23087
23088 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23089
23090 Properly create cross-endian images.
23091
23092 * include/grub/types.h (grub_host_to_target_addr): New macro
23093 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23094
23095 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23096
23097 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23098
23099 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23100
23101 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23102
23103 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23104 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23105 (grub_linux_boot): Divide by 64K when on VESA.
23106
23107 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23108
23109 Support GRUB_GFXPAYLOAD_LINUX.
23110
23111 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23112 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23113
23114 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23115
23116 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23117 to show messages instead of discarding them.
23118 Process errors after executing command and not before. Keep old method
23119 too as precaution.
23120
23121 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23122
23123 * configure.ac: Check for ft2build.h.
23124
23125 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23126
23127 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23128
23129 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23130
23131 * genkernsyms.sh.in: Use TARGET_CC.
23132
23133 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23134
23135 * NEWS: Update.
23136
23137 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23138
23139 * include/grub/multiboot2.h: Remove leftover file.
23140 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23141 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23142
23143 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23144
23145 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23146
23147 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23148
23149 Fix warnings in grub-emu when compiling with maximum warning options.
23150
23151 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23152 (grub_arch_modules_addr): Return 0 and not NULL.
23153 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23154 (xstrdup): Use newstr instead of dup.
23155 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23156 of disk to dsk to avoid shadowing.
23157 (find_free_slot): Fix prototype.
23158 * util/getroot.c (grub_util_is_dmraid): Make static.
23159 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23160 Add missing prototype.
23161 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23162
23163 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23164
23165 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23166 appropriately.
23167
23168 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23169
23170 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23171 code out.
23172
23173 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23174
23175 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23176 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23177 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23178 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23179 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23180 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23181
23182 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23183
23184 * include/grub/err.h (grub_err_printf): Don't export.
23185
23186 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23187
23188 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23189
23190 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23191
23192 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23193 * kern/misc.c (grub_gettext_dummy): Make static.
23194
23195 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23196
23197 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23198 by non-valid ones.
23199 * kern/term.c (grub_putchar): Likewise.
23200
23201 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23202
23203 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23204 buggy hook call and memory leak.
23205
23206 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23207
23208 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23209
23210 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23211
23212 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23213
23214 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23215
23216 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23217 modevar.
23218 Return grub_errno on allocation error.
23219
23220 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23221
23222 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23223
23224 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23225
23226 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23227 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23228
23229 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23230
23231 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23232 non-pxe disk.
23233 (grub_pxefs_open): Likewise.
23234
23235 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23236
23237 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23238 * util/grub.d/10_kfreebsd.in: Likewise.
23239 * util/grub.d/10_linux.in: Likewise.
23240
23241 2010-02-06 Colin D Bennett <colin@gibibit.com>
23242
23243 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23244 (gfxmenu_mod_SOURCES): New variable.
23245 (gfxmenu_mod_CFLAGS): Likewise.
23246 (gfxmenu_mod_LDFLAGS): Likewise.
23247 * include/grub/term.h (grub_term_set_current_output): Declare
23248 argument as const.
23249 * docs/gfxmenu-theme-example.txt: New file.
23250 * gfxmenu/gfxmenu.c: Likewise.
23251 * gfxmenu/gui_box.c: Likewise.
23252 * gfxmenu/gui_canvas.c: Likewise.
23253 * gfxmenu/gui_circular_progress.c: Likewise.
23254 * gfxmenu/gui_image.c: Likewise.
23255 * gfxmenu/gui_label.c: Likewise.
23256 * gfxmenu/gui_list.c: Likewise.
23257 * gfxmenu/gui_progress_bar.c: Likewise.
23258 * gfxmenu/gui_string_util.c: Likewise.
23259 * gfxmenu/gui_util.c: Likewise.
23260 * gfxmenu/icon_manager.c: Likewise.
23261 * gfxmenu/model.c: Likewise.
23262 * gfxmenu/named_colors.c: Likewise.
23263 * gfxmenu/theme_loader.c: Likewise.
23264 * gfxmenu/view.c: Likewise.
23265 * gfxmenu/widget-box.c: Likewise.
23266 * include/grub/gfxmenu_model.h: Likewise.
23267 * include/grub/gfxmenu_view.h: Likewise.
23268 * include/grub/gfxwidgets.h: Likewise.
23269 * include/grub/gui.h: Likewise.
23270 * include/grub/gui_string_util.h: Likewise.
23271 * include/grub/icon_manager.h: Likewise.
23272
23273 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23274
23275 Agglomerate scrolling in gfxterm.
23276
23277 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23278 (grub_virtual_screen_setup): Initialise 'total_screen'.
23279 (write_char): Split to ...
23280 (paint_char): ... this ...
23281 (write_char): ... and this.
23282 (paint_char): Handle delayed scrolling.
23283 (draw_cursor): Likewise.
23284 (scroll_up): Split to ...
23285 (real_scroll): ... this ...
23286 (scroll_up): ... and this.
23287 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23288 characters.
23289 (grub_gfxterm_refresh): Call real_scroll.
23290
23291 2010-02-06 Colin D Bennett <colin@gibibit.com>
23292
23293 * include/grub/misc.h (grub_iscntrl): New inline function.
23294 (grub_isalnum): Likewise.
23295 (grub_strtol): Likewise.
23296
23297 2010-02-06 Colin D Bennett <colin@gibibit.com>
23298
23299 * normal/menu_text.c (get_entry_number): Move from here ...
23300 * normal/menu.c (get_entry_number): ... moved here.
23301 * include/grub/menu.h (grub_menu_get_default_entry_index):
23302 New prototype.
23303 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23304 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23305 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23306 (grub_menu_viewer_should_return): Likewise.
23307 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23308 * normal/menu_text.c (run_menu): Enable menu switching.
23309 * normal/menu_viewer.c (should_return): New variable.
23310 (menu_viewer_changed): Likewise.
23311 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23312 (grub_menu_viewer_should_return): New function.
23313 (menuviewer_write_hook): Likewise.
23314 (grub_menu_viewer_init): Likewise.
23315
23316 2010-02-06 Colin D Bennet <colin@gibibit.com>
23317 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23318
23319 Support for gfxterm in a window.
23320
23321 * include/grub/gfxterm.h: New file.
23322 * include/grub/video.h (struct grub_video_rect): New declaration.
23323 (grub_video_rect_t): Likewise.
23324 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23325 (refcount): New variable.
23326 (render_target): Likewise.
23327 (window): Likewise.
23328 (repaint_callback): Likewise.
23329 (grub_virtual_screen_setup): Use 'render_target'.
23330 (init_window): New function.
23331 (grub_gfxterm_init_window): Likewise.
23332 (grub_gfxterm_init): Check reference counter.
23333 Use init_window.
23334 (destroy_window): New function.
23335 (grub_gfxterm_destroy_window): Likewise.
23336 (grub_gfxterm_fini): Check reference counter.
23337 Use destroy_window.
23338 (redraw_screen_rect): Restore viewport.
23339 Use 'render_target' and 'window'.
23340 Call 'repaint_callback'.
23341 (write_char): Use 'render_target'.
23342 (draw_cursor): Likewise.
23343 (scroll_up): Restore viewport.
23344 Use 'render_target' and 'window'.
23345 Call 'repaint_callback'.
23346 (grub_gfxterm_cls): Likewise.
23347 (grub_gfxterm_refresh): Use 'window'.
23348 (grub_gfxterm_set_repaint_callback): New function.
23349 (grub_gfxterm_background_image_cmd): Use 'window'.
23350 (grub_gfxterm_get_term): New function.
23351 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23352
23353 2010-02-06 Colin D Bennett <colin@gibibit.com>
23354
23355 Bitmap scaling support.
23356
23357 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23358 (bitmap_scale_mod_SOURCES): New variable.
23359 (bitmap_scale_mod_CFLAGS): Likewise.
23360 (bitmap_scale_mod_LDFLAGS): Likewise.
23361 * include/grub/bitmap_scale.h: New file.
23362 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23363 (background_image_cmd_options): New variable.
23364 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23365 (cmd): Rename and change type to ...
23366 (background_image_cmd_handle): ... this. All users updated.
23367 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23368 * video/bitmap_scale.c: New file.
23369
23370 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23371
23372 SDL support.
23373
23374 * Makefile.in (LIBSDL): New variable.
23375 (enable_grub_emu_sdl): Likewise.
23376 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23377 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23378 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23379 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23380 * util/sdl.c: New file.
23381
23382 2010-02-06 Colin D Bennett <colin@gibibit.com>
23383 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23384
23385 Double buffering support.
23386
23387 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23388 * include/grub/video.h: Update comment.
23389 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23390 New type.
23391 (grub_video_fb_doublebuf_blit_init): New prototype.
23392 * term/gfxterm.c (scroll_up): Support double buffering.
23393 (grub_gfxterm_refresh): Likewise.
23394 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23395 (grub_video_fb_doublebuf_blit_init): Likewise.
23396 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23397 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23398 'displayed_page', 'render_page' and 'update_screen'.
23399 (grub_video_vbe_fini): Free offscreen buffer.
23400 (doublebuf_pageflipping_commit): New function.
23401 (doublebuf_pageflipping_update_screen): Likewise.
23402 (doublebuf_pageflipping_init): Likewise.
23403 (double_buffering_init): Likewise.
23404 (grub_video_vbe_setup): Enable doublebuffering.
23405 (grub_video_vbe_swap_buffers): Implement.
23406 (grub_video_vbe_set_active_render_target): Handle double buffering.
23407 (grub_video_vbe_get_active_render_target): Likewise.
23408 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23409 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23410 (grub_video_vbe_enable_double_buffering): Likewise.
23411 (grub_video_vbe_swap_buffers): Use update_screen.
23412 (grub_video_set_mode): Use double buffering.
23413
23414 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23415
23416 * maintainance/gentrigtables.py: Remove.
23417 * lib/trig.c: Likewise.
23418
23419 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23420
23421 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23422 `trigtables.c'.
23423 (trigtables.c): New rule.
23424 (gentrigtables): Likewise.
23425 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23426
23427 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23428
23429 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23430 integer constants.
23431
23432 2010-02-06 Colin D Bennet <colin@gibibit.com>
23433
23434 Trigonometry support.
23435
23436 * include/grub/trig.h: New file.
23437 * lib/trig.c: Likewise.
23438 * maintainance/gentrigtables.py: Likewise.
23439 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23440 (trig_mod_SOURCES): New variable.
23441 (trig_mod_CFLAGS): Likewise.
23442 (trig_mod_LDFLAGS): Likewise.
23443
23444 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23445
23446 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23447 disk devices.
23448
23449 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23450
23451 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23452 error.
23453
23454 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23455
23456 * util/hostdisk.c (open_device): Don't use partition device when reading
23457 before the partition.
23458 (grub_util_biosdisk_read): Don't read from partition and before the
23459 partition in single operation.
23460 (grub_util_biosdisk_write): Don't write to partition and before the
23461 partition in single operation.
23462
23463 2010-02-03 Torsten Landschoff <torsten@debian.org>
23464
23465 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23466 last sectors.
23467
23468 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23469
23470 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23471 CDROM reads.
23472 (grub_biosdisk_write): Refuse to write to CDROM.
23473
23474 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23475
23476 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23477
23478 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23479
23480 * font/font.c (find_glyph): Check that bmp_idx is available before
23481 using it.
23482 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23483 with (font == NULL).
23484
23485 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23486
23487 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23488
23489 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23490
23491 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23492 * util/grub-script-check.c (getline): Fix empty lines case.
23493
23494 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23495
23496 * Makefile.in (check): Exit with fail status when one of the tests
23497 fails.
23498 * tests/example_functional_test.c (example_test): Fix reversed assert.
23499 * tests/example_unit_test.c (example_test): Likewise.
23500
23501 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23502
23503 * util/grub.d/10_linux.in: This script does not use any of the
23504 contents of gettext.sh, only the external command `gettext', so stop
23505 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23506 the same prefix as GRUB.)
23507 * util/grub.d/10_kfreebsd.in: Likewise.
23508
23509 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23510
23511 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23512 of the line.
23513
23514 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23515
23516 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23517 last sectors.
23518
23519 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23520
23521 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23522 having a 4KiB and not 32KiB buffer size.
23523
23524 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23525
23526 * util/hostfs.c: Include `<errno.h>'.
23527 (grub_hostfs_read): Handle errors from fseeko() and fread().
23528
23529 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23530
23531 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23532 loop when using read hooks on files whose size isn't sector-aligned.
23533
23534 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23535
23536 Remove unused parameter.
23537
23538 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23539 (grub_iso9660_open): Remove initialization of `data->length'.
23540
23541 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23542
23543 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23544 memleak conditions.
23545
23546 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23547
23548 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23549 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23550
23551 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23552
23553 * util/bin2h.c (usage): Fix warning (space after backslash).
23554
23555 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23556
23557 * font/font.c: Include `grub/fontformat.h.
23558 Remove font file format constants.
23559 (grub_font_load): Use the new macros.
23560 * include/grub/fontformat.h: New file.
23561 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23562 (write_font_pf2): Use the new macros.
23563
23564 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23565
23566 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23567 does.
23568
23569 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23570
23571 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23572
23573 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23574 (_start): Macroify `0x7F'.
23575
23576 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23577 (make_install_device): Use "(pxe)" as fallback prefix when booting
23578 via PXE.
23579
23580 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23581
23582 * configure.ac: Reset LIBS after check for libgcc symbols.
23583
23584 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23585
23586 * util/hostdisk.c (open_device): Add trailing newline to debug
23587 message.
23588
23589 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23590
23591 * configure.ac: Check for `limits.h'.
23592 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23593
23594 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23595
23596 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23597 capitalize error strings.
23598
23599 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23600
23601 * util/grub.d/10_hurd.in: Add a recovery mode.
23602
23603 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23604
23605 * configure.ac: Check for libgcc symbols with -nostdlib.
23606
23607 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23608
23609 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23610
23611 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23612
23613 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23614 stack since heap may be unavailable at that point.
23615 (grub_ofconsole_gotoxy): Likewise.
23616
23617 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23618
23619 * configure.ac: Check for _restgpr_14_x.
23620 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23621 and _savegpr_* prototypes.
23622
23623 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23624
23625 Use generic grub_reboot() for i386-efi.
23626
23627 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23628 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23629 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23630
23631 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23632
23633 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23634 presence of "prefix" variable as it breaks when normal.mod is
23635 embedded.
23636
23637 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23638
23639 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23640 stack since heap is unavailable at that point.
23641
23642 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23643
23644 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23645 (grub_freebsd_bootinfo): Rewritten.
23646 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23647
23648 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23649
23650 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23651
23652 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23653
23654 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23655 domain now.
23656
23657 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23658
23659 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23660 around for handling "/" to the correct fix. Fix a memory leak. Use
23661 xstrdup instead of strdup.
23662
23663 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23664
23665 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23666
23667 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23668
23669 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23670
23671 * font/font.c (struct grub_font): New member 'bmp_idx'.
23672 (font_init): Initialise 'bmp_idx'.
23673 (load_font_index): Fill 'bmp_idx'.
23674 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23675
23676 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23677
23678 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23679 unnecessary calls.
23680
23681 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23682
23683 Move context handling out of the kernel.
23684
23685 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23686 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23687 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23688 * conf/i386-efi.rmk: Likewise.
23689 * conf/i386-ieee1275.rmk: Likewise.
23690 * conf/i386-pc.rmk: Likewise.
23691 * conf/powerpc-ieee1275.rmk: Likewise.
23692 * conf/sparc64-ieee1275.rmk: Likewise.
23693 * conf/x86_64-efi.rmk: Likewise.
23694 * include/grub/env.h: Include grub/menu.h.
23695 (grub_env_var_type): Removed.
23696 (grub_env_var): Replaced field 'type' with 'global'.
23697 (grub_env_find): New prototype.
23698 (grub_env_context_open): Remove EXPORT_FUNC.
23699 (grub_env_context_close): Likewise.
23700 (grub_env_export): Likewise.
23701 (grub_env_set_data_slot): Removed.
23702 (grub_env_get_data_slot): Likewise.
23703 (grub_env_unset_data_slot): Likewise.
23704 (grub_env_unset_menu): New prototype.
23705 (grub_env_set_menu): Likewise.
23706 (grub_env_get_menu): Likewise.
23707 * include/grub/env_private.h: New file.
23708 * include/grub/normal.h (grub_context_init): New prototype.
23709 (grub_context_fini): Likewise.
23710 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23711 * normal/context.c (grub_cmd_export): ... to here.
23712 * kern/env.c: Include env_private.h.
23713 (HASHSZ): Moved to include/grub/env_private.h.
23714 (grub_env_context): Likewise.
23715 (grub_env_sorted_var): Likewise.
23716 (current_context): Renamed from this ...
23717 (grub_current_context): ...to this. 'static' removed. All users updated.
23718 (grub_env_find): Removed 'static'.
23719 (grub_env_context_open): Moved to normal/context.c.
23720 (grub_env_context_close): Likewise.
23721 (grub_env_export): Likewise.
23722 (mangle_data_slot_name): Removed.
23723 (grub_env_set_data_slot): Likewise.
23724 (grub_env_get_data_slot): Likewise.
23725 (grub_env_unset_data_slot): Likewise.
23726 * kern/main.c (grub_set_root_dev): Don't export root.
23727 It will be done later.
23728 (grub_main): Don't export prefix.
23729 It will be done later.
23730 * normal/context.c: New file.
23731 * normal/main.c (free_menu): Use grub_env_unset_menu.
23732 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23733 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23734 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23735 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23736
23737 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23738
23739 setpci support.
23740
23741 * commands/setpci.c: New file.
23742 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23743 (setpci_mod_SOURCES): New variable.
23744 (setpci_mod_CFLAGS): Likewise.
23745 (setpci_mod_LDFLAGS): Likewise.
23746
23747 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23748
23749 Byte-addressable PCI configuration space.
23750
23751 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23752 dword address.
23753 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23754 GRUB_PCI_REG_CACHELINE.
23755 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23756 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23757 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23758 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23759 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23760 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23761 grub_pci_make_address.
23762 (lock_rom_area): Likewise.
23763 * commands/lspci.c (grub_lspci_iter): Use macroses
23764 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23765 of grub_pci_make_address.
23766 * disk/ata.c (grub_ata_pciinit): Likewise.
23767 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23768 (GRUB_PCI_REG_VENDOR): Likewise.
23769 (GRUB_PCI_REG_DEVICE): Likewise.
23770 (GRUB_PCI_REG_COMMAND): Likewise.
23771 (GRUB_PCI_REG_STATUS): Likewise.
23772 (GRUB_PCI_REG_REVISION): Likewise.
23773 (GRUB_PCI_REG_CLASS): Likewise.
23774 (GRUB_PCI_REG_CACHELINE): Likewise.
23775 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23776 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23777 (GRUB_PCI_REG_BIST): Likewise.
23778 (GRUB_PCI_REG_ADDRESSES): Likewise.
23779 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23780 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23781 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23782 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23783 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23784 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23785 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23786 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23787 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23788 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23789 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23790 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23791 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23792 (GRUB_PCI_REG_MIN_GNT): Likewise.
23793 (GRUB_PCI_REG_MAX_LAT): Likewise.
23794 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23795 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23796 * video/efi_uga.c (find_framebuf): Likewise.
23797 * video/sm712.c (grub_video_sm712_setup): Likewise.
23798 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23799 space.
23800
23801 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23802
23803 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23804 can be reliably determined to be supported.
23805
23806 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23807
23808 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23809 that VESA is supported.
23810 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23811 supported.
23812
23813 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23814
23815 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23816
23817 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23818
23819 * util/misc.c (make_system_path_relative_to_its_root): Work around
23820 special-casing of "/", as previous incarnation of this routine did.
23821
23822 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23823
23824 Fix any-emu compilation.
23825
23826 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23827 * grub_bin2h_SOURCES: New variable.
23828
23829 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23830
23831 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23832
23833 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23834
23835 * util/grub.d/00_header.in: Fix handling of locale_dir.
23836
23837 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23838
23839 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23840 as possible unifont location (Gentoo).
23841 Reported by: Alexander Brüning
23842
23843 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23844
23845 Don't try to generate lists for kernel.img.
23846
23847 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23848 (pkglib_MODULES): Remove kernel.img.
23849 (kernel_img_EXPORTS): Removed.
23850 (kernel_img_RELOCATABLE): New variable.
23851 * conf/x86_64-efi.rmk: Likewise.
23852 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23853
23854 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23855
23856 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23857 grub_xasprintf or grub_snprintf.
23858 (grub_vsprintf): Likewise.
23859 (grub_snprintf): New proto.
23860 (grub_vsnprintf): Likewise.
23861 (grub_xasprintf): Likewise.
23862 (grub_xvasprintf): Likewise.
23863 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23864 (grub_sprintf): Removed.
23865 (grub_vsnprintf): New function.
23866 (grub_snprintf): Likewise.
23867 (grub_xvasprintf): Likewise.
23868 (grub_xasprintf): Likewise.
23869 (grub_vsprintf): Renamed to ...
23870 (grub_vsnprintf_real): ...this. New argument max_len.
23871
23872 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23873
23874 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23875 fix grub-script-check warning.
23876
23877 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23878
23879 * include/grub/font.h (grub_font_load): Fix prototype.
23880
23881 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23882
23883 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23884
23885 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23886
23887 * include/grub/x86_64/at_keyboard.h: New file.
23888
23889 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23890
23891 * loader/mips/linux.c: Include missing grub/i18n.h.
23892
23893 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23894
23895 * normal/menu.c (notify_execution_failure): Clarify error message.
23896
23897 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23898
23899 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23900 return value (and revert all return statements). Update users.
23901
23902 2010-01-20 Dan Merillat <debian@dan.merillat.org>
23903
23904 * kern/device.c (grub_device_iterate): Allocate new part_ent
23905 structure based on sizeof (*p) rather than sizeof (p->next), to
23906 account for structure padding.
23907
23908 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23909 disk is NULL, which might happen for LVM physical volumes with no
23910 LVM signature.
23911
23912 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23913
23914 * loader/mips/linux.c (grub_cmd_initrd)
23915 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23916
23917 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23918
23919 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23920 (grub_video_video_init, grub_video_bitmap_init)
23921 (grub_font_manager_init, grub_term_gfxterm_init)
23922 (grub_at_keyboard_init): New extern declarations.
23923 (grub_machine_init): Initialize gfxterm and at_keyboard.
23924
23925 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23926
23927 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23928 `gfxterm.mod' into core image.
23929
23930 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23931 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23932 (kernel_img_FORMAT): Copy to ...
23933
23934 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23935 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23936 (kernel_img_FORMAT): ... here, and ...
23937
23938 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23939 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23940 (kernel_img_FORMAT): ... here.
23941
23942 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23943 and input (at_keyboard) terminals in kernel.
23944 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23945
23946 (pkglib_MODULES): Remove `pci.mod'.
23947 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23948 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23949 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23950 (at_keyboard_mod_LDFLAGS): Remove variables.
23951
23952 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
23953
23954 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23955
23956 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23957
23958 * include/grub/mips/libgcc.h: Only export symbols for functions
23959 that libgcc provides.
23960
23961 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23962
23963 MIPS support.
23964
23965 * bus/bonito.c: New file.
23966 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23967 GRUB_PCI_NUM_DEVICES.
23968 * term/i386/pc/serial.c: Move to ...
23969 * term/serial.c: ... here. All users updated.
23970 * util/i386/pc/grub-mkimage.c: Move to ...
23971 * util/grub-mkrawimage.c: ... here. All users updated.
23972 * term/i386/pc/at_keyboard.c: Move to ...
23973 * term/at_keyboard.c: ... here. All users updated.
23974 * conf/mips-qemu-mips.rmk: New file.
23975 * conf/mips-yeeloong.rmk: Likewise.
23976 * conf/mips.rmk: Likewise.
23977 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23978 mipsel-qemu-mips.
23979 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23980 to port addresses.
23981 (grub_ata_pciinit): Support CS5536.
23982 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23983 * font/font_cmd.c (loadfont_command): Open file before passing it to
23984 grub_font_load.
23985 (pseudo_file_read): New function.
23986 (pseudo_file_close): Likewise.
23987 (pseudo_fs): New structure.
23988 (load_font_module): New function.
23989 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23990 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23991 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23992 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23993 * include/grub/i386/at_keyboard.h: Split into ...
23994 * include/grub/at_keyboard.h: ... this ...
23995 * include/grub/i386/at_keyboard.h: ... and this.
23996 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23997 New prototype.
23998 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23999 updated.
24000 (grub_elf64_size): Likewise.
24001 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24002 filename.
24003 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24004 * include/grub/i386/coreboot/serial.h: Rewritten.
24005 * include/grub/i386/ieee1275/serial.h: Include
24006 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24007 * include/grub/i386/pc/serial.h: Moved from here ...
24008 * include/grub/serial.h: ... to here. All users updated.
24009 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24010 (GRUB_PCI_NUM_BUS): Likewise.
24011 (GRUB_PCI_NUM_DEVICES): Likewise.
24012 (grub_pci_device_map_range): Add missing volatile keyword.
24013 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24014 * include/grub/mips/at_keyboard.h: New file.
24015 * include/grub/mips/cache.h: Likewise.
24016 * include/grub/mips/io.h: Likewise.
24017 * include/grub/mips/kernel.h: Likewise.
24018 * include/grub/mips/libgcc.h: Likewise.
24019 * include/grub/mips/pci.h: Likewise.
24020 * include/grub/mips/qemu-mips/boot.h: Likewise.
24021 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24022 * include/grub/mips/qemu-mips/loader.h: Likewise.
24023 * include/grub/mips/qemu-mips/memory.h: Likewise.
24024 * include/grub/mips/qemu-mips/serial.h: Likewise.
24025 * include/grub/mips/qemu-mips/time.h: Likewise.
24026 * include/grub/mips/relocator.h: Likewise.
24027 * include/grub/mips/time.h: Likewise.
24028 * include/grub/mips/types.h: Likewise.
24029 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24030 * include/grub/mips/yeeloong/boot.h: Likewise.
24031 * include/grub/mips/yeeloong/kernel.h: Likewise.
24032 * include/grub/mips/yeeloong/loader.h: Likewise.
24033 * include/grub/mips/yeeloong/memory.h: Likewise.
24034 * include/grub/mips/yeeloong/pci.h: Likewise.
24035 * include/grub/mips/yeeloong/serial.h: Likewise.
24036 * include/grub/mips/yeeloong/time.h: Likewise.
24037 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24038 * kern/elf.c (grub_elf32_size): New parameter. All users
24039 updated.
24040 (grub_elf64_size): Likewise.
24041 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24042 Load modules before saying "Welcome to GRUB!".
24043 Call grub_refresh after saying "Welcome to GRUB!".
24044 * kern/mips/cache.S: New file.
24045 * kern/mips/cache_flush.S: Likewise.
24046 * kern/mips/dl.c: Likewise.
24047 * kern/mips/init.c: Likewise.
24048 * kern/mips/qemu-mips/init.c: Likewise.
24049 * kern/mips/startup.S: Likewise.
24050 * kern/mips/yeeloong/init.c: Likewise.
24051 * kern/term.c (grub_putcode): Handle NULL terminal.
24052 (grub_getcharwidth): Likewise.
24053 (grub_getkey): Likewise.
24054 (grub_checkkey): Likewise.
24055 (grub_getkeystatus): Likewise.
24056 (grub_getxy): Likewise.
24057 (grub_getwh): Likewise.
24058 (grub_gotoxy): Likewise.
24059 (grub_cls): Likewise.
24060 (grub_setcolorstate): Likewise.
24061 (grub_setcolor): Likewise.
24062 (grub_getcolor): Likewise.
24063 (grub_refresh): Likewise.
24064 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24065 (write_jump): Add hatch nop.
24066 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24067 * lib/mips/setjmp.S: New file.
24068 * loader/mips/linux.c: Likewise.
24069 * term/i386/pc/at_keyboard.c: Move from here ...
24070 * term/at_keyboard.c: ... to here.
24071 * term/i386/pc/serial.c: Moved from here ...
24072 * term/serial.c: ... to here. All users updated.
24073 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24074 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24075 (serial_translate_key_sequence): Avoid deadlock.
24076 (grub_serial_getkey): Handle backspace.
24077 (grub_serial_putchar): Fix newline handling.
24078 * util/i386/pc/grub-mkimage.c: Move from here ...
24079 * util/grub-mkrawimage.c: ... to here. All users updated.
24080 (generate_image): New parameters 'font_path' and 'format'.
24081 Support embedding font.
24082 Use grub_host_to_target* instead of grub_cpu_to_le*.
24083 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24084 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24085 (options): New option "--font".
24086 (usage): Likewise.
24087 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24088 (main): Handle "--font".
24089 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24090 (grub_virtual_screen_setup): Set bg_color_display.
24091 (redraw_screen_rect): Use bg_color_display instead of incorrect
24092 bg_color.
24093 (grub_gfxterm_cls): Likewise.
24094 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24095 Support embedding config file.
24096 (add_segments): Likewise.
24097 (options): New option "--config".
24098 (main): Handle "--config".
24099 * video/sm712.c: New file.
24100
24101 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24102
24103 Fix parallel builds.
24104
24105 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24106 font.c depend on ascii.h).
24107
24108 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24109
24110 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24111
24112 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24113
24114 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24115 By default: disabled.
24116 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24117 parameter.
24118
24119 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24120
24121 * font/font.c: Update copyright years.
24122 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24123
24124 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24125
24126 * font/font.c: Include `ascii.h'.
24127 (ASCII_BITMAP_SIZE): New macro.
24128 (ascii_font_glyph): Define.
24129 (ascii_glyph_lookup): New function.
24130 (grub_font_get_string_width): Change comment. If glyph not found, use
24131 ascii_glyph_lookup.
24132 (grub_font_get_glyph_with_fallback): If glyph not available returns
24133 ascii_glyph_lookup.
24134 * util/grub-mkfont.c (file_formats): New enum.
24135 (options): Add `ascii-bitmaps' new option.
24136 (usage): Add `asii-bitmaps' new option.
24137 (write_font_ascii_bitmap): New function.
24138 (write_font): Rename to ...
24139 (write_font_p2): ... this. Remove print_glyphs call.
24140 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24141 used. Call print_glyphs.
24142 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24143
24144 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24145
24146 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24147 (grub_bin2h_SOURCES): New variable.
24148 * util/bin2h.c: New file.
24149
24150 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24151
24152 * include/multiboot.h: Resynced with spec.
24153 * include/multiboot2.h: Likewise.
24154 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24155 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24156
24157 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24158
24159 * include/grub/term.h (grub_term_register_input,
24160 grub_term_register_output): Check return of terminal init()
24161 routines, and abort if errors are raised.
24162
24163 * commands/terminal.c: Update copyright year.
24164
24165 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24166
24167 * commands/terminal.c (grub_cmd_terminal_input)
24168 (grub_cmd_terminal_output): Check return of terminal init()
24169 routines, and abort if errors are raised.
24170
24171 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24172
24173 * include/grub/i386/bsd.h: Fix include pathes.
24174
24175 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24176
24177 Add missing *BSD copyright headers.
24178
24179 * include/grub/aout.h: Add BSD licence.
24180 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24181 * include/grub/i386/freebsd_linker.h: ... here,
24182 * include/grub/i386/freebsd_reboot.h: ... here,
24183 * include/grub/i386/netbsd_bootinfo.h: ... here,
24184 * include/grub/i386/netbsd_reboot.h: ... here,
24185 * include/grub/i386/openbsd_bootarg.h: ... here,
24186 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24187 licence to each file.
24188
24189 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24190
24191 * acinclude.m4: Remove `nop' assembly instruction; it's not
24192 implemented by all architectures.
24193
24194 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24195
24196 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24197 ELILO. This is no longer necessary.
24198
24199 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24200
24201 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24202
24203 * util/grub-script-check.c: grub-script-check tool.
24204 * conf/common.rmk: Make rules for grub-script-check.
24205
24206 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24207
24208 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24209 spotting it back in 2008. Shame on me for forgetting he did.
24210
24211 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24212
24213 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24214
24215 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24216 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24217 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24218 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24219 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24220 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24221
24222 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24223
24224 * include/grub/test.h: Add license header.
24225 * tests/example_functional_test.c: Likewise.
24226 * tests/example_unit_test.c: Likewise.
24227 * tests/lib/functional_test.c: Likewise.
24228 * tests/lib/test.c: Likewise.
24229 * tests/lib/unit_test.c: Likewise.
24230
24231 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24232
24233 Use flag-based instead of hook-based video mode selection and "auto"
24234 keyword.
24235
24236 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24237 (grub_video_set_mode): Changed prototype. All users updated.
24238 (grub_video_check_mode_flag): New inline function.
24239 * video/video.c (parse_modespec): New function.
24240 (grub_video_set_mode): Parse flags and keywords.
24241
24242 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24243
24244 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24245 fprintf call.
24246
24247 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24248
24249 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24250
24251 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24252
24253 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24254 string.
24255 * util/grub-emu.c (usage): Likewise.
24256 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24257 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24258 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24259 * util/i386/pc/grub-setup.c (usage): Likewise.
24260
24261 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24262
24263 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24264 the message.
24265 (grub_util_info): Likewise.
24266 (grub_util_error): Likewise.
24267 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24268 and/or new lines in `grub_util_warna', `grub_util_info',
24269 `grub_util_error' calls.
24270 * util/getroot.c: Likewise.
24271 * util/grub-editenv.c: Likewise.
24272 * util/grub-emu.c: Likewise.
24273 * util/grub-fstest.c: Likewise.
24274 * util/grub-mkdevicemap.c: Likewise.
24275 * util/grub-mkfont.c: Likewise.
24276 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24277 * util/grub-mkrelpath.c: Likewise.
24278 * util/grub-pe2elf.c: Likewise.
24279 * util/grub-probe.c: Likewise.
24280 * util/hostdisk.c: Likewise.
24281 * util/i386/efi/grub-mkimage.c: Likewise.
24282 * util/i386/pc/grub-mkimage.c: Likewise.
24283 * util/i386/pc/grub-setup.c: Likewise.
24284 * util/ieee1275/ofpath.c: Likewise.
24285 * util/mkisofs/eltorito.c: Likewise.
24286 * util/mkisofs/rock.c: Likewise.
24287 * util/mkisofs/write.c: Likewise.
24288 * util/raid.c: Likewise.
24289 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24290 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24291
24292 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24293
24294 Enable multiboot on non-pc.
24295
24296 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24297 multiboot.mod and multiboot2.mod to ...
24298 * conf/i386.rmk (pkglib_MODULES): ... here.
24299 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24300 Moved to ...
24301 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24302 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24303 Moved to ...
24304 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24305 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24306 Moved to ...
24307 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24308 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24309 Moved to ...
24310 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24311 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24312 relocator.mod.
24313 (ata_mod_SOURCES): Removed.
24314 (ata_mod_CFLAGS): Likewise.
24315 (ata_mod_LDFLAGS): Likewise.
24316 (relocator_mod_SOURCES): Removed.
24317 (relocator_mod_CFLAGS): Likewise.
24318 (relocator_mod_ASFLAGS): Likewise.
24319 (relocator_mod_LDFLAGS): Likewise.
24320 Include i386.mk.
24321 * include/grub/x86_64/multiboot.h: New file.
24322 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24323 Terminate EFI.
24324
24325 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24326
24327 Video multiboot support.
24328
24329 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24330 New prototype.
24331 * include/multiboot.h: Resynced with multiboot specification.
24332 * include/multiboot2.h: Likewise.
24333 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24334 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24335 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24336 (HAS_VGA_TEXT): Likewise.
24337 (accepts_video): New variable.
24338 (grub_multiboot_set_accepts_video): New function.
24339 (grub_multiboot_get_mbi_size): Account for video structures.
24340 (set_video_mode): New function.
24341 (retrieve_video_parameters): Likewise.
24342 (grub_multiboot_make_mbi): Fill video fields.
24343
24344 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24345
24346 Video driver ids.
24347
24348 * include/grub/video.h (grub_video_driver_id): New type.
24349 (grub_video_adapter): New member 'id'. All users updated.
24350 (grub_video_get_driver_id): New proto.
24351 * video/video.c (grub_video_get_driver_id): New function.
24352
24353 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24354
24355 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24356 `var=val'.
24357
24358 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24359
24360 * normal/cmdline.c (print_completion): Gettextizze.
24361
24362 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24363
24364 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24365
24366 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24367
24368 * gettext/gettext.c (grub_gettext_translate): Push and pop
24369 grub_errno.
24370 (grub_gettext_delete_list): Change comment style.
24371 * kern/err.c (grub_error): Gettextizze.
24372 (grub_fatal): Gettextizze.
24373
24374 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24375
24376 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24377 (grub_linux16_real_boot): ... this.
24378 * kern/i386/loader.S: Likewise.
24379 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24380 (grub_linux16_boot): New function. Switches to text mode and calls
24381 grub_linux16_real_boot().
24382
24383 * loader/i386/bsd.c: Include `<grub/video.h>'.
24384 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24385 text mode before calling grub_unix_real_boot().
24386
24387 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24388 (grub_multiboot_boot): Switch to text mode before calling
24389 grub_relocator32_boot().
24390
24391 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24392 (grub_chainloader_boot): Switch to text mode before calling
24393 grub_chainloader_real_boot().
24394
24395 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24396 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24397
24398 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24399 non-empty value.
24400
24401 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24402 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24403
24404 * util/grub.d/00_header.in: Define a "savedefault" function for use
24405 in menu entries.
24406 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24407
24408 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24409 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24410
24411 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24412 saved_entry if boot_once is unset.
24413 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24414 previous saved entry (i.e. grub-reboot).
24415
24416 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24417
24418 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24419
24420 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24421
24422 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24423 `var=val'.
24424 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24425
24426 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24427
24428 * util/grub-reboot.in: Fix --version output.
24429 * util/grub-set-default.in: Likewise.
24430
24431 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24432
24433 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24434 blocks.
24435
24436 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24437
24438 * util/grub.d/00_header.in: Quote the value assigned to `default',
24439 in case it contains spaces.
24440
24441 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24442
24443 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24444 `save_default_entry' call from the macosx case to the linux case.
24445
24446 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24447 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24448
24449 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24450 in `chosen' environment variable.
24451 * normal/menu_text.c (get_entry_number): Check if the variable
24452 matches the title of a menu entry.
24453 (run_menu): Pass menu to get_entry_number.
24454
24455 * util/grub-reboot.in: New file.
24456 * util/grub-set-default.in: New file.
24457 * conf/common.rmk (grub-reboot): New utility.
24458 (grub-set-default): New utility.
24459
24460 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24461 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24462 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24463 move it to `saved_entry' for the next boot. Load environment on
24464 initialisation.
24465 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24466 * util/grub.d/10_hurd.in: Likewise.
24467 * util/grub.d/10_linux.in (linux_entry): Likewise.
24468 * util/grub.d/10_windows.in: Likewise.
24469 * util/grub.d/30_os-prober.in: Likewise.
24470
24471 * util/grub-install.in: Create environment block.
24472 * util/i386/efi/grub-install.in: Likewise.
24473 * util/ieee1275/grub-install.in: Likewise.
24474 * util/sparc64/ieee1275/grub-install.in: Likewise.
24475
24476 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24477
24478 Unit testing framework for GRUB.
24479
24480 * Makefile.in: Test framework build rules for 'make check'.
24481 * conf/tests.rmk: Build rules for individual tests and framework.
24482
24483 * include/grub/test.h: Header file for whitebox tests.
24484 * tests/lib/functional_test.c: Framework support for whitebox
24485 functional tests.
24486 * tests/lib/test.c: Common whitebox testing code for unit and
24487 functional tests.
24488 * tests/lib/unit_test.c: Framework support for whitebox unit
24489 tests.
24490
24491 * tests/util/grub-shell-tester.in: Support utility for grub-script
24492 tests.
24493 * tests/util/grub-shell.in: Utility to execute grub-script
24494 commands in a Qemu instance.
24495
24496 * tests/example_functional_test.c: Example whitebox functional
24497 test.
24498 * tests/example_grub_script_test.in: Example grub-script test.
24499 * tests/example_scripted_test.in: Example scripted test.
24500 * tests/example_unit_test.c: Example whitebox unit test.
24501
24502 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24503
24504 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24505 Add loader/i386/multiboot_mbi.c.
24506 (multiboot2_mod_SOURCES): Likewise.
24507 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24508 (multiboot2_mod_SOURCES): Likewise.
24509 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24510 (grub_multiboot_make_mbi): Likewise.
24511 (grub_multiboot_free_mbi): Likewise.
24512 (grub_multiboot_init_mbi): Likewise.
24513 (grub_multiboot_add_module): Likewise.
24514 (grub_multiboot_set_bootdev): Likewise.
24515 * loader/i386/multiboot.c (mbi): Removed.
24516 (mbi_dest): Likewise.
24517 (alloc_mbi): New variable.
24518 (grub_multiboot_payload_size): Removed. All users updated.
24519 (grub_multiboot_pure_size): New variable.
24520 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24521 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24522 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24523 (grub_fill_multiboot_mmap): Likewise.
24524 (grub_multiboot_get_bootdev): Likewise.
24525 (grub_multiboot): Use multiboot_mbi functions.
24526 * loader/i386/multiboot_mbi.c: New file.
24527
24528 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24529
24530 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24531 it would result in module crash.
24532
24533 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24534
24535 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24536 (grub_ofconsole_getwh): Split to ...
24537 (grub_ofconsole_getwh): ... this.
24538 (grub_ofconsole_dimensions): ...and this.
24539 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24540
24541 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24542
24543 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24544
24545 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24546
24547 * loader/i386/pc/multiboot2.c: Removed stalled file.
24548
24549 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24550
24551 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24552 Reported by: Grégoire Sutre
24553
24554 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24555
24556 * util/misc.c (canonicalize_file_name): New function.
24557 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24558 instead of realpath().
24559
24560 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24561
24562 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24563 and make it clearer that it's optional. Based on confusion
24564 witnessed on IRC.
24565
24566 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24567
24568 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24569 in premature implicit newline.
24570
24571 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24572
24573 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24574 which resulted in garbled command line at the end of screen.
24575
24576 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24577
24578 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24579 initialization with similar approach as with other Linux loaders.
24580
24581 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24582
24583 Fix i386-ieee1275 build.
24584
24585 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24586 and grub_term_height() for video_{width,height} initialization.
24587
24588 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24589
24590 Fix grub-emu build.
24591
24592 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24593
24594 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24595 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24596
24597 Support for multiple terminals.
24598
24599 * Makefile.in (pkglib_DATA): terminal.lst.
24600 (terminal.lst): New target.
24601 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24602 (GRUB_MOD_INIT(handler)): Likewise.
24603 (GRUB_MOD_FINI(handler)): Likewise.
24604 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24605 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24606 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24607 (grub_cmd_sleep): Use grub_term_save_pos.
24608 * commands/terminal.c: New file.
24609 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24610 commands/terminal.c and lib/charset.c.
24611 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24612 (pkglib_MODULES): Add terminal.mod.
24613 (terminal_mod_SOURCES): New variable.
24614 (terminal_mod_CFLAGS): Likewise.
24615 (terminal_mod_LDFLAGS): Likewise.
24616 * genhandlerlist.sh: Don't handle terminals.
24617 * genmk.rb: Generate terminal-*.lst.
24618 * genterminallist.sh: New file.
24619 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24620 (grub_is_valid_utf8): Likewise.
24621 (grub_utf8_to_ucs4_alloc): Likewise.
24622 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24623 (grub_menu_register_viewer): Changed argument.
24624 (grub_menu_try_text): New proto.
24625 (grub_gfxmenu_try_hook): New declaration.
24626 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24627 (grub_menu_init_page): Additional argument term.
24628 (grub_normal_init_page): Likewise.
24629 (grub_cmdline_get): Arguments simplified.
24630 (grub_utf8_to_ucs4_alloc): Removed.
24631 (grub_print_ucs4): Additional argument term.
24632 (grub_getstringwidth): Likewise.
24633 (grub_print_message_indented): Likewise.
24634 (grub_menu_text_register_instances): New proto.
24635 (grub_show_menu): Likewise.
24636 (read_terminal_list): Likewise.
24637 (grub_set_more): Likewise.
24638 * include/grub/parser.h: Include handler.h.
24639 * include/grub/reader.h: Rewritten.
24640 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24641 (GRUB_TERM_WIDTH): Changed to function.
24642 (GRUB_TERM_HEIGHT): Likewise.
24643 (GRUB_TERM_BORDER_WIDTH): Likewise.
24644 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24645 (GRUB_TERM_NUM_ENTRIES): Likewise.
24646 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24647 (GRUB_TERM_CURSOR_X): Likewise.
24648 (grub_term_input_class): Likewise.
24649 (grub_term_output_class): Likewise.
24650 (grub_term_outputs_disabled): New declaration.
24651 (grub_term_inputs_disabled): Likewise.
24652 (grub_term_outputs): Likewise.
24653 (grub_term_inputs): Likewise.
24654 (grub_term_register_input): Rewritten.
24655 (grub_term_register_output): Likewise.
24656 (grub_term_unregister_input): Likewise.
24657 (grub_term_unregister_output): Likewise.
24658 (FOR_ACTIVE_TERM_INPUTS): New macro.
24659 (FOR_DISABLED_TERM_INPUTS): Likewise.
24660 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24661 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24662 * include/grub/terminfo.h: Add oterm argument to all protypes.
24663 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24664 Use grub_rescue_run.
24665 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24666 All users updated.
24667 * kern/reader.c: Removed. All users updated.
24668 * kern/rescue_reader.c (grub_rescue_init): Removed.
24669 (grub_rescue_reader): Likewise.
24670 (grub_register_rescue_reader): Likewise.
24671 (grub_rescue_run): New function based on kern/reader.c.
24672 * kern/term.c: Adapted for multiterm.
24673 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24674 (grub_is_valid_utf8): Likewise.
24675 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24676 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24677 right terminal.
24678 * loader/i386/linux.c (grub_linux_boot): Likewise.
24679 * normal/auth.c (grub_username_get): New function.
24680 (grub_auth_check_authentication): Use grub_username_get.
24681 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24682 * normal/color.c: Adapt for multiterm.
24683 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24684 (grub_normal_init_page): Additional argument term.
24685 (read_lists): Call read_terminal_lists.
24686 (grub_enter_normal_mode): Call grub_cmdline_run.
24687 Handle grub_normal_exit_level.
24688 (grub_cmd_normal): Make reentrant.
24689 (grub_cmd_normal_exit): New function.
24690 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24691 * normal/menu.c: Adapt for multiterm.
24692 * normal/menu_entry.c: Likewise.
24693 * normal/menu_text.c: Likewise.
24694 * normal/menu_viewer.c: Removed. All users updated.
24695 * normal/term.c: New file.
24696 * util/console.c: Change order of includes to workaround a bug in
24697 ncurses headers.
24698 * term/terminfo.c: New argument oterm on all exported functions.
24699 All users updated.
24700 * util/grub-editenv.c (grub_term_input_class): Removed.
24701 (grub_term_output_class): Likewise.
24702
24703 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24704
24705 Make loader output a bit more user-friendly.
24706
24707 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24708 is being loaded. Likewise for the Hurd.
24709
24710 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24711 that kernel of FreeBSD ${version} is being loaded.
24712
24713 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24714 grub_dprintf().
24715 (grub_cmd_initrd): Likewise.
24716 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24717 that Linux ${version} is being loaded. Likewise for initrd.
24718
24719 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24720
24721 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24722
24723 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24724
24725 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24726 (GRUB_MOD_INIT): Gettextizze.
24727 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24728 (GRUB_MOD_INIT): Gettextizze.
24729 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24730 (grub_cmd_linux): Capitalise Linux.
24731 (GRUB_MOD_INIT): Gettextizze.
24732 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24733 (grub_cmd_linux): Capitalise Linux.
24734 (GRUB_MOD_INIT): Gettextizze.
24735 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24736 (grub_cmd_linux): Capitalise Linux.
24737 (GRUB_MOD_INIT): Gettextizze.
24738 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24739 (GRUB_MOD_INIT): Gettextizze.
24740 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24741 (grub_cmd_linux): Capitalise Linux.
24742 (GRUB_MOD_INIT): Gettextizze.
24743 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24744 (grub_cpu_xnu_init): Gettextizze.
24745 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24746 (GRUB_MOD_INIT): Gettextizze.
24747 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24748 (GRUB_MOD_INIT): Gettextizze.
24749 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24750 (grub_linux_load64): Capitalise Linux.
24751 (GRUB_MOD_INIT): Gettextizze.
24752 * loader/xnu.c: Include `<grub/i18n.h>'.
24753 (GRUB_MOD_INIT): Gettextizze.
24754 * po/POTFILES: Add `loader/efi/appleloader.c',
24755 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24756 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24757 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24758 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24759 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24760 and `loader/xnu.c'.
24761
24762 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24763
24764 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24765
24766 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24767
24768 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24769 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24770 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24771
24772 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24773
24774 Reset Multiboot 2 support. New loader implements the draft in
24775 /branches/multiboot2 and shares as much code as possible with the
24776 production Multiboot 1 implementation.
24777
24778 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24779 * loader/multiboot2.c: Likewise.
24780 * loader/i386/multiboot_helper.S: Likewise.
24781 * include/multiboot2.h: Replace with latest version from the draft
24782 in /branches/multiboot2.
24783
24784 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24785 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24786 and `loader/multiboot2.c'.
24787 (pkglib_MODULES): Add `multiboot2.mod'.
24788 (multiboot2_mod_SOURCES): New variable.
24789 (multiboot2_mod_LDFLAGS): Likewise.
24790 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24791
24792 * conf/i386-pc.rmk: Likewise.
24793
24794 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24795 (multiboot_mod_SOURCES): Remove variable.
24796 (multiboot_mod_LDFLAGS): Likewise.
24797 (multiboot_mod_CFLAGS): Likewise.
24798
24799 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24800 `<multiboot2.h>' instead of `<multiboot.h>'.
24801 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24802 (MULTIBOOT_HEADER_MAGIC): New macros.
24803
24804 * loader/multiboot_loader.c (module_version_status): Remove variable.
24805 (find_multi_boot2_header): Remove function.
24806 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24807 logic. Always check for the Multiboot version we're compiling for.
24808 (grub_cmd_module_loader): Likewise.
24809 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24810 command instead of `multiboot'.
24811
24812 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24813
24814 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24815 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24816 all users.
24817
24818 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24819 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24820
24821 Fix breakage introduced with previous commit.
24822
24823 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24824 commands.
24825 * normal/handler.c (read_handler_list): Revert part of previous commit
24826 affecting this file.
24827 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24828 (grub_normal_execute): ... here.
24829
24830 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24831
24832 Merge prefix-redefinition-fix branch.
24833
24834 * normal/autofs.c (read_fs_list): Make function capable of being
24835 run multiple times, gracefuly replacing the previous data
24836 structures.
24837 * normal/dyncmd.c (read_command_list): Likewise.
24838 * normal/handler.c (read_handler_list): Likewise.
24839 * normal/main.c (read_lists): New function. Calls all the
24840 list reading functions.
24841 (grub_normal_execute): Use read_lists() instead of calling all
24842 list reading functions explicitly. Register read_lists() as a
24843 variable hook attached to ${prefix}.
24844
24845 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24846
24847 Merge crypto branch.
24848
24849 * Makefile.in (pkglib_DATA): Add crypto.lst.
24850 (crypto.lst): New target.
24851 * commands/hashsum.c: New file.
24852 * commands/password.c (check_password): Use grub_crypto_memcmp.
24853 * commands/password_pbkdf2.c: New file.
24854 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24855 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24856 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24857 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24858 -I$(srcdir)/lib/libgcrypt_wrap.
24859 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24860 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24861 password_pbkdf2.mod.
24862 (crypto_mod_SOURCES): New variable.
24863 (crypto_mod_CFLAGS): Likewise.
24864 (crypto_mod_LDFLAGS): Likewise.
24865 (hashsum_mod_SOURCES): New variable.
24866 (hashsum_mod_CFLAGS): Likewise.
24867 (hashsum_mod_LDFLAGS): Likewise.
24868 (pbkdf2_mod_SOURCES): New variable.
24869 (pbkdf2_mod_CFLAGS): Likewise.
24870 (pbkdf2_mod_LDFLAGS): Likewise.
24871 (password_pbkdf2_mod_SOURCES): New variable.
24872 (password_pbkdf2_mod_CFLAGS): Likewise.
24873 (password_pbkdf2_mod_LDFLAGS): Likewise.
24874 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24875 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24876 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24877 Include conf/gcry.rmk.
24878 * include/grub/auth.h: Rewritten.
24879 * include/grub/crypto.h: New file.
24880 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24881 * include/grub/normal.h (read_crypto_list): New prototype.
24882 * lib/crypto.c: New file.
24883 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24884 * lib/pbkdf2.c: Likewise.
24885 * normal/auth.c (grub_auth_strcmp): Removed.
24886 (grub_iswordseparator): Likewise.
24887 (grub_auth_strword): Likewise.
24888 (is_authenticated): Use grub_strword.
24889 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24890 and grub_strword. Pass entered password to authentication callback.
24891 * normal/crypto.c: New file.
24892 * normal/main.c: Call read_crypto_list.
24893 * util/grub-mkpasswd-pbkdf2.c: New file.
24894 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24895
24896 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24897
24898 Fix descent and ascent calculation.
24899
24900 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24901 (options): New option "asce".
24902 (usage): Likewise.
24903 (add_char): Ignore invalid glyphs for descent calculation.
24904 Calculate ascent from actual content.
24905 (print_glyphs): Use 'asce'.
24906 (write_font): Likewise. Allow ascent override.
24907 (main): Handle "asce" option.
24908
24909 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24910
24911 * kern/err.c: Include `<grub/i18n.h>'.
24912 (grub_print_error): Add full stop. Gettextizze.
24913 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24914 (grub_bsd_load_elf): Capitalise ELF.
24915 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24916 (grub_cmd_freebsd_module): Likewise.
24917 (grub_cmd_freebsd_module_elf): Likewise.
24918 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24919
24920 2010-01-06 Carles Pina i Estany <carles@pina.cat>
24921
24922 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24923 * commands/search_file.c (HELP_MESSAGE): New macro.
24924 * commands/search_label.c (HELP_MESSAGE): Likewise.
24925 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24926 * po/POTFILES: Add `commands/search_file.c',
24927 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24928 `commands/search.c'.
24929
24930 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24931
24932 * config.rpath: Update from Gnulib.
24933
24934 2010-01-05 Yves Blusseau <blusseau@zetam.org>
24935
24936 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24937
24938 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24939
24940 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24941
24942 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24943
24944 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24945 arguments to fread so that we get a return value in bytes, rather
24946 than something that will normally be rounded down to 0.
24947 Adjust error handling to avoid producing garbage when size_t is not
24948 the same size as long long.
24949
24950 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24951
24952 * util/mkisofs/write.c (padblock_write): Check return value of
24953 fread.
24954
24955 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24956
24957 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24958 floppy images now.
24959
24960 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24961
24962 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24963
24964 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24965 instead of manual alignment.
24966 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24967 verbose). Avoid attempts to read past end of the device
24968 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24969 but GRUB_DISK_CACHE_SIZE may exceed that).
24970
24971 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24972
24973 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24974 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24975 it to upper layer.
24976
24977 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24978
24979 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24980 New constant.
24981 (grub_efi_piwg_device_path): New structure
24982 (grub_efi_piwg_device_path_t): New type.
24983 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24984 (devpath_1): Transform to a structure. All users updated.
24985 (devpath_2): Likewise.
24986 (devpath_3): Likewise.
24987 (devpath_4): Likewise.
24988 (devpath_5): Likewise.
24989
24990 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24991
24992 * loader/efi/appleloader.c: Restored. Update all users.
24993
24994 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24995
24996 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24997
24998 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24999 (struct boot_blocklist): Move from here ...
25000 * include/grub/i386/pc/boot.h [ASM_FILE]
25001 (struct grub_boot_blocklist): ... to here. Update all users.
25002 (setup): Only initialize `start' member of `first_block'
25003 structure. Add assert() calls to verify the other members.
25004
25005 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25006 (generate_image): Fix broken blocklist length initialization.
25007 Add assert() call to verify blocklist `segment' field.
25008
25009 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25010
25011 * loader/efi/appleloader.c: Remove. Update all users.
25012
25013 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25014
25015 * boot/i386/pc/boot.S: Update copyright year.
25016 * boot/i386/pc/cdboot.S: Likewise.
25017 * boot/i386/pc/diskboot.S: Likewise.
25018 * boot/i386/pc/lnxboot.S: Likewise.
25019 * boot/i386/pc/pxeboot.S: Likewise.
25020 * bus/pci.c: Likewise.
25021 * commands/cmp.c: Likewise.
25022 * commands/help.c: Likewise.
25023 * commands/hexdump.c: Likewise.
25024 * commands/i386/pc/halt.c: Likewise.
25025 * commands/i386/pc/play.c: Likewise.
25026 * commands/i386/pc/vbeinfo.c: Likewise.
25027 * commands/ls.c: Likewise.
25028 * commands/test.c: Likewise.
25029 * disk/dmraid_nvidia.c: Likewise.
25030 * disk/i386/pc/biosdisk.c: Likewise.
25031 * disk/ieee1275/nand.c: Likewise.
25032 * disk/ieee1275/ofdisk.c: Likewise.
25033 * disk/lvm.c: Likewise.
25034 * disk/raid.c: Likewise.
25035 * disk/raid6_recover.c: Likewise.
25036 * disk/scsi.c: Likewise.
25037 * fs/affs.c: Likewise.
25038 * fs/cpio.c: Likewise.
25039 * fs/ext2.c: Likewise.
25040 * fs/hfs.c: Likewise.
25041 * fs/iso9660.c: Likewise.
25042 * fs/ntfs.c: Likewise.
25043 * fs/sfs.c: Likewise.
25044 * fs/udf.c: Likewise.
25045 * fs/ufs.c: Likewise.
25046 * fs/xfs.c: Likewise.
25047 * gencmdlist.sh: Likewise.
25048 * genmk.rb: Likewise.
25049 * include/grub/disk.h: Likewise.
25050 * include/grub/efi/api.h: Likewise.
25051 * include/grub/efi/efi.h: Likewise.
25052 * include/grub/efi/pe32.h: Likewise.
25053 * include/grub/elf.h: Likewise.
25054 * include/grub/fs.h: Likewise.
25055 * include/grub/i386/at_keyboard.h: Likewise.
25056 * include/grub/i386/pc/memory.h: Likewise.
25057 * include/grub/i386/pc/vbe.h: Likewise.
25058 * include/grub/i386/pci.h: Likewise.
25059 * include/grub/i386/tsc.h: Likewise.
25060 * include/grub/ieee1275/ieee1275.h: Likewise.
25061 * include/grub/ntfs.h: Likewise.
25062 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25063 * include/grub/sparc64/libgcc.h: Likewise.
25064 * include/grub/symbol.h: Likewise.
25065 * include/grub/types.h: Likewise.
25066 * include/multiboot2.h: Likewise.
25067 * io/gzio.c: Likewise.
25068 * kern/device.c: Likewise.
25069 * kern/disk.c: Likewise.
25070 * kern/efi/efi.c: Likewise.
25071 * kern/efi/mm.c: Likewise.
25072 * kern/elf.c: Likewise.
25073 * kern/file.c: Likewise.
25074 * kern/i386/dl.c: Likewise.
25075 * kern/i386/pc/init.c: Likewise.
25076 * kern/i386/pc/startup.S: Likewise.
25077 * kern/ieee1275/ieee1275.c: Likewise.
25078 * kern/ieee1275/init.c: Likewise.
25079 * kern/main.c: Likewise.
25080 * kern/mm.c: Likewise.
25081 * kern/powerpc/dl.c: Likewise.
25082 * kern/sparc64/dl.c: Likewise.
25083 * kern/x86_64/dl.c: Likewise.
25084 * lib/hexdump.c: Likewise.
25085 * loader/efi/appleloader.c: Likewise.
25086 * loader/i386/ieee1275/linux.c: Likewise.
25087 * loader/i386/pc/chainloader.c: Likewise.
25088 * loader/i386/pc/linux.c: Likewise.
25089 * loader/i386/pc/multiboot2.c: Likewise.
25090 * loader/ieee1275/multiboot2.c: Likewise.
25091 * loader/multiboot2.c: Likewise.
25092 * loader/multiboot_loader.c: Likewise.
25093 * loader/powerpc/ieee1275/linux.c: Likewise.
25094 * normal/completion.c: Likewise.
25095 * normal/menu_entry.c: Likewise.
25096 * partmap/apple.c: Likewise.
25097 * util/grub.d/10_hurd.in: Likewise.
25098 * util/hostfs.c: Likewise.
25099 * video/readers/png.c: Likewise.
25100
25101 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25102
25103 * include/grub/misc.h (GNUC_PREREQ): New macro.
25104 (ATTRIBUTE_ERROR): New macro.
25105 * include/grub/list.h (grub_bad_type_cast_real): Use
25106 ATTRIBUTE_ERROR.
25107
25108 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25109
25110 * normal/menu_text.c (print_message): Change messages.
25111
25112 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25113
25114 * normal/menu_entry.c (store_completion): Gettextizze.
25115
25116 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25117
25118 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25119
25120 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25121
25122 * po/POTFILES: Sort correctly.
25123
25124 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25125
25126 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25127 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25128 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25129 full stop.
25130 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25131 summary. Gettextizze the strings.
25132 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25133 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25134 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25135 full stop.
25136 (GRUB_MOD_INIT): Remove command name from summary.
25137 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25138 summary.
25139 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25140 * term/i386/pc/serial.c (options): Add full stops.
25141 (GRUB_MOD_INIT): Remove command name from the summary.
25142
25143 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25144
25145 * commands/acpi.c: Gettextizze help strings and/or options. Include
25146 `grub/i18n.h' if needed.
25147 * commands/blocklist.c: Likewise.
25148 * commands/boot.c: Likewise.
25149 * commands/cat.c: Likewise.
25150 * commands/cmp.c: Likewise.
25151 * commands/configfile.c: Likewise.
25152 * commands/crc.c: Likewise.
25153 * commands/date.c: Likewise.
25154 * commands/echo.c: Likewise.
25155 * commands/efi/fixvideo.c: Likewise.
25156 * commands/efi/loadbios.c: Likewise.
25157 * commands/gptsync.c: Likewise.
25158 * commands/halt.c: Likewise.
25159 * commands/handler.c: Likewise.
25160 * commands/hdparm.c: Likewise.
25161 * commands/hexdump.c: Likewise.
25162 * commands/i386/cpuid.c: Likewise.
25163 * commands/i386/pc/drivemap.c: Likewise.
25164 * commands/i386/pc/halt.c: Likewise.
25165 * commands/i386/pc/pxecmd.c: Likewise.
25166 * commands/i386/pc/vbeinfo.c: Likewise.
25167 * commands/i386/pc/vbetest.c: Likewise.
25168 * commands/ieee1275/suspend.c: Likewise.
25169 * commands/keystatus.c: Likewise.
25170 * commands/loadenv.c: Likewise.
25171 * commands/ls.c: Likewise.
25172 * commands/lsmmap.c: Likewise.
25173 * commands/lspci.c: Likewise.
25174 * commands/memrw.c: Likewise.
25175 * commands/minicmd.c: Likewise.
25176 * commands/parttool.c: Likewise.
25177 * commands/password.c: Likewise.
25178 * commands/probe.c: Likewise.
25179 * commands/read.c: Likewise.
25180 * commands/reboot.c: Likewise.
25181 * commands/search.c: Likewise.
25182 * commands/sleep.c: Likewise.
25183 * commands/test.c: Likewise.
25184 * commands/true.c: Likewise.
25185 * commands/usbtest.c: Likewise.
25186 * commands/videotest.c: Likewise.
25187 * commands/xnu_uuid.c: Likewise.
25188 * disk/loopback.c: Likewise.
25189 * hello/hello.c: Likewise.
25190 * loader/i386/bsd.c: Likewise.
25191 * term/i386/pc/serial.c: Likewise.
25192 * po/POTFILES: Add new files.
25193
25194 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25195
25196 * term/i386/pc/at_keyboard.c
25197 (keyboard_controller_wait_untill_ready): Rename to ...
25198 (keyboard_controller_wait_until_ready): ... this. Update all users.
25199
25200 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25201
25202 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25203 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25204 string using string width.
25205 * normal/menu_text.c (grub_print_message_indented): Use
25206 grub_print_spaces and not print_spaces.
25207 (print_timeout): Likewise.
25208 (print_spaces): Move to...
25209 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25210
25211 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25212
25213 Import from Gnulib.
25214
25215 * gnulib/getdelim.c: New file.
25216 * gnulib/getline.c: Likewise.
25217
25218 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25219
25220 * include/grub/list.h (grub_assert_fail): Removed.
25221 (grub_bad_type_cast_real): New function.
25222 (grub_bad_type_cast): New macro.
25223 (GRUB_AS_LIST): Use grub_bad_type_cast.
25224 (GRUB_AS_LIST_P): Likewise.
25225 (GRUB_AS_NAMED_LIST): Likewise.
25226 (GRUB_AS_NAMED_LIST_P): Likewise.
25227 (GRUB_AS_PRIO_LIST): Likewise.
25228 (GRUB_AS_PRIO_LIST_P): Likewise.
25229 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25230
25231 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25232
25233 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25234 Fix syntax error.
25235
25236 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25237
25238 * configure.ac: Check for TARGET_CFLAGS initialization before we
25239 initialize it ourselves (sigh).
25240 Move a few modifications to TARGET_CFLAGS to be unconditional
25241 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25242 eh_frame)
25243
25244 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25245 * term/i386/pc/at_keyboard.c
25246 (keyboard_controller_wait_untill_ready): Likewise.
25247 (keyboard_controller_led): Rename `led_status' paramter to avoid
25248 name conflict.
25249
25250 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25251
25252 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25253 quotes.
25254
25255 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25256
25257 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25258
25259 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25260
25261 * normal/menu_text.c (grub_print_message_indented): Prevent
25262 past-the-end-of-array dereference.
25263
25264 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25265
25266 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25267 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25268
25269 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25270
25271 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25272 * normal/main.c (grub_normal_read_line): Remove a space from the
25273 default prompt.
25274
25275 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25276
25277 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25278 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25279 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25280 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25281 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25282 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25283 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25284
25285 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25286
25287 * video/readers/jpeg.c (cmd): Declare.
25288 (grub_cmd_jpegtest): Use `grub_command_t' type.
25289 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25290 Assign to `cmd'.
25291 (GRUB_MOD_FINI): Use `cmd' to unregister.
25292 * video/readers/png.c (cmd): Declare.
25293 (grub_cmd_pngtest): Use `grub_command_t' type.
25294 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25295 Assign to `cmd'.
25296 (GRUB_MOD_FINI): Use `cmd' to unregister.
25297 * video/readers/tga.c (cmd): Declare.
25298 (grub_cmd_tgatest): Use `grub_command_t' type.
25299 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25300 Assign to `cmd'.
25301 (GRUB_MOD_FINI): Use `cmd' to unregister.
25302
25303 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25304
25305 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25306 stops.
25307 * kern/corecmd.c (grub_register_core_commands): Likewise.
25308 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25309 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25310 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25311 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25312 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25313 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25314 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25315 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25316 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25317 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25318 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25319 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25320 * normal/handler.c (insert_handler): Likewise.
25321 * normal/main.c (GRUB_MOD_INIT): Likewise.
25322 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25323
25324 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25325
25326 * commands/help.c (grub_cmd_help): Print the command name before the
25327 summary.
25328 (GRUB_MOD_INIT): Remove command name from the summary.
25329 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25330 string as summary.
25331 * lib/arg.c (find_long): Print the command name before the summary.
25332 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25333 summary.
25334 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25335 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25336 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25337 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25338 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25339 * commands/date.c (GRUB_MOD_INIT): Likewise.
25340 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25341 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25342 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25343 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25344 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25345 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25346 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25347 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25348 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25349 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25350 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25351 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25352 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25353 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25354 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25355 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25356 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25357 * commands/password.c (GRUB_MOD_INIT): Likewise.
25358 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25359 * commands/read.c (GRUB_MOD_INIT): Likewise.
25360 * commands/search.c (GRUB_MOD_INIT): Likewise.
25361 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25362 * commands/test.c (GRUB_MOD_INIT): Likewise.
25363 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25364 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25365 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25366 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25367 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25368 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25369 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25370 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25371 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25372 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25373 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25374 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25375 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25376 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25377
25378 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25379
25380 Use search command for preliminar UUID search.
25381
25382 * commands/search.c: Split into ...
25383 * commands/search_wrap.c: ...this
25384 * commands/search.c: ...and this.
25385 * commands/search_file.c: New file.
25386 * commands/search_label.c: New file.
25387 * commands/search_uuid.c: New file.
25388 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25389 Add commands/search_wrap.c, commands/search_file.c,
25390 commands/search_label.c and commands/search_uuid.c.
25391 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25392 (search_mod_SOURCES): Set to commands/search_wrap.c.
25393 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25394 search_label.mod.
25395 (search_fs_file_mod_SOURCES): New variable.
25396 (search_fs_file_mod_CFLAGS): Likewise.
25397 (search_fs_file_mod_LDFLAGS): Likewise.
25398 (search_label_mod_SOURCES): Likewise.
25399 (search_label_mod_CFLAGS): Likewise.
25400 (search_label_mod_LDFLAGS): Likewise.
25401 (search_fs_uuid_mod_SOURCES): New variable.
25402 (search_fs_uuid_mod_CFLAGS): Likewise.
25403 (search_fs_uuid_mod_LDFLAGS): Likewise.
25404 (fs_file_mod_SOURCES): Removed.
25405 (fs_file_mod_CFLAGS): Likewise.
25406 (fs_file_mod_LDFLAGS): Likewise.
25407 (fs_uuid_mod_SOURCES): Removed.
25408 (fs_uuid_mod_CFLAGS): Likewise.
25409 (fs_uuid_mod_LDFLAGS): Likewise.
25410 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25411 Set to util/grub-install.in.
25412 * disk/fs_file.c: Removed.
25413 * disk/fs_uuid.c: Likewise.
25414 * include/grub/search.h: New file.
25415 * util/grub-install.in: Handle sparc64.
25416 Create and use load.cfg.
25417 * util/sparc64/ieee1275/grub-install.in: Removed.
25418
25419 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25420
25421 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25422 Ignore return status if CF is cleared.
25423 (grub_biosdisk_get_diskinfo_standard): Likewise.
25424
25425 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25426
25427 * term/i386/pc/at_keyboard.c
25428 (keyboard_controller_wait_untill_ready): New function.
25429 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25430 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25431 for keyboard polling, rather than duplicate the same loop. This
25432 saves a few bytes in code size.
25433
25434 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25435
25436 Support for (pxe[:server[:gateway]]) syntax and
25437 use environment variable for PXE.
25438
25439 * commands/i386/pc/pxecmd.c (options): Removed.
25440 (print_ip): Removed.
25441 (grub_cmd_pxe): Removed
25442 (grub_cmd_pxe_unload): New function.
25443 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25444 (grub_pxe_your_ip): Made static.
25445 (grub_pxe_default_server_ip): Likewise.
25446 (grub_pxe_default_gateway_ip): Likewise.
25447 (grub_pxe_blksize): Likewise.
25448 (parse_ip): New function.
25449 (grub_pxe_open): Support server and gateway specification.
25450 (grub_pxe_close): Free disk->data.
25451 (grub_pxefs_open): Use disk->data.
25452 (grub_pxefs_read): Likewise.
25453 (grub_env_write_readonly): New function.
25454 (set_mac_env): Likewise.
25455 (set_env_limn_ro): Likewise.
25456 (parse_dhcp_vendor): Likewise.
25457 (grub_pxe_detect): Set the environment variables.
25458 (set_ip_env): New function.
25459 (write_ip_env): Likewise.
25460 (grub_env_write_pxe_default_server): Likewise.
25461 (grub_env_write_pxe_default_gateway): Likewise.
25462 (grub_env_write_pxe_blocksize): Likewise.
25463 (GRUB_MOD_INIT(pxe)): Set environment variables.
25464 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25465 (grub_pxe_mac_addr_t): ... this. All users updated.
25466 (grub_pxe_your_ip): Removed.
25467 (grub_pxe_server_ip): Likewise.
25468 (grub_pxe_gateway_ip): Likewise.
25469 (grub_pxe_blksize): Likewise.
25470
25471 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25472
25473 * commands/help.c: Include `<grub/i18n.h>'.
25474 (grub_cmd_help): Gettextizze.
25475 (GRUB_MOD_INIT): Likewise.
25476 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25477 (GRUB_MOD_INIT): Gettextizze.
25478 * commands/search.c: Include `<grub/i18n.h>'.
25479 (options): Gettextizze.
25480 (GRUB_MOD_INIT): Gettextizze.
25481 * lib/arg.c: Include `<grub/i18n.h>'.
25482 (help_options): Gettextizze.
25483 (find_long): Likewise.
25484 (grub_arg_show_help): Likewise.
25485 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25486 (read_command_list): Gettextizze.
25487 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25488 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25489
25490 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25491
25492 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25493 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25494 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25495 (led_status): New variable.
25496 (keyboard_controller_led): New function.
25497 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25498 update led status for caps lock, num lock and scroll lock.
25499
25500 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25501
25502 * util/hostdisk.c (open_device): Fix a comment.
25503
25504 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25505
25506 * util/grub-install.in (host_os): New variable.
25507 * util/i386/efi/grub-install.in (host_os): Likewise.
25508
25509 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25510
25511 * util/mkisofs/write.c (padblock_write): Abort when given an
25512 excedingly large embed image, instead of silently truncating it.
25513
25514 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25515
25516 * include/multiboot.h: Indentation fixes.
25517
25518 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25519
25520 * include/multiboot.h (struct multiboot_aout_symbol_table)
25521 (struct multiboot_elf_section_header_table): New structure
25522 declarations (stolen from GRUB Legacy).
25523 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25524 table information.
25525
25526 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25527 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25528 type aliases.
25529
25530 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25531
25532 * include/multiboot.h: Make comments src2texi-friendly.
25533
25534 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25535
25536 For consistency with [multiboot]/docs/boot.S.
25537
25538 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25539 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25540 (MULTIBOOT_MAGIC2): Rename from this ...
25541 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25542
25543 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25544
25545 * include/multiboot.h: Remove `<grub/types.h>'.
25546 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25547 types. Update all users.
25548
25549 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25550
25551 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25552 `couldn't' and `can not' by `cannot'.
25553 * commands/i386/pc/drivemap.c: Likewise.
25554 * disk/ata.c: Likewise.
25555 * disk/ieee1275/nand.c: Likewise.
25556 * fs/affs.c: Likewise.
25557 * fs/fat.c: Likewise.
25558 * fs/hfs.c: Likewise.
25559 * fs/hfsplus.c: Likewise.
25560 * fs/iso9660.c: Likewise.
25561 * fs/jfs.c: Likewise.
25562 * fs/minix.c: Likewise.
25563 * fs/reiserfs.c: Likewise.
25564 * fs/sfs.c: Likewise.
25565 * fs/udf.c: Likewise.
25566 * fs/ufs.c: Likewise.
25567 * fs/xfs.c: Likewise.
25568 * loader/powerpc/ieee1275/linux.c: Likewise.
25569 * loader/sparc64/ieee1275/linux.c: Likewise.
25570 * util/grub-probe.c: Likewise.
25571 * util/misc.c: Likewise.
25572
25573 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25574
25575 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25576 grub_errno calls.
25577 * commands/acpi.c: Likewise.
25578 * commands/blocklist.c: Likewise.
25579 * commands/efi/loadbios.c: Likewise.
25580 * commands/i386/pc/drivemap.c: Likewise.
25581 * commands/loadenv.c: Likewise.
25582 * commands/memrw.c: Likewise.
25583 * commands/password.c: Likewise.
25584 * commands/videotest.c: Likewise.
25585 * disk/ata.c: Likewise.
25586 * disk/ata_pthru.c: Likewise.
25587 * disk/dmraid_nvidia.c: Likewise.
25588 * disk/ieee1275/nand.c: Likewise.
25589 * disk/ieee1275/ofdisk.c: Likewise.
25590 * disk/loopback.c: Likewise.
25591 * disk/lvm.c: Likewise.
25592 * disk/mdraid_linux.c: Likewise.
25593 * disk/raid.c: Likewise.
25594 * disk/raid6_recover.c: Likewise.
25595 * disk/scsi.c: Likewise.
25596 * efiemu/main.c: Likewise.
25597 * efiemu/mm.c: Likewise.
25598 * efiemu/pnvram.c: Likewise.
25599 * efiemu/symbols.c: Likewise.
25600 * font/font.c: Likewise.
25601 * fs/cpio.c: Likewise.
25602 * fs/hfsplus.c: Likewise.
25603 * fs/iso9660.c: Likewise.
25604 * fs/jfs.c: Likewise.
25605 * fs/minix.c: Likewise.
25606 * fs/ntfs.c: Likewise.
25607 * fs/ntfscomp.c: Likewise.
25608 * fs/reiserfs.c: Likewise.
25609 * fs/ufs.c: Likewise.
25610 * fs/xfs.c: Likewise.
25611 * gettext/gettext.c: Likewise.
25612 * include/grub/auth.h: Likewise.
25613 * kern/elf.c: Likewise.
25614 * kern/file.c: Likewise.
25615 * kern/ieee1275/init.c: Likewise.
25616 * kern/ieee1275/mmap.c: Likewise.
25617 * kern/ieee1275/openfw.c: Likewise.
25618 * kern/powerpc/dl.c: Likewise.
25619 * kern/sparc64/dl.c: Likewise.
25620 * lib/arg.c: Likewise.
25621 * loader/i386/bsd.c: Likewise.
25622 * loader/i386/bsdXX.c: Likewise.
25623 * loader/i386/efi/linux.c: Likewise.
25624 * loader/i386/efi/xnu.c: Likewise.
25625 * loader/i386/ieee1275/linux.c: Likewise.
25626 * loader/i386/linux.c: Likewise.
25627 * loader/i386/multiboot.c: Likewise.
25628 * loader/i386/pc/linux.c: Likewise.
25629 * loader/i386/pc/multiboot2.c: Likewise.
25630 * loader/i386/xnu.c: Likewise.
25631 * loader/ieee1275/multiboot2.c: Likewise.
25632 * loader/macho.c: Likewise.
25633 * loader/machoXX.c: Likewise.
25634 * loader/multiboot2.c: Likewise.
25635 * loader/multiboot_loader.c: Likewise.
25636 * loader/powerpc/ieee1275/linux.c: Likewise.
25637 * loader/sparc64/ieee1275/linux.c: Likewise.
25638 * loader/xnu.c: Likewise.
25639 * loader/xnu_resume.c: Likewise.
25640 * mmap/i386/pc/mmap.c: Likewise.
25641 * normal/menu_viewer.c: Likewise.
25642 * partmap/acorn.c: Likewise.
25643 * partmap/amiga.c: Likewise.
25644 * partmap/apple.c: Likewise.
25645 * script/lexer.c: Likewise.
25646 * term/gfxterm.c: Likewise.
25647 * term/i386/pc/serial.c: Likewise.
25648 * term/i386/pc/vga.c: Likewise.
25649 * term/ieee1275/ofconsole.c: Likewise.
25650 * term/terminfo.c: Likewise.
25651 * video/bitmap.c: Likewise.
25652 * video/efi_gop.c: Likewise.
25653 * video/efi_uga.c: Likewise.
25654 * video/fb/video_fb.c: Likewise.
25655 * video/i386/pc/vbe.c: Likewise.
25656 * video/readers/tga.c: Likewise.
25657 * video/video.c: Likewise.
25658
25659 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25660
25661 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25662 * commands/lspci.c: Likewise.
25663 * commands/probe.c: Likewise.
25664 * commands/xnu_uuid.c: Likewise.
25665 * conf/i386-coreboot.rmk: Likewise.
25666 * conf/i386-efi.rmk: Likewise.
25667 * conf/i386-ieee1275.rmk: Likewise.
25668 * conf/i386-pc.rmk: Likewise.
25669 * conf/powerpc-ieee1275.rmk: Likewise.
25670 * conf/sparc64-ieee1275.rmk: Likewise.
25671 * conf/x86_64-efi.rmk: Likewise.
25672 * fs/i386/pc/pxe.c: Likewise.
25673 * gettext/gettext.c: Likewise.
25674 * include/grub/efi/graphics_output.h: Likewise.
25675 * include/grub/i386/pc/memory.h: Likewise.
25676 * kern/env.c: Likewise.
25677 * kern/i386/qemu/startup.S: Likewise.
25678 * lib/i386/pc/biosnum.c: Likewise.
25679 * lib/i386/relocator.c: Likewise.
25680 * lib/i386/relocator_asm.S: Likewise.
25681 * lib/relocator.c: Likewise.
25682 * loader/i386/bsd.c: Likewise.
25683 * loader/i386/multiboot.c: Likewise.
25684 * loader/i386/pc/chainloader.c: Likewise.
25685 * loader/i386/xnu.c: Likewise.
25686 * loader/xnu.c: Likewise.
25687 * normal/main.c: Likewise.
25688 * normal/menu_text.c: Likewise.
25689 * util/getroot.c: Likewise.
25690 * util/grub-mkconfig_lib.in: Likewise.
25691 * util/grub.d/00_header.in: Likewise.
25692 * util/i386/pc/grub-mkimage.c: Likewise.
25693 * util/mkisofs/eltorito.c: Likewise.
25694 * util/mkisofs/exclude.h: Likewise.
25695 * util/mkisofs/hash.c: Likewise.
25696 * util/mkisofs/iso9660.h: Likewise.
25697 * util/mkisofs/joliet.c: Likewise.
25698 * util/mkisofs/mkisofs.c: Likewise.
25699 * util/mkisofs/mkisofs.h: Likewise.
25700 * util/mkisofs/multi.c: Likewise.
25701 * util/mkisofs/name.c: Likewise.
25702 * util/mkisofs/rock.c: Likewise.
25703 * util/mkisofs/tree.c: Likewise.
25704 * util/mkisofs/write.c: Likewise.
25705 * video/efi_gop.c: Likewise.
25706
25707 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25708
25709 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25710 size counting.
25711
25712 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25713
25714 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25715 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25716
25717 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25718
25719 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25720 (GRUB_MOD_INIT(memrw)): Update help line.
25721
25722 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25723
25724 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25725 Use grub_extcmd_t. All users updated.
25726 (options): New variable.
25727 (grub_cmd_read): Restructure for readability. Support "-v" option.
25728 (grub_cmd_write): Restructure for readability.
25729
25730 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25731
25732 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25733
25734 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25735
25736 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25737 with the actual contents of the correspondending make variable.
25738 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25739 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25740 specifying `*.lst' and `efiemu??.o'
25741
25742 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25743
25744 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25745 after function name.
25746 Noticed by Rene Engelhard <rene@debian.org>.
25747
25748 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25749
25750 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25751 (options): New variable.
25752 (iospace): Likewise.
25753 (grub_lspci_iter): List IO spaces if "-i" was given.
25754 (grub_cmd_lspci): Parse options.
25755 (GRUB_MOD_INIT(lspci)): Use extcmd.
25756 (GRUB_MOD_FINI(lspci)): Likewise.
25757
25758 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25759
25760 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25761 `function' keyword.
25762 Patch by Tony Mancill <tmancill@debian.org>.
25763
25764 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25765
25766 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25767 (grub_uhci_portstatus): Likewise.
25768 (grub_uhci_portstatus): Add necessary delay.
25769 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
25770
25771 2009-12-21 Carles Pina i Estany <carles@pina.cat>
25772
25773 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25774 (GRUB_MOD_INIT): Likewise.
25775 * commands/boot.c (GRUB_MOD_INIT): Likewise.
25776 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25777 * commands/echo.c (options): Fix capitalizations and/or full stops.
25778 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25779 (enable_rom_area): Likewise.
25780 (GRUB_MOD_INIT): Likewise.
25781 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25782 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25783 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25784 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25785 * commands/hexdump.c (options): Likewise.
25786 * commands/i386/cpuid.c (options): Likewise.
25787 (GRUB_MOD_INIT): Likewise.
25788 * commands/i386/pc/drivemap.c (options): Likewise.
25789 (GRUB_MOD_INIT): Likewise.
25790 * commands/i386/pc/halt (options): Likewise.
25791 (GRUB_MOD_INIT): Likewise.
25792 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25793 * commands/i386/pc/pxecmd.c (options): Likewise.
25794 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25795 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25796 * commands/keystatus.c (options): Likewise.
25797 (GRUB_MOD_INIT): Likewise.
25798 * commands/loadenv.c (options): Likewise.
25799 * commands/ls.c (options): Likewise.
25800 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25801 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25802 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25803 * commands/parttool.c (helpmsg): Likewise.
25804 * commands/probe.c (options): Likewise.
25805 * commands/read.c (GRUB_MOD_INIT): Likewise.
25806 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25807 * commands/search.c (options): Likewise.
25808 * commands/sleep.c (options): Likewise.
25809 * commands/test.c (GRUB_MOD_INIT): Likewise.
25810 * commands/true.c (GRUB_MOD_INIT): Likewise.
25811 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25812 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25813 * lib/arg.c (help_options): Likewise.
25814 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25815 `$(XGETTEXT)'.
25816 * po/POTFILES: Add `commands/loadenv.c'.
25817
25818 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
25819
25820 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
25821 instead of specifying them explicit.
25822
25823 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25824
25825 * NEWS: Add grub-probe support for GNU/Hurd.
25826
25827 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25828
25829 * NEWS: gettext was added after 1.97.
25830
25831 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25832
25833 * util/mkisofs/msdos_partition.h: New file (based on
25834 include/grub/msdos_partition.h).
25835 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25836 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25837 (ld_options, main): Recognize --protective-msdos-label.
25838 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25839 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25840 (padblock_write): If `use_protective_msdos_label' is set, patch a
25841 protective DOS-style label in the output image.
25842
25843 * util/grub-mkrescue.in: Use --protective-msdos-label.
25844
25845 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25846
25847 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25848 boot.
25849
25850 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25851
25852 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25853 variables.
25854 (ld_options, main): Recognize `--embedded-boot'.
25855 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25856 declarations.
25857 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25858 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25859 (padblock_write): Likewise. Rewrite to support embedded boot image.
25860
25861 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25862 for BIOS-based disk boot instead of only ElTorito.
25863
25864 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25865
25866 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25867 build (not needed for bootstrap).
25868
25869 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25870
25871 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25872 from i386-pc build (not needed for bootstrap).
25873 Rewrite a pair of strings.
25874
25875 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25876
25877 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25878
25879 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
25880
25881 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25882
25883 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25884
25885 * kern/env.c (grub_env_context_open): Mark exported variable for
25886 reexport.
25887
25888 2009-12-21 Andreas Born <futur.andy@googlemail.com>
25889
25890 * kern/env.c (grub_env_export): Create nonexistent variables before
25891 exporting.
25892
25893 2009-12-20 Carles Pina i Estany <carles@pina.cat>
25894
25895 * include/grub/auth.h: Include `<grub/i18n.h>'.
25896 (GRUB_GET_PASSWORD): Gettextizze string.
25897 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25898 menu_text.c.
25899 (grub_utf8_to_ucs4_alloc): Fix indentation.
25900 (grub_print_ucs4): Likewise.
25901 (grub_getstringwidth): Likewise.
25902 (print_message_indented): New declaration.
25903 * normal/auth.c: Include `<grub/i18n.h>'.
25904 (grub_auth_check_authentication): Gettexttize string.
25905 * normal/cmdline.c: Include `<grub/i18n.h>'.
25906 (grub_cmdline_get): Gettextizze.
25907 * normal/color.c: Include `<grub/i18n.h>'.
25908 (grub_parse_color_name_pair): Gettexttize strings.
25909 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25910 string (use `print_message_indented').
25911 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25912 `include/grub/normal.h'.
25913 (print_message_indented): Renamed to ...
25914 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25915 used in normal/main.c).
25916 (print_message): Use `grub_print_message_indented' instead of
25917 `print_message_indented'.
25918 (print_timeout): Likewise.
25919 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25920 (grub_normal_print_device_info): Gettexttize strings.
25921 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25922
25923 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25924
25925 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25926 of arguments. Return number of tokens and not arguments. All users
25927 updated.
25928
25929 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25930
25931 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25932 non-MSDOS paritions.
25933
25934 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25935
25936 * include/grub/types.h (UNUSED): Removed since it conflicts with
25937 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25938 Reported by Grégoire Sutre.
25939
25940 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25941
25942 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25943 (grub_print_ucs4_alloc): Likewise.
25944 (grub_getstringwidth): Likewise.
25945 * normal/main.c (grub_normal_init_page): Gettextize version string.
25946 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25947 (getstringwidth): Renamed to ...
25948 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25949 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25950 (grub_print_ucs4): Remove `static' qualifer (now used in
25951 normal/main.c).
25952 * po/POTFILES: Add normal/main.c.
25953
25954 2009-12-19 Carles Pina i Estany <carles@pina.cat>
25955
25956 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25957 (print_message_indented): Add `margin_left' and `margin_right'
25958 parameters.
25959 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25960 strings.
25961 (print_timeout): Use `print_message_indented' to print the message.
25962 Deletes `second_stage' parameter.
25963 (run_menu): Update `print_timeout' calls.
25964
25965 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25966
25967 Fix console palette on OpenFirmware.
25968
25969 * term/ieee1275/ofconsole.c (MAX): Removed.
25970 (colors): Redone based on VGA palette.
25971 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25972 colors are supported.
25973 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25974
25975 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25976
25977 Fix potential EfiEmu double prepare.
25978
25979 * efiemu/main.c (prepared): New variable
25980 (grub_efiemu_unload): Set prepare to '0'.
25981 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25982
25983 set_virtual_address_map support.
25984
25985 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25986 prototype.
25987 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25988 prototype.
25989 (grub_efiemu_crc32): Likewise.
25990 (grub_efiemu_crc64): Likewise.
25991 (grub_efiemu_set_virtual_address_map): Likewise.
25992 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25993 New definition.
25994 (grub_autoefi_set_virtual_address_map): Likewise.
25995 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25996 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25997 Restructure flow to accomodate it.
25998 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25999 (grub_efiemu_crc): Recompute CRC32.
26000 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26001 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26002 * efiemu/symbols.c (relocated_handle): New variable.
26003 (grub_efiemu_free_syms): Free relocated_handle.
26004 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26005 (grub_efiemu_write_sym_markers): New function.
26006 (grub_efiemu_set_virtual_address_map): Likewise.
26007
26008 Newer XNU parameters.
26009
26010 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26011 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26012 (grub_xnu_fill_devicetree): New prototype.
26013 (grub_xnu_heap_real_start): New variable.
26014 * loader/xnu.c (get_name_ptr): New function.
26015 (grub_xnu_load_driver): Fill namelen and name.
26016
26017 64-bit xnu support.
26018
26019 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26020 and 'loader/macho64.c'.
26021 * conf/i386-pc.rmk: Likewise.
26022 * conf/x86_64-efi.rmk: Likewise.
26023 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26024 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26025 * include/grub/macho.h (grub_macho_segment64): New structure.
26026 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26027 (grub_macho_size32): ... to this.
26028 (grub_macho32_get_entry_point): Renamed from ...
26029 (grub_macho_get_entry_point32): ... to this.
26030 (grub_macho_contains_macho64): New prototype.
26031 (grub_macho_size64): Likewise.
26032 (grub_macho_get_entry_point64): Likewise.
26033 (grub_macho32_load): Renamed from ...
26034 (grub_macho_load32): ... to this.
26035 (grub_macho32_filesize): Renamed from ...
26036 (grub_macho_filesize32): ... to this.
26037 (grub_macho32_readfile): Renamed from ...
26038 (grub_macho_readfile32): ... to this.
26039 (grub_macho_filesize64): New prototype.
26040 (grub_macho_readfile64): Likewise.
26041 (grub_macho_parse32): Likewise.
26042 (grub_macho_parse64): Likewise.
26043 * loader/macho.c: Split into ...
26044 * loader/machoXX.c: ... and this. Replace 32 with XX.
26045 * loader/macho32.c: New file.
26046 * loader/macho64.c: Likewise.
26047 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26048 (grub_cmd_xnu_kernel): Make 32-bit only.
26049 (grub_cmd_xnu_kernel64): New function.
26050 (grub_xnu_load_driver): Support Mach-O 64.
26051 (grub_cmd_xnu_mkext): Likewise.
26052 * util/grub.d/30_os-prober.in (osx_entry): New function.
26053 Generate entries for 64-bit boot too.
26054
26055 Eliminate ad-hoc tree format in XNU and EfiEmu.
26056
26057 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26058 * efiemu/pnvram.c: Rewritten to use environment variables.
26059 All users updated.
26060
26061 Inline utf16_to_utf8.
26062
26063 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26064 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26065 All users updated.
26066 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26067
26068 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26069 * commands/usbtest.c (grub_usb_get_string): ... move here.
26070 (usb_print_str): Fix error handling.
26071 * include/grub/usb.h (grub_usb_get_string): Remove.
26072
26073 UTF-8 to UTF-16 transformation.
26074
26075 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26076 (charset_mod_SOURCES): New variable.
26077 (charset_mod_CFLAGS): Likewise.
26078 (charset_mod_LDFLAGS): Likewise.
26079 * include/grub/utf.h: New file.
26080 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26081
26082 Support for device properties.
26083
26084 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26085 (grub_xnu_devprop_device_header): Likewise.
26086 (grub_xnu_devprop_device_descriptor): Likewise.
26087 (grub_xnu_devprop_add_device): New prototype.
26088 (grub_xnu_devprop_remove_device): Likewise.
26089 (grub_xnu_devprop_remove_property): Likewise.
26090 (grub_xnu_devprop_add_property_utf8): Likewise.
26091 (grub_xnu_devprop_add_property_utf16): Likewise.
26092 (grub_cpu_xnu_init): Likewise.
26093 (grub_cpu_xnu_fini): Likewise.
26094 (grub_cpu_xnu_unload): Likewise.
26095 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26096 (property_descriptor): Likewise.
26097 (devices): New variable.
26098 (grub_xnu_devprop_remove_property): New function.
26099 (grub_xnu_devprop_add_device): Likewise.
26100 (grub_xnu_devprop_remove_device): Likewise.
26101 (grub_xnu_devprop_add_property): Likewise.
26102 (grub_xnu_devprop_add_property_utf8): Likewise.
26103 (grub_xnu_devprop_add_property_utf16): Likewise.
26104 (hextoval): Likewise.
26105 (grub_cpu_xnu_fill_devprop): Likewise.
26106 (grub_cmd_devprop_load): Likewise.
26107 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26108 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26109 (cmd_devprop_load): New variable.
26110 (grub_cpu_xnu_init): New function.
26111 (grub_cpu_xnu_fini): Likewise.
26112 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26113 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26114 (grub_cmd_xnu_devtree): Likewise.
26115 (hextoval): New function.
26116 (unescape): Likewise.
26117 (grub_xnu_fill_devicetree): Likewise.
26118
26119 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26120 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26121
26122 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26123
26124 Workaround for broken ATI VBE.
26125
26126 * video/i386/pc/vbe.c (last_set_mode): New variable.
26127 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26128 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26129 (grub_video_vbe_setup): Don't check for reserved flag.
26130
26131 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26132
26133 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26134 the `find' command.
26135
26136 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26137
26138 UUID support for HFS.
26139
26140 * fs/hfs.c (grub_hfs_uuid): New function.
26141 (grub_hfs_fs): New value .uuid.
26142 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26143
26144 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26145
26146 Fix a segfault with parsing unknown long options.
26147
26148 * util/grub-mkrelpath.c (options): Zero terminate it.
26149
26150 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26151
26152 * include/grub/misc.h (grub_puts): New declaration.
26153 (grub_puts_): Likewise.
26154 * kern/misc.c (grub_puts): New definition.
26155 (grub_puts_): Likewise.
26156
26157 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26158
26159 * util/grub-probe.c (probe): Improve error message.
26160
26161 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26162
26163 * loader/i386/multiboot_elfxx.c
26164 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26165 initialization.
26166
26167 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26168
26169 Relocator framework
26170
26171 * loader/i386/xnu_helper.S: Removed. All users updated.
26172 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26173 (relocator_mod_SOURCES): New variable.
26174 (relocator_mod_CFLAGS): Likewise.
26175 (relocator_mod_LDFLAGS): Likewise.
26176 (relocator_mod_ASFLAGS): Likewise.
26177 * conf/x86_64.rmk: Likewise.
26178 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26179 (grub_multiboot_payload_entry_offset): Likewise.
26180 (grub_multiboot_forward_relocator): Likewise.
26181 (grub_multiboot_forward_relocator_end): Likewise.
26182 (grub_multiboot_backward_relocator): Likewise.
26183 (grub_multiboot_backward_relocator_end): Likewise.
26184 (grub_multiboot_payload_eip): New variable.
26185 (grub_multiboot_payload_orig): Likewise.
26186 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26187 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26188 * include/grub/i386/memory.h
26189 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26190 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26191 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26192 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26193 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26194 * include/grub/i386/relocator.h: New file.
26195 * include/grub/x86_64/relocator.h: Likewise.
26196 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26197 (XNU_RELOCATOR): New macro.
26198 (grub_xnu_launcher_start): Remove.
26199 (grub_xnu_launcher_end): Likewise.
26200 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26201 (grub_xnu_heap_real_start): Remove.
26202 (grub_xnu_heap_start): Change to void *. All users updated.
26203 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26204 * lib/i386/relocator.c: New file.
26205 * lib/i386/relocator_asm.S: Likewise.
26206 * lib/i386/relocator_backward.S: Likewise.
26207 * lib/mips/relocator.c: Likewise.
26208 * lib/mips/relocator_asm.S: Likewise.
26209 * lib/relocator.c: Likewise.
26210 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26211 (entry): Removed.
26212 (playground): Likewise.
26213 (grub_multiboot_payload_orig): New variable.
26214 (grub_multiboot_payload_dest): Likewise.
26215 (grub_multiboot_payload_size): Likewise.
26216 (grub_multiboot_payload_eip): Likewise.
26217 (grub_multiboot_payload_esp): Likewise.
26218 (grub_multiboot_boot): Use grub_relocator32_boot.
26219 (grub_multiboot_unload): Free relocators.
26220 (grub_multiboot): Setup stack. Use relocators.
26221 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26222 (grub_multiboot_load_elfXX): Use relocators.
26223 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26224 (grub_multiboot_payload_size): Likewise.
26225 (grub_multiboot_payload_dest): Likewise.
26226 (grub_multiboot_payload_entry_offset): Likewise.
26227 (grub_multiboot_forward_relocator): Likewise.
26228 (grub_multiboot_backward_relocator): Likewise.
26229 (grub_multiboot_real_boot): Likewise.
26230 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26231 (grub_xnu_entry_point): Likewise.
26232 (grub_xnu_arg1): Likewise.
26233 (grub_xnu_stack): Likewise.
26234 (grub_xnu_launch): Removed.
26235 (grub_xnu_boot_resume): New function.
26236 (grub_xnu_boot): Use relocators.
26237 * loader/i386/xnu_helper.S: Removed.
26238 * loader/xnu.c (grub_xnu_heap_start): New variable.
26239 (grub_xnu_heap_size): Likewise.
26240 (grub_xnu_heap_malloc): Use relocators.
26241 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26242
26243 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26244
26245 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26246 anything.
26247
26248 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26249
26250 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26251 GRUB_ERR_NONE before calling grub_env_set.
26252
26253 2009-12-12 Robert Millan <rmh@aybabtu.com>
26254
26255 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26256 * genmk.rb (video): New variable.
26257 (CLEANFILES, VIDEOFILES): Add #{video}.
26258 (#{video}): New target rule.
26259 * genvideolist.sh: New file.
26260 * Makefile.in (pkglib_DATA): Add video.lst.
26261 (video.lst): New target rule.
26262 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26263 `video.lst'.
26264 * util/grub.d/30_os-prober.in: Replace `vbe' with
26265 ${GRUB_VIDEO_BACKEND}.
26266
26267 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26268
26269 * THANKS: Add David Miller.
26270
26271 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26272
26273 libpciaccess support.
26274
26275 * Makefile.in (LIBPCIACCESS): New variable.
26276 (enable_grub_emu_pci): Likewise.
26277 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26278 util/pci.c and commands/lspci.c.
26279 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26280 * configure.ac (grub-emu-pci): New option.
26281 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26282 (grub_pci_device_unmap_range): Likewise.
26283 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26284 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26285 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26286 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26287 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26288 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26289 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26290 * include/grub/pciutils.h: New file.
26291 * util/pci.c: Likewise.
26292
26293 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26294
26295 * util/misc.c: Don't include <errno.h> twice.
26296
26297 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26298
26299 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26300 name in an error message.
26301 (grub_biosdisk_rw): Likewise.
26302
26303 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26304
26305 Eliminate NTFS 4Gib barrier.
26306
26307 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26308 (read_run_data): Likewise.
26309 (grub_ntfs_read_run_list): Likewise.
26310 (grub_ntfs_read_block): Likewise.
26311 (grub_ntfs_iterate_dir): Likewise.
26312 (read_mft): Likewise.
26313 (read_data): Likewise.
26314 Use COM_LOG_LEN.
26315 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26316 to avoid 64-bit division
26317 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26318 (grub_ntfs_rlst): Use grub_disk_addr_t.
26319
26320 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26321
26322 Eliminate grub-fstest 4Gib barrier.
26323
26324 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26325 (read_file): Fix error reporting.
26326
26327 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26328
26329 Eliminate hexdump 4Gib barrier.
26330
26331 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26332 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26333
26334 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26335
26336 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26337 Fixes amarsh bug.
26338
26339 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26340
26341 Remove miscellaneous files in distclean target.
26342
26343 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26344
26345 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26346
26347 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26348 if they're already set. This resolves the conflict between my
26349 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26350 fixing the --grub-probe option again.
26351 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26352 change on 2009-10-06, so that we now once again source
26353 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26354
26355 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26356
26357 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26358 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26359 `util/devicemap.c'.
26360
26361 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26362
26363 * include/grub/misc.h (grub_printf_): New declaration.
26364 * kern/misc.c (grub_printf_): New definition.
26365 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26366 instead of `grub_printf' and `_'.
26367 * normal/menu_entry.c (store_completion): Likewise.
26368 (run): Likewise.
26369 (grub_menu_entry_run): Likewise.
26370 * normal/menu_text.c (grub_wait_after_message): Likewise.
26371 (notify_booting): Likewise.
26372 (notify_fallback): Likewise.
26373 (notify_execution_failure): Likewise.
26374
26375 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26376
26377 * configure.ac: Check for vasprintf.
26378 * util/misc.c (asprintf): Move allocation from here ...
26379 (vasprintf): ... to here. New function.
26380 (xasprintf): New function.
26381 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26382 prototypes.
26383 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26384 * util/grub-mkfont.c (write_font): Likewise.
26385 * util/grub-probe.c (probe): Likewise.
26386 * util/hostdisk.c (make_device_name): Likewise.
26387
26388 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26389
26390 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26391 anything even prefixed with 'cdrom' as a cdrom.
26392
26393 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26394
26395 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26396 mount points.
26397
26398 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26399
26400 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26401 grub_gettext_msg_list.
26402 (grub_gettext_gettranslation_from_position): Return const char *
26403 and not char *.
26404 (grub_gettext_translate): Add the translated strings into a list,
26405 returns from the list if existing there.
26406 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26407 (grub_gettext_delete_list): Delete the list.
26408 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26409 lang environment variable is changed.
26410 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26411
26412 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26413
26414 Rename kernel.mod to kernel.img.
26415
26416 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26417 (kernel_mod_EXPORTS): Rename to ...
26418 (kernel_img_EXPORTS): ... this.
26419 (kernel_mod_SOURCES): Rename to ...
26420 (kernel_img_SOURCES): ... this.
26421 (kernel_mod_HEADERS): Rename to ...
26422 (kernel_img_HEADERS): ... this. All users updated.
26423 (kernel_mod_CFLAGS): Rename to ...
26424 (kernel_img_CFLAGS): ... this.
26425 (kernel_mod_ASFLAGS): Rename to ...
26426 (kernel_img_ASFLAGS): ... this.
26427 (kernel_mod_LDFLAGS): Rename to ...
26428 (kernel_img_LDFLAGS): ... this.
26429 * conf/x86_64-efi.rmk: Likewise.
26430 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26431 (read_kernel_image): ... this. All users updated.
26432 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26433
26434 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26435
26436 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26437 (print_spaces): New function.
26438 (grub_print_ucs4): New function.
26439 (getstringwidth): New function.
26440 (print_message_indented): New function.
26441 (print_message): Gettexttize strings using print_message_indented.
26442 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26443 width.
26444 (get_entry_number): Gettextize and uses dynamic terminal width.
26445 (notify_booting, notify_fallback, notify_execution_failure):
26446 Gettextize.
26447 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26448 string.
26449 (run): Likewise.
26450 (grub_menu_entry_run): Likewise.
26451 * PO/POTFILES: Add normal/menu_entry.c.
26452
26453 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26454
26455 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26456
26457 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26458
26459 * util/grub-install.in: Install gettext .mo files.
26460 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26461
26462 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26463
26464 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26465 grub_dprintf.
26466
26467 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26468
26469 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26470 non-firmware-dependant one in realmode.S takes precedence.
26471
26472 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26473
26474 * commands/halt.c: Replace misc arch-specific headers with
26475 `<grub/misc.h>'.
26476 * commands/reboot.c: Likewise.
26477 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26478 `<grub/misc.h>'.
26479 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26480 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26481 (kernel_img_SOURCES): ... to here.
26482
26483 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26484 * include/grub/i386/pc/init.h: Likewise.
26485 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26486 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26487
26488 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26489
26490 * include/grub/i386/halt.h: Remove.
26491 * include/grub/i386/reboot.h: Likewise.
26492
26493 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26494
26495 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26496
26497 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26498 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26499 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26500 "progname.h"
26501 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26502 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26503 (usage): Add missing comma in printf.
26504
26505 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26506
26507 Use the same reboot approach on i386 coreboot and qemu as we do on
26508 BIOS.
26509
26510 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26511 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26512 * kern/i386/reboot.c: Remove.
26513 * include/grub/i386/reboot.h (grub_reboot): Export function.
26514 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26515 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26516 0xf000:0xfff0 instead of 0xffff:0x0000.
26517 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26518 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26519
26520 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26521
26522 Fix $srcdir != $objdir build.
26523
26524 * Makefile.in (po/%.po): Rewrite as ...
26525 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26526
26527 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26528
26529 Fix GNU/Hurd grub-install crash.
26530 * util/grub-probe.c (probe): Try to access `path' only when it is not
26531 NULL.
26532
26533 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26534
26535 Correct module naming.
26536
26537 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26538 (GRUB_MOD_INIT(efi_uga)): ... to this
26539 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26540 (GRUB_MOD_FINI(efi_uga)): ... to this
26541 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26542 (GRUB_MOD_INIT(efi_gop)): ... to this
26543 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26544 (GRUB_MOD_FINI(efi_gop)): ... to this
26545
26546 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26547
26548 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26549 translatable.
26550 (usage): Translate `arg' strings using gettext().
26551 Thanks to Jordi Mallach for the suggestion.
26552
26553 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26554
26555 GOP support. Based on patch from Bean
26556 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26557
26558 * video/efi_gop.c: New file.
26559 * include/grub/efi/graphics_output.h: Likewise.
26560 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26561 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26562 variables.
26563 * conf/x86_64-efi.rmk: Likewise.
26564
26565 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26566
26567 Rename efi_fb to efi_uga.
26568
26569 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26570 'efi_uga.mod'.
26571 (efi_fb_mod_SOURCES): Rename this ...
26572 (efi_uga_mod_SOURCES): ... to this.
26573 (efi_fb_mod_CFLAGS): Rename this ...
26574 (efi_uga_mod_CFLAGS): ... to this.
26575 (efi_fb_mod_LDFLAGS): Rename this ...
26576 (efi_uga_mod_LDFLAGS): ... to this.
26577 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26578 'efi_uga.mod'.
26579 (efi_fb_mod_SOURCES): Rename this ...
26580 (efi_uga_mod_SOURCES): ... to this.
26581 (efi_fb_mod_CFLAGS): Rename this ...
26582 (efi_uga_mod_CFLAGS): ... to this.
26583 (efi_fb_mod_LDFLAGS): Rename this ...
26584 (efi_uga_mod_LDFLAGS): ... to this.
26585 * video/efi_fb.c: Move this ...
26586 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26587
26588 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26589
26590 * po/README: New file. Explain our PO file workflow.
26591
26592 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26593
26594 * po/ChangeLog: Remove. Move relevant entries back to ...
26595 * ChangeLog: ... here.
26596 * po/ca.po: Remove (now handled by TLP).
26597 * po/id.po: Likewise.
26598 * po/zh_CN.po: Likewise.
26599 * Makefile.in (LINGUAS): Initialize in a way that supports
26600 empty set.
26601
26602 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26603
26604 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26605 reliing on po/LINGUAS.
26606 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26607 (po/%.po): ... this.
26608
26609 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26610
26611 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26612 (main): Use `program_name' instead of nonexistent `progname'.
26613
26614 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26615
26616 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26617 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26618
26619 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26620
26621 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26622 commit.
26623 * conf/i386-efi.rmk: Likewise.
26624 * conf/i386-ieee1275.rmk: Likewise.
26625 * conf/powerpc-ieee1275.rmk: Likewise.
26626 * conf/sparc64-ieee1275.rmk: Likewise.
26627 * conf/x86_64-efi.rmk: Likewise.
26628
26629 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26630
26631 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26632
26633 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26634
26635 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26636
26637 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26638
26639 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26640 (grub_mkdevicemap_SOURCES): New variable.
26641 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26642 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26643 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26644 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26645 (grub_mkdevicemap_SOURCES): Remove.
26646 * conf/i386-efi.rmk: Likewise.
26647 * conf/i386-ieee1275.rmk: Likewise.
26648 * conf/i386-pc.rmk: Likewise.
26649 * conf/powerpc-ieee1275.rmk: Likewise.
26650 * conf/sparc64-ieee1275.rmk: Likewise.
26651 * conf/x86_64-efi.rmk: Likewise.
26652 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26653 (usage): Fix strings to use `program_name'.
26654 (main): Initialize gettext.
26655 * util/grub-editenv.c: Likewise.
26656 * util/grub-emu.c: Likewise.
26657 * util/grub-fstest.c: Likewise.
26658 * util/grub-mkdevicemap.c: Likewise.
26659 * util/grub-mkfont.c: Likewise.
26660 * util/grub-mkrelpath.c: Likewise.
26661 * util/grub-pe2elf.c: Likewise.
26662 * util/grub-probe.c: Likewise.
26663 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26664 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26665 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26666
26667 * util/misc.c: Include `"progname.h"'.
26668 (progname): Remove variable.
26669 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26670
26671 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26672
26673 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26674 printf and print a newline after the menuentry header line.
26675 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26676
26677 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26678
26679 autoconf >= 2.60 support $(localedir).
26680
26681 * INSTALL: Note that autoconf 2.60 is required.
26682 * configure.ac (AC_PREREQ): Bump to 2.60.
26683 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26684 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26685
26686 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26687
26688 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26689 aclocal is run.
26690
26691 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26692
26693 * normal/main.c (grub_normal_read_line): Fix off-by-one
26694 buffer overflow.
26695
26696 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26697
26698 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26699 "parser.grub" in grub_command_execute() call.
26700
26701 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26702
26703 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26704 * conf/i386-efi.rmk: Likewise.
26705 * conf/i386-ieee1275.rmk: Likewise.
26706 * conf/i386-pc.rmk: Likewise.
26707 * conf/powerpc-ieee1275.rmk: Likewise.
26708 * conf/sparc64-ieee1275.rmk: Likewise.
26709 * conf/x86_64-efi.rmk: Likewise.
26710 * gettext/gettex.c: Include <grub/i18n.h>.
26711 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26712 here ...
26713 * include/grub/i18n.h: ... to here
26714 * include/grub/i18n.h: ... to here.
26715 * kern/misc.c: Include <grub/i18n.h>
26716 (grub_gettext_dummy): Move above user.
26717
26718 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26719
26720 * util/Makefile.in (install-local): Convert a `for' into a normal
26721 shell expansion.
26722
26723 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26724
26725 * autogen.sh: Add automake call.
26726 * config.guess: Remove.
26727 * config.sub: Likewise.
26728 * install-sh: Likewise.
26729
26730 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26731
26732 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26733
26734 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26735
26736 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26737 function to a normal shell `for'.
26738
26739 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26740
26741 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26742
26743 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26744
26745 * util/grub-mkrelpath.c: New file.
26746 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26747 (grub_mkrelpath_SOURCES): New variable.
26748 * include/grub/util/misc.h: New function prototype.
26749 * util/misc.c (make_system_path_relative_to_its_root): New function.
26750
26751 * util/grub-mkconfig_lib.in (bindir): New variable.
26752 (grub_mkrelpath): Likewise.
26753 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26754
26755 * util/probe.c (probe): Make the file path relative to its root.
26756 Change a info message to use the GRUB path. Enable again the
26757 check if we can read the file with GRUB facilities.
26758
26759 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26760 to its root.
26761
26762 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26763
26764 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26765 platform.
26766
26767 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26768
26769 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26770 strncmp().
26771
26772 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26773
26774 * util/getroot.c (grub_util_is_dmraid): New function.
26775 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26776 devices as normal ones, not as LVM.
26777
26778 2009-11-23 Carles Pina i Estany <carles@pina.cat>
26779
26780 * conf/common.rmk: Add grub-gettext_lib target and updates
26781 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26782 LDFLAGS.
26783 * gettext/gettext.c: New file. (Reads mo files).
26784 * include/grub/file.h (grub_file_pread): New prototype.
26785 * include/grub/i18n.h (_): New prototype.
26786 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26787 prototypes.
26788 * kern/misc.c (grub_gettext_dummy): New function.
26789 * normal/menu_text.c: Include <grub/i18n.h>.
26790 * normal/menu_text.c (print_timeout): Gettexttize string.
26791 * normal/menu_text.c (print_message): Gettexttize string.
26792 * po/POTFILES: Add `normal/menu_text.c'.
26793 * po/ca.po: Add new translations.
26794 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26795 gettext module and defines locale_dir and lang in grub.cfg.
26796 * NEWS: Add gettext support.
26797
26798 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26799
26800 * util/hostdisk.c: Include `<grub/i18n.h>'.
26801 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26802 (make_device_name): Rewrite using asprintf.
26803 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26804 (find_system_device): If a device is not found, generate one just
26805 by reusing the OS path name.
26806 (read_device_map): Make it permissible for device.map not to exist.
26807
26808 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26809
26810 * script/sh/execute.c: Move from here ...
26811 * script/execute.c: ... to here. Update all users.
26812 * script/sh/function.c: Move from here ...
26813 * script/function.c: ... to here. Update all users.
26814 * script/sh/lexer.c: Move from here ...
26815 * script/lexer.c: ... to here. Update all users.
26816 * script/sh/main.c: Move from here ...
26817 * script/main.c: ... to here. Update all users.
26818 * script/sh/parser.y: Move from here ...
26819 * script/parser.y: ... to here. Update all users.
26820 * script/sh/script.c: Move from here ...
26821 * script/script.c: ... to here. Update all users.
26822
26823 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26824
26825 * configure.ac: Detect all `emu' platforms. Define
26826 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26827 --enable-grub-emu logic. Disable include/grub/machine
26828 symlink on `emu' platforms.
26829
26830 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26831 * gensymlist.sh.in: Likewise.
26832
26833 * include/grub/i386/coreboot/machine.h: Remove file.
26834 * include/grub/i386/efi/machine.h: Likewise.
26835 * include/grub/i386/ieee1275/machine.h: Likewise.
26836 * include/grub/i386/pc/machine.h: Likewise.
26837 * include/grub/i386/qemu/machine.h: Likewise.
26838 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26839 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26840 * include/grub/x86_64/efi/machine.h: Likewise.
26841
26842 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26843 * commands/halt.c: Likewise.
26844 * commands/reboot.c: Likewise.
26845 * include/grub/autoefi.h: Likewise.
26846 * include/grub/i386/at_keyboard.h: Likewise.
26847 * include/grub/i386/kernel.h: Likewise.
26848 * include/grub/i386/loader.h: Likewise.
26849 * include/grub/i386/pc/memory.h: Likewise.
26850 * kern/dl.c: Likewise.
26851 * kern/i386/coreboot/init.c: Likewise.
26852 * loader/i386/bsd.c: Likewise.
26853 * loader/i386/linux.c: Likewise.
26854 * loader/multiboot_loader.c: Likewise.
26855 * term/i386/pc/serial.c: Likewise.
26856 * term/usb_keyboard.c: Likewise.
26857
26858 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26859 `<grub/machine/machine.h>'
26860 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26861 * util/misc.c: Remove `<grub/machine/machine.h>' and
26862 `<grub/machine/time.h>'.
26863
26864 * Makefile.in (enable_grub_emu): Remove variable.
26865 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26866
26867 * conf/any-emu.rmk: New file.
26868 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26869 (grub_emu_init.c): Move from here ...
26870 * conf/any-emu.rmk: ... to here.
26871
26872 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26873 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26874 * conf/any-emu.rmk: ... to here.
26875
26876 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26877
26878 * include/grub/parser.h (grub_parser_register): Document need
26879 of `name' parameter.
26880 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26881 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26882 "sh" to "grub".
26883
26884 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26885
26886 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26887 `$(XGETTEXT)'.
26888 * include/grub/i18n.h (N_): New macro.
26889 * util/mkisofs/mkisofs.h: Likewise.
26890 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26891 around N_().
26892 (usage): Use gettext() to translate help strings when printing them.
26893
26894 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26895
26896 Based on patch from Bean
26897 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26898
26899 * video/efi_fb.c: New file.
26900 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26901 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26902 variables.
26903 * conf/x86_64-efi.rmk: Likewise.
26904
26905 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26906
26907 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26908 * util/i386/pc/grub-setup.c: Likewise.
26909
26910 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26911
26912 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26913 <hurd/fs.h>
26914 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26915 file_get_storage_info to implement grub_guess_root_device.
26916
26917 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26918
26919 * Makefile.in (target): Use make's builtin $(shell) function
26920 instead of calling directly $(SHELL) to create the locale directories,
26921 inside the $(foreach) function.
26922
26923 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26924
26925 * util/grub-mkrescue.in: Print an error and usage if output option
26926 has not been given.
26927
26928 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
26929
26930 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26931 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26932 root and /boot are on different devices.
26933
26934 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26935
26936 Fix build for srcdir != objdir.
26937
26938 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26939 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26940 $(srcdir).
26941 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26942 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26943 reference for input.
26944
26945 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26946
26947 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26948 or hardlinking it). Remove -J option, Joliet is not compatible with
26949 multiple source directories.
26950
26951 2009-11-21 Carles Pina i Estany <carles@pina.cat>
26952 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26953
26954 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26955 (process_input_dir): New function. Process an arbitrary input
26956 directory.
26957 Misc adjustments to support both "override mode" and system-wide mode.
26958
26959 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26960
26961 * configure.ac (UNIFONT_BDF): Rename to ...
26962 (FONT_SOURCE): ... this. Update all users.
26963
26964 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
26965
26966 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26967 to the list of unifont files to look for.
26968
26969 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26970
26971 Patch from Joe Auricchio <jauricchio@gmail.com>
26972 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26973 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26974 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26975
26976 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26977
26978 * Makefile.in (install-local): Add a missing backslash.
26979
26980 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
26981
26982 * include/grub/x86_64/io.h: New file.
26983
26984 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26985
26986 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26987 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26988 Include `"progname.h"'.
26989 (main): Initialize gettext.
26990 * util/i386/pc/grub-setup.c: Gettexttize.
26991 * util/i386/pc/grub-mkimage.c: Likewise.
26992
26993 * Makefile.in (po/*.po): Redefine as ...
26994 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26995
26996 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26997
26998 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26999
27000 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27001 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27002 (program_name): Remove.
27003 (main): Initialize gettext support.
27004 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27005 Include `<libintl.h>'.
27006 (_): New macro.
27007
27008 * util/mkisofs/eltorito.c: Gettexttize.
27009 * util/mkisofs/joliet.c: Likewise.
27010 * util/mkisofs/mkisofs.c: Likewise.
27011 * util/mkisofs/multi.c: Likewise.
27012 * util/mkisofs/rock.c: Likewise.
27013 * util/mkisofs/tree.c: Likewise.
27014 * util/mkisofs/write.c: Likewise.
27015
27016 * po/POTFILES: Update with new files.
27017
27018 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27019
27020 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27021 * util/mkisofs/iso9660.h: Likewise.
27022 * util/mkisofs/joliet.c: Likewise.
27023 * util/mkisofs/mkisofs.c: Likewise.
27024 * util/mkisofs/mkisofs.h: Likewise.
27025 * util/mkisofs/rock.c: Likewise.
27026 * util/mkisofs/tree.c: Likewise.
27027 * util/mkisofs/write.c: Likewise.
27028
27029 * util/mkisofs/eltorito.c (rcsid): Remove.
27030 * util/mkisofs/hash.c: Likewise.
27031 * util/mkisofs/joliet.c: Likewise.
27032 * util/mkisofs/name.c: Likewise.
27033 * util/mkisofs/rock.c: Likewise.
27034 * util/mkisofs/tree.c: Likewise.
27035 * util/mkisofs/write.c: Likewise.
27036
27037 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27038
27039 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27040 instead of static allocation.
27041 * util/mkisofs/match.h: Likewise.
27042
27043 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27044
27045 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27046 and `util/grub.d/10_linux.in'.
27047 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27048 translatable Shell files.
27049
27050 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27051
27052 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27053
27054 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27055
27056 * INSTALL: Document Automake is needed for bootstrap.
27057 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27058 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27059 Add gettext initialization.
27060 (kfreebsd_entry): Make menuentry output translatable.
27061
27062 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27063
27064 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27065 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27066 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27067 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27068 (LINGUAS): Auto-generate using `po/LINGUAS'.
27069 * po/LINGUAS: New file.
27070
27071 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27072
27073 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27074 other things).
27075 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27076 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27077 bindtextdomain() calls for gettext initialization.
27078
27079 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27080
27081 * gnulib/progname.c: New file (imported from Gnulib).
27082 * gnulib/progname.h: Likewise.
27083 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27084 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27085 (usage): Replace `progname' with `program_name'.
27086 (main): Use set_program_name() for program name initialization.
27087
27088 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27089
27090 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27091 from here ...
27092 * Makefile.in (CPPFLAGS): ... to here.
27093
27094 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27095
27096 * aclocal.m4: Move from here ...
27097 * acinclude.m4: ... to here.
27098 * autogen.sh: Add call to `aclocal'.
27099 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27100
27101 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27102
27103 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27104 (LINGUAS): New variable.
27105 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27106 (install-local): Install MO files.
27107 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27108 * include/grub/i18n.h: New file.
27109 * po/POTFILES: New file.
27110 * po/ca.po: New file.
27111 * util/grub.d/10_linux.in (bindir): New variable.
27112 Add gettext initialization.
27113 (linux_entry): Make menuentry output translatable.
27114 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27115 (usage): Make --help output translatable.
27116 (main): Initialize gettext.
27117
27118 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27119
27120 * import_gcry.py: New file (written by Vladimir with minor
27121 adjustments).
27122 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27123 ciphers.
27124 * INSTALL: Document that Python is required for bootstrap.
27125
27126 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27127
27128 Import ciphers from libgcrypt 1.4.4.
27129
27130 * lib/libgcrypt/cipher/ChangeLog
27131 * lib/libgcrypt/cipher/ac.c
27132 * lib/libgcrypt/cipher/arcfour.c
27133 * lib/libgcrypt/cipher/bithelp.h
27134 * lib/libgcrypt/cipher/blowfish.c
27135 * lib/libgcrypt/cipher/camellia-glue.c
27136 * lib/libgcrypt/cipher/camellia.c
27137 * lib/libgcrypt/cipher/camellia.h
27138 * lib/libgcrypt/cipher/cast5.c
27139 * lib/libgcrypt/cipher/cipher.c
27140 * lib/libgcrypt/cipher/crc.c
27141 * lib/libgcrypt/cipher/des.c
27142 * lib/libgcrypt/cipher/dsa.c
27143 * lib/libgcrypt/cipher/ecc.c
27144 * lib/libgcrypt/cipher/elgamal.c
27145 * lib/libgcrypt/cipher/hash-common.c
27146 * lib/libgcrypt/cipher/hash-common.h
27147 * lib/libgcrypt/cipher/hmac-tests.c
27148 * lib/libgcrypt/cipher/md.c
27149 * lib/libgcrypt/cipher/md4.c
27150 * lib/libgcrypt/cipher/md5.c
27151 * lib/libgcrypt/cipher/primegen.c
27152 * lib/libgcrypt/cipher/pubkey.c
27153 * lib/libgcrypt/cipher/rfc2268.c
27154 * lib/libgcrypt/cipher/rijndael-tables.h
27155 * lib/libgcrypt/cipher/rijndael.c
27156 * lib/libgcrypt/cipher/rmd.h
27157 * lib/libgcrypt/cipher/rmd160.c
27158 * lib/libgcrypt/cipher/rsa.c
27159 * lib/libgcrypt/cipher/seed.c
27160 * lib/libgcrypt/cipher/serpent.c
27161 * lib/libgcrypt/cipher/sha1.c
27162 * lib/libgcrypt/cipher/sha256.c
27163 * lib/libgcrypt/cipher/sha512.c
27164 * lib/libgcrypt/cipher/tiger.c
27165 * lib/libgcrypt/cipher/twofish.c
27166 * lib/libgcrypt/cipher/whirlpool.c
27167
27168 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27169
27170 Fix build for systems without error().
27171
27172 * gnulib/error.c: New file (imported from Gnulib).
27173 * gnulib/error.h: Likewise.
27174 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27175 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27176 (this variable is now used by error()).
27177
27178 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27179
27180 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27181 instead of relying that char is signed.
27182
27183 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27184
27185 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27186 blocksize different from specified.
27187 (grub_pxefs_read): Likewise.
27188
27189 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27190
27191 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27192
27193 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27194 (grub_ata_readwrite): Likewise. Update 2 format strings.
27195 (grub_atapi_read): Likewise.
27196
27197 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27198 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27199 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27200 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27201 (ata_mod_LDFLAGS): Move from here ...
27202 * conf/i386.rmk: ... to here ...
27203 * conf/x86_64-efi.rmk: ... and here.
27204 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27205 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27206
27207 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27208
27209 Relicense multiboot.h, with RMS' blessing.
27210
27211 * include/multiboot.h: Change to X11 license.
27212
27213 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27214
27215 Support --version in grub-mkisofs.
27216
27217 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27218 (OPTION_VERSION): New macro.
27219 (ld_options): Recognize --version.
27220 (usage): Move `program_name' from here ...
27221 (program_name): ... to here. Add `static' qualifier.
27222 (main): Recognize `OPTION_VERSION'.
27223
27224 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27225
27226 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27227 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27228
27229 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27230
27231 Fix help2man generation for mkisofs.
27232
27233 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27234 (usage): Send output to stdout (rather than stderr).
27235
27236 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27237
27238 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27239 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27240 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27241 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27242 (bin_SCRIPTS): Add `grub-mkfloppy'.
27243 (grub_mkfloppy_SOURCES): New variable.
27244
27245 * util/grub-mkrescue.in: New file.
27246 * util/i386/pc/grub-mkfloppy.in: New file.
27247
27248 * util/i386/coreboot/grub-mkrescue.in: Remove.
27249 * util/i386/pc/grub-mkrescue.in: Remove.
27250
27251 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27252
27253 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27254 from here ...
27255 * include/multiboot.h (struct multiboot_header): ... to here. Update
27256 all users.
27257 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27258 from here ...
27259 * include/multiboot.h (struct multiboot_info): ... to here. Update
27260 all users.
27261 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27262 from here ...
27263 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27264 Update all users.
27265 * include/grub/multiboot.h (struct grub_mod_list): Move
27266 from here ...
27267 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27268 Update all users.
27269
27270 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27271
27272 * include/multiboot2.h (multiboot_word): Rename from this ...
27273 (multiboot2_word): ... to this. Update all users.
27274 (multiboot_header): Rename from this ...
27275 (multiboot2_header): ... to this. Update all users.
27276 (multiboot_tag_header): Rename from this ...
27277 (multiboot2_tag_header): ... to this. Update all users.
27278 (multiboot_tag_start): Rename from this ...
27279 (multiboot2_tag_start): ... to this. Update all users.
27280 (multiboot_tag_name): Rename from this ...
27281 (multiboot2_tag_name): ... to this. Update all users.
27282 (multiboot_tag_module): Rename from this ...
27283 (multiboot2_tag_module): ... to this. Update all users.
27284 (multiboot_tag_memory): Rename from this ...
27285 (multiboot2_tag_memory): ... to this. Update all users.
27286 (multiboot_tag_unused): Rename from this ...
27287 (multiboot2_tag_unused): ... to this. Update all users.
27288 (multiboot_tag_end): Rename from this ...
27289 (multiboot2_tag_end): ... to this. Update all users.
27290
27291 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27292
27293 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27294 this platform we should support Multiboot1 first.
27295
27296 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27297 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27298 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27299
27300 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27301
27302 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27303 of write calls (converting them to fwrite() if they aren't already).
27304 (get_torito_desc): Likewise.
27305 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27306
27307 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27308
27309 * util/i386/pc/grub-install.in: Move from here ...
27310 * util/grub-install.in: ... to here. Update all users.
27311
27312 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27313
27314 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27315
27316 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27317
27318 Support for El Torito without floppy emulation.
27319
27320 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27321 (init_boot_catalog): Improve error handling.
27322 (get_torito_desc): Don't use floppy emulation unless requested by
27323 user. Patch boot information table when requested via
27324 `-boot-info-table'.
27325 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27326 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27327 (use_boot_info_table): New variables.
27328 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27329 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27330 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27331 `--eltorito-emul-floppy'.
27332 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27333 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27334 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27335 (use_boot_info_table, get_731): New prototypes.
27336 * util/mkisofs/write.c (get_731): New function.
27337
27338 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27339
27340 Fix the generation of the man page.
27341
27342 * util/pc/i386/grub-install.in: Source
27343 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27344
27345 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27346
27347 Large file support for grub-mkisofs.
27348
27349 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27350 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27351 (session_start): Upgrade type to `uint64_t'. Update all users.
27352 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27353 (struct directory_entry): Upgrade type of `starting_block' and
27354 `size' to `uint64_t'. Update all users.
27355 (struct deferred): Remove unused structure.
27356 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27357 Update all users.
27358 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27359 file is larger than `UINT32_MAX'.
27360 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27361 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27362 return value.
27363 (struct deferred_write): Upgrade type of `extent' and `size' to
27364 `uint64_t'. Update all users.
27365 (last_extent_written): Upgrade type to `uint64_t'. Update all
27366 users.
27367 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27368 Update all users. Upgrade type of `remain' to `int64_t' and
27369 `use' to `size_t'. Use error() to handle fread() errors.
27370 (write_files): Rely on write_one_file() rather than calling
27371 xfwrite() directly.
27372
27373 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27374
27375 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27376
27377 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27378
27379 * util/mkisofs/fnmatch.c: Remove.
27380 * util/mkisofs/getopt1.c: Likewise.
27381 * util/mkisofs/getopt.c: Likewise.
27382 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27383 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27384 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27385 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27386 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27387
27388 * configure.ac: Detect `mingw32msvc' host_os.
27389 Check for lstat(), getuid() and getgid().
27390
27391 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27392 instances of `u_char' with `uint8_t'.
27393
27394 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27395 [!HAVE_GETUID] (getuid): New function (stub).
27396 [!HAVE_GETGID] (getgid): Likewise.
27397 [!HAVE_LSTAT] (lstat): Likewise.
27398 [!S_IROTH] (S_IROTH): New macro (dummy).
27399 [!S_IRGRP] (S_IRGRP): Likewise.
27400
27401 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27402
27403 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27404 conditional expression).
27405
27406 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27407
27408 Import from Gnulib.
27409
27410 * gnulib/fnmatch.c: New file.
27411 * gnulib/fnmatch.h: Likewise.
27412 * gnulib/fnmatch_loop.c: Likewise.
27413 * gnulib/getopt.c: Likewise.
27414 * gnulib/getopt.h: Likewise.
27415 * gnulib/getopt1.c: Likewise.
27416 * gnulib/getopt_int.h: Likewise.
27417 * gnulib/gettext.h: Likewise.
27418
27419 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27420
27421 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27422 * normal/handler.c (read_handler_list): Likewise.
27423
27424 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27425
27426 Misc cleanup.
27427
27428 * kern/command.c (grub_register_command_prio): Use
27429 grub_zalloc() instead of explicitly zeroing data.
27430 * kern/list.c: Include `<grub/mm.h>'.
27431 (grub_named_list_find): Replace `0' with `NULL'.
27432 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27433 (fs_module_list): Change type to `grub_named_list_t'. Update all
27434 users.
27435 * normal/dyncmd.c (read_command_list): Add space between function
27436 call and parenthesis.
27437 * normal/handler.c (read_handler_list): Likewise.
27438
27439 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27440
27441 * normal/auth.c (punishment_delay): Moved from here ...
27442 (grub_auth_strcmp): ... to here (inside function).
27443
27444 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27445
27446 * include/grub/list.h (struct grub_named_list): Remove `const'
27447 qualifier from `name'.
27448 (struct grub_prio_list): Likewise.
27449
27450 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27451
27452 * normal/auth.c: Include `<grub/time.h>'.
27453 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27454
27455 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27456
27457 * normal/auth.c (punishment_delay): New variable.
27458 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27459 (grub_auth_check_authentication): Punish failed login attempts with
27460 an incremental (2^N) delay.
27461
27462 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27463
27464 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27465 path with $(srcdir).
27466
27467 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27468
27469 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27470
27471 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27472
27473 * util/i386/coreboot/grub-mkrescue.in: New file.
27474 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27475 variables.
27476
27477 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27478 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27479 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27480 requirements.
27481 * util/mkisofs/defaults.h: New file.
27482 * util/mkisofs/eltorito.c: Likewise.
27483 * util/mkisofs/exclude.h: Likewise.
27484 * util/mkisofs/fnmatch.c: Likewise.
27485 * util/mkisofs/getopt.c: Likewise.
27486 * util/mkisofs/getopt1.c: Likewise.
27487 * util/mkisofs/hash.c: Likewise.
27488 * util/mkisofs/include/fctldefs.h: Likewise.
27489 * util/mkisofs/include/mconfig.h: Likewise.
27490 * util/mkisofs/include/prototyp.h: Likewise.
27491 * util/mkisofs/include/statdefs.h: Likewise.
27492 * util/mkisofs/iso9660.h: Likewise.
27493 * util/mkisofs/joliet.c: Likewise.
27494 * util/mkisofs/match.c: Likewise.
27495 * util/mkisofs/match.h: Likewise.
27496 * util/mkisofs/mkisofs.c: Likewise.
27497 * util/mkisofs/mkisofs.h: Likewise.
27498 * util/mkisofs/multi.c: Likewise.
27499 * util/mkisofs/name.c: Likewise.
27500 * util/mkisofs/rock.c: Likewise.
27501 * util/mkisofs/tree.c: Likewise.
27502 * util/mkisofs/write.c: Likewise.
27503
27504 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27505
27506 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27507 being insecure.
27508
27509 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27510
27511 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27512 `grub-mkimage' (and use $0 when possible).
27513
27514 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27515
27516 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27517 error message for excessively large memory map.
27518
27519 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27520
27521 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27522 executable bit.
27523
27524 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27525
27526 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27527 message for coreboot users.
27528
27529 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27530
27531 Fix build with GNU gold.
27532
27533 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27534 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27535 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27536 link addresses.
27537 * aclocal.m4: Likewise.
27538
27539 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27540
27541 * configure.ac (AC_PREREQ): Bump to 2.59d.
27542 * INSTALL: Make it more clear when Autoconf and Ruby are
27543 needed and when to run `./autogen.sh'.
27544
27545 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27546
27547 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27548 OSes.
27549
27550 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27551
27552 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27553
27554 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27555
27556 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27557 giving it to GNU Mach.
27558
27559 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27560
27561 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27562 GNU partition number to get internal GRUB partition number.
27563
27564 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27565
27566 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27567 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27568
27569 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27570
27571 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27572 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27573 case.
27574
27575 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27576
27577 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27578
27579 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27580
27581 Fix build problem.
27582
27583 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27584 `-isystem=$(srcdir)/include'.
27585
27586 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27587
27588 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27589 checked (grub-install doesn't currently rely on it).
27590
27591 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27592
27593 Revert SVN r2660.
27594
27595 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27596 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27597 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27598 * conf/i386-ieee1275.rmk: Likewise.
27599 * conf/i386-pc.rmk: Likewise.
27600 * conf/powerpc-ieee1275.rmk: Likewise.
27601 * conf/sparc64-ieee1275.rmk: Likewise.
27602 * conf/x86_64-efi.rmk: Likewise.
27603
27604 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27605
27606 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27607
27608 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27609
27610 * include/grub/misc.h: Stop checking for APPLE_CC.
27611
27612 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27613
27614 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27615 doesn't cause an infinite call loop.
27616
27617 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27618
27619 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27620 strings.
27621
27622 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27623
27624 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27625 variable.
27626 * Makefile.in: Likewise.
27627
27628 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27629
27630 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27631
27632 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27633
27634 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27635
27636 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27637
27638 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27639
27640 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27641
27642 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27643 from here ...
27644 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27645
27646 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27647
27648 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27649 in $(MAKEINFO) invocation. This makes it clear in output that
27650 errors are being ignored.
27651
27652 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27653
27654 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27655 from here ...
27656 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27657 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27658 * conf/i386-ieee1275.rmk: Likewise.
27659 * conf/i386-pc.rmk: Likewise.
27660 * conf/powerpc-ieee1275.rmk: Likewise.
27661 * conf/sparc64-ieee1275.rmk: Likewise.
27662 * conf/x86_64-efi.rmk: Likewise.
27663
27664 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27665
27666 * util/grub-editenv.c (main): If only a command is given, use
27667 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27668 (usage): FILENAME is now optional and has a default.
27669
27670 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27671
27672 Improve grub-mkconfig performance when there are several menu
27673 entries on a single filesystem.
27674
27675 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27676 prepare_grub_to_access_device.
27677 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27678 * util/grub.d/30_os-prober.in: Likewise.
27679
27680 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27681
27682 * util/grub.d/10_freebsd.in: Remove.
27683 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27684 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27685
27686 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27687
27688 * docs/grub.cfg: Fix example usage of *BSD loaders.
27689
27690 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27691
27692 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27693 grub_util_error() call.
27694
27695 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27696
27697 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27698 `reserved_first_sector' member.
27699 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27700 `reserved_first_sector' to 1.
27701 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27702 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27703 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27704 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27705 filesystems which begin at first sector.
27706 (options): New option --skip-fs-probe.
27707 (main): Handle --skip-fs-probe and pass it to setup().
27708
27709 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27710
27711 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27712 (memset): Fix function prototype.
27713
27714 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27715 2009-10-25 Vasily Averin <vvs@parallels.com>
27716
27717 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27718 `dirent.direntlen == 0'.
27719
27720 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27721
27722 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27723 `cpio'.
27724 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27725
27726 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27727
27728 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27729 `__trampoline_setup' and `__ucmpdi2'.
27730 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27731 that libgcc provides.
27732
27733 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27734
27735 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27736 * include/grub/sparc64/libgcc.h (memset): Likewise.
27737 * include/grub/misc.h (memset, memcmp): New function prototypes.
27738
27739 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27740
27741 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27742 `cpio'.
27743 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27744
27745 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27746
27747 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27748 * docs/grub.cfg: Compensate for recent change in multiboot
27749 loader (since 2009-08-14 it won't pass filename to payload).
27750 * util/grub.d/10_hurd.in: Likewise.
27751
27752 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
27753
27754 * config.guess: Update to latest version from config git
27755 repository.
27756 * config.sub: Likewise.
27757
27758 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27759
27760 Fix build on sparc64.
27761
27762 * configure.ac: Perform checks for libgcc symbols before
27763 adding `-nostdlib' to LDFLAGS.
27764
27765 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27766
27767 Let user specify OpenBSD root device.
27768
27769 * loader/i386/bsd.c (openbsd_root): New variable.
27770 (openbsd_opts): New option 'root'.
27771 (OPENBSD_ROOT_ARG): New macro.
27772 (grub_openbsd_boot): Use 'openbsd_root'.
27773 (grub_cmd_openbsd): Fill 'openbsd_root'.
27774
27775 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27776
27777 * NEWS: Misc adjustments.
27778
27779 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27780
27781 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27782
27783 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27784
27785 * configure.ac: Bump version to 1.97.
27786
27787 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
27788
27789 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27790 -mno-3dnow on x86 architectures. Some toolchains enable these
27791 features by default, but they rely on registers that aren't enabled
27792 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27793
27794 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27795
27796 Make entry text a bit more readable.
27797
27798 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27799
27800 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27801
27802 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27803
27804 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27805
27806 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27807 operations.
27808
27809 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27810
27811 * configure.ac: Add missing dollar.
27812
27813 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27814
27815 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27816
27817 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27818 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27819 exports.
27820 * include/grub/sparc64/libgcc.h: Likewise. Use
27821 preprocessor conditionals.
27822
27823 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27824
27825 * conf/common.rmk (grub-dumpbios): Remove rule.
27826 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27827 * util/grub-dumpbios.in: Remove file.
27828
27829 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27830
27831 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27832 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27833
27834 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27835 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27836 users.
27837
27838 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27839 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27840 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27841 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27842 users.
27843
27844 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27845
27846 * term/tparm.c: Switch to GPLv3.
27847
27848 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27849
27850 * include/grub/i386/cpuid.h: Add header protection.
27851
27852 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27853
27854 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27855
27856 * include/grub/i386/cpuid.h: New file.
27857 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27858 (has_longmode): Rename to ...
27859 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27860 `static' attribute.
27861 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27862 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27863 on a CPU that doesn't implement AMD64 instruction set.
27864
27865 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27866
27867 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27868 that version.texi is rebuilt on version number changes.
27869
27870 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27871
27872 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27873 Fixes bug #27602.
27874
27875 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
27876
27877 * util/i386/pc/grub-install.in: Source
27878 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27879 that the --grub-probe option will work.
27880 * util/sparc64/ieee1275/grub-install.in: Likewise.
27881
27882 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27883
27884 * configure.ac: Bump version to 1.97~beta4.
27885
27886 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27887
27888 Resync grub-mkdevicemap in x86_64-efi.
27889
27890 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27891 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27892 `util/devicemap.c'.
27893
27894 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
27895
27896 * util/grub-editenv.c (create_envblk_file): Write new block with a
27897 .new suffix and then rename it into place, to ensure atomic
27898 creation.
27899
27900 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27901
27902 Do not automatically install headers.
27903
27904 * Makefile.in (include_DATA): Remove. Update all users.
27905
27906 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27907
27908 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27909 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27910
27911 * util/osdetect.lua: Remove.
27912 * script/lua/lauxlib.c: Likewise.
27913 * script/lua/ldebug.c: Likewise.
27914 * script/lua/grub_main.c: Likewise.
27915 * script/lua/lauxlib.h: Likewise.
27916 * script/lua/ldebug.h: Likewise.
27917 * script/lua/ltablib.c: Likewise.
27918 * script/lua/liolib.c: Likewise.
27919 * script/lua/lstrlib.c: Likewise.
27920 * script/lua/lualib.h: Likewise.
27921 * script/lua/ldo.c: Likewise.
27922 * script/lua/ldump.c: Likewise.
27923 * script/lua/ldo.h: Likewise.
27924 * script/lua/loslib.c: Likewise.
27925 * script/lua/lundump.c: Likewise.
27926 * script/lua/grub_lib.c: Likewise.
27927 * script/lua/ldblib.c: Likewise.
27928 * script/lua/lundump.h: Likewise.
27929 * script/lua/lmem.c: Likewise.
27930 * script/lua/grub_lib.h: Likewise.
27931 * script/lua/lmathlib.c: Likewise.
27932 * script/lua/lstate.c: Likewise.
27933 * script/lua/ltm.c: Likewise.
27934 * script/lua/lvm.c: Likewise.
27935 * script/lua/lmem.h: Likewise.
27936 * script/lua/lstate.h: Likewise.
27937 * script/lua/ltm.h: Likewise.
27938 * script/lua/ltable.c: Likewise.
27939 * script/lua/lvm.h: Likewise.
27940 * script/lua/llex.c: Likewise.
27941 * script/lua/lgc.c: Likewise.
27942 * script/lua/grub_lua.h: Likewise.
27943 * script/lua/loadlib.c: Likewise.
27944 * script/lua/lfunc.c: Likewise.
27945 * script/lua/lopcodes.c: Likewise.
27946 * script/lua/lparser.c: Likewise.
27947 * script/lua/ltable.h: Likewise.
27948 * script/lua/llex.h: Likewise.
27949 * script/lua/lgc.h: Likewise.
27950 * script/lua/lfunc.h: Likewise.
27951 * script/lua/lbaselib.c: Likewise.
27952 * script/lua/lopcodes.h: Likewise.
27953 * script/lua/lparser.h: Likewise.
27954 * script/lua/lzio.c: Likewise.
27955 * script/lua/linit.c: Likewise.
27956 * script/lua/lobject.c: Likewise.
27957 * script/lua/llimits.h: Likewise.
27958 * script/lua/lstring.c: Likewise.
27959 * script/lua/lzio.h: Likewise.
27960 * script/lua/lapi.c: Likewise.
27961 * script/lua/lcode.c: Likewise.
27962 * script/lua/lua.h: Likewise.
27963 * script/lua/lobject.h: Likewise.
27964 * script/lua/lstring.h: Likewise.
27965 * script/lua/lapi.h: Likewise.
27966 * script/lua/lcode.h: Likewise.
27967 * script/lua/luaconf.h: Likewise.
27968
27969 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
27970
27971 * docs/grub.texi (Command-line and menu entry commands): Document
27972 date and echo commands.
27973
27974 2009-09-24 Pavel Roskin <proski@gnu.org>
27975
27976 * include/grub/kernel.h (struct grub_module_header): Remove
27977 `grub_module_header_types'. Make `type' unsigned. Make `size'
27978 32-bit on all platforms.
27979 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27980 8-bit field. Use grub_host_to_target32() for `size'.
27981 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27982 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27983 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27984
27985 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27986
27987 Fix "lost keypress" bug in at_keyboard.
27988
27989 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27990 Checks for readyness of input buffer (without flushing it).
27991 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27992 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27993
27994 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27995
27996 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27997 size check within GRUB_MACHINE_PCBIOS section.
27998
27999 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28000
28001 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28002 return value.
28003 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28004 KEYBOARD_ISREADY check.
28005 (grub_at_keyboard_checkkey): Rename to ...
28006 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28007 Remove gratuitous cast.
28008
28009 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28010
28011 * configure.ac: Call AC_PROG_MKDIR_P.
28012 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28013 version.texi in $(builddir) rather than $(srcdir).
28014 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28015 to makeinfo's @include search path.
28016
28017 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28018
28019 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28020
28021 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28022
28023 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28024 for `*.dpkg-new'.
28025
28026 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28027
28028 Build info documentation. Some code borrowed from Automake.
28029
28030 * configure.ac: Check for makeinfo.
28031 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28032 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28033 docs/version.texi.
28034 (MOSTLYCLEANFILES): Add vti.tmp.
28035 (docs/version.texi, docs/stamp-vti): Update automatically.
28036 (docs/grub.info): Build info documentation. Use --force and ignore
28037 errors for now.
28038 (all-local): Add $(INFOS).
28039 (install-local): Install info files.
28040 (uninstall): Uninstall info files.
28041 * docs/version.texi: Remove from revision control. This file is
28042 automatically generated on build now.
28043 * gendistlist.sh: Add `*.info'.
28044
28045 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28046
28047 * kern/term.c: Fix indentation.
28048
28049 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28050
28051 * util/hostdisk.c: Fix a comment.
28052
28053 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28054
28055 Fix regression introduced in r2539.
28056
28057 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28058 to 0xA1.
28059
28060 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28061
28062 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28063 os-prober. Under normal operation, it does not print anything to
28064 stderr; if it does, we need to debug it, and throwing away stderr
28065 makes that excessively difficult.
28066
28067 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28068
28069 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28070
28071 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28072
28073 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28074 AC_LANG_PROGRAM from autoconf.
28075 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28076 prototypes (fixes warning).
28077
28078 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28079 `--disable-werror' was used.
28080
28081 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28082
28083 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28084 uninitialized `lastaddr'.
28085
28086 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28087
28088 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28089
28090 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28091
28092 * commands/test.c (get_fileinfo): Return immediately if
28093 grub_fs_probe fails.
28094
28095 2009-09-14 José Martínez <xosemp@gmail.com>
28096
28097 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28098
28099 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28100
28101 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28102 output.
28103
28104 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28105
28106 * configure.ac: Remove --enable-grub-pe2elf. Only build
28107 grub-pe2elf when needed by the build system itself.
28108 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28109
28110 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28111
28112 * configure.ac: Bump version to 1.97~beta3.
28113 * docs/version.texi: Likewise.
28114
28115 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28116
28117 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28118 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28119 from here ...
28120 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28121 (grub_linux_setup_video): ... to here (with some adjustments).
28122
28123 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28124
28125 Fix memory corruption issue (spotted by Colin Watson).
28126
28127 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28128 causing returned size to be stored in an incorrect memory location.
28129 Fix use of uninitialized value when storing the returned size.
28130
28131 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28132
28133 Change clean rules to properly remove files
28134
28135 * genmk.rb: add new clean rules
28136 * Makefile.in (clean): add the new targets
28137 (mostlyclean): likewise
28138
28139 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28140
28141 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28142 to grub_uint64_t.
28143 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28144 non-resident files.
28145
28146 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28147
28148 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28149 part of bug #27349.
28150
28151 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28152
28153 * util/grub-mkconfig.in: Make the created config mode 400 and
28154 print a warning if it fails.
28155
28156 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28157
28158 * util/grub.d/40_custom.in: Ask user to type custom entries below
28159 comment, rather than below 'exec tail' line.
28160
28161 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28162
28163 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28164 visible in grub.cfg.
28165
28166 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28167
28168 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28169 file.
28170
28171 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28172
28173 * docs/grub.cfg: Add an example menu entry for memtest86+.
28174
28175 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28176
28177 * config.guess: Update to latest version from config git.
28178 * config.sub: Likewise.
28179
28180 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28181
28182 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28183 unknown-command case. Fixes bug #27320.
28184
28185 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28186
28187 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28188 `help' if the command exists.
28189
28190 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28191
28192 * INSTALL: Require GCC 4.1.3 or later.
28193
28194 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28195
28196 * Makefile.in (RMKFILES): add i386-qemu.rmk
28197 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28198 $(srcdir)/stamp-h.in
28199
28200 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28201
28202 * util/grub-probe.c (probe): Comment out buggy codepath, which
28203 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28204 should be re-enabled after 1.97.
28205
28206 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28207
28208 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28209 find searches for.
28210
28211 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28212
28213 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28214 unnecessary calls to grub_error.
28215
28216 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28217
28218 * NEWS: Mention `keystatus' and Unicode fonts.
28219
28220 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28221
28222 * configure.ac: Bump version to 1.97~beta2.
28223 * docs/version.texi: Likewise.
28224
28225 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28226
28227 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28228 containing unwind information in some cases where it previously did
28229 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28230 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28231 discussion.
28232
28233 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28234
28235 Embedding loadenv module into grub-emu
28236
28237 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28238 commands/loadenv.c
28239 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28240 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28241 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28243 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28244 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28245
28246 2009-09-03 Magnus Granberg <zorry@ume.nu>
28247
28248 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28249 include -fPIE in the default specs.
28250 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28251 to TARGET_CFLAGS.
28252
28253 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28254
28255 * INSTALL: Note that GNU Bison 2.3 or later is required.
28256
28257 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28258
28259 * kern/i386/pc/startup.S: Fix typo.
28260
28261 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28262
28263 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28264 according to GCS.
28265
28266 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28267
28268 * docs/grub.texi (Naming convention): Describe one-based partition
28269 numbering.
28270 (Device syntax): Likewise.
28271 (File name syntax): Likewise.
28272 (Block list syntax): Likewise.
28273 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28274 menu.lst.
28275 (File name syntax): Likewise.
28276 (Command-line and menu entry commands): Document acpi, blocklist,
28277 crc, export, insmod, keystatus, ls, set, and unset commands.
28278
28279 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28280
28281 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28282 to avoid implying that only one of --shift, --ctrl, or --alt may be
28283 used.
28284
28285 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28286
28287 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28288 rather than comparing against S_IFREG, which will almost never work.
28289
28290 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28291
28292 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28293 (write_blocklists): Likewise.
28294
28295 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28296
28297 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28298 argument to grub_printf.
28299
28300 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28301
28302 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28303 non GNU test.
28304
28305 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28306
28307 * kern/file.c (grub_file_read): Spelling fix
28308
28309 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28310
28311 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28312 loading of headers in some cases.
28313
28314 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28315
28316 * configure.ac: Bump version to 1.97~beta1.
28317 * docs/version.texi: Likewise.
28318
28319 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28320
28321 * include/grub/i386/xnu.h: Add license header.
28322 include grub/err.h explicitly.
28323
28324 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28325
28326 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28327 to `ufs' in the vfs.root.mountfrom kernel parameter.
28328
28329 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28330
28331 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28332
28333 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28334 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28335
28336 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28337 `ARRAY_SIZE' macro.
28338
28339 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28340
28341 * kern/file.c (grub_file_read): Check offset.
28342 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28343 * fs/jfs.c (grub_jfs_read_file): Likewise.
28344 * fs/ntfs.c (grub_ntfs_read): Likewise.
28345 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28346 * fs/minix.c (grub_minix_read_file): Correct offset check.
28347 * fs/ufs.c (grub_ufs_read_file): Likewise.
28348
28349 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28350
28351 * term/i386/pc/console.c (bios_data_area): Cast
28352 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28353
28354 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28355
28356 1-bit optimised blitters.
28357
28358 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28359 prototype.
28360 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28361 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28362 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28363 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28364 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28365 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28366 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28367 function.
28368 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28369 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28370 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28371 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28372 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28373 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28374 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28375 when possible.
28376 * video/video.c (grub_video_get_blit_format): Return
28377 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28378
28379 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28380
28381 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28382 the first argument to grub_printf.
28383
28384 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28385 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28386
28387 Add `getkeystatus' terminal method. Add a new `keystatus' command
28388 to query it.
28389
28390 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28391 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28392 modifier key bitmasks.
28393 (struct grub_term_input): Add `getkeystatus' member.
28394 (grub_getkeystatus): Add prototype.
28395 * kern/term.c (grub_getkeystatus): New function.
28396
28397 * include/grub/i386/pc/memory.h
28398 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28399 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28400 Data Area layout.
28401 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28402 (grub_console_term_input): Set `getkeystatus' member.
28403 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28404 constants.
28405 (grub_usb_keyboard_getreport): Likewise.
28406 (grub_usb_keyboard_checkkey): Likewise.
28407 (grub_usb_keyboard_getkeystatus): New function.
28408 (grub_usb_keyboard_term): Set `getkeystatus' member.
28409
28410 * commands/keystatus.c: New file.
28411 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28412 (keystatus_mod_SOURCES): New variable.
28413 (keystatus_mod_CFLAGS): Likewise.
28414 (keystatus_mod_LDFLAGS): Likewise.
28415 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28416 commands/keystatus.c.
28417 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28418 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28419 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28421 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28422 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28423
28424 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28425
28426 Split befs.mod and afs.mod into *_be.mod and *.mod
28427
28428 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28429 (grub_fstest_SOURCES): Likewise.
28430 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28431 (afs_be_mod_SOURCES): New variable.
28432 (afs_be_mod_CFLAGS): Likewise.
28433 (afs_be_mod_LDFLAGS): Likewise.
28434 (befs_be_mod_SOURCES): Likewise.
28435 (befs_be_mod_CFLAGS): Likewise.
28436 (befs_be_mod_LDFLAGS): Likewise.
28437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28438 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28440 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28441 (grub_emu_SOURCES): Likewise.
28442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28443 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28444 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28445 * fs/afs_be.c: New file.
28446 * fs/befs_be.c: New file.
28447 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28448 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28449 (U16): Replaced with ...
28450 (grub_afs_to_cpu16): ...this. All users updated.
28451 (U32): Replaced with ...
28452 (grub_afs_to_cpu32): ...this. All users updated.
28453 (U64): Replaced with ...
28454 (grub_afs_to_cpu64): ...this. All users updated.
28455 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28456 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28457 (grub_afs_validate_sblock): Check only one endianness.
28458 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28459 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28460 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28461 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28462 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28463 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28464 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28465 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28466
28467 2009-08-26 Bean <bean123ch@gmail.com>
28468
28469 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28470 64-bit number.
28471 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28472 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28473 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28474
28475 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28476
28477 NetBSD memory map support.
28478
28479 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28480 (grub_netbsd_btinfo_mmap_header): New structure.
28481 (grub_netbsd_btinfo_mmap_entry): Likewise.
28482 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28483
28484 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28485
28486 Enable bsd.mod on coreboot.
28487
28488 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28489 (bsd_mod_SOURCES): New variable.
28490 (bsd_mod_CFLAGS): Likewise.
28491 (bsd_mod_LDFLAGS): Likewise.
28492 (bsd_mod_ASFLAGS): Likewise.
28493 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28494 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28495
28496 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28497
28498 Cleanup NetBSD root support.
28499
28500 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28501 grub_bsd_get_device.
28502 Fix typo.
28503
28504 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28505
28506 * util/grub.d/00_header.in: Move check for the video backend of
28507 gfxterm from here ...
28508 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28509 a suitable video backend.
28510
28511 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28512
28513 Fix breakage in grub-setup.
28514
28515 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28516 "msdos_partition_map".
28517
28518 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28519
28520 Fix breakage in normal/auth.c.
28521
28522 * normal/auth.c (grub_iswordseparator): New function.
28523
28524 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28525
28526 Authentication support.
28527
28528 * commands/password.c: New file.
28529 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28530 (password_mod_SOURCES): New variable.
28531 (password_mod_CFLAGS): Likewise.
28532 (password_mod_LDFLAGS): Likewise.
28533 (normal_mod_SOURCES): Add normal/auth.c.
28534 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28535 normal/auth.c.
28536 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28537 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28538 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28540 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28541 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28542 * include/grub/auth.h: New file.
28543 * include/grub/err.h (grub_err_t): New enum value
28544 GRUB_ERR_ACCESS_DENIED.
28545 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28546 'users'.
28547 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28548 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28549 users updated.
28550 * normal/auth.c: New file.
28551 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28552 (grub_cmdline_run): Don't allow to go to command line without
28553 authentication.
28554 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28555 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28556 menuentry without superuser rights.
28557 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28558 user isn't a superuser.
28559
28560 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28561
28562 Save space by inlining misc.c functions.
28563
28564 * kern/misc.c (grub_iswordseparator): Made static.
28565 * kern/misc.c (grub_strcat): Moved from here ...
28566 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28567 * kern/misc.c (grub_strncat): Moved from here ...
28568 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28569 * kern/misc.c (grub_strcasecmp): Moved from here ...
28570 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28571 * kern/misc.c (grub_strncasecmp): Moved from here ...
28572 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28573 * kern/misc.c (grub_isalpha): Moved from here ...
28574 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28575 * kern/misc.c (grub_isdigit): Moved from here ...
28576 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28577 * kern/misc.c (grub_isgraph): Moved from here ...
28578 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28579 * kern/misc.c (grub_tolower): Moved from here ...
28580 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28581
28582 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28583
28584 * script/sh/function.c (grub_script_function_find): Cut error message
28585 not to flood terminal.
28586 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28587 limit.
28588 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28589
28590 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28591
28592 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28593 `report' grub_uint8_t *.
28594 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28595 Use a 50-millisecond timeout rather than just repeating
28596 grub_usb_keyboard_getreport 50 times.
28597 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28598
28599 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28600
28601 Rename *_partition_map to part_*
28602
28603 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28604 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28605 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28606 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28607 All users updated.
28608 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28609 All users updated.
28610 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28611 * util/grub-probe.c (probe_partmap): Don't transform partition name
28612 to get module name.
28613
28614 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28615
28616 Fix OpenBSD and NetBSD support.
28617
28618 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28619 memory address conflict.
28620 (OPENBSD_MMAP_ACPI): New definition.
28621 (OPENBSD_MMAP_NVS): Likewise.
28622 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28623 and OPENBSD_MMAP_NVS.
28624 Add memory map terminator
28625 Explicit cast when calling grub_unix_real_boot.
28626 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28627
28628 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28629
28630 Let user specify NetBSD root device.
28631
28632 * loader/i386/bsd.c (netbsd_root): New variable.
28633 (netbsd_opts): New option 'root'.
28634 (NETBSD_ROOT_ARG): New macro.
28635 (grub_netbsd_boot): Use 'netbsd_root'.
28636 (grub_bsd_unload): Free 'netbsd_root'.
28637 (grub_cmd_netbsd): Fill 'netbsd_root'.
28638
28639 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28640
28641 Support for 64-bit NetBSD.
28642
28643 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28644 point when booting non-FreeBSD.
28645
28646 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28647
28648 Support --no-smp and --no-acpi for NetBSD.
28649
28650 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28651 (NETBSD_AB_NOACPI): Likewise.
28652 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28653 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28654
28655 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28656
28657 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28658 errors.
28659 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28660 errors. Call grub_error when needed.
28661
28662 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28663
28664 * commands/search.c (search_fs): Try searching without autoload first.
28665 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28666 filesystem module explicitly for faster booting.
28667
28668 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28669
28670 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28671
28672 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28673
28674 * util/grub.d/30_os-prober.in: Disable os-prober if
28675 `GRUB_DISABLE_OS_PROBER' was set to true.
28676
28677 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28678
28679 * partmap/pc.c: Rename to ...
28680 * partmap/msdos.c: ... this. Update all users.
28681 (grub_pc_partition_map): Rename to ...
28682 (grub_msdos_partition_map): ... this. Update all users.
28683
28684 * parttool/pcpart.c: Rename to ...
28685 * parttool/msdospart.c: ... this. Update all users.
28686
28687 * include/grub/pc_partition.h: Rename to ...
28688 * include/grub/msdos_partition.h: ... this. Update all users.
28689 (grub_pc_partition_bsd_entry): Rename to ...
28690 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28691 (grub_pc_partition_disk_label): Rename to ...
28692 (grub_msdos_partition_disk_label): ... this. Update all users.
28693 (grub_pc_partition_entry): Rename to ...
28694 (grub_msdos_partition_entry): ... this. Update all users.
28695 (grub_pc_partition_mbr): Rename to ...
28696 (grub_msdos_partition_mbr): ... this. Update all users.
28697 (grub_pc_partition): Rename to ...
28698 (grub_msdos_partition): ... this. Update all users.
28699 (grub_pc_partition_is_empty): Rename to ...
28700 (grub_msdos_partition_is_empty): ... this. Update all users.
28701 (grub_pc_partition_is_extended): Rename to ...
28702 (grub_msdos_partition_is_extended): ... this. Update all users.
28703 (grub_pc_partition_is_bsd): Rename to ...
28704 (grub_msdos_partition_is_bsd): ... this. Update all users.
28705
28706 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28707 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28708 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28709 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28710 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28711 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28712 (gpt_mod_LDFLAGS): Rename to ...
28713 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28714 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28715 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28716 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28717 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28718 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28719 (part_gpt_mod_LDFLAGS): ... this.
28720 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28721 `pcpart.mod' to `msdospart.mod'.
28722 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28723 to ...
28724 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28725 (msdospart_mod_LDFLAGS): ... this.
28726
28727 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28728
28729 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28730 (openbsd_opts): Likewise.
28731 (netbsd_opts): Likewise.
28732 (freebsd_flags): Added 0 terminator.
28733 (openbsd_flags): Likewise.
28734 (netbsd_flags): Likewise.
28735 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28736 (grub_cmd_freebsd): Transformed into extended command.
28737 (grub_cmd_openbsd): Likewise.
28738 (grub_cmd_netbsd): Likewise.
28739 (cmd_freebsd): Changed type to grub_extcmd_t.
28740 (cmd_openbsd): Likewise.
28741 (cmd_netbsd): Likewise.
28742 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28743 grub_cmd_openbsd as extended commands.
28744 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28745 cmd_netbsd and cmd_openbsd
28746
28747 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28748
28749 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28750
28751 2009-08-21 Pavel Roskin <proski@gnu.org>
28752
28753 * Makefile.in (install-local): When checking if a file is in the
28754 build directory, use "test -e" to detect symlinks.
28755
28756 * Makefile.in (install-local): Remove all files in
28757 $(DESTDIR)$(pkglibdir) before installing new files there.
28758
28759 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28760
28761 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28762 grub-mkelfimage.
28763
28764 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
28765
28766 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28767 explicitly specified by the user.
28768
28769 2009-08-18 Pavel Roskin <proski@gnu.org>
28770
28771 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28772 grub_uint8_t pointer for data.
28773 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28774 Likewise.
28775 * video/fb/fbutil.c: Remove unnecessary casts.
28776
28777 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28778
28779 VBE cleanup.
28780
28781 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28782 (grub_vbe_set_video_mode): Save active mode info
28783 only after setting the mode.
28784 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28785 second argument.
28786
28787 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28788
28789 Rename variables for clarity.
28790
28791 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28792 (active_vbe_mode_info): ... this. All users updated.
28793 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28794 All users updated.
28795 (initial_mode): Rename to ...
28796 (initial_vbe_mode): ... this. All users updated.
28797 (mode_in_use): Rename to ..
28798 (vbe_mode_in_use): ... this. All users updated.
28799 (mode_list): Rename to ..
28800 (vbe_mode_list): ... this. All users updated.
28801 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28802 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28803 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28804 'mode_list_size' to 'vbe_mode_list_size'.
28805 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28806 'best_mode_info' to 'best_vbe_mode_info' and
28807 'best_mode' to 'best_vbe_mode'
28808
28809 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
28810
28811 Remove duplicate grub_video_fb_get_video_ptr.
28812
28813 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28814 (grub_video_fb_get_video_ptr): ... this.
28815 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28816 * video/fb/fbutil.c: Add comment about addressing.
28817 (get_data_ptr): Rename to ...
28818 (grub_video_fb_get_video_ptr): ... this. All users updated.
28819 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28820
28821 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28822
28823 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28824 grub_dprintf() that was just added.
28825
28826 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28827
28828 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28829 (DEFAULT_VIDEO_MODE): Remove macros.
28830 (grub_linux_boot): Remove assumption that Linux has FB support,
28831 and use "text" as default video mode.
28832
28833 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28834
28835 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28836 grub_dprintf.
28837 * fs/fat.c (grub_fat_read_data): Likewise.
28838
28839 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28840
28841 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28842 payload.
28843 (grub_module): Likewise.
28844
28845 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28846
28847 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28848 mbi->cmdline but free playground.
28849
28850 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28851
28852 Handle group offset on UFS1.
28853
28854 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28855 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28856
28857 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28858
28859 Split ufs.mod into ufs1.mod and ufs2.mod.
28860
28861 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28862 (grub_fstest_SOURCES): Likewise.
28863 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28864 (ufs_mod_SOURCES): Remove.
28865 (ufs_mod_CFLAGS): Likewise.
28866 (ufs_mod_LDFLAGS): Likewise.
28867 (ufs1_mod_SOURCES): New variable.
28868 (ufs1_mod_CFLAGS): Likewise.
28869 (ufs1_mod_LDFLAGS): Likewise.
28870 (ufs2_mod_SOURCES): New variable.
28871 (ufs2_mod_CFLAGS): Likewise.
28872 (ufs2_mod_LDFLAGS): Likewise.
28873 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28874 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28875 Likewise.
28876 (grub_emu_SOURCES): Likewise.
28877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28878 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28879 (grub_setup_SOURCES): Likewise.
28880 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28881 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28882 (grub_setup_SOURCES): Likewise.
28883 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28884 Likewise.
28885 * fs/ufs2.c: New file.
28886 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28887
28888 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28889
28890 Framebuffer split.
28891
28892 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28893 subsystem at the end.
28894 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28895 (video_fb_mod_SOURCES): New variable.
28896 (video_fb_mod_CFLAGS): Likewise.
28897 (video_fb_mod_LDFLAGS): Likewise.
28898 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28899 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28900 * video/i386/pc/vbeblit.c: Moved from here ...
28901 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28902 * video/i386/pc/vbefill.c: Moved from here ...
28903 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28904 * video/i386/pc/vbeutil.c: Moved from here ...
28905 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28906 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28907 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28908 * include/grub/i386/pc/vbefill.h: Moved from here ...
28909 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28910 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28911 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28912 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28913 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28914 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28915 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28916 (grub_video_adapter): Added 'get_info_and_fini'.
28917 (grub_video_get_info_and_fini): New prototype.
28918 (grub_video_set_mode): make modestring const char *.
28919 * loader/i386/linux.c (grub_linux_setup_video): Use
28920 grub_video_get_info_and_fini.
28921 (grub_linux_boot): Move modesetting just before booting.
28922 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28923 grub_video_get_info_and_fini.
28924 * video/i386/pc/vbe.c: Moved framebuffer part ...
28925 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28926 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28927 grub_video_fbstd_colors and grub_video_fb_set_palette.
28928 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28929 grub_video_fb_init.
28930 (grub_video_vbe_fini): Use grub_video_fb_fini.
28931 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28932 render_target and use grub_video_fb_set_active_render_target and
28933 grub_video_fb_set_palette.
28934 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28935 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28936 (grub_video_vbe_adapter): Use framebuffer.
28937 * video/video.c (grub_video_get_info_and_fini): New function.
28938 (grub_video_set_mode): Make modestring const char *.
28939 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28940 values are already initialised.
28941
28942 2009-08-14 Pavel Roskin <proski@gnu.org>
28943
28944 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28945 ABS and APPLE_CC.
28946 * boot/i386/pc/diskboot.S: Likewise.
28947 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28948 sectors allow compilation on MacOSX.
28949 * conf/i386-pc.rmk: Enable unconditional compilation of
28950 lnxboot.img.
28951
28952 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
28953
28954 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28955 * util/grub.d/00_header.in: Enter interruptible sleep if
28956 GRUB_HIDDEN_TIMEOUT is set.
28957
28958 2009-08-13 Yves Blusseau <blusseau@zetam.org>
28959
28960 * include/grub/symbol.h: Add the LOCAL macro.
28961 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28962 starting with "L_".
28963
28964 2009-08-13 Pavel Roskin <proski@gnu.org>
28965
28966 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28967 any modern compilers we support.
28968
28969 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28970 Use local labels starting with "L_" so that Apple assembler
28971 knows they are local.
28972
28973 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28974
28975 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28976 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28977 (bsd_kernel_types): ... this enum.
28978
28979 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28980 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28981 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28982
28983 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28984 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28985 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28986 messages.
28987
28988 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28989
28990 * util/grub-dumpdevtree: Moved from here ...
28991 * util/i386/efi/grub-dumpdevtree: ... to here.
28992 (hexify): New function. Converts a string to its hex version.
28993 Generate hex versions of "efi" and "device-properties" by calling
28994 hexify() on the ASCII strings rather than by hardcoding numbers.
28995
28996 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28997
28998 * fs/jfs.c: Update copyright year.
28999
29000 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29001
29002 * util/grub.d/00_header.in: Fix a comment.
29003 * util/grub.d/10_linux.in: Likewise.
29004 * util/grub.d/10_windows.in: Likewise.
29005 * util/grub.d/10_hurd.in: Likewise.
29006
29007 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29008
29009 * util/grub-mkconfig.in: Allow the user to specify the used font
29010 with GRUB_FONT.
29011
29012 2009-08-08 Pavel Roskin <proski@gnu.org>
29013
29014 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29015 available, xfs.mod needs it now.
29016
29017 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29018 the "g" modifier in sed when the intention is to strip something
29019 once. This fixes comparison of kernels with multiple dashes.
29020
29021 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29022 on it. Add missing space before closing bracket. Fix
29023 misleading formatting.
29024
29025 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29026
29027 * docs/grub.texi: Major overhaul. Remove all sections that are
29028 specific to GRUB Legacy, or mostly composed of Legacy-specific
29029 information.
29030
29031 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29032
29033 * docs/version.texi: New file. Provides version information for
29034 grub.texi.
29035
29036 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29037
29038 * docs/grub.texi: Update CVS information to SVN.
29039 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29040
29041 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29042
29043 * util/grub-mkconfig.in: Remove a wrong `fi'.
29044
29045 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29046
29047 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29048 (grub_jfs_uuid): New function.
29049 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29050
29051 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29052
29053 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29054 of it to ...
29055 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29056 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29057
29058 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29059
29060 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29061 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29062 Update all users.
29063
29064 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29065 not just "vmlinu[zx]".
29066 Moved from here ...
29067 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29068 all users.
29069
29070 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29071 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29072 all users.
29073
29074 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29075
29076 * util/grub.d/10_freebsd.in: Use an absolute device path for
29077 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29078
29079 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29080
29081 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29082 handling of multiple abstraction modules.
29083
29084 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29085
29086 Fix a bug resulting in black screen when loading Linux using a
29087 packed video mode.
29088
29089 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29090 function.
29091
29092 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29093 (grub_vbe_bios_getset_dac_palette_width): New function.
29094 (grub_vbe_bios_get_dac_palette_width)
29095 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29096 grub_vbe_bios_getset_dac_palette_width()).
29097
29098 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29099 check for return status.
29100 (grub_vbe_get_video_mode_info): When getting information for a packed
29101 mode (<= 8 bpp), obtain DAC palette width using
29102 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29103 {red,green,blue}_mark_size.
29104
29105 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29106
29107 * commands/search.c (options): Fix help output to match actual code.
29108
29109 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29110
29111 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29112 of homegrown code.
29113
29114 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29115
29116 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29117 on XFS or ReiserFS.
29118
29119 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29120
29121 Support Apple partition map with sector size different from 512 bytes.
29122
29123 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29124 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29125 and 'apart.partmap_size'.
29126
29127 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29128 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29129
29130 Fix cpuid command.
29131
29132 * commands/i386/cpuid.c (options): New variable.
29133 (grub_cmd_cpuid): Return real error.
29134 (GRUB_MOD_INIT(cpuid)): Declare options.
29135
29136 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29137
29138 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29139 valid.
29140
29141 2009-07-31 Bean <bean123ch@gmail.com>
29142
29143 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29144 log2_inode.
29145 (grub_fshelp_node): Move inode field to the end.
29146 (grub_xfs_data): Remove inode field.
29147 (grub_xfs_inode_block): Calculate inode size using sblock.
29148 (grub_xfs_inode_offset): Likewise.
29149 (grub_xfs_read_inode): Calculate inode size using sblock.
29150 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29151 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29152 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29153 to match inode size.
29154 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29155 not accessible when data is null.
29156 (grub_xfs_open): Likewise.
29157
29158 2009-07-31 Bean <bean123ch@gmail.com>
29159
29160 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29161 Don't change pv->disk if it's already set.
29162
29163 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29164 (grub_raid_register): ... here.
29165 (grub_raid_rescan): Removed.
29166
29167 * include/grub/raid.h (grub_raid_rescan): Removed.
29168
29169 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29170 (fstest): Replace grub_raid_rescan with module fini function followed
29171 by init function.
29172
29173 * util/grub-probe.c: Add include file <grub/raid.h>.
29174 (probe_raid_level): New function.
29175 (probe): Detect abstraction by walking the disk device, support two
29176 level of abstraction (LVM on RAID) when detecting partition map.
29177
29178 2009-07-31 Pavel Roskin <proski@gnu.org>
29179
29180 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29181 to grub_zalloc(), it was erroneous.
29182 Reported by Bean <bean123ch@gmail.com>
29183
29184 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29185
29186 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29187 embedding zone, not only the first one.
29188
29189 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29190
29191 * term/gfxterm.c (clear_char): New function.
29192 (grub_virtual_screen_setup): Use clear_char.
29193 (scroll_up): Likewise.
29194 (grub_virtual_screen_cls): Likewise.
29195
29196 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29197
29198 * util/deviceiter.c (get_acceleraid_disk_name): New static
29199 function.
29200 (grub_util_iterate_devices): Handle Accelraid devices.
29201 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29202
29203 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29204
29205 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29206 separator for the suggested gfxpayload string (';' collides with the
29207 parser and needs escaping).
29208
29209 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29210
29211 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29212 Clear direction flag before jumping to OS.
29213 (grub_multiboot2_real_boot): Likewise.
29214
29215 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29216
29217 * util/i386/pc/grub-install: Fix parsing of --disk-module
29218 option.
29219
29220 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29221
29222 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29223 when embedding.
29224
29225 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29226
29227 * util/grub-mkconfig.in (package_version): New variable.
29228 Use it do display the version.
29229
29230 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29231
29232 * kern/file.c (grub_file_open): Revert to previous check with
29233 grub_errno.
29234
29235 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29236
29237 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29238 from help line. It's out of sync with code.
29239
29240 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29241
29242 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29243 entries on failed boot.
29244
29245 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29246
29247 * kern/file.c (grub_file_open): Fix an error check.
29248
29249 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29250
29251 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29252 partition map couldn't be identified.
29253
29254 2009-07-23 Pavel Roskin <proski@gnu.org>
29255
29256 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29257 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29258 case of little endian words becomes just an optimization.
29259 Respect const modifier.
29260 (md5_final): Use code that doesn't depend on endianness.
29261
29262 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29263 to avoid loss of upper bits if align is unsigned and shorter
29264 than addr.
29265
29266 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29267
29268 UUID support for UFS
29269
29270 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29271 (grub_ufs_uuid): New function.
29272 (grub_ufs_fs): add .uuid
29273
29274 2009-07-21 Pavel Roskin <proski@gnu.org>
29275
29276 * kern/dl.c (grub_dl_check_header): Make static.
29277
29278 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29279
29280 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29281 add drivemap for Vista. It breaks Windows 7.
29282
29283 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29284
29285 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29286 128 bytes
29287
29288 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29289
29290 Add BFS support
29291
29292 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29293 (grub_fstest_SOURCES): Likewise.
29294 (pkglib_MODULES): Add befs.mod.
29295 (befs_mod_SOURCES): New variable.
29296 (befs_mod_CFLAGS): Likewise.
29297 (befs_mod_LDFLAGS): Likewise.
29298 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29299 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29300 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29301 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29302 (grub_setup_SOURCES): Likewise.
29303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29304 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29305 (grub_setup_SOURCES): Likewise.
29306 * fs/befs.c: New file.
29307 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29308 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29309 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29310 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29311 (B_KEY_INDEX_ALIGN): New declaration.
29312 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29313 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29314 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29315 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29316 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29317 (grub_afs_mount) [MODE_BFS]: Likewise.
29318 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29319 (grub_afs_fs): Use GRUB_AFS_FSNAME
29320 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29321 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29322 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29323 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29324
29325 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29326
29327 * util/getroot.c (find_root_device): Add support for MacOSX.
29328 * util/hostdisk.c: Likewise.
29329
29330 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29331
29332 * font/font.c (find_glyph): Check whether a font is present to avoid
29333 segmentation fault.
29334
29335 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29336
29337 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29338
29339 2009-07-20 Pavel Roskin <proski@gnu.org>
29340
29341 * configure.ac: Trim excessively wordy excuses.
29342
29343 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29344
29345 Add symlink, mtime and label support to AtheFS.
29346
29347 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29348 (grub_afs_iterate_dir): Handle symlinks.
29349 (grub_afs_open): Use grub_afs_read_symlink.
29350 (grub_afs_dir): Likewise.
29351 Pass mtime.
29352 (grub_afs_label): New function.
29353 (grub_afs_fs): Add grub_afs_label.
29354 (grub_afs_read_symlink): New function.
29355
29356 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29357
29358 Fix AtheFS support.
29359
29360 * fs/afs.c: Fix comments style.
29361 (grub_afs_blockrun): Declare as packed.
29362 (grub_afs_datastream): Likewise.
29363 (grub_afs_bnode): Likewise.
29364 (grub_afs_btree): Likewise.
29365 (grub_afs_sblock): Likewise.
29366 Declare `name' as char.
29367 (grub_afs_inode): Declare as packed.
29368 Change void *vnode to grub_uint32_t unused.
29369 (grub_afs_iterate_dir): Check that key_size is positive.
29370 (grub_afs_mount): Don't read superblock twice.
29371 (grub_afs_dir): Don't free node in case of error,
29372 grub_fshelp_find_file already handles this.
29373 (grub_afs_open): Likewise.
29374
29375 2009-07-19 Pavel Roskin <proski@gnu.org>
29376
29377 * Makefile.in: Remove LIBLZO and enable_lzo.
29378 * conf/i386-pc.rmk: Remove lzo support.
29379 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29380 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29381 support.
29382 * kern/i386/pc/lzo1x.S: Remove.
29383 * kern/i386/pc/startup.S: Remove lzo support.
29384 * util/i386/pc/grub-mkimage.c: Likewise.
29385
29386 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29387
29388 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29389 * fs/xfs.c (grub_xfs_dir): Likewise.
29390 * fs/afs.c (grub_afs_dir): Likewise.
29391 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29392 (grub_iso9660_open): Likewise.
29393 * fs/jfs.c (grub_jfs_open): Likewise.
29394 * fs/ext2.c (grub_ext2_dir): Likewise.
29395 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29396 * script/sh/lexer.c (grub_script_yylex): Likewise.
29397
29398 2009-07-16 Pavel Roskin <proski@gnu.org>
29399
29400 * configure.ac: Never add "-c" to CFLAGS.
29401
29402 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29403
29404 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29405 grub_cv_cc_efiemu should be used.
29406
29407 * configure.ac: Typo fixes.
29408
29409 * kern/mm.c (grub_zalloc): New function.
29410 (grub_debug_zalloc): Likewise.
29411 * include/grub/mm.h: Declare grub_zalloc() and
29412 grub_debug_zalloc().
29413 * util/misc.c (grub_zalloc): New function.
29414 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29415 instead of grub_malloc(), remove unneeded initializations.
29416 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29417 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29418 * commands/parttool.c (grub_cmd_parttool): Likewise.
29419 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29420 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29421 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29422 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29423 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29424 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29425 (grub_cmd_efiemu_pnvram): Likewise.
29426 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29427 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29428 (grub_iso9660_iterate_dir): Likewise.
29429 * fs/jfs.c (grub_jfs_opendir): Likewise.
29430 * fs/ntfs.c (list_file): Likewise.
29431 (grub_ntfs_mount): Likewise.
29432 * kern/disk.c (grub_disk_open): Likewise.
29433 * kern/dl.c (grub_dl_load_core): Likewise.
29434 * kern/elf.c (grub_elf_file): Likewise.
29435 * kern/env.c (grub_env_context_open): Likewise.
29436 (grub_env_set): Likewise.
29437 (grub_env_set_data_slot): Likewise.
29438 * kern/file.c (grub_file_open): Likewise.
29439 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29440 * loader/i386/multiboot.c (grub_module): Likewise.
29441 * loader/xnu.c (grub_xnu_create_key): Likewise.
29442 (grub_xnu_create_value): Likewise.
29443 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29444 (read_config_file): Likewise.
29445 * normal/menu_entry.c (make_screen): Likewise.
29446 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29447 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29448 * script/sh/script.c (grub_script_parse): Likewise.
29449 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29450 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29451 * video/readers/png.c (grub_png_output_byte): Likewise.
29452 (grub_video_reader_png): Likewise.
29453
29454 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29455
29456 Enable all targets that can be built by default
29457
29458 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29459 grub-mkfont and grub-fstest if they can be built
29460
29461 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29462
29463 Fix hang and segmentation fault in grub-emu-usb
29464
29465 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29466 * util/usb.c (grub_libusb_devices): likewise
29467 (grub_libusb_init): rename to ...
29468 (GRUB_MOD_INIT (libusb)):...this
29469 (grub_libusb_fini): rename to ..
29470 (GRUB_MOD_FINI (libusb)):...this
29471 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29472 * include/grub/disk.h (grub_raid_init): removed, it's useless
29473 (grub_raid_fini): likewise
29474 (grub_lvm_init): likewise
29475 (grub_lvm_fini): likewise
29476 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29477 by grub_init_all
29478
29479 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29480
29481 Fix libusb
29482
29483 * Makefile.in (LIBUSB): new macro
29484 * genmk.rb (Utility/print_tail): new method
29485 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29486 (top level): call util.print_tail at the end.
29487
29488 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29489
29490 Make FreeBSD accept zpool.cache
29491
29492 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29493 type is /boot/zfs/zpool.cache
29494
29495 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29496
29497 Fix 64-bit efiemu
29498
29499 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29500 correct wrong typedef
29501 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29502
29503 2009-07-15 Pavel Roskin <proski@gnu.org>
29504
29505 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29506 * kern/disk.c (struct grub_disk_cache): Likewise.
29507
29508 * commands/probe.c (options): Typo fix.
29509
29510 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29511 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29512 accordingly.
29513 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29514
29515 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29516 the end of "Error" to make the message more readable.
29517
29518 * boot/i386/pc/boot.S (kernel_segment): Remove.
29519 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29520 for destination.
29521
29522 * boot/i386/pc/boot.S (boot_version): Remove.
29523 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29524 Remove.
29525
29526 * include/grub/i386/pc/boot.h: Sort all offsets.
29527 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29528 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29529 * boot/i386/pc/boot.S: Assert location of every offset listed in
29530 include/grub/i386/pc/boot.h.
29531
29532 2009-07-13 Pavel Roskin <proski@gnu.org>
29533
29534 * include/grub/i386/coreboot/machine.h: Rename
29535 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29536 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29537 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29538
29539 * kern/dl.c: Force native word size to suppress warnings when
29540 compiling grub-emu.
29541
29542 * kern/device.c (grub_device_iterate): Change struct part_ent to
29543 hold the name, not a pointer to it. Use one grub_malloc() per
29544 partition, not two. Free partition_name if grub_malloc() fails.
29545 Set ents to NULL only before grub_partition_iterate() is called.
29546
29547 2009-07-11 Bean <bean123ch@gmail.com>
29548
29549 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29550 childname.
29551
29552 2009-07-10 Bean <bean123ch@gmail.com>
29553 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29554
29555 * kern/ieee1275/openfw.c (grub_children_iterate)
29556 (grub_devalias_iterate): Fix size evaluation for property or path
29557 strings, which was broken since r2132.
29558
29559 2009-07-07 Pavel Roskin <proski@gnu.org>
29560
29561 * commands/search.c (search_file): Merge into ...
29562 (search_fs): ... this. Accept search type as argument.
29563 (grub_cmd_search): Pass search type to search_fs().
29564
29565 * include/grub/util/console.h: New file.
29566 * util/console.c: Use it instead of grub/machine/console.h.
29567 * util/grub-emu.c: Likewise.
29568
29569 * lib/arg.c (find_long_option): Remove.
29570 (find_long): Add `len' argument, make `s' const char *.
29571 (grub_arg_parse): Parse long options in place, not in a
29572 temporary buffer.
29573
29574 2009-07-06 Pavel Roskin <proski@gnu.org>
29575
29576 * commands/search.c (search_fs): Fix potential NULL pointer
29577 dereference.
29578
29579 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29580 function pointer.
29581
29582 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29583
29584 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29585 comparison.
29586
29587 2009-07-05 Pavel Roskin <proski@gnu.org>
29588
29589 * include/grub/i386/linux.h (struct linux_kernel_params):
29590 Restore padding3, it's still needed.
29591
29592 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29593 FreeBSD.
29594 * util/osdetect.lua: Likewise.
29595
29596 2009-07-05 Bean <bean123ch@gmail.com>
29597
29598 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29599
29600 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29601 (grub_lua_getenv): Likewise.
29602 (grub_lua_setenv): Likewise.
29603 (save_errno): New function.
29604 (push_result): Likewise.
29605 (grub_lua_enum_device): Likewise.
29606 (grub_lua_enum_file): Likewise.
29607 (grub_lua_file_open): Likewise.
29608 (grub_lua_file_close): Likewise.
29609 (grub_lua_file_seek): Likewise.
29610 (grub_lua_file_read): Likewise.
29611 (grub_lua_file_getline): Likewise.
29612 (grub_lua_file_getsize): Likewise.
29613 (grub_lua_file_getpos): Likewise.
29614 (grub_lua_file_eof): Likewise.
29615 (grub_lua_file_exist): Likewise.
29616 (grub_lua_add_menu): Likewise.
29617
29618 * script/lua/grub_lua.h (isupper): New inline function.
29619 (islower): Likewise.
29620 (ispunct): Likewise.
29621 (isxdigit): Likewise.
29622 (strcspn): Change to normal function.
29623 (strpbkr): New function declaration.
29624 (memchr): Likewise.
29625
29626 * script/lua/grub_main.c (scan_str): New function.
29627 (strcspn): Likewise.
29628 (strpbrk): Likewise.
29629 (memchr): Likewise.
29630
29631 * script/lua/linit.c (lualibs): Enable the string library.
29632
29633 * util/osdetect.lua: New file.
29634
29635 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29636
29637 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29638 `capabilities' member.
29639
29640 2009-07-02 Pavel Roskin <proski@gnu.org>
29641
29642 * genparttoollist.sh: Add missing newline at the end.
29643
29644 2009-07-01 Pavel Roskin <proski@gnu.org>
29645
29646 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29647
29648 * util/hostdisk.c (open_device): Remove `const' from
29649 `sysctl_size', as sysctlbyname() can change it (in this case it
29650 doesn't actually happen).
29651
29652 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29653 using signed long int constants.
29654
29655 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29656 constant to avoid a warning on FreeBSD.
29657
29658 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29659 where it's needed.
29660
29661 * Makefile.in: Install include/grub/machine symlink.
29662
29663 * Makefile.in: When installing symlinks, use "cp -fR", which
29664 works on FreeBSD and MacOSX.
29665 From Yves Blusseau <cl7m42e02@sneakemail.com>
29666
29667 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29668 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29669
29670 * util/misc.c: Move grub_reboot() and grub_halt() ...
29671 * util/grub-emu.c: ... here. Make main_env static.
29672 * include/grub/util/misc.h: Remove main_env.
29673
29674 * kern/mm.c: Use correct format to print size_t.
29675
29676 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29677 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29678 * kern/powerpc/dl.c: Likewise.
29679 * kern/sparc64/dl.c: Likewise.
29680 * kern/x86_64/dl.c: Likewise.
29681
29682 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29683
29684 Fix grub-emu build on sparc64-ieee1275.
29685
29686 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29688
29689 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29690
29691 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29692 (grub_reboot, grub_halt): New functions.
29693
29694 * util/i386/pc/misc.c: Delete. Update all users.
29695 * util/sparc64/ieee1275/misc.c: Likewise.
29696 * util/powerpc/ieee1275/misc.c: Likewise.
29697
29698 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29699
29700 * conf/i386.rmk (setjmp_mod_SOURCES)
29701 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29702 * conf/common.rmk (setjmp_mod_SOURCES)
29703 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29704 to use $(target_cpu).
29705 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29706 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29707 * conf/powerpc-ieee1275.rmk: Likewise.
29708 * conf/sparc64-ieee1275.rmk: Likewise.
29709
29710 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29711 $(target_cpu) for kern/$(target_cpu)/dl.c.
29712 * conf/i386-efi.rmk: Likewise.
29713 * conf/i386-ieee1275.rmk: Likewise.
29714 * conf/x86_64-efi.rmk: Likewise.
29715 * conf/i386-coreboot.rmk: Likewise.
29716 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29717 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29718 kern/$(target_cpu)/cache.S.
29719 * conf/sparc64-ieee1275.rmk: Likewise.
29720
29721 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29722
29723 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29724 type to `grub_uint8_t', and adjust `padding9' accordingly.
29725
29726 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29727
29728 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29729
29730 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29731 assembly in final jump, using register constraints.
29732
29733 (grub_linux_boot): For text mode, initialize `have_vga' using
29734 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29735
29736 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29737 right before the final jump.
29738
29739 Set `video_mode' to 0x3.
29740
29741 Document initialization of `video_page', `video_mode' and
29742 `video_ega_bx'.
29743
29744 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29745
29746 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29747 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29748 and set GRUB_LINUX_FLAG_QUIET appropriately.
29749
29750 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29751
29752 Fix build on Debian / sparc.
29753
29754 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29755
29756 2009-06-28 Pavel Roskin <proski@gnu.org>
29757
29758 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29759 fix a warning.
29760
29761 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29762
29763 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29764
29765 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29766 `err'.
29767
29768 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29769
29770 Revert r2338.
29771
29772 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29773 file can't be opened. grub_file_open() is already supposed to set
29774 grub_errno / grub_errmsg appropriately.
29775 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29776
29777 2009-06-27 Pavel Roskin <proski@gnu.org>
29778 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29779
29780 * include/grub/dl.h: Include grub/elf.h.
29781 (struct grub_dl): Add symtab field.
29782 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29783 GRUB_MODULES_MACHINE_READONLY.
29784 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29785 of the header for read-only modules.
29786 (grub_dl_unload): Free mod->symtab for read-only modules.
29787 * kern/i386/dl.c: Use mod->symtab.
29788 * kern/powerpc/dl.c: Likewise.
29789 * kern/sparc64/dl.c: Likewise.
29790 * kern/x86_64/dl.c: Likewise.
29791
29792 * conf/i386-qemu.rmk: New file.
29793 * kern/i386/qemu/startup.S: Likewise.
29794 * kern/i386/qemu/mmap.c: Likewise.
29795 * boot/i386/qemu/boot.S: Likewise.
29796 * include/grub/i386/qemu/time.h: Likewise.
29797 * include/grub/i386/qemu/serial.h: Likewise.
29798 * include/grub/i386/qemu/kernel.h: Likewise.
29799 * include/grub/i386/qemu/console.h: Likewise.
29800 * include/grub/i386/qemu/boot.h: Likewise.
29801 * include/grub/i386/qemu/init.h: Likewise.
29802 * include/grub/i386/qemu/machine.h: Likewise.
29803 * include/grub/i386/qemu/loader.h: Likewise.
29804 * include/grub/i386/qemu/memory.h: Likewise.
29805
29806 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29807 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29808 [qemu] (pkglib_IMAGES): Add `boot.img'.
29809 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29810 [qemu] (boot_img_FORMAT): New variables.
29811 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29812 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29813 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29814 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29815 [qemu] (kernel_img_FORMAT): New variables.
29816
29817 * configure.ac: Recognise `i386-qemu'.
29818
29819 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29820 (for no compression).
29821 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29822 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29823 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29824 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29825 ifdefs).
29826
29827 2009-06-27 Pavel Roskin <proski@gnu.org>
29828
29829 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29830 read.
29831 * efiemu/prepare32.c: Likewise.
29832 * efiemu/prepare64.c: Likewise.
29833
29834 2009-06-26 Pavel Roskin <proski@gnu.org>
29835
29836 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29837 * include/grub/elf.h: Define symbols without "32" or "64" based
29838 on GRUB_TARGET_WORDSIZE.
29839 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29840 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29841 ELF definitions.
29842 * efiemu/loadcore64.c: Likewise.
29843 * loader/i386/bsd32.c: Likewise.
29844 * loader/i386/bsd64.c: Likewise.
29845 * kern/dl.c: Remove own ELF definitions.
29846 * util/i386/efi/grub-mkimage.c: Likewise.
29847
29848 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29849
29850 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29851 segment 0x0 unconditionally, because the reference generated by
29852 GAS is an absolute address.
29853
29854 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29855
29856 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29857 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29858
29859 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29860
29861 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29862 indexes. Check for -f explicitly.
29863 (search_file): Improve error message.
29864 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
29865
29866 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29867
29868 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29869 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29870
29871 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29872
29873 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29874 * conf/i386-ieee1275.rmk: Likewise.
29875 * conf/i386-coreboot.rmk: Likewise.
29876
29877 * kern/i386/pc/startup.S (grub_stop): Remove function.
29878 * kern/i386/ieee1275/startup.S: Likewise.
29879 * kern/i386/coreboot/startup.S: Likewise.
29880 * kern/i386/misc.S (grub_stop): New function.
29881
29882 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29883
29884 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29885 * kern/i386/realmode.S (real_to_prot): ... to here.
29886
29887 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29888
29889 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29890 with `kernel.img'.
29891 (kernel_elf_SOURCES): Rename to ...
29892 (kernel_img_SOURCES): ... this.
29893 (kernel_elf_HEADERS): Rename to ...
29894 (kernel_img_HEADERS): ... this. Update all users.
29895 (kernel_elf_ASFLAGS): Rename to ...
29896 (kernel_img_ASFLAGS): ... this.
29897 (kernel_elf_CFLAGS): Rename to ...
29898 (kernel_img_CFLAGS): ... this.
29899 (kernel_elf_LDFLAGS): Rename to ...
29900 (kernel_img_LDFLAGS): ... this.
29901 * conf/i386-coreboot.rmk: Likewise.
29902 * conf/powerpc-ieee1275.rmk: Likewise.
29903
29904 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29905 with "kernel.img".
29906
29907 2009-06-21 Pavel Roskin <proski@gnu.org>
29908
29909 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29910 to match nested functions.
29911 * loader/sparc64/ieee1275/linux.c: Likewise.
29912
29913 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29914
29915 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29916
29917 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29918 all i386 platforms.
29919
29920 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29921
29922 Fix asm file handling on ELF, and remove workarounds.
29923
29924 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
29925 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
29926 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29927 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29928
29929 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29930
29931 Load BSD ELF modules
29932
29933 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29934 and loader/i386/bsd64.c
29935 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29936 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29937 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29938 (grub_freebsd_load_elfmodule32): New declaration
29939 (grub_freebsd_load_elfmoduleobj64): Likewise
29940 (grub_freebsd_load_elf_meta32): Likewise
29941 (grub_freebsd_load_elf_meta64): Likewise
29942 (grub_freebsd_add_meta): Likewise
29943 (grub_freebsd_add_meta_module): Likewise
29944 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29945 (grub_freebsd_add_meta_module): Likewise and move module-specific
29946 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29947 (grub_cmd_freebsd): Add elf-kernel specific parts
29948 based on grub_freebsd_add_meta_module
29949 (grub_cmd_freebsd_module): Add type parsing moved from
29950 grub_freebsd_add_meta_module
29951 (grub_cmd_freebsd_module_elf): New function
29952 (cmd_freebsd_module_elf): New variable
29953 (GRUB_MOD_INIT): Register freebsd_module_elf
29954 * loader/i386/bsd32.c: New file
29955 * loader/i386/bsd64.c: Likewise
29956 * loader/i386/bsdXX.c: Likewise
29957 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29958 (grub_elf64_load): Likewise
29959 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29960 All users updated
29961 (grub_elf64_load_hook_t): Likewise
29962
29963 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
29964
29965 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29966 variable.
29967 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29968 don't write a menu entry for recovery mode.
29969
29970 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29971
29972 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29973 after it's no longer needed.
29974
29975 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29976
29977 * include/grub/i386/loader.h (grub_linux_prot_size)
29978 (grub_linux_tmp_addr, grub_linux_real_addr)
29979 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29980 GRUB_MACHINE_PCBIOS.
29981 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29982 common grub_util_info() call to ...
29983 (generate_image): ... here.
29984 Fix use of uninitialized memory, comparison of signed with
29985 unsigned integers and memory leak.
29986 Remove bogus module address message.
29987
29988 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29989
29990 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29991 grub_raid_register
29992 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29993
29994 2009-06-19 Pavel Roskin <proski@gnu.org>
29995
29996 * configure.ac: Remove stray AC_MSG_CHECKING.
29997
29998 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29999
30000 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30001
30002 2009-06-18 Pavel Roskin <proski@gnu.org>
30003
30004 * conf/common.rmk: Add fs_file.mod.
30005 * disk/fs_file.c: New file.
30006 * include/grub/disk.h (enum grub_disk_dev_id): Add
30007 GRUB_DISK_DEVICE_FILE_ID.
30008
30009 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30010
30011 Fix build with Apple's toolchain. Part 2
30012
30013 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30014 a fake start
30015
30016 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30017
30018 Fix build with Apple's toolchain. Part 1
30019
30020 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30021 for long calls
30022 * configure.ac: remove a leftover AC_MSG_RESULT
30023 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30024 Apple's toolchain
30025
30026 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30027
30028 Fix warnings
30029
30030 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30031 (decomp_block): initialize ch
30032 use grub_memcpy instead of memcpy
30033
30034 2009-06-17 Pavel Roskin <proski@gnu.org>
30035
30036 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30037 version, use declarations needed to use vga_text as the startup
30038 console.
30039
30040 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30041 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30042 the kernel.
30043 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30044 and grub_at_keyboard_fini(), it's done on module load and
30045 unload.
30046
30047 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30048
30049 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30050 file can't be found.
30051 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30052
30053 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30054
30055 Fix newline handling
30056
30057 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30058 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30059 (grub_script_yylex): don't segfault on unterminated script
30060 newline terminates command and variable
30061
30062 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30063
30064 avoid double grub_adjust_range call. Bug reported by David Simner
30065
30066 * kern/disk.c (grub_disk_write): change to raw disk access before
30067 calling disk_read
30068
30069 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30070
30071 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30072 spaces, for the benefit of help2man.
30073 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30074
30075 2009-06-16 Pavel Roskin <proski@gnu.org>
30076
30077 * kern/i386/halt.c: Include grub/machine/init.h.
30078 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30079
30080 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30081
30082 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30083 drivemap menuentry.
30084
30085 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30086
30087 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30088 `echo' command.
30089
30090 2009-06-16 Pavel Roskin <proski@gnu.org>
30091
30092 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30093 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30094 save %dx, we only need %dl and we never change it.
30095 * boot/i386/pc/cdboot.S: Don't set the root drive.
30096 * boot/i386/pc/pxeboot.S: Likewise.
30097 * include/grub/i386/pc/boot.h: Remove
30098 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30099 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30100 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30101 * kern/i386/pc/init.c (make_install_device): Remove references
30102 to grub_root_drive.
30103 * kern/i386/pc/startup.S: Likewise.
30104 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30105
30106 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30107
30108 xnu_uuid command
30109
30110 * commands/xnu_uuid.c: new file
30111 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30112 (xnu_uuid_mod_SOURCES): new variable
30113 (xnu_uuid_mod_CFLAGS): likewise
30114 (xnu_uuid_mod_LDFLAGS): likewise
30115 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30116 * conf/i386-ieee1275.rmk: likewise
30117 * conf/i386-pc.rmk: likewise
30118 * conf/powerpc-ieee1275.rmk: likewise
30119 * conf/sparc64-ieee1275.rmk: likewise
30120 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30121
30122 2009-06-16 Pavel Roskin <proski@gnu.org>
30123
30124 * configure.ac: Avoid '==' in test command, it's not portable.
30125
30126 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30127
30128 Probe command
30129
30130 * commands/probe.c: new file
30131 * conf/common.rmk (pkglib_MODULES): add probe.mod
30132 (probe_mod_SOURCES): new variable
30133 (probe_mod_CFLAGS): likewise
30134 (probe_mod_LDFLAGS): likewise
30135 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30136 * conf/i386-ieee1275.rmk: likewise
30137 * conf/i386-pc.rmk: likewise
30138 * conf/powerpc-ieee1275.rmk: likewise
30139 * conf/sparc64-ieee1275.rmk: likewise
30140
30141 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30142
30143 Fix handling of string like \"hello\" and "a
30144 b"
30145
30146 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30147 (grub_script_yylex): fix parsing of quoting, escaping and newline
30148
30149 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30150
30151 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30152 handling
30153
30154 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30155
30156 * util/grub-mkconfig.in: Fix parsing of --output option.
30157
30158 2009-06-12 Pavel Roskin <proski@gnu.org>
30159
30160 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30161 genmk.rb don't need to be generated or installed.
30162
30163 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30164
30165 * commands/i386/pc/drivemap_int13h.S: add more comments
30166
30167 2009-06-11 Pavel Roskin <proski@gnu.org>
30168
30169 * Makefile.in (uninstall): Uninstall manuals.
30170
30171 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30172 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30173 and update-grub_lib in two places.
30174 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30175
30176 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30177 a compiler warning.
30178
30179 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30180 `entry_lo' to fix variable shadowing.
30181
30182 2009-06-11 Christian Franke <franke@computer.org>
30183
30184 * kern/misc.c (__enable_execute_stack): Add missing return type
30185 to prevent gcc warning.
30186
30187 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30188
30189 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30190
30191 2009-06-11 Pavel Roskin <proski@gnu.org>
30192
30193 * Makefile.in: Don't rely on any scripts being executable.
30194 Always use $(SHELL) to run shell scripts.
30195
30196 * configure.ac: Always define ___main if using -nostdlib. This
30197 fixes tests on Cygwin.
30198
30199 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30200
30201 UDF fix
30202
30203 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30204 is in bytes and not in blocks
30205
30206 2009-06-11 Pavel Roskin <proski@gnu.org>
30207
30208 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30209 warning.
30210
30211 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30212
30213 * util/grub.d/30_os-prober.in: Fix a comment. Source
30214 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30215 to set the root device. Place drivemap command in the generated
30216 chain entry.
30217
30218 2009-06-11 Pavel Roskin <proski@gnu.org>
30219
30220 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30221 have long been resolved.
30222
30223 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30224
30225 * util/grub.d/10_linux.in: Capitalise "Linux".
30226
30227 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30228
30229 2009-06-11 Pavel Roskin <proski@gnu.org>
30230
30231 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30232 fix a gcc warning and ensure that the function won't ever exit.
30233
30234 * kern/i386/ieee1275/init.c: Add missing prototype for
30235 grub_stop_floppy().
30236
30237 * loader/ieee1275/multiboot2.c [__i386__]: Include
30238 grub/cpu/multiboot.h.
30239
30240 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30241 casts to short - they are not portable and cause warnings. Fix
30242 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30243
30244 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30245
30246 Drivemap fixes
30247
30248 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30249 new function
30250 (grub_get_root_biosnumber_saved): new variable
30251 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30252 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30253 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30254 %dx after the call if necessary
30255 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30256 (boot_mod_SOURCES): remove
30257 (boot_mod_CFLAGS): remove
30258 (boot_mod_LDFLAGS): remove
30259 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30260 (boot_mod_SOURCES): new variable
30261 (boot_mod_CFLAGS): likewise
30262 (boot_mod_LDFLAGS): likewise
30263 * conf/i386-efi.rmk: likewise
30264 * conf/i386-ieee1275.rmk: likewise
30265 * conf/i386-pc.rmk: likewise
30266 * conf/powerpc-ieee1275.rmk: likewise
30267 * conf/sparc64-ieee1275.rmk: likewise
30268 * conf/x86_64-efi.rmk: likewise
30269 * include/grub/i386/pc/biosnum.h: new file
30270 * lib/i386/pc/biosnum.c: likewise
30271 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30272 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30273 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30274
30275 2009-06-10 Pavel Roskin <proski@gnu.org>
30276
30277 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30278 Use separate variables. Read only the file size at the end, but
30279 not the checksum that we don't use.
30280
30281 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30282 Adjust all callers.
30283
30284 * kern/ieee1275/openfw.c: Remove libc includes.
30285 * kern/ieee1275/cmain.c: Likewise.
30286 * include/grub/ieee1275/ieee1275.h: Likewise.
30287
30288 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30289 compiler warnings.
30290
30291 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30292
30293 * Makefile.in: Remove all trailing whitespace.
30294 * conf/i386-pc.rmk: Likewise.
30295 * conf/powerpc-ieee1275.rmk: Likewise.
30296 * conf/sparc64-ieee1275.rmk: Likewise.
30297 * docs/grub.texi: Likewise.
30298 * docs/texinfo.tex: Likewise.
30299 * disk/fs_uuid.c: Likewise.
30300 * disk/lvm.c: Likewise.
30301 * disk/scsi.c: Likewise.
30302 * disk/ata.c: Likewise.
30303 * disk/ieee1275/ofdisk.c: Likewise.
30304 * disk/i386/pc/biosdisk.c: Likewise.
30305 * disk/host.c: Likewise.
30306 * disk/raid.c: Likewise.
30307 * disk/efi/efidisk.c: Likewise.
30308 * disk/usbms.c: Likewise.
30309 * disk/memdisk.c: Likewise.
30310 * disk/loopback.c: Likewise.
30311 * kern/powerpc/dl.c: Likewise.
30312 * kern/device.c: Likewise.
30313 * kern/dl.c: Likewise.
30314 * kern/sparc64/dl.c: Likewise.
30315 * kern/ieee1275/ieee1275.c: Likewise.
30316 * kern/term.c: Likewise.
30317 * kern/fs.c: Likewise.
30318 * kern/i386/dl.c: Likewise.
30319 * kern/i386/pc/startup.S: Likewise.
30320 * kern/i386/pc/init.c: Likewise.
30321 * kern/i386/pc/mmap.c: Likewise.
30322 * kern/i386/pc/lzo1x.S: Likewise.
30323 * kern/i386/ieee1275/init.c: Likewise.
30324 * kern/i386/realmode.S: Likewise.
30325 * kern/i386/tsc.c: Likewise.
30326 * kern/partition.c: Likewise.
30327 * kern/corecmd.c: Likewise.
30328 * kern/file.c: Likewise.
30329 * kern/efi/efi.c: Likewise.
30330 * kern/efi/init.c: Likewise.
30331 * kern/efi/mm.c: Likewise.
30332 * kern/main.c: Likewise.
30333 * kern/err.c: Likewise.
30334 * kern/env.c: Likewise.
30335 * kern/disk.c: Likewise.
30336 * kern/generic/millisleep.c: Likewise.
30337 * kern/generic/rtc_get_time_ms.c: Likewise.
30338 * kern/misc.c: Likewise.
30339 * kern/parser.c: Likewise.
30340 * genmk.rb: Likewise.
30341 * configure.ac: Likewise.
30342 * boot/i386/pc/diskboot.S: Likewise.
30343 * boot/i386/pc/pxeboot.S: Likewise.
30344 * boot/i386/pc/boot.S: Likewise.
30345 * boot/i386/pc/lnxboot.S: Likewise.
30346 * boot/i386/pc/cdboot.S: Likewise.
30347 * parttool/pcpart.c: Likewise.
30348 * video/readers/tga.c: Likewise.
30349 * video/video.c: Likewise.
30350 * video/bitmap.c: Likewise.
30351 * lib/envblk.c: Likewise.
30352 * lib/i386/setjmp.S: Likewise.
30353 * fs/xfs.c: Likewise.
30354 * fs/afs.c: Likewise.
30355 * fs/fat.c: Likewise.
30356 * fs/ntfs.c: Likewise.
30357 * fs/udf.c: Likewise.
30358 * fs/affs.c: Likewise.
30359 * fs/iso9660.c: Likewise.
30360 * fs/hfs.c: Likewise.
30361 * fs/fshelp.c: Likewise.
30362 * fs/ext2.c: Likewise.
30363 * fs/jfs.c: Likewise.
30364 * fs/reiserfs.c: Likewise.
30365 * fs/hfsplus.c: Likewise.
30366 * fs/minix.c: Likewise.
30367 * fs/cpio.c: Likewise.
30368 * fs/sfs.c: Likewise.
30369 * fs/ufs.c: Likewise.
30370 * efiemu/prepare.c: Likewise.
30371 * efiemu/loadcore_common.c: Likewise.
30372 * efiemu/runtime/efiemu.sh: Likewise.
30373 * efiemu/runtime/efiemu.S: Likewise.
30374 * efiemu/runtime/efiemu.c: Likewise.
30375 * efiemu/pnvram.c: Likewise.
30376 * efiemu/main.c: Likewise.
30377 * efiemu/i386/pc/cfgtables.c: Likewise.
30378 * efiemu/i386/loadcore64.c: Likewise.
30379 * efiemu/i386/loadcore32.c: Likewise.
30380 * efiemu/loadcore.c: Likewise.
30381 * efiemu/symbols.c: Likewise.
30382 * efiemu/mm.c: Likewise.
30383 * include/grub/autoefi.h: Likewise.
30384 * include/grub/datetime.h: Likewise.
30385 * include/grub/term.h: Likewise.
30386 * include/grub/hfs.h: Likewise.
30387 * include/grub/lvm.h: Likewise.
30388 * include/grub/i386/tsc.h: Likewise.
30389 * include/grub/i386/linux.h: Likewise.
30390 * include/grub/i386/xnu.h: Likewise.
30391 * include/grub/i386/efiemu.h: Likewise.
30392 * include/grub/i386/pc/biosdisk.h: Likewise.
30393 * include/grub/i386/pc/memory.h: Likewise.
30394 * include/grub/i386/pc/vbe.h: Likewise.
30395 * include/grub/parttool.h: Likewise.
30396 * include/grub/video.h: Likewise.
30397 * include/grub/memory.h: Likewise.
30398 * include/grub/fs.h: Likewise.
30399 * include/grub/partition.h: Likewise.
30400 * include/grub/xnu.h: Likewise.
30401 * include/grub/efi/api.h: Likewise.
30402 * include/grub/efi/pe32.h: Likewise.
30403 * include/grub/efi/memory.h: Likewise.
30404 * include/grub/multiboot.h: Likewise.
30405 * include/grub/usbdesc.h: Likewise.
30406 * include/grub/multiboot2.h: Likewise.
30407 * include/grub/acpi.h: Likewise.
30408 * include/grub/efiemu/efiemu.h: Likewise.
30409 * include/grub/disk.h: Likewise.
30410 * include/grub/ieee1275/ieee1275.h: Likewise.
30411 * include/grub/net.h: Likewise.
30412 * include/grub/machoload.h: Likewise.
30413 * include/grub/macho.h: Likewise.
30414 * include/multiboot.h: Likewise.
30415 * genmoddep.awk: Likewise.
30416 * normal/main.c: Likewise.
30417 * normal/menu_entry.c: Likewise.
30418 * normal/menu_viewer.c: Likewise.
30419 * normal/completion.c: Likewise.
30420 * normal/cmdline.c: Likewise.
30421 * normal/misc.c: Likewise.
30422 * normal/datetime.c: Likewise.
30423 * bus/usb/usbtrans.c: Likewise.
30424 * bus/usb/ohci.c: Likewise.
30425 * bus/usb/uhci.c: Likewise.
30426 * bus/usb/usb.c: Likewise.
30427 * mmap/efi/mmap.c: Likewise.
30428 * mmap/i386/pc/mmap_helper.S: Likewise.
30429 * mmap/i386/pc/mmap.c: Likewise.
30430 * mmap/i386/mmap.c: Likewise.
30431 * mmap/i386/uppermem.c: Likewise.
30432 * mmap/mmap.c: Likewise.
30433 * commands/acpi.c: Likewise.
30434 * commands/echo.c: Likewise.
30435 * commands/blocklist.c: Likewise.
30436 * commands/loadenv.c: Likewise.
30437 * commands/usbtest.c: Likewise.
30438 * commands/boot.c: Likewise.
30439 * commands/parttool.c: Likewise.
30440 * commands/search.c: Likewise.
30441 * commands/cat.c: Likewise.
30442 * commands/i386/pc/play.c: Likewise.
30443 * commands/i386/pc/drivemap.c: Likewise.
30444 * commands/i386/pc/vbeinfo.c: Likewise.
30445 * commands/i386/pc/acpi.c: Likewise.
30446 * commands/i386/pc/vbetest.c: Likewise.
30447 * commands/ls.c: Likewise.
30448 * commands/cmp.c: Likewise.
30449 * commands/test.c: Likewise.
30450 * commands/efi/acpi.c: Likewise.
30451 * commands/gptsync.c: Likewise.
30452 * commands/help.c: Likewise.
30453 * partmap/amiga.c: Likewise.
30454 * partmap/apple.c: Likewise.
30455 * partmap/acorn.c: Likewise.
30456 * partmap/pc.c: Likewise.
30457 * partmap/sun.c: Likewise.
30458 * partmap/gpt.c: Likewise.
30459 * script/sh/lexer.c: Likewise.
30460 * script/sh/function.c: Likewise.
30461 * font/font.c: Likewise.
30462 * font/font_cmd.c: Likewise.
30463 * loader/powerpc/ieee1275/linux.c: Likewise.
30464 * loader/efi/chainloader.c: Likewise.
30465 * loader/multiboot_loader.c: Likewise.
30466 * loader/macho.c: Likewise.
30467 * loader/i386/multiboot.c: Likewise.
30468 * loader/i386/linux.c: Likewise.
30469 * loader/i386/pc/linux.c: Likewise.
30470 * loader/i386/pc/multiboot2.c: Likewise.
30471 * loader/i386/pc/chainloader.c: Likewise.
30472 * loader/i386/pc/xnu.c: Likewise.
30473 * loader/i386/bsd_trampoline.S: Likewise.
30474 * loader/i386/efi/linux.c: Likewise.
30475 * loader/i386/multiboot_elfxx.c: Likewise.
30476 * loader/i386/bsd_helper.S: Likewise.
30477 * loader/i386/bsd.c: Likewise.
30478 * loader/i386/linux_trampoline.S: Likewise.
30479 * loader/i386/xnu_helper.S: Likewise.
30480 * loader/i386/xnu.c: Likewise.
30481 * loader/i386/bsd_pagetable.c: Likewise.
30482 * loader/i386/multiboot_helper.S: Likewise.
30483 * loader/xnu.c: Likewise.
30484 * loader/xnu_resume.c: Likewise.
30485 * io/gzio.c: Likewise.
30486 * term/efi/console.c: Likewise.
30487 * term/terminfo.c: Likewise.
30488 * term/ieee1275/ofconsole.c: Likewise.
30489 * term/i386/pc/serial.c: Likewise.
30490 * term/i386/pc/vesafb.c: Likewise.
30491 * term/i386/pc/vga.c: Likewise.
30492 * term/usb_keyboard.c: Likewise.
30493 * term/gfxterm.c: Likewise.
30494 * aclocal.m4: Likewise.
30495 * util/lvm.c: Likewise.
30496 * util/grub.d/30_os-prober.in: Likewise.
30497 * util/grub.d/10_hurd.in: Likewise.
30498 * util/console.c: Likewise.
30499 * util/grub-macho2img.c: Likewise.
30500 * util/grub-probe.c: Likewise.
30501 * util/hostfs.c: Likewise.
30502 * util/i386/pc/grub-mkimage.c: Likewise.
30503 * util/i386/pc/grub-setup.c: Likewise.
30504 * util/i386/efi/grub-mkimage.c: Likewise.
30505 * util/grub-mkconfig.in: Likewise.
30506 * util/raid.c: Likewise.
30507 * util/resolve.c: Likewise.
30508 * util/grub-mkdevicemap.c: Likewise.
30509 * util/grub-emu.c: Likewise.
30510 * util/getroot.c: Likewise.
30511 * util/hostdisk.c: Likewise.
30512 * util/usb.c: Likewise.
30513 * util/grub-editenv.c: Likewise.
30514 * util/misc.c: Likewise.
30515
30516 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30517
30518 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30519 `genparttoollist.sh'.
30520 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30521 Add `*.sh' to the list find searches for and change `mdate.sh'
30522 to `mdate-sh'.
30523
30524 2009-06-10 Pavel Roskin <proski@gnu.org>
30525
30526 * include/grub/multiboot2.h: Provide compatibility defines for
30527 multiboot2.h.
30528 * include/multiboot2.h: Include stdint.h only if needed, using
30529 angle brackets.
30530 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30531 grub/multiboot2.h.
30532 * loader/ieee1275/multiboot2.c: Likewise.
30533 * loader/multiboot2.c: Likewise.
30534 * loader/multiboot_loader.c: Likewise.
30535
30536 * configure.ac: Use -nostdlib when probing for the target. It
30537 should not be required to have libc for the target.
30538
30539 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30540 they fail without libc headers for the target.
30541 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30542 exports.
30543 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30544 preprocessor conditionals.
30545
30546 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30547 build system doesn't need to be aware of the tar.c internals.
30548
30549 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30550
30551 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30552
30553 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30554
30555 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30556 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30557
30558 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30559
30560 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30561 aren't available if ata.mod gets used.
30562
30563 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30564
30565 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30566 initialising controller.
30567 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30568
30569 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30570
30571 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30572 to choose between ata and biosdisk module on i386-pc.
30573
30574 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30575
30576 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30577 Subclass and Programming Interface fields in terms of the 3 byte
30578 Class Code register.
30579 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30580
30581 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30582 interface is OHCI. Add grub_dprintf for symmetry with
30583 bus/usb/uhci.c.
30584 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30585 interface is UHCI. Add interf variable for programming
30586 interface. Print interface with class/subclass.
30587
30588 * bus/usb/ohci.c: Set interf with correct field.
30589
30590 * bus/usb/uhci.c: Remove unneeded doubled lines.
30591 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30592 Remove whitespace inside comment.
30593
30594 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30595
30596 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30597 as fallback an equivalent option without depth.
30598
30599 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30600
30601 Not fail if unable to retrieve C/H/S on LBA disks
30602
30603 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30604 if unable to retrieve C/H/S on LBA disks
30605
30606 2009-06-08 Pavel Roskin <proski@gnu.org>
30607
30608 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30609 about aliasing.
30610
30611 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30612
30613 * Makefile.in (uninstall): Remove all $lib_DATA files.
30614
30615 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30616
30617 Bugfix: install on partitionless device
30618
30619 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30620 is a whole disk
30621
30622 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30623
30624 * Makefile.in (uninstall): Remove all $include_DATA files.
30625
30626 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30627
30628 * commands/true.c: New file. Implement the true and false commands.
30629 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30630 (true_mod_SOURCES): New variable.
30631 (true_mod_CFLAGS): Likewise.
30632 (true_mod_LDFLAGS): Likewise.
30633
30634 2009-06-05 Colin D Bennett <colin@gibibit.com>
30635
30636 Optimized font character lookup using binary search instead of linear
30637 search. Fonts now are required to have the character index ordered by
30638 code point.
30639
30640 * font/font.c (load_font_index): Verify that fonts have ordered
30641 character indices.
30642 (find_glyph): Use binary search instead of linear search to find a
30643 character in a font.
30644
30645 2009-06-05 Michael Scherer <misc@mandriva.org>
30646
30647 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30648 uses case sensitive btree.
30649 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30650 only for case insensitive filesystems.
30651
30652 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30653
30654 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30655 * conf/common.rmk (search_mod_CFLAGS): likewise
30656
30657 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30658
30659 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30660 compensate a compiler bug
30661
30662 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30663
30664 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30665 instead of '\b'
30666
30667 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30668
30669 Definitions for creating asm symbols with Apple's CC
30670
30671 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30672 [APPLE_CC] (VARIABLE): likewise
30673
30674 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30675
30676 Disable lnxboot.img when compiled
30677 with Apple's CC
30678
30679 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30680 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30681 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30682 [! APPLE_CC] (CODE_LENG): skip
30683 [! APPLE_CC] (setup_sects): likewise
30684 [! APPLE_CC]: skip filling
30685
30686 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30687
30688 Address in trampolines based on 32-bit registers when compiled
30689 with Apple's CC
30690
30691 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30692 for addresses
30693 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30694
30695 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30696
30697 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30698
30699 * kern/misc.c [APPLE_CC] (memcpy): new function
30700 [APPLE_CC] (memmove): likewise
30701 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30702 (memcpy): define alias conditionally on !APPLE_CC
30703 (memset): likewise
30704 (abort): likewise
30705 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30706 APPLE_CC are defined
30707 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30708 (grub_assert_fail): make prototype conditional
30709
30710 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30711
30712 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30713
30714 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30715 grub-macho2img
30716 (CLEANFILES): add grub-macho2img
30717 (grub_macho2img_SOURCES): new variable
30718 * kern/i386/pc/startup.S (bss_start): new variable
30719 (bss_end): likewise
30720 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30721 * util/grub-macho2img.c: new file
30722
30723 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30724
30725 Use objconv when compiling with Apple's CC
30726
30727 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30728 (efiemu64.o): likewise
30729 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30730 when compiling with Apple's CC
30731 (efiemu64_s.o): likewise
30732 * configure.ac: check for objconv when compiling with Apple's CC
30733 * genmk.rb: use objconv for modules when compiled with Apple's CC
30734
30735 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30736
30737 Define segment as well as section when compiling with
30738 Apple's CC
30739
30740 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30741 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30742 (efiemu_convert_pointer): likewise
30743 (efiemu_set_virtual_address_map): likewise
30744 (efiemu_convert_pointer): likewise
30745 (efiemu_getcrc32): likewise
30746 (init_crc32_table): likewise
30747 (reflect): likewise
30748 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30749 (GRUB_MOD_DEP): likewise
30750
30751 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30752
30753 Allow a compilation without -mcmodel=large
30754
30755 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30756 when compiled without -mcmodel=large
30757 (filter_memory_map): remove memory post 4 GiB when compiled
30758 without -mcmodel=large
30759 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
30760 TARGET_CFLAGS when -mcmodel=large isn't supported
30761
30762 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30763
30764 Remove nested functions in efiemu core
30765
30766 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
30767
30768 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30769
30770 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30771
30772 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30773 temporary storage
30774 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30775 using Apple's CC
30776 (grub_cpu_is_tsc_supported): likewise
30777 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
30778
30779 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30780
30781 Absolute addressing through constant with Apple's cc
30782
30783 * kern/i386/pc/startup.S: Define necessary constants
30784 and address through it when using ABS with Apple's CC
30785 * boot/i386/pc/diskboot.S: likewise
30786 * boot/i386/pc/boot.S: likewise
30787 * boot/i386/pc/lnxboot.S: likewise
30788 * boot/i386/pc/cdboot.S: likewise
30789 * mmap/i386/pc/mmap_helper.S: likewise
30790 * commands/i386/pc/drivemap_int13h.S: likewise
30791
30792 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30793
30794 Check if compiler is apple cc
30795
30796 * Makefile.in (ASFLAGS): new variable
30797 (TARGET_ASFLAGS): likewise
30798 (TARGET_MODULE_FORMAT): likewise
30799 (TARGET_APPLE_CC): likewise
30800 (OBJCONV): likewise
30801 (TARGET_IMG_CFLAGS): likewise
30802 (TARGET_CPPFLAGS): add includedir
30803 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30804 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30805 Check for linker script only if compiler isn't Apple's CC
30806 (TARGET_MODULE_FORMAT): set
30807 (TARGET_APPLE_CC): likewise
30808 (TARGET_ASFLAGS): likewise
30809 (ASFLAGS): likewise
30810 Check for objcopy only if compiler isn't Apple's CC
30811 Check for BSS symbol only if compiler isn't Apple's CC
30812 * genmk.rb: adapt nm options if we use Apple's utils
30813 * aclocal.m4 (grub_apple_cc): new test
30814 (grub_apple_target_cc): likewise
30815
30816 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30817
30818 Simplify sed expressions and improve awk
30819
30820 * Makefile.in (install-local): simplify sed expression
30821 * gencmdlist.sh: likewise
30822 * genmoddep.awk: avoid adding module as a dependency of itself
30823
30824 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30825
30826 Add missing start symbols
30827
30828 * boot/i386/pc/boot.S: add start
30829 * boot/i386/pc/pxeboot.S: likewise
30830
30831 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30832
30833 Fix wrong assumptions with grub-mkimage on EFI
30834
30835 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
30836 (relocate_addresses): consider both r_addend and value at offset
30837 (make_mods_section): zerofill modinfo and header
30838 (convert_elf): write prefix here
30839
30840 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30841
30842 Use .asciz instead of .string
30843
30844 * i386/pc/diskboot.S: use .asciz instead of .string
30845 * i386/pc/boot.S: likewise
30846 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30847 (GRUB_MOD_NAME): likewise
30848
30849 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30850
30851 gfxpayload support
30852
30853 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30854 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30855 (grub_video_setup): remove
30856 (grub_video_set_mode): new prototype
30857 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30858 (vid_mode): remove
30859 (linux_vesafb_res): compile only on PCBIOS
30860 (grub_linux_boot): support gfxpayload
30861 * loader/i386/pc/xnu.c (video_hook): new function
30862 (grub_xnu_set_video): support gfxpayload
30863 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30864 (DEFAULT_VIDEO_HEIGHT): likewise
30865 (DEFAULT_VIDEO_FLAGS): likewise
30866 (DEFAULT_VIDEO_MODE): new definition
30867 (video_hook): new function
30868 (grub_gfxterm_init): use grub_video_set_mode
30869 * util/grub.d/30_os-prober.in: remove explicit modesetting before
30870 loading xnu
30871 * video/video.c (grub_video_setup): removed
30872 (grub_video_set_mode): new function based on grub_gfxterm_init and
30873 grub_video_setup
30874
30875 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30876
30877 Avoid calling biosdisk in drivemap
30878
30879 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30880 (revparse_biosdisk): likewise
30881 (list_mappings): derive name from id directly
30882 (grub_cmd_drivemap): use tryparse_diskstring
30883
30884 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30885
30886 Script fixes
30887
30888 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30889 (grub_lexer_param): add tokenonhold
30890 (grub_script_create_cmdline): remove cmdline. All callers updated
30891 (grub_script_function_create): make functionname
30892 grub_script_arg. All callers updated
30893 (grub_script_execute_argument_to_string): new prototype
30894 * kern/parser.c (state_transitions): reorder
30895 (grub_parser_cmdline_state): fix a bug and make more compact
30896 * script/sh/execute.c (grub_script_execute_argument_to_string):
30897 make global
30898 (grub_script_execute_cmdline): use new format
30899 * script/sh/function.c (grub_script_function_create): make functionname
30900 grub_script_arg. All callers updated
30901 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
30902 (grub_script_yylex): remove
30903 (grub_script_yylex2): renamed to ...
30904 (grub_script_yylex): ...renamed
30905 parse the expressions like a${b}c
30906 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30907 (GRUB_PARSER_TOKEN_VAR): remove
30908 (GRUB_PARSER_TOKEN_NAME): likewise
30909 ("if"): declare as typeless
30910 ("while"): likewise
30911 ("function"): likewise
30912 ("else"): likewise
30913 ("then"): likewise
30914 ("fi"): likewise
30915 (text): remove
30916 (argument): likewise
30917 (script): accept empty scripts and make exit on error
30918 (arguments): use GRUB_PARSER_TOKEN_ARG
30919 (function): likewise
30920 (command): move error handling to script
30921 (menuentry): move grub_script_lexer_ref before
30922 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
30923 argument. All callers updated
30924
30925 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30926
30927 Prevent GRUB from probing floppies during boot.
30928
30929 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30930 * commands/search.c (options): Add --no-floppy.
30931 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30932 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30933 --no-floppy when searching for UUIDs.
30934
30935 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30936
30937 Simplify the code duplication in commands/search.c.
30938
30939 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30940 (search_fs): ... this. Update all users.
30941
30942 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
30943
30944 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30945
30946 2009-05-28 Pavel Roskin <proski@gnu.org>
30947
30948 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30949 Remove the original symlink explicitly.
30950
30951 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30952 just one slash. That's how grub_fshelp_find_file() does it.
30953
30954 2009-05-26 Pavel Roskin <proski@gnu.org>
30955
30956 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30957 to `str'.
30958
30959 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30960 possibly unused.
30961
30962 2009-05-25 Christian Franke <franke@computer.org>
30963
30964 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30965 register.
30966 (grub_atapi_identify): Add wait after drive select.
30967 (grub_ata_identify): Do more strict status register check before
30968 calling grub_atapi_identify (). Suppress error message if status
30969 register is 0x00 after command failure. Add status register
30970 check after PIO read to avoid bogus identify due to stuck DRQ.
30971 Thanks to Pavel Roskin for testing.
30972 (grub_device_initialize): Remove unsafe status register check.
30973 Thanks to 'phcoder' for problem report and patch.
30974 Prevent sign extension in debug message.
30975
30976 2009-05-23 Colin D Bennett <colin@gibibit.com>
30977
30978 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30979 definition file, and functions defined in `normal/menu.c' have had
30980 their prototypes moved to `include/grub/menu.h' for consistency.
30981
30982 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30983 from normal.h.
30984 (grub_menu_get_entry): Likewise.
30985 (grub_menu_get_timeout): Likewise.
30986 (grub_menu_set_timeout): Likewise.
30987 (grub_menu_execute_entry): Likewise.
30988 (grub_menu_execute_with_fallback): Likewise.
30989 (grub_menu_entry_run): Likewise.
30990
30991 * include/grub/normal.h: Re-ordered and grouped function
30992 prototypes by file that the function is defined in.
30993 (grub_menu_execute_callback): Removed; moved to menu.h.
30994 (grub_menu_get_entry): Likewise.
30995 (grub_menu_get_timeout): Likewise.
30996 (grub_menu_set_timeout): Likewise.
30997 (grub_menu_execute_entry): Likewise.
30998 (grub_menu_execute_with_fallback): Likewise.
30999 (grub_menu_entry_run): Likewise.
31000 (grub_menu_addentry): Renamed from this ...
31001 (grub_normal_add_menu_entry): ... to this.
31002
31003 * normal/main.c (grub_menu_addentry): Renamed from this ...
31004 (grub_normal_add_menu_entry): ... to this.
31005
31006 * script/sh/execute.c (grub_script_execute_menuentry): Update
31007 reference to renamed grub_menu_addentry function.
31008
31009 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31010
31011 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31012
31013 2009-05-22 Pavel Roskin <proski@gnu.org>
31014
31015 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31016 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31017 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31018 compiling for the i386 targets, but not for the utilities.
31019
31020 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31021 to grub_uint8_t.
31022 (grub_root_drive): Likewise.
31023 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31024 remove alignment.
31025 (grub_root_drive): Change size to byte.
31026 (grub_start_addr): Remove.
31027 (grub_end_addr): Likewise.
31028 (grub_apm_bios_info): Likewise.
31029
31030 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31031
31032 * normal/i386: Remove.
31033 * normal/powerpc: Likewise.
31034 * normal/sparc64: Likewise.
31035 * normal/x86_64: Likewise.
31036
31037 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31038
31039 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31040 * loader/i386/linux_trampoline.S: Fix indentation
31041 * loader/i386/xnu_helper.S: Likewise
31042
31043 2009-05-18 Colin D Bennett <colin@gibibit.com>
31044
31045 Display error messages when parsing a Lua statement fails.
31046 Previously, executing a syntactically invalid statement like
31047 ")foo" or "bar;" would silently fail.
31048
31049 * script/lua/grub_main.c (handle_lua_error): New function.
31050 (grub_lua_parse_line): Improved reporting of Lua parser and
31051 execution errors.
31052
31053 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31054
31055 Remove -Werror which causes build to fail on some systems
31056
31057 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31058 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31059 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31060
31061 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31062
31063 trampoline for linux on 64-bit platform
31064
31065 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31066 loader/i386/efi/linux_trampoline.S
31067 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31068 declaration
31069 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31070 here
31071 * loader/i386/linux_trampoline.S: moved here
31072 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31073 trampoline
31074 (jumpvector): removed
31075 (grub_linux_trampoline_start): new declaration
31076 (grub_linux_trampoline_end): likewise
31077 (grub_linux_boot): use trampoline when on 64-bit platform
31078 * loader/i386/linux.c: likewise
31079
31080 2009-05-16 Pavel Roskin <proski@gnu.org>
31081
31082 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31083 const to avoid a warning.
31084 (grub_lua_setenv): Likewise.
31085 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31086 lmsg to fix a warning.
31087
31088 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31089
31090 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31091 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31092 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31093 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31094 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31095 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31096 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31097 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31098
31099 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31100
31101 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31102
31103 2009-05-16 Bean <bean123ch@gmail.com>
31104
31105 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31106 (lua_mod_SOURCES): New variable.
31107 (lua_mod_CFLAGS): Likewise.
31108 (lua_mod_LDFLAGS): Likewise.
31109
31110 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31111 (setjmp_mod_SOURCES): New variable.
31112 (setjmp_mod_CFLAGS): Likewise.
31113 (setjmp_LDFLAGS): Likewise.
31114
31115 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31116 (setjmp_mod_SOURCES): New variable.
31117 (setjmp_mod_CFLAGS): Likewise.
31118 (setjmp_LDFLAGS): Likewise.
31119
31120 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31121 (setjmp_mod_SOURCES): New variable.
31122 (setjmp_mod_CFLAGS): Likewise.
31123 (setjmp_LDFLAGS): Likewise.
31124
31125 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31126 (setjmp_mod_SOURCES): New variable.
31127 (setjmp_mod_CFLAGS): Likewise.
31128 (setjmp_LDFLAGS): Likewise.
31129
31130 * normal/i386/setjmp.S: Moved from here ...
31131 * lib/i386/setjmp.S: ... Moved here
31132 * normal/x86_64/setjmp.S: Moved from here ...
31133 * lib/x86_64/setjmp.S: ... Moved here
31134 * normal/powerpc/setjmp.S: Moved from here ...
31135 * lib/powerpc/setjmp.S: ... Moved here
31136 * normal/sparc64/setjmp.S: Moved from here ...
31137 * lib/sparc64/setjmp.S: ... Moved here
31138
31139 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31140 returns_twice in mingw.
31141
31142 * script/lua/grub_lib.c: New file.
31143 * script/lua/grub_lib.h: Likewise.
31144 * script/lua/grub_lua.h: Likewise.
31145 * script/lua/grub_main.c: Likewise.
31146 * script/lua/lapi.c: Likewise.
31147 * script/lua/lapi.h: Likewise.
31148 * script/lua/lauxlib.c: Likewise.
31149 * script/lua/lauxlib.h: Likewise.
31150 * script/lua/lbaselib.c: Likewise.
31151 * script/lua/lcode.c: Likewise.
31152 * script/lua/lcode.h: Likewise.
31153 * script/lua/ldblib.c: Likewise.
31154 * script/lua/ldebug.c: Likewise.
31155 * script/lua/ldebug.h: Likewise.
31156 * script/lua/ldo.c: Likewise.
31157 * script/lua/ldo.h: Likewise.
31158 * script/lua/ldump.c: Likewise.
31159 * script/lua/lfunc.c: Likewise.
31160 * script/lua/lfunc.h: Likewise.
31161 * script/lua/lgc.c: Likewise.
31162 * script/lua/lgc.h: Likewise.
31163 * script/lua/linit.c: Likewise.
31164 * script/lua/liolib.c: Likewise.
31165 * script/lua/llex.c: Likewise.
31166 * script/lua/llex.h: Likewise.
31167 * script/lua/llimits.h: Likewise.
31168 * script/lua/lmathlib.c: Likewise.
31169 * script/lua/lmem.c: Likewise.
31170 * script/lua/lmem.h: Likewise.
31171 * script/lua/loadlib.c: Likewise.
31172 * script/lua/lobject.c: Likewise.
31173 * script/lua/lobject.h: Likewise.
31174 * script/lua/lopcodes.c: Likewise.
31175 * script/lua/lopcodes.h: Likewise.
31176 * script/lua/loslib.c: Likewise.
31177 * script/lua/lparser.c: Likewise.
31178 * script/lua/lparser.h: Likewise.
31179 * script/lua/lstate.c: Likewise.
31180 * script/lua/lstate.h: Likewise.
31181 * script/lua/lstring.c: Likewise.
31182 * script/lua/lstring.h: Likewise.
31183 * script/lua/lstrlib.c: Likewise.
31184 * script/lua/ltable.c: Likewise.
31185 * script/lua/ltable.h: Likewise.
31186 * script/lua/ltablib.c: Likewise.
31187 * script/lua/ltm.c: Likewise.
31188 * script/lua/ltm.h: Likewise.
31189 * script/lua/lua.h: Likewise.
31190 * script/lua/luaconf.h: Likewise.
31191 * script/lua/lualib.h: Likewise.
31192 * script/lua/lundump.c: Likewise.
31193 * script/lua/lundump.h: Likewise.
31194 * script/lua/lvm.c: Likewise.
31195 * script/lua/lvm.h: Likewise.
31196 * script/lua/lzio.c: Likewise.
31197 * script/lua/lzio.h: Likewise.
31198
31199 2009-05-16 Bean <bean123ch@gmail.com>
31200
31201 * include/grub/kernel.h (grub_module_header_types): Add type
31202 OBJ_TYPE_CONFIG.
31203
31204 * kern/main.c (grub_load_config): New function.
31205 (grub_main): Call grub_load_config to read boot config.
31206
31207 * grub-mkimage (generate_image): New parameter config_path.
31208 (options): New option --config.
31209 (main): Parse --config option, and pass it to generate_image.
31210
31211 2009-05-14 Christian Franke <franke@computer.org>
31212
31213 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31214 This fixes build on Cygwin.
31215
31216 2009-05-14 Pavel Roskin <proski@gnu.org>
31217
31218 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31219 jump. This saves two bytes, so the typical case of 2 swapped
31220 drives would fit 32 bytes.
31221
31222 2009-05-13 Pavel Roskin <proski@gnu.org>
31223
31224 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31225 grub_uint32_t to avoid a warning.
31226
31227 * loader/i386/linux.c (allocate_pages): When assigning
31228 real_mode_mem, cast through grub_size_t to fix a warning. The
31229 code already makes sure that the value would fit a pointer.
31230 (grub_linux_setup_video): Cast render_target->data to
31231 grub_size_t to fix a warning.
31232
31233 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31234
31235 * commands/i386/pc/drivemap.c: New file - implement drivemap
31236 command.
31237 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31238 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31239
31240 2009-05-13 Pavel Roskin <proski@gnu.org>
31241
31242 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31243 embedding_area_exists.
31244
31245 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31246
31247 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31248 it easier to understand / work with.
31249 Improve warning messages for cases where there's no embedding area,
31250 or when it is too small (or core.img too large).
31251
31252 2009-05-13 Pavel Roskin <proski@gnu.org>
31253
31254 * loader/i386/pc/multiboot2.c: Add necessary includes for
31255 grub_multiboot2_real_boot().
31256
31257 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31258 PX record is always little-endian. We only need the lower 2
31259 bytes of the mode.
31260
31261 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31262 facilitate code reuse.
31263 (grub_cpio_mount): Use "struct head", not a char buffer. This
31264 fixes a warning reported by gcc 4.4.
31265
31266 * kernel/disk.c (grub_disk_read): Use void pointer for the
31267 buffer.
31268 (grub_disk_write): Use const void pointer for the buffer.
31269 Adjust all callers. Remove unnecessary casts.
31270
31271 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31272
31273 * util/i386/pc/grub-install.in: Update copyright year.
31274
31275 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31276
31277 gptsync
31278
31279 * commands/gptsync.c: new file
31280 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31281 (gptsync_mod_SOURCES): new variable
31282 (gptsync_mod_CFLAGS): likewise
31283 (gptsync_mod_LDFLAGS): likewise
31284 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31285 new definition
31286 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31287 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31288 * conf/i386-ieee1275.rmk: likewise
31289 * conf/i386-pc.rmk: likewise
31290 * conf/powerpc-ieee1275.rmk: likewise
31291
31292 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31293
31294 Fixed grub-emu
31295
31296 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31297 (grub_dl_ref): likewise
31298
31299 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31300
31301 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31302 split in two functions (one for msdos and one for gpt).
31303
31304 2009-05-08 Pavel Roskin <proski@gnu.org>
31305
31306 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31307 not modified.
31308
31309 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31310 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31311 Initialize them with -1. Add sanity check for bad1. Eliminate
31312 nerr variable.
31313
31314 2009-05-08 David S. Miller <davem@davemloft.net>
31315
31316 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31317
31318 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31319
31320 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31321 existence.
31322
31323 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31324
31325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31326 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31327
31328 2009-05-05 David S. Miller <davem@davemloft.net>
31329
31330 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31331
31332 2009-05-05 Pavel Roskin <proski@gnu.org>
31333
31334 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31335 of grub_dl_ref() and grub_dl_unref().
31336 * commands/parttool.c: Remove preprocessor conditionals around
31337 grub_dl_ref() and grub_dl_unref().
31338 * fs/affs.c: Likewise.
31339 * fs/afs.c: Likewise.
31340 * fs/cpio.c: Likewise.
31341 * fs/ext2.c: Likewise.
31342 * fs/fat.c: Likewise.
31343 * fs/hfs.c: Likewise.
31344 * fs/hfsplus.c: Likewise.
31345 * fs/iso9660.c: Likewise.
31346 * fs/jfs.c: Likewise.
31347 * fs/minix.c: Likewise.
31348 * fs/ntfs.c: Likewise.
31349 * fs/reiserfs.c: Likewise.
31350 * fs/sfs.c: Likewise.
31351 * fs/udf.c: Likewise.
31352 * fs/ufs.c: Likewise.
31353 * fs/xfs.c: Likewise.
31354 * include/grub/dl.h: Likewise.
31355 * loader/xnu.c: Likewise.
31356
31357 2009-05-04 Pavel Roskin <proski@gnu.org>
31358
31359 * commands/acpi.c: Remove unused variable my_mod.
31360 * partmap/amiga.c: Likewise.
31361 * partmap/apple.c: Likewise.
31362 * partmap/gpt.c: Likewise.
31363 * partmap/pc.c: Likewise.
31364 * partmap/sun.c: Likewise.
31365 * term/gfxterm.c: Likewise.
31366 * term/i386/pc/vesafb.c: Likewise.
31367 * term/i386/pc/vga.c: Likewise.
31368
31369 2009-05-04 David S. Miller <davem@davemloft.net>
31370
31371 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31372 pointer args to grub_ieee1275_get_property().
31373
31374 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31375
31376 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31377 devices, and do not traverse down under controller nodes.
31378
31379 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31380 (grub_ofdisk_open): Use it to un-escape "," characters.
31381 * kern/disk.c (find_part_sep): New.
31382 (grub_disk_open): Use it to find the first non-escaped ','
31383 character in the disk name.
31384 * util/ieee1275/devicemap.c (escape_of_path): New.
31385 (grub_util_emit_devicemap_entry): Use it.
31386 * util/sparc64/ieee1275/grub-install.in: Update script to
31387 strip partition specifiers properly by not triggering on
31388 '\' escaped ',' characters.
31389
31390 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31391
31392 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31393 to 0x300.
31394 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31395 resolutions.
31396 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31397 on documentation from Wikipedia).
31398
31399 2009-05-04 Pavel Roskin <proski@gnu.org>
31400
31401 * disk/ata.c: Spelling fixes.
31402 * disk/raid.c: Likewise.
31403 * disk/usbms.c: Likewise.
31404 * disk/dmraid_nvidia.c: Likewise.
31405 * kern/ieee1275/openfw.c: Likewise.
31406 * kern/ieee1275/init.c: Likewise.
31407 * kern/ieee1275/cmain.c: Likewise.
31408 * boot/i386/pc/cdboot.S: Likewise.
31409 * video/readers/png.c: Likewise.
31410 * video/i386/pc/vbe.c: Likewise.
31411 * fs/udf.c: Likewise.
31412 * fs/hfs.c: Likewise.
31413 * fs/reiserfs.c: Likewise.
31414 * efiemu/runtime/efiemu.c: Likewise.
31415 * efiemu/main.c: Likewise.
31416 * efiemu/mm.c: Likewise.
31417 * include/grub/elf.h: Likewise.
31418 * include/grub/xnu.h: Likewise.
31419 * include/grub/usbdesc.h: Likewise.
31420 * include/grub/usb.h: Likewise.
31421 * include/grub/script_sh.h: Likewise.
31422 * include/grub/lib/LzmaEnc.h: Likewise.
31423 * include/grub/efiemu/efiemu.h: Likewise.
31424 * include/grub/command.h: Likewise.
31425 * normal/menu.c: Likewise.
31426 * normal/main.c: Likewise.
31427 * normal/datetime.c: Likewise.
31428 * bus/usb/uhci.c: Likewise.
31429 * mmap/i386/uppermem.c: Likewise.
31430 * mmap/mmap.c: Likewise.
31431 * commands/acpi.c: Likewise.
31432 * commands/test.c: Likewise.
31433 * partmap/apple.c: Likewise.
31434 * font/font.c: Likewise.
31435 * loader/sparc64/ieee1275/linux.c: Likewise.
31436 * loader/macho.c: Likewise.
31437 * loader/i386/bsd_trampoline.S: Likewise.
31438 * loader/i386/bsd.c: Likewise.
31439 * loader/xnu.c: Likewise.
31440 * term/i386/pc/vesafb.c: Likewise.
31441 * term/usb_keyboard.c: Likewise.
31442 * util/resolve.c: Likewise.
31443 * util/getroot.c: Likewise.
31444
31445 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31446
31447 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31448
31449 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31450
31451 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31452 build error.
31453
31454 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31455
31456 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31457 parameter only available on BIOS.
31458
31459 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31460
31461 Removed wrong semicolon in declaration
31462
31463 * grub/misc.h (grub_dprintf): remove semicolon
31464
31465 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31466
31467 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31468 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31469 is done by grub_cmd_linux() now).
31470 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31471 restore video to text mode.
31472 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31473 indicates lack of "vga=" parameter. "vga=0" is mapped to
31474 `GRUB_LINUX_VID_MODE_NORMAL'.
31475
31476 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31477
31478 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31479 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31480 and `normal/script.c'. Add `kern/rescue_reader.c',
31481 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31482 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31483 `grub_script.tab.c'.
31484
31485 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31486 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31488 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31489 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31490
31491 * Makefile.in: Remove duplicated 2008 in Copyright line.
31492
31493 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31494
31495 * util/misc.c (grub_util_warn): New function. Emits a warning
31496 unconditionally.
31497 * include/grub/util/misc.h (grub_util_warn): New declaration.
31498
31499 * util/i386/pc/grub-install.in: Understand --force and pass it down
31500 to grub-setup.
31501
31502 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31503 down to setup().
31504 (setup): Improve error messages and add warnings when requested to
31505 install in odd layouts. Refuse to install using blocklists unless
31506 --force was set.
31507
31508 2009-05-04 martin f. krafft <madduck@madduck.net>
31509
31510 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31511
31512 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31513
31514 Updated copyright year
31515
31516 * fs/hfsplus.c: updated copyright year
31517
31518 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31519
31520 HFS+ UUID
31521
31522 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31523 in the space previously used by unused3
31524 (grub_hfsplus_uuid): new function
31525 (grub_hfsplus_fs): added uuid field
31526
31527 2009-05-03 Pavel Roskin <proski@gnu.org>
31528
31529 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31530 suppress warnings. It's no longer needed.
31531 * disk/host.c: Likewise.
31532 * disk/ata_pthru.c: Likewise.
31533 * disk/loopback.c: Likewise.
31534 * hook/datehook.c: Likewise.
31535 * parttool/pcpart.c: Likewise.
31536 * fs/i386/pc/pxe.c: Likewise.
31537 * fs/ntfscomp.c: Likewise.
31538 * efiemu/main.c: Likewise.
31539 * mmap/mmap.c: Likewise.
31540 * commands/crc.c: Likewise.
31541 * commands/hexdump.c: Likewise.
31542 * commands/hdparm.c: Likewise.
31543 * commands/acpi.c: Likewise.
31544 * commands/echo.c: Likewise.
31545 * commands/minicmd.c: Likewise.
31546 * commands/blocklist.c: Likewise.
31547 * commands/memrw.c: Likewise.
31548 * commands/loadenv.c: Likewise.
31549 * commands/usbtest.c: Likewise.
31550 * commands/lsmmap.c: Likewise.
31551 * commands/boot.c: Likewise.
31552 * commands/parttool.c: Likewise.
31553 * commands/configfile.c: Likewise.
31554 * commands/search.c: Likewise.
31555 * commands/ieee1275/suspend.c: Likewise.
31556 * commands/cat.c: Likewise.
31557 * commands/i386/pc/pxecmd.c: Likewise.
31558 * commands/i386/pc/play.c: Likewise.
31559 * commands/i386/pc/halt.c: Likewise.
31560 * commands/i386/pc/vbeinfo.c: Likewise.
31561 * commands/i386/pc/vbetest.c: Likewise.
31562 * commands/lspci.c: Likewise.
31563 * commands/date.c: Likewise.
31564 * commands/handler.c: Likewise.
31565 * commands/ls.c: Likewise.
31566 * commands/test.c: Likewise.
31567 * commands/cmp.c: Likewise.
31568 * commands/efi/loadbios.c: Likewise.
31569 * commands/efi/fixvideo.c: Likewise.
31570 * commands/halt.c: Likewise.
31571 * commands/help.c: Likewise.
31572 * commands/reboot.c: Likewise.
31573 * hello/hello.c: Likewise.
31574 * script/sh/main.c: Likewise.
31575 * loader/xnu.c: Likewise.
31576 * term/terminfo.c: Likewise.
31577 * term/i386/pc/serial.c: Likewise.
31578 * term/usb_keyboard.c: Likewise.
31579
31580 2009-05-03 David S. Miller <davem@davemloft.net>
31581
31582 * normal/menu.c: Include grub/parser.h
31583
31584 2009-05-03 Pavel Roskin <proski@gnu.org>
31585
31586 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31587 not char*.
31588 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31589 Suggested by Javier Martín <lordhabbit@gmail.com>
31590
31591 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31592 efiemu??.o doesn't exist.
31593 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31594 copying.
31595
31596 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31597
31598 FreeBSD 64-bit support
31599
31600 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31601 and loader/i386/bsd_trampoline.S
31602 (bsd_mod_ASFLAGS): new variable
31603 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31604 (FREEBSD_MODTYPE_KERNEL64): likewise
31605 (grub_bsd64_trampoline_start): likewise
31606 (grub_bsd64_trampoline_end): likewise
31607 (grub_bsd64_trampoline_selfjump): likewise
31608 (grub_bsd64_trampoline_gdt): likewise
31609 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31610 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31611 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31612 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31613 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31614 of "attrib" member
31615 * loader/i386/bsd_pagetable.c: new file
31616 * loader/i386/bsd_trampoline.S: likewise
31617 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31618 (ALIGN_VAR): likewise
31619 (entry_hi): new variable
31620 (kern_end_mdofs): likewise
31621 (is_64bit): likewise
31622 (grub_freebsd_add_meta): use ALIGN_VAR
31623 (grub_e820_mmap): new declaration
31624 (grub_freebsd_add_mmap): new function
31625 (grub_freebsd_add_meta_module): support 64 bit kernels
31626 (grub_freebsd_list_modules): use ALIGN_VAR
31627 (gdt_descriptor): new declaration
31628 (grub_freebsd_boot): support 64 bit kernels
31629 (grub_bsd_elf64_hook): new function
31630 (grub_bsd_load_elf): support elf64
31631
31632 2009-05-03 Bean <bean123ch@gmail.com>
31633
31634 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31635 after we get the result of if statement.
31636
31637 2009-05-03 Bean <bean123ch@gmail.com>
31638
31639 * Makefile.in (enable_efiemu): New variable.
31640
31641 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31642 set.
31643 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31644 path.
31645 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31646 path, add -mno-red-zone option.
31647 (efiemu64_s.o): Likewise.
31648 (efiemu64.o): Use macro $^ for source file.
31649
31650 * configure.ac (--enable-efiemu): New option.
31651
31652 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31653
31654 xnu support
31655
31656 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31657 (pkglib_MODULES): add xnu.mod
31658 (xnu_mod_SOURCES): new variable
31659 (xnu_mod_CFLAGS): likewise
31660 (xnu_mod_LDFLAGS): likewise
31661 (xnu_mod_ASFLAGS): likewise
31662 * conf/i386-pc.rmk: likewise
31663 * conf/x86_64-efi.rmk: likewise
31664 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31665 new declaration
31666 * include/grub/i386/macho.h: new file
31667 * include/grub/i386/xnu.h: likewise
31668 * include/grub/macho.h: likewise
31669 * include/grub/machoload.h: likewise
31670 * include/grub/x86_64/macho.h: likewise
31671 * include/grub/x86_64/xnu.h: likewise
31672 * include/grub/xnu.h: likewise
31673 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31674 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31675 * loader/i386/efi/xnu.c: new file
31676 * loader/i386/pc/xnu.c: likewise
31677 * loader/i386/xnu.c: likewise
31678 * loader/i386/xnu_helper.S: likewise
31679 * loader/macho.c: likewise
31680 * loader/xnu.c: likewise
31681 * loader/xnu_resume.c: likewise
31682 * util/grub-dumpdevtree: likewise
31683 * include/grub/i386/pit.h: include grub/err.h
31684 (grub_pit_wait): export
31685 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31686
31687 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31688
31689 Efiemu
31690
31691 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31692 _linux_efi, linux_efi.
31693 new files in grub-emu
31694 new targets efiemu32.o and efiemu64.o
31695 * loader/linux_normal_efiemu.c: likewise
31696 * loader/i386/efi/linux.c: added preliminary efiemu support
31697 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31698 files to copy
31699 * include/grub/autoefi.h: new file
31700 * include/grub/i386/efiemu.h: likewise
31701 * include/grub/i386/pc/efiemu.h: likewise
31702 * include/grub/efi/api.h: add LL suffix when necessary
31703 new definitions relating to tables
31704 * include/grub/efiemu/efiemu.h: new file
31705 * include/grub/efiemu/runtime.h: likewise
31706 * efiemu/prepare.c: likewise
31707 * efiemu/loadcore_common.c: likewise
31708 * efiemu/loadcore64.c: likewise
31709 * efiemu/runtime/efiemu.sh: likewise
31710 * efiemu/runtime/efiemu.S: likewise
31711 * efiemu/runtime/efiemu.c: likewise
31712 * efiemu/runtime/config.h: likewise
31713 * efiemu/prepare32.c: likewise
31714 * efiemu/main.c: likewise
31715 * efiemu/modules/pnvram.c: likewise
31716 * efiemu/modules/i386: likewise
31717 * efiemu/modules/i386/pc: likewise
31718 * efiemu/modules/acpi.c: likewise
31719 * efiemu/i386/pc/cfgtables.c: likewise
31720 * efiemu/i386/loadcore64.c: likewise
31721 * efiemu/i386/loadcore32.c: likewise
31722 * efiemu/prepare64.c: likewise
31723 * efiemu/loadcore.c: likewise
31724 * efiemu/symbols.c: likewise
31725 * efiemu/mm.c: likewise
31726 * efiemu/loadcore32.c: likewise
31727
31728 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31729
31730 ACPI spoofing
31731
31732 * commands/acpi.c: new file
31733 * commands/i386/pc/acpi.c: likewise
31734 * commands/efi/acpi.c: likewise
31735 * include/grub/acpi.h: likewise
31736 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31737 (acpi_mod_SOURCES): new variable
31738 (acpi_mod_CFLAGS): likewise
31739 (acpi_mod_LDFLAGS): likewise
31740 * conf/i386-efi.rmk: likewise
31741 * conf/x86_64-efi.rmk: likewise
31742
31743 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31744
31745 Missing part from mmap patch
31746
31747 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31748 (grub_mmap_unregister)
31749 (grub_mmap_free_and_unregister): use grub_mmap_register
31750
31751 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31752
31753 Mmap services
31754
31755 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31756 * loader/i386/linux.c (find_mmap_size): likewise
31757 (allocate_pages): likewise
31758 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31759 (grub_fill_multiboot_mmap): likewise
31760 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31761 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31762 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31763 (OPENBSD_MMAP_RESERVED): likewise
31764 * include/grub/i386/pc/memory.h: include grub/memory.h
31765 (grub_lower_mem): removed
31766 (grub_upper_mem): likewise
31767 (GRUB_MACHINE_MEMORY_ACPI): new definition
31768 (GRUB_MACHINE_MEMORY_NVS): likewise
31769 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31770 (GRUB_MACHINE_MEMORY_HOLE): likewise
31771 (grub_machine_mmap_register): likewise
31772 (grub_machine_mmap_unregister): likewise
31773 (grub_machine_get_upper): likewise
31774 (grub_machine_get_lower): likewise
31775 (grub_machine_get_post64): likewise
31776 * include/grub/i386/efi/memory.h: new file
31777 * include/grub/x86_64/efi/memory.h: likewise
31778 * include/grub/efi/memory.h: likewise
31779 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31780 (mmap_mod_SOURCES): new variable
31781 (mmap_mod_LDFLAGS): likewise
31782 (mmap_mod_ASFLAGS): likewise
31783 * conf/i386-coreboot.rmk: likewise
31784 * conf/i386-ieee1275.rmk: likewise
31785 * conf/i386-efi.rmk: likewise
31786 * conf/x86_64-efi.rmk: likewise
31787 * include/grub/types.h (UINT_TO_PTR): new macro
31788 (PTR_TO_UINT32): likewise
31789 (PTR_TO_UINT64): likewise
31790 * include/grub/memory.h: new file
31791 * mmap/i386/pc/mmap.c: likewise
31792 * mmap/i386/pc/mmap_helper.S: likewise
31793 * mmap/i386/uppermem.c: likewise
31794 * mmap/mmap.c: likewise
31795 * mmap/efi/mmap.c: likewise
31796 * kern/i386/coreboot/init.c (grub_machine_init): don't use
31797 grub_upper_mem
31798 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31799 (grub_upper_mem): likewise
31800 (grub_machine_init): don't use grub_upper_mem,
31801 make grub_lower_mem local
31802 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31803 grub_mmap_iterate and grub_mmap_get_upper
31804 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31805
31806 2009-05-02 Bean <bean123ch@gmail.com>
31807
31808 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31809 script/sh/parser.y.
31810 (pkglib_MODULES): Add normal.mod and sh.mod.
31811 (normal_SOURCES): New variable.
31812 (normal_mod_CFLAGS): Likewise.
31813 (normal_mod_LDFLAGS): Likewise.
31814 (sh_mod_SOURCES): Likewise.
31815 (sh_mod_CFLAGS): Likewise.
31816 (sh_mod_LDFLAGS): Likewise.
31817
31818 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31819 script/sh/lexer.c_DEPENDENCIES.
31820 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31821 kern/rescue_reader.c and kern/rescue_parser.c.
31822 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31823 (grub_emu_SOURCES): Change source files.
31824 (pkglib_MODULES): Remove normal.mod.
31825 (normal_SOURCES): Removed.
31826 (normal_mod_CFLAGS): Likewise.
31827 (normal_mod_LDFLAGS): Likewise.
31828 * conf/i386-coreboot.rmk: Likewise.
31829 * conf/i386-efi.rmk: Likewise.
31830 * conf/i386-ieee1276.rmk: Likewise.
31831 * conf/powerpc-ieee1275.rmk: Likewise.
31832 * conf/sparc64-ieee1275.rmk: Likewise.
31833 * conf/x86_64-efi.rmk: Likewise.
31834
31835 * include/grub/command.h (grub_command_execute): New inline function.
31836
31837 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31838
31839 * include/grub/normal.h: Remove <grub/setjmp.h>.
31840 (grub_fs_module_list): Moved to normal/autofs.c.
31841 (grub_exit_env): Removed.
31842 (grub_command_execute): Likewise.
31843 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31844 parameter script.
31845 (read_command_list): New function declaration.
31846 (read_fs_list): Likewise.
31847
31848 * include/parser.h: Include <grub/reader.h>.
31849 (grub_parser_split_cmdline): Change type of getline parameter.
31850 (grub_parser): New structure.
31851 (grub_parser_class): New variable.
31852 (grub_parser_execute): New function declaration.
31853 (grub_register_rescue_parser): Likewise.
31854 (grub_parser_register): New inline function.
31855 (grub_parser_unregister): Likewise.
31856 (grub_parser_get_current): Likewise.
31857 (grub_parser_set_current): Likewise.
31858
31859 * include/grub/reader.h: New file.
31860 * kern/reader.c: Likewise.
31861 * kern/rescue_parser.c: Likewise.
31862 * kern/rescue_reader.c: Likewise.
31863 * normal/autofs.c: Likewise.
31864 * normal/dyncmd.c: Likewise.
31865
31866 * include/grub/rescue.h: Removed.
31867 * normal/command.h: Likewise.
31868
31869 * include/grub/script.h: Moved to ...
31870 * include/grub/script_sh.h: ... Moved here.
31871 * normal/execute.c: Moved to ...
31872 * script/sh/execute.c: ... Moved here.
31873 * normal/function.c: Moved to ...
31874 * script/sh/function.c: ... Moved here.
31875 * normal/lexer.c: Moved to ...
31876 * script/sh/lexer.c: ... Moved here.
31877 * normal/parser.y: Moved to ...
31878 * script/sh/parser.y: ... Moved here.
31879 * normal/script.c: Moved to ...
31880 * script/sh/script.c: ... Moved here.
31881
31882 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31883 <grub/reader.h>.
31884 (grub_exit_env): Removed.
31885 (fs_module_list): Moved to normal/autofs.c.
31886 (grub_file_getline): Don't handle comment here.
31887 (free_menu): Skip removed field entry->commands.
31888 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31889 script parameter.
31890 (read_config_file): Removed nested parameter, change getline function.
31891 (grub_enter_normal_mode): Removed.
31892 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31893 (read_command_list): Likewise.
31894 (autoload_fs_module): Moved to normal/autofs.c.
31895 (read_fs_list): Likewise.
31896 (reader_nested): New variable.
31897 (grub_normal_execute): Run parser.sh to switch to sh parser.
31898 (grub_cmd_rescue): Removed.
31899 (cmd_normal): Removed.
31900 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31901 rescue command.
31902 (grub_cmdline_run): New function.
31903 (grub_normal_reader_init): Likewise.
31904 (grub_normal_read_line): Likewise.
31905 (grub_env_write_pager): Likewise.
31906 (cmdline): New variable.
31907 (grub_normal_reader): Likewise.
31908 (GRUB_MOD_INIT): Register normal reader and set as current, register
31909 pager hook, register normal command with grub_register_command_prio,
31910 so that it won't show up in command.lst.
31911 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31912 grub_fs_autoload_hook.
31913
31914 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31915 (grub_menu_execute_entry): Replace grub_script_execute with
31916 grub_parser_execute, change parameter to grub_command_execute.
31917
31918 * normal/menu_text.c: Remove <grub/script.h>.
31919
31920 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31921 and <grub/parser.h>.
31922 (run): Change editor_getline to use new parser interface. Change
31923 parameter to grub_command_execute.
31924
31925 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31926 <grub/reader.h> and <grub/parser.h>.
31927 (grub_load_normal_mode): Execute normal command.
31928 (grub_main): Call grub_register_core_commands,
31929 grub_register_rescue_parser and grub_register_rescue_reader, use
31930 grub_reader_loop to enter input loop.
31931
31932 * kern/parser.c (grub_parser_split_cmdline): Change type of
31933 getline parameter.
31934 (grub_parser_class): New variable.
31935 (grub_parser_execute): New function.
31936
31937 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31938 * loader/multiboot2.c: Likewise.
31939 * loader/sparc64/ieee1275/linux.c: Likewise.
31940
31941 * util/grub-emu.c (read_command_list): New dummy function.
31942
31943 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31944
31945 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31946 count to 16 for CCISS and IDA.
31947
31948 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31949
31950 * normal/menu_text.c (grub_wait_after_message): Print a newline
31951 after waiting for user input.
31952
31953 * loader/i386/linux.c: Include `<grub/normal.h>'.
31954 (grub_cmd_linux): Improve the error message about `ask' mode, by
31955 waiting for user input so it's not missed (we can do this, since
31956 user requested interaction).
31957
31958 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31959
31960 Added missing lst to grub-mkrescue
31961
31962 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31963 and ${input_dir}/parttool.lst
31964
31965 2009-04-30 David S. Miller <davem@davemloft.net>
31966
31967 * util/hostdisk.c (device_is_wholedisk): New function.
31968 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31969 zero only if device_is_wholedisk() returns true.
31970
31971 * util/hostdisk.c (convert_system_partition_to_system_disk):
31972 Handle virtual disk devices named /dev/vdiskX as found on sparc
31973 and powerpc.
31974
31975 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31976 lettered partition specifier is found, convert to numbered.
31977
31978 2009-04-29 David S. Miller <davem@davemloft.net>
31979
31980 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31981 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31982
31983 * normal/command.c: Add missing newline at end of file.
31984
31985 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31986 warnings.
31987 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31988 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31989 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31990 ihandles have a 32-bit type but need to be stored in a "void *".
31991
31992 2009-04-28 Pavel Roskin <proski@gnu.org>
31993
31994 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31995 not disk. Adjust all dependencies.
31996 (grub_fs_uuid_close): Use grub_device_close(), not
31997 grub_disk_close().
31998
31999 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32000 parent's partition, don't copy it by reference, as it gets freed
32001 on close.
32002
32003 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32004
32005 Preboot hooks support
32006
32007 * commands/boot.c (struct grub_preboot_t): new declaration
32008 (preboots_head): new variable
32009 (preboots_tail): likewise
32010 (grub_loader_register_preboot_hook): new function
32011 (grub_loader_unregister_preboot_hook): likewise
32012 (grub_loader_set): launch preboot hooks
32013 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32014 (grub_loader_register_preboot_hook): new declaration
32015 (grub_loader_unregister_preboot_hook): likewise
32016
32017 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32018
32019 Warning fix
32020
32021 * disk/scsi.c (grub_scsi_open): added missing cast when
32022 calling grub_dprintf
32023
32024 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32025
32026 Bug and warning fixes
32027
32028 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32029 declaration
32030 * commands/test.c (test_parse): fixed bug with file tests and corrected
32031 declaration of find_file
32032
32033 2009-04-26 Pavel Roskin <proski@gnu.org>
32034
32035 * Makefile.in: Don't install empty manual pages if help2man is
32036 missing. Use help2man option for output, not shell redirection.
32037
32038 2009-04-26 David S. Miller <davem@davemloft.net>
32039
32040 * util/grub-mkdevicemap.c (make_device_map): Add missing
32041 NESTED_FUNC_ATTR to process_device().
32042
32043 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32044
32045 Test command
32046
32047 * commands/test.c: rewritten to use bash-like test
32048
32049 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32050
32051 Parttool autoloading and improvements
32052
32053 * Makefile.in (pkglib_DATA): add parttool.lst
32054 (parttool.lst): new target
32055 * genmk.rb: generate parttool-*
32056 (CLEANFILES): add #{parttool}
32057 (PARTTOOLFILES): new variable
32058 * genparttoollist.sh: new file
32059 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32060 (grub_pcpart_type): likewise
32061 * commands/parttool.c (helpmsg): new variable
32062 (grub_cmd_parttool): output help if not enough arguments are supplied
32063 autoload modules
32064 (GRUB_MOD_INIT(parttool)): use helpmsg
32065
32066 2009-04-24 David S. Miller <davem@davemloft.net>
32067
32068 Avoiding opening same device multiple times in device iterator.
32069
32070 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32071 and use it to build a list of partitions in iterate_disk() and
32072 iterate_partition().
32073
32074 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32075 on disk->data.
32076
32077 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32078 grub_devalias_iterate() result instead of unconditional 0.
32079 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32080 Also, capture hook return value, either directly or via
32081 grub_children_iterate(), and propagate to caller.
32082 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32083 grub_children_iterate): Return value is now 'int' instead of
32084 'grub_err_t'.
32085 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32086 like a proper iterator, stopping when hooks return non-zero.
32087 (grub_devalias_iterate): Likewise.
32088
32089 2009-04-23 David S. Miller <davem@davemloft.net>
32090
32091 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32092
32093 2009-04-22 David S. Miller <davem@davemloft.net>
32094
32095 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32096 is larger than address_cells, use that value for address_cells too.
32097
32098 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32099 IEEE1275_MAX_PATH_LEN): Define.
32100 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32101 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32102 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32103 'devtype'. Explicitly NULL terminate devalias expansion.
32104
32105 * util/sparc64/ieee1275/misc.c: New file.
32106 * util/sparc64/ieee1275/grub-setup.c: New file.
32107 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32108 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32109 * util/sparc64/ieee1275/grub-install.in: New file.
32110 * util/ieee1275/ofpath.c: New file.
32111 * util/ieee1275/devicemap.c: New file.
32112 * util/devicemap.c: New file.
32113 * util/deviceiter.c: New file.
32114 * kern/sparc64/ieee1275/init.c: New file.
32115 * include/grub/util/ofpath.h: New file.
32116 * include/grub/util/deviceiter.h: New file.
32117 * util/grub-mkdevicemap.c: Include deviceiter.h.
32118 Implement using grub_util_emit_devicemap_entry and
32119 grub_util_iterate_devices.
32120 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32121 util/devicemap.c into grub-mkdevicemap
32122 * conf/i386-efi.rmk: Likewise.
32123 * conf/i386-ieee1275.rmk: Likewise.
32124 * conf/i386-pc.rmk: Likewise.
32125 * conf/powerpc-ieee1275.rmk: Likewise.
32126 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32127 images and installation utilities. Build kernel as image
32128 instead of as elf binary. Use common rules as much as possible.
32129
32130 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32131
32132 Correct GPT definition
32133
32134 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32135 of "attrib" member
32136
32137 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32138
32139 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32140
32141 2009-04-19 David S. Miller <davem@davemloft.net>
32142
32143 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32144 (grub_rescue_cmd_linux): Rename to...
32145 (grub_cmd_linux): and fix prototype.
32146 (grub_rescue_cmd_initrd): Rename to...
32147 (grub_cmd_initrd): and fix prototype.
32148 (cmd_linux, cmd_initrd): New.
32149 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32150 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32151
32152 2009-04-17 Pavel Roskin <proski@gnu.org>
32153
32154 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32155 format.
32156 (grub_ohci_transfer): Likewise.
32157
32158 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32159
32160 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32161 return without a value. Fix inconsistent indentation.
32162
32163 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32164 match struct grub_fs.
32165
32166 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32167 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32168 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32169 * commands/lspci.c (grub_lspci_iter): Likewise.
32170
32171 2009-04-16 Bean <bean123ch@gmail.com>
32172
32173 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32174 value.
32175
32176 2009-04-15 Pavel Roskin <proski@gnu.org>
32177
32178 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32179 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32180 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32181 definitions.
32182
32183 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32184
32185 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32186 that no multiple data or metadata areas are supported and `Unknown
32187 metadata header'.
32188
32189 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32190
32191 Move loader out of the kernel
32192
32193 * kern/loader.c: moved to ...
32194 * commands/boot.c: ... moved here
32195 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32196 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32197 * include/grub/kernel.h (grub_machine_fini): export
32198 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32199 (grub_loader_set): likewise
32200 (grub_loader_unset): likewise
32201 (grub_loader_boot): likewise
32202 * conf/common.rmk: new module boot.mod
32203 (pkglib_MODULES): add boot.mod
32204 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32205 (grub_emu_SOURCES): likewise
32206 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32207 (grub_emu_SOURCES): likewise
32208 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32209 (grub_emu_SOURCES): likewise
32210 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32211 (grub_emu_SOURCES): likewise
32212 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32213 (grub_emu_SOURCES): likewise
32214 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32215 (grub_emu_SOURCES): likewise
32216 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32217 (grub_emu_SOURCES): likewise
32218
32219 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32220
32221 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32222
32223 * kern/misc.c (grub_itoa): Removed function
32224 (grub_ltoa): likewise
32225 (grub_vsprintf): use grub_lltoa
32226
32227 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32228
32229 Restore grub-emu
32230
32231 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32232 * conf/i386-coreboot.rmk: likewise
32233 * conf/i386-ieee1275.rmk: likewise
32234 * conf/powerpc-ieee1275.rmk: likewise
32235
32236 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32237
32238 * INSTALL: Add that `./autogen.sh' needs to be run before
32239 `./configure.'.
32240
32241 2009-04-14 Bean <bean123ch@gmail.com>
32242
32243 * Makefile.in (pkglib_DATA): Add handler.lst.
32244 (handler.lst): New rule.
32245
32246 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32247 * conf/i386-coreboot.rmk: Likewise.
32248 * conf/i386-ieee1275.rmk: Likewise.
32249 * conf/i386-efi.rmk: Likewise.
32250 * conf/x86_64-efi.rmk: Likewise.
32251 * conf/powerpc-ieee1275.rmk: Likewise.
32252 * conf/sparc64-ieee1275.rmk: Likewise.
32253
32254 * genhandlerlist.sh: New file.
32255
32256 * genmk.rb: Add rules to generate handler.lst.
32257
32258 * include/grub/normal.h (grub_file_getline): New function definition.
32259 (read_handler_list): Likewise.
32260 (free_handler_list): Likewise.
32261
32262 * include/grub/term.h (grub_term_register_input): Add name parameter
32263 for auto generation of handler.lst.
32264 (grub_term_register_output): Likewise.
32265
32266 * normal/handler.c: New file.
32267
32268 * normal/main.c (get_line): Renamed to grub_file_getline.
32269 (read_config_file): Use the newly renamed grub_file_getline.
32270 (read_command_list): Likewise.
32271 (read_fs_list): Likewise.
32272 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32273 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32274
32275 * term/efi/console.c (grub_console_init): Add name parameter for auto
32276 generation of handler.lst.
32277 * term/gfxterm.c: Likewise.
32278 * term/i386/pc/at_keyboard.c: Likewise.
32279 * term/i386/pc/console.c: Likewise.
32280 * term/i386/pc/serial.c: Likewise.
32281 * term/i386/pc/vesafb.c: Likewise.
32282 * term/i386/pc/vga.c: Likewise.
32283 * term/i386/pc/vga_text.c: Likewise.
32284 * term/ieee1275/ofconsole.c: Likewise.
32285 * term/usb_keyboard.c: Likewise.
32286
32287 2009-04-14 Bean <bean123ch@gmail.com>
32288
32289 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32290 properly with null character.
32291
32292 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32293
32294 * configure: Remove.
32295 * config.h.in: Likewise.
32296 * stamp-h.in: Likewise.
32297 * DISTLIST: Likewise.
32298 * conf/common.mk: Likewise.
32299 * conf/i386-coreboot.mk: Likewise.
32300 * conf/i386-efi.mk: Likewise.
32301 * conf/i386-ieee1275.mk: Likewise.
32302 * conf/i386.mk: Likewise.
32303 * conf/i386-pc.mk: Likewise.
32304 * conf/powerpc-ieee1275.mk: Likewise.
32305 * conf/sparc64-ieee1275.mk: Likewise.
32306 * conf/x86_64-efi.mk: Likewise.
32307
32308 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32309 develop on GRUB.
32310
32311 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32312 David S. Miller <davem@davemloft.net>
32313
32314 * util/hostdisk.c (make_device_name): Fix buffer length
32315 calculations.
32316
32317 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32318
32319 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32320 <sys/param.h> and <sys/sysctl.h>.
32321 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32322 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32323 opening the device and reset them afterwards.
32324
32325 2009-04-13 Pavel Roskin <proski@gnu.org>
32326
32327 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32328 Reported by John Stanley <jpsinthemix@verizon.net>
32329
32330 2009-04-13 Robert Millan <rmh@aybabtu.com>
32331
32332 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32333 that name for menuentries when appropriate.
32334
32335 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32336
32337 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32338
32339 2009-04-13 Robert Millan <rmh@aybabtu.com>
32340
32341 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32342 to Linux, simply abort telling the user it's no longer supported.
32343
32344 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32345
32346 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32347 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32348 `freebsd_loadenv' only when devices.hints exist.
32349
32350 2009-04-13 Pavel Roskin <proski@gnu.org>
32351
32352 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32353
32354 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32355
32356 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32357 partition number.
32358 (grub_drive): Likewise.
32359
32360 2009-04-13 David S. Miller <davem@davemloft.net>
32361
32362 * kern/sparc64/ieee1275/ieee1275.c: New file.
32363 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32364 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32365 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32366 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32367 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32368 grub_ieee1275_alloc_physmem): Declare new exported functions.
32369
32370 * include/grub/sparc64/ieee1275/loader.h: New file.
32371 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32372 * include/grub/sparc64/kernel.h: Likewise.
32373 * loader/sparc64/ieee1275/linux.c: Likewise.
32374
32375 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32376 (grub_fstest_SOURCES): Likewise.
32377
32378 * util/hostdisk.c (make_device_name): Do not make any assumptions
32379 about the length of drive names.
32380
32381 * kern/dl.c (grub_dl_load_file): Close file immediately when
32382 we are done using it.
32383
32384 2009-04-12 David S. Miller <davem@davemloft.net>
32385
32386 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32387 values. Noticed by Pavel Roskin.
32388
32389 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32390 target compiler.
32391
32392 * genmk.rb: Add more flexible image type specification, also
32393 pass --strip-unneeded to objcopy.
32394 * conf/i386-pc.rmk: Use *_FORMAT.
32395 * conf/i386-pc.mk: Rebuilt.
32396
32397 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32398 (OFDISK_HASH_SZ): Define.
32399 (ofdisk_hash): New hash table.
32400 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32401 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32402 instead of device phandle which is not unique.
32403
32404 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32405 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32406 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32407 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32408 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32409 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32410 GRUB_KERNEL_MACHINE_DATA_END): Define.
32411 (grub_kernel_image_size, grub_total_module_size): Declare.
32412
32413 2009-04-12 Pavel Roskin <proski@gnu.org>
32414
32415 * configure.ac: Change the logic when we check for target tools.
32416 Do it when the target is specified and it's different from the
32417 specified value of the host.
32418
32419 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32420
32421 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32422 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32423 GNU/kFreeBSD. Check if a device is a character device. Use
32424 DIOCGMEDIASIZE to get the size.
32425 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32426 support for GNU/kFreeBSD.
32427 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32428 is a character device instead of a block device. Add support for
32429 FreeBSD device names.
32430
32431 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32432 is a character device instead of a block device.
32433
32434 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32435 is a character device instead of a block device.
32436
32437 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32438
32439 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32440 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32441 FreeBSD. Check if a device is a character device. Use
32442 DIOCGMEDIASIZE to get the size.
32443 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32444 support for FreeBSD.
32445 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32446 is a character device instead of a block device. Add support for
32447 FreeBSD device names.
32448
32449 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32450 a character device instead of a block device.
32451 (grub_util_check_char_device): New function.
32452
32453 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32454 a character device instead of a block device.
32455
32456 * include/grub/util/getroot.h (grub_util_check_char_device): New
32457 prototype.
32458
32459 2009-04-11 David S. Miller <davem@davemloft.net>
32460
32461 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32462 static libgcc.
32463 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32464 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32465 function, if present.
32466 (__bswapdi2): Likewise.
32467
32468 * include/grub/sparc64/ieee1275/boot.h: New file.
32469 * boot/sparc64/ieee1275/boot.S: Likewise.
32470 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32471
32472 * kern/misc.c (grub_ltoa): New function.
32473 (grub_vsprintf): Use it to format 'long' integers.
32474
32475 2009-04-10 David S. Miller <davem@davemloft.net>
32476
32477 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32478 slots are of type grub_ieee1275_cell_t.
32479 (grub_nand_read): Likewise.
32480 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32481 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32482 macros are used to compare values in arg/ret block of the call.
32483 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32484 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32485 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32486 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32487 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32488 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32489 grub_ieee1275_close, grub_ieee1275_set_property,
32490 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32491 grub_ieee1275_cell_t.
32492 * kern/ieee1275/openfw.c (grub_map): Likewise.
32493 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32494 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32495
32496 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32497 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32498 (grub_devalias_iterate): Likewise.
32499
32500 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32501
32502 UFS improvements
32503
32504 * fs/ufs.c (INODE_NBLOCKS): new definition
32505 (struct grub_ufs_dirent): added fields for non-BSD dirents
32506 (grub_ufs_get_file_block): fixed double indirect handling
32507 (grub_ufs_lookup_symlink): use more robust way to determine whether
32508 symlink is inline
32509 (grub_ufs_find_file): support for non-BSD dirents
32510 (grub_ufs_dir): support for non-BSD dirents
32511
32512 2009-04-10 Bean <bean123ch@gnail.com>
32513
32514 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32515 attribute, otherwise the size would be wrong for i386 platform.
32516
32517 * include/grub/pci.h (grub_pci_read_word): New inline function.
32518 (grub_pci_read_byte): Likewise.
32519 (grub_pci_write): Likewise.
32520 (grub_pci_write_word): Likewise.
32521 (grub_pci_write_byte): Likewise.
32522
32523 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32524
32525 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32526 (find_framebuf): Scan pci to locate the frame buffer address.
32527
32528 * commands/efi/fixvideo.c: New file.
32529
32530 * commands/efi/loadbios.c: Likewise.
32531
32532 * commands/memrw.c: Likewise.
32533
32534 * util/grub-dumpbios.in: Likewise.
32535
32536 * conf/common.rmk (grub-dumpbios): New utility.
32537 (pkglib_MODULES): New module memrw.mod.
32538 (memrw_mod_SOURCE): New macro.
32539 (memrw_mod_CFLAGS): Likewise.
32540 (memrw_mod_LDFLAGS): Likewise.
32541
32542 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32543 fixvideo.mod.
32544 (loadbios_mod_SOURCE): New macro.
32545 (loadbios_mod_CFLAGS): Likewise.
32546 (loadbios_mod_LDFLAGS): Likewise.
32547 (fixvideo_mod_SOURCE): Likewise.
32548 (fixvideo_mod_CFLAGS): Likewise.
32549 (fixvideo_mod_LDFLAGS): Likewise.
32550
32551 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32552 fixvideo.mod.
32553 (loadbios_mod_SOURCE): New macro.
32554 (loadbios_mod_CFLAGS): Likewise.
32555 (loadbios_mod_LDFLAGS): Likewise.
32556 (fixvideo_mod_SOURCE): Likewise.
32557 (fixvideo_mod_CFLAGS): Likewise.
32558 (fixvideo_mod_LDFLAGS): Likewise.
32559
32560 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32561
32562 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32563
32564 2009-04-07 David S. Miller <davem@davemloft.net>
32565
32566 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32567 support for R_SPARC_OLO10 relocations. Fix compile warning for
32568 R_SPARC_WDISP30 case.
32569 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32570
32571 2009-04-06 Pavel Roskin <proski@gnu.org>
32572
32573 * include/grub/misc.h (ARRAY_SIZE): New macro.
32574 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32575 New macro.
32576 * loader/i386/linux.c (allocate_pages): Use free_pages().
32577 (grub_linux_unload): Don't use free_pages().
32578 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32579 wrong index. Treat all other modes as text modes.
32580 (grub_cmd_linux): Initialize vid_mode unconditionally to
32581 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32582
32583 * commands/help.c (print_command_help): Use cmd->prio, not
32584 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32585
32586 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32587
32588 Parttool
32589
32590 * parttool/pcpart.c: new file
32591 * commands/parttool.c: likewise
32592 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32593 (parttool_mod_SOURCES): new variable
32594 (parttool_mod_CFLAGS): likewise
32595 (parttool_mod_LDFLAGS): likewise
32596 (pcpart_mod_SOURCES): likewise
32597 (pcpart_mod_CFLAGS): likewise
32598 (pcpart_mod_LDFLAGS): likewise
32599 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32600 and parttool/pcpart.c
32601 * conf/i386-efi.rmk: likewise
32602 * conf/i386-ieee1275.rmk: likewise
32603 * conf/i386-pc.rmk: likewise
32604 * conf/powerpc-ieee1275.rmk: likewise
32605 * conf/sparc64-ieee1275.rmk: likewise
32606 * conf/x86_64-ieee1275.rmk: likewise
32607
32608 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32609
32610 Support for mtime and further expandability of dir command
32611
32612 * include/grub/lib/datetime.h: moved to ...
32613 * include/grub/datetime.h: ... moved here and added
32614 declaration of grub_unixtime2datetime. All users updated
32615 * include/grub/fs.h: new syntax for dir and mtime functions in
32616 struct grub_fs
32617 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32618 and GRUB_FSHELP_FLAGS_MASK
32619 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32620 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32621 (grub_ext2_mtime): new function
32622 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32623 (grub_hfsplus_mtime): new function
32624 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32625 (GRUB_UFS_ATTR_FILE): likewise
32626 (GRUB_UFS_ATTR_LNK): likewise
32627 (struct grub_ufs_sblock): new fields mtime
32628 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32629 all users updated
32630 (grub_ufs_dir): mtime support
32631 (grub_ufs_mtime): new function
32632 * fs/affs.c (grub_affs_dir): use new dir syntax
32633 * fs/afs.c (grub_afs_dir): likewise
32634 * fs/cpio.c (grub_cpio_dir): likewise
32635 * fs/fat.c (grub_fat_find_dir): likewise
32636 * fs/hfs.c (grub_hfs_dir): likewise
32637 * fs/iso9660.c (grub_iso9660_dir): likewise
32638 * fs/jfs.c (grub_jfs_dir): likewise
32639 * fs/minix.c (grub_minix_dir): likewise
32640 * fs/ntfs.c (grub_ntfs_dir): likewise
32641 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32642 * fs/sfs.c (grub_sfs_dir): likewise
32643 * fs/xfs.c (grub_xfs_dir): likewise
32644 * util/hostfs.c (grub_hostfs_dir): likewise
32645 * lib/datetime.c: moved to ...
32646 * normal/datetime.c: ... moved here
32647 (grub_unixtime2datetime): new function
32648 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32649 * normal/completion.c (iterate_dir): use new dir syntax
32650 * normal/misc.c (grub_normal_print_device_info): tell the
32651 last modification time of a volume
32652 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32653 * conf/common.rmk: added lib/datetime.c to ls.mod
32654 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32655 (normal_mod_SOURCES): likewise
32656 (datetime_mod_SOURCES): Removed lib/datetime.c
32657 * conf/i386-efi.rmk: likewise
32658 * conf/i386-ieee1275.rmk: likewise
32659 * conf/i386-pc.rmk: likewise
32660 * conf/powerpc-ieee1275.rmk: likewise
32661 * conf/sparc64-ieee1275.rmk: likewise
32662 * conf/x86_64-efi.rmk: likewise
32663
32664 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32665
32666 Trim trailing spaces in FAT label and support mtools-like labels
32667
32668 * fs/fat.c (grub_fat_iterate_dir): New function based
32669 on grub_fat_find_dir
32670 (grub_fat_find_dir): use grub_fat_iterate_dir
32671 (grub_fat_label): likewise
32672
32673 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32674
32675 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32676 and command.h
32677 remove extraneous kernel_elf_HEADERS
32678
32679 2009-04-04 Bean <bean123ch@gnail.com>
32680
32681 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32682
32683 * util/misc.c: Likewise.
32684
32685 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32686
32687 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32688 instead of grub_printf.
32689
32690 2009-04-03 Robert Millan <rmh@aybabtu.com>
32691
32692 * loader/i386/linux.c (grub_linux_setup_video): Fill
32693 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32694 values from `mode info' structure instead of hardcoded
32695 values.
32696
32697 2009-04-01 Pavel Roskin <proski@gnu.org>
32698
32699 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32700 unused now.
32701 * genmk.rb: Likewise.
32702 * configure.ac: Likewise.
32703
32704 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32705
32706 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32707 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32708
32709 2009-04-01 David S. Miller <davem@davemloft.net>
32710
32711 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32712 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32713 (grub_setjmp): Mark with 'returns_twice' attribute.
32714 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32715 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32716 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32717
32718 2009-04-01 Robert Millan <rmh@aybabtu.com>
32719
32720 Reapply fix from 2008-07-28 which was accidentally reverted; also
32721 perform the same fix to a similar check in same function.
32722
32723 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32724 with the same number are found, just use issue a warning with
32725 grub_dprintf(), as this error has been reported to be non-fatal.
32726
32727 2009-03-31 Pavel Roskin <proski@gnu.org>
32728
32729 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32730 for cross-compilation.
32731
32732 2009-03-30 Robert Millan <rmh@aybabtu.com>
32733
32734 Fix i386-ieee1275 build.
32735
32736 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32737 Remove declaration.
32738
32739 2009-03-30 Pavel Roskin <proski@gnu.org>
32740
32741 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32742 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32743 zero-terminated, rely only on the strlen value. Fix comparison
32744 of strings differing in length.
32745
32746 2009-03-30 Robert Millan <rmh@aybabtu.com>
32747
32748 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32749 checking for abi version. Improve error messages on BIOS to notify
32750 user about `linux16' command.
32751
32752 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32753
32754 Leak fixes
32755
32756 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32757 in case of collision
32758 * disk/scsi.c (grub_scsi_open): free scsi in case of error
32759
32760 2009-03-29 Robert Millan <rmh@aybabtu.com>
32761
32762 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32763 set `vid_mode' accordingly.
32764 (grub_linux_boot): Process `vid_mode' and set video mode.
32765
32766 2009-03-29 Robert Millan <rmh@aybabtu.com>
32767
32768 * util/grub.d/10_linux.in (linux_entry): New function.
32769 Factorize generation of Linux boot entries.
32770
32771 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32772
32773 Make the format of Environment Block plain text. The boot loader
32774 part is not tested well yet.
32775
32776 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32777 (buffer): Removed.
32778 (envblk): Likewise.
32779 (usage): Remove "info" and "clear". Add "unset". Update the
32780 description of "set", as this does not delete variables any
32781 longer.
32782 (create_envblk_file): Complete rewrite.
32783 (open_envblk_file): Likewise.
32784 (cmd_info): Removed.
32785 (cmd_list): Likewise.
32786 (cmd_set): Likewise.
32787 (cmd_clear): Likewise.
32788 (list_variables): New function.
32789 (write_envblk): Likewise.
32790 (set_variables): Likewise.
32791 (unset_variables): Likewise.
32792 (main): Complete rewrite.
32793
32794 * commands/loadenv.c (buffer): Removed.
32795 (envblk): Likewise.
32796 (open_envblk_file): New function.
32797 (read_envblk_file): Complete rewrite.
32798 (grub_cmd_load_env): Likewise.
32799 (grub_cmd_list_env): Likewise.
32800 (struct blocklist): New struct.
32801 (free_blocklists): New function.
32802 (check_blocklists): Likewise.
32803 (write_blocklists): Likewise.
32804 (grub_cmd_save_env): Complete rewrite.
32805
32806 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32807 a plain text signature.
32808 (GRUB_ENVBLK_MAXLEN): Removed.
32809 (struct grub_envblk): Complete rewrite.
32810 (grub_envblk_find): Removed.
32811 (grub_envblk_insert): Likewise.
32812 (grub_envblk_open): New prototype.
32813 (grub_envblk_set): Likewise.
32814 (grub_envblk_delete): Put const to VALUE.
32815 (grub_envblk_iterate): Put const to NAME and VALUE.
32816 (grub_envblk_close): New prototype.
32817 (grub_envblk_buffer): New inline function.
32818 (grub_envblk_size): Likewise.
32819
32820 * lib/envblk.c: Include grub/mm.h.
32821 (grub_env_find): Removed.
32822 (grub_envblk_open): New function.
32823 (grub_envblk_close): Likewise.
32824 (escaped_value_len): Likewise.
32825 (find_next_line): Likewise.
32826 (grub_envblk_insert): Removed.
32827 (grub_envblk_set): New function.
32828 (grub_envblk_delete): Complete rewrite.
32829 (grub_envblk_iterate): Likewise.
32830
32831 2009-03-28 Robert Millan <rmh@aybabtu.com>
32832
32833 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32834 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32835 variables. Use 16-bit loader.
32836 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32837 loader.
32838 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32839 (grub_linux16_boot): ... this. Update all users.
32840 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32841 (grub_linux_boot): ... this. Update all users.
32842
32843 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32844 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32845 commands to `linux16' and `initrd16'.
32846 (GRUB_MOD_FINI(linux)): Rename to ...
32847 (GRUB_MOD_FINI(linux16)): ... this.
32848
32849 2009-03-24 Pavel Roskin <proski@gnu.org>
32850
32851 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32852 not just for compilation.
32853
32854 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32855
32856 Move multiboot helper out of kernel
32857
32858 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32859 `loader/i386/multiboot_helper.S'.
32860 * conf/i386-coreboot.rmk: Likewise
32861 * conf/i386-ieee1275.rmk: Likewise
32862
32863 * kern/i386/loader.S: Move multiboot helpers from here...
32864 * loader/i386/multiboot_helper.S: ...moved here
32865 * include/grub/i386/loader.h: Move declarations of multiboot
32866 helpers from here...
32867 * include/grub/i386/multiboot.h: ...moved here
32868 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32869
32870 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32871
32872 * kern/env.c (grub_env_context_open): Added an argument to specify
32873 whether a new context inherits exported variables from current
32874 one. This is useful when making a sandbox to interpret a config
32875 file.
32876 All callers updated.
32877
32878 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32879
32880 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32881
32882 * kern/env.c (grub_env_context_close): Fix memory leaks.
32883
32884 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32885
32886 * normal/main.c (grub_normal_execute): Added an argument
32887 BATCH to specify if an interactive interface should be provided
32888 after reading a config file.
32889 All callers updated.
32890 (read_command_list): Prevent being executed twice.
32891 (read_fs_list): Likewise.
32892
32893 * include/grub/normal.h (grub_normal_execute): Updated the
32894 prototype.
32895
32896 2009-03-22 Pavel Roskin <proski@gno.org>
32897
32898 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32899 _start.
32900 * kern/i386/pc/startup.S: Likewise.
32901 * kern/i386/efi/startup.S: Likewise.
32902 * kern/i386/ieee1275/startup.S: Likewise.
32903 * kern/i386/coreboot/startup.S: Likewise.
32904 * kern/x86_64/efi/startup.S: Likewise.
32905
32906 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32907 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32908 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32909
32910 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32911
32912 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32913
32914 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32915 limit detection.
32916 Use vaddr of correct segment for entry_point.
32917
32918 2009-03-21 Bean <bean123ch@gmail.com>
32919
32920 * commands/blocklist.c: Add include file <grub/command.h>, remove
32921 <grub/normal.h> and <grub/arg.h>.
32922 (grub_cmd_blocklist): Use the new command interface.
32923 (GRUB_MOD_INIT): Likewise.
32924 (GRUB_MOD_FINI): Likewise.
32925 * commands/boot.c: Likewise.
32926 * commands/cat.c: Likewise.
32927 * commands/cmp.c: Likewise.
32928 * commands/configfile.c: Likewise.
32929 * commands/crc.c: Likewise.
32930 * commands/echo.c: Likewise.
32931 * commands/halt.c: Likewise.
32932 * commands/handler.c: Likewise.
32933 * commands/hdparm.c: Likewise.
32934 * commands/help.c: Likewise.
32935 * commands/hexdump.c: Likewise.
32936 * commands/loadenv.c: Likewise.
32937 * commands/ls.c: Likewise.
32938 * commands/lsmmap.c: Likewise.
32939 * commands/lspci.c: Likewise.
32940 * commands/loadenv.c: Likewise.
32941 * commands/read.c: Likewise.
32942 * commands/reboot.c: Likewise.
32943 * commands/search.c: Likewise.
32944 * commands/sleep.c: Likewise.
32945 * commands/test.c: Likewise.
32946 * commands/usbtest.c: Likewise.
32947 * commands/videotest.c: Likewise.
32948 * commands/i386/cpuid.c: Likewise.
32949 * commands/i386/pc/halt.c: Likewise.
32950 * commands/i386/pc/play.c: Likewise.
32951 * commands/i386/pc/pxecmd.c: Likewise.
32952 * commands/i386/pc/vbeinfo.c: Likewise.
32953 * commands/i386/pc/vbetest.c: Likewise.
32954 * commands/ieee1275/suspend.c: Likewise.
32955 * disk/loopback.c: Likewise.
32956 * font/font_cmd.c: Likewise.
32957 * hello/hello.c: Likewise.
32958 * loader/efi/appleloader.c: Likewise.
32959 * loader/efi/chainloader.c: Likewise.
32960 * loader/i386/bsd.c: Likewise.
32961 * loader/i386/efi/linux.c: Likewise.
32962 * loader/i386/ieee1275/linux.c: Likewise.
32963 * loader/i386/linux.c: Likewise.
32964 * loader/i386/pc/chainloader.c: Likewise.
32965 * loader/i386/pc/linux.c: Likewise.
32966 * loader/powerpc/ieee1275/linux.c: Likewise.
32967 * loader/multiboot_loader.c: Likewise.
32968 * term/gfxterm.c: Likewise.
32969 * term/i386/pc/serial.c: Likewise.
32970 * term/terminfo.c: Likewise.
32971
32972 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32973 * term/i386/pc/vga.c: Likewise.
32974 * video/readers/jpeg.c: Likewise.
32975 * video/readers/png.c: Likewise.
32976 * video/readers/tga.c: Likewise.
32977
32978 * util/grub-fstest (cmd_loopback): Removed.
32979 (cmd_blocklist): Likewise.
32980 (cmd_ls): Likewise.
32981 (grub_register_command): Likewise.
32982 (grub_unregister_command): Likewise.
32983 (execute_command): Use grub_command_find to locate command and execute
32984 it.
32985
32986 * include/grub/efi/chainloader.h: Removed.
32987 * loader/efi/chainloader_normal.c: Likewise.
32988 * loader/i386/bsd_normal.c: Likewise.
32989 * loader/i386/pc/chainloader_normal.c: Likewise.
32990 * loader/i386/pc/multiboot_normal.c: Likewise.
32991 * loader/linux_normal.c: Likewise.
32992 * loader/multiboot_loader_normal.c: Likewise.
32993 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32994
32995 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32996 and grub_register_command_p1.
32997
32998 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32999 kern/command.c, lib/arg.c and commands/extcmd.c.
33000 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33001 (minicmd_mod_SOURCES): New variable.
33002 (minicmd_mod_CFLAGS): Likewise.
33003 (minicmd_mod_LDFLAGS): Likewise.
33004 (extcmd_mod_SOURCES): Likewise.
33005 (extcmd_mod_CFLAGS): Likewise.
33006 (extcmd_mod_LDFLAGS): Likewise.
33007 (boot_mod_SOURCES): Removed.
33008 (boot_mod_CFLAGS): Likewise.
33009 (boot_mod_LDFLAGS): Likewise.
33010
33011 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33012 kern/corecmd.c.
33013 (kernel_img_HEADERS): Add command.h.
33014 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33015 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33016 and lib/arg.c.
33017 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33018 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33019 remove the corresponding normal mode command.
33020 (normal_mod_SOURCES): Remove normal/arg.c.
33021 * conf/i386-coreboot.rmk: Likewise.
33022 * conf/i386-efi.rmk: Likewise.
33023 * conf/i386-ieee1275.rmk: Likewise.
33024 * conf/powerpc-ieee1275.rmk: Likewise.
33025 * conf/x86_64-efi.rmk: Likewise.
33026
33027 * include/grub/arg.h: Move from here ...
33028 * include/grub/lib/arg.h: ... to here.
33029
33030 * normal/arg.c: Move from here ...
33031 * lib/arg.c: ... to here.
33032
33033 * commands/extcmd.c: New file.
33034 * commands/minicmd.c: Likewise.
33035 * include/grub/command.h: Likewise.
33036 * include/grub/extcmd.h: Likewise.
33037 * kern/command.c: Likewise.
33038 * kern/corecmd.c: Likewise.
33039
33040 * kern/list.c (grub_list_iterate): Return int instead of void.
33041 (grub_list_insert): New function.
33042 (grub_prio_list_insert): Likewise.
33043
33044 * kern/rescue.c (grub_rescue_command): Removed.
33045 (grub_rescue_command_list): Likewise.
33046 (grub_rescue_register_command): Likewise.
33047 (grub_rescue_unregister_command): Likewise.
33048 (grub_rescue_cmd_boot): Move to minicmd.c
33049 (grub_rescue_cmd_help): Likewise.
33050 (grub_rescue_cmd_info): Likewise.
33051 (grub_rescue_cmd_boot): Likewise.
33052 (grub_rescue_cmd_testload): Likewise.
33053 (grub_rescue_cmd_dump): Likewise.
33054 (grub_rescue_cmd_rmmod): Likewise.
33055 (grub_rescue_cmd_lsmod): Likewise.
33056 (grub_rescue_cmd_exit): Likewise.
33057 (grub_rescue_print_devices): Moved to corecmd.c.
33058 (grub_rescue_print_files): Likewise.
33059 (grub_rescue_cmd_ls): Likewise.
33060 (grub_rescue_cmd_insmod): Likewise.
33061 (grub_rescue_cmd_set): Likewise.
33062 (grub_rescue_cmd_unset): Likewise.
33063 (attempt_normal_mode): Use grub_command_find to get normal module.
33064 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33065 commands, remove grub_rescue_register_command calls.
33066
33067 * normal/command.c (grub_register_command): Removed.
33068 (grub_unregister_command): Likewise.
33069 (grub_command_find): Likewise.
33070 (grub_iterate_commands): Likewise.
33071 (rescue_command): Likewise.
33072 (export_command): Moved to corecmd.c.
33073 (set_command): Removed.
33074 (unset_command): Likewise.
33075 (insmod_command): Likewise.
33076 (rmmod_command): Likewise.
33077 (lsmod_command): Likewise.
33078 (grub_command_init): Likewise.
33079
33080 * normal/completion.c (iterate_command): Use cmd->prio to check for
33081 active command.
33082 (complete_arguments): Use grub_extcmd_t structure to find options.
33083 (grub_normal_do_completion): Change function grub_iterate_commands to
33084 grub_command_iterate.
33085
33086 * normal/execute.c (grub_script_execute_cmd): No need to parse
33087 argument here.
33088
33089 * normal/main.c (grub_dyncmd_dispatcher): New function.
33090 (read_command_list): Register unload commands as dyncmd.
33091 (grub_cmd_normal): Use new command interface, register rescue,
33092 unregister normal at entry, register normal, unregister rescue at exit.
33093
33094 * include/grub/list.h (grub_list_test_t): New type.
33095 (grub_list_iterate): Return int instead of void.
33096 (grub_list_insert): New function.
33097 (GRUB_AS_NAMED_LIST_P): New macro.
33098 (GRUB_AS_PRIO_LIST): Likewise.
33099 (GRUB_AS_PRIO_LIST_P): Likewise.
33100 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33101 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33102 (grub_prio_list): New structure.
33103 (grub_prio_list_insert): New function.
33104 (grub_prio_list_remove): New inline function.
33105
33106 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33107 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33108 (GRUB_COMMAND_FLAG_MENU): Likewise.
33109 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33110 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33111 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33112 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33113 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33114 (grub_command): Likewise.
33115 (grub_register_command): Likewise.
33116 (grub_command_find): Likewise.
33117 (grub_iterate_commands): Likewise.
33118 (grub_command_init): Likewise.
33119 (grub_arg_parse): Likewise.
33120 (grub_arg_show_help): Likewise.
33121
33122 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33123 (grub_rescue_unregister_command): Likewise.
33124
33125 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33126 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33127 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33128
33129 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33130 grub_rescue_cmd_initrd.
33131 * include/grub/i386/loader.h: Likewise.
33132 * include/grub/x86_64/loader.h: Likewise.
33133
33134 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33135
33136 2009-03-21 Bean <bean123ch@gmail.com>
33137
33138 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33139 instead of stat in mingw environment.
33140
33141 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33142
33143 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33144
33145 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33146 AC_CONFIG_LINKS.
33147
33148 2009-03-21 Bean <bean123ch@gmail.com>
33149
33150 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33151 out of range error.
33152
33153 2009-03-18 Michel Dänzer <michel@daenzer.net>
33154
33155 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33156 checking inode flags for EXT4_EXTENTS_FLAG.
33157
33158 2009-03-18 Robert Millan <rmh@aybabtu.com>
33159
33160 * loader/i386/linux.c: Include `<grub/video.h>' and
33161 `<grub/i386/pc/vbe.h>'..
33162 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33163 (grub_linux32_boot): Attempt to configure video settings with
33164 grub_linux_setup_video().
33165 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33166 to avoid grub_console_fini() which would step out of graphical mode
33167 unconditionally.
33168
33169 2009-03-14 Robert Millan <rmh@aybabtu.com>
33170
33171 Fix build on powerpc.
33172 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33173
33174 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33175
33176 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33177 background image command.
33178
33179 2009-03-12 Colin D Bennett <colin@gibibit.com>
33180
33181 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33182 (grub_gfxterm_putchar): Extract pairs of identical calls to
33183 draw_cursor out of conditional blocks.
33184
33185 2009-03-11 Pavel Roskin <proski@gnu.org>
33186
33187 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33188 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33189
33190 2009-03-11 Robert Millan <rmh@aybabtu.com>
33191
33192 * loader/i386/multiboot_elfxx.c
33193 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33194
33195 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33196
33197 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33198 `kern/handler.c'.
33199
33200 2009-03-11 Robert Millan <rmh@aybabtu.com>
33201
33202 * loader/i386/multiboot.c (code_size): New variable.
33203 (grub_multiboot): Define offsets by adding to `code_size' rather
33204 than subtracting from `grub_multiboot_payload_size'. Provide
33205 4-byte alignment to MBI and others by increasing
33206 `boot_loader_name_length' appropriately.
33207
33208 * loader/i386/multiboot_elfxx.c
33209 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33210
33211 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33212
33213 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33214 `fs/ext2.c'.
33215
33216 2009-03-08 Robert Millan <rmh@aybabtu.com>
33217
33218 Make loader/i386/linux.c usable on i386-pc again.
33219
33220 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33221 memory to heap.
33222 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33223 `#error' stanza.
33224
33225 2009-03-07 Bean <bean123ch@gmail.com>
33226
33227 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33228 allocation.
33229
33230 2009-03-06 Robert Millan <rmh@aybabtu.com>
33231
33232 Fix display issue on terminals with screen size other than 80x25
33233 (e.g. gfxterm with resolution higher than 640x480).
33234
33235 * normal/main.c (grub_normal_init_page): Display title text in a
33236 position relative to the center of the terminal instead of relying
33237 on a hardcoded offset.
33238
33239 2009-03-04 Robert Millan <rmh@aybabtu.com>
33240
33241 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33242 installed.
33243
33244 * Makefile.in (host_kernel): New variable.
33245 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33246 scripts instead of just the windows one.
33247 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33248
33249 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33250
33251 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33252 `kern/handler.c'.
33253 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33254 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33255 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33256 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33258 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33259
33260 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33261
33262 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33263 or if there's no space for the disk label and print the partition number on a
33264 invalid magic.
33265
33266 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33267
33268 * util/misc.c: Include <time.h>.
33269 (grub_millisleep): New function.
33270
33271 2009-03-04 Bean <bean123ch@gmail.com>
33272
33273 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33274 another option -mno-red-zone.
33275
33276 * commands/handler.c: Change module description.
33277
33278 * kern/handler.c: Add missing space at the end of description line.
33279
33280 * kern/list.c: Likewise.
33281
33282 2009-03-03 Robert Millan <rmh@aybabtu.com>
33283
33284 Move more components to the relocation area, and fix mbi pointer
33285 handling to use the destination rather than the origin (thanks to
33286 Vladimir Serbinenko for spotting).
33287
33288 * loader/i386/multiboot.c (mbi_dest): New variable.
33289 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33290 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33291 relocation area.
33292
33293 2009-03-01 Bean <bean123ch@gmail.com>
33294
33295 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33296 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33297 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33298 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33299
33300 * loader/i386/efi/linux.c (acpi_guid): New variable.
33301 (acpi_guid): Likewise.
33302 (EBDA_SEG_ADDR): New constant.
33303 (LOW_MEM_ADDR): Likewise.
33304 (FAKE_EBDA_SEG): Likewise.
33305 (fake_bios_data): New function.
33306 (grub_linux_boot): Call fake_bios_data.
33307
33308 2009-03-01 Bean <bean123ch@gmail.com>
33309
33310 * commands/terminal.c: Removed.
33311
33312 * commands/handler.c: New file.
33313
33314 * include/grub/list.h: Likewise.
33315
33316 * include/grub/handler.h: Likewise.
33317
33318 * kern/list.c: Likewise.
33319
33320 * kern/handler.c: Likewise.
33321
33322 * kern/term.h: Include header file <grub/handler.h>.
33323 (grub_term_input): Move next field to the beginning.
33324 (grub_term_output): Likewise.
33325 (grub_term_input_class): New variable.
33326 (grub_term_output_class): Likewise.
33327 (grub_term_register_input): Changed to inline function.
33328 (grub_term_register_output): Likewise.
33329 (grub_term_unregister_input): Likewise.
33330 (grub_term_unregister_output): Likewise.
33331 (grub_term_set_current_input): Likewise.
33332 (grub_term_set_current_output): Likewise.
33333 (grub_term_get_current_input): Likewise.
33334 (grub_term_get_current_output): Likewise.
33335 (grub_term_iterate_input): Removed.
33336 (grub_term_iterate_output): Likewise.
33337
33338 * kern/term.c (grub_term_list_input): Removed.
33339 (grub_term_list_output): Likewise.
33340 (grub_term_input_class): New variable.
33341 (grub_term_output_class): Likewise.
33342 (grub_cur_term_input): Change variable as macro.
33343 (grub_cur_term_output): Likewise.
33344 (grub_term_register_input): Removed.
33345 (grub_term_register_output): Likewise.
33346 (grub_term_unregister_input): Likewise.
33347 (grub_term_unregister_output): Likewise.
33348 (grub_term_set_current_input): Likewise.
33349 (grub_term_set_current_output): Likewise.
33350 (grub_term_iterate_input): Likewise.
33351 (grub_term_iterate_output): Likewise.
33352 (grub_term_get_current_input): Likewise.
33353 (grub_term_get_current_output): Likewise.
33354
33355 * util/grub-editenv.c: Include header file <grub/handler.h>.
33356 (grub_term_get_current_input): Removed.
33357 (grub_term_get_current_output): Likewise.
33358 (grub_term_input_class): New variable.
33359 (grub_term_output_class): Likewise.
33360
33361 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33362 (grub_term_get_current_output): Likewise.
33363 (grub_term_input_class): New variable.
33364 (grub_term_output_class): Likewise.
33365
33366 * util/grub-probe.c (grub_term_get_current_input): Removed.
33367 (grub_term_get_current_output): Likewise.
33368 (grub_term_input_class): New variable.
33369 (grub_term_output_class): Likewise.
33370
33371 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33372 (grub_term_get_current_output): Likewise.
33373 (grub_term_input_class): New variable.
33374 (grub_term_output_class): Likewise.
33375
33376 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33377 (terminal_mod_SOURCES): Likewise.
33378 (terminal_mod_CFLAGS): Likewise.
33379 (terminal_mod_LDFLAGS): Likewise.
33380
33381 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33382 handler.c.
33383 (kernel_img_SOURCES): Add list.c and handler.c.
33384 (kernel_img_HEADERS): Add list.h and handler.h.
33385
33386 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33387 handler.c.
33388 (kernel_mod_SOURCES): Add list.c and handler.c.
33389 (kernel_mod_HEADERS): Add list.h and handler.h.
33390
33391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33392 handler.c.
33393 (kernel_elf_SOURCES): Add list.c and handler.c.
33394 (kernel_elf_HEADERS): Add list.h and handler.h.
33395
33396 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33397 handler.c.
33398 (kernel_elf_SOURCES): Add list.c and handler.c.
33399 (kernel_elf_HEADERS): Add list.h and handler.h.
33400
33401 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33402 handler.c.
33403 (kernel_mod_SOURCES): Add list.c and handler.c.
33404 (kernel_mod_HEADERS): Add list.h and handler.h.
33405
33406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33407 handler.c.
33408 (kernel_elf_SOURCES): Add list.c and handler.c.
33409 (kernel_elf_HEADERS): Add list.h and handler.h.
33410
33411 2009-02-27 Robert Millan <rmh@aybabtu.com>
33412
33413 Factorize elf32 / elf64 code in Multiboot loader. This will
33414 prevent it from getting out of sync again.
33415
33416 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33417 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33418 grub_multiboot_load_elf64): Move from here ...
33419 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33420 grub_multiboot_load_elf): ... to here (new file).
33421
33422 2009-02-27 Robert Millan <rmh@aybabtu.com>
33423
33424 * util/grub.d/10_linux.in: Rename "single-user mode" to
33425 "recovery mode".
33426
33427 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33428
33429 Don't leak in SCSI code.
33430 * disk/scsi.c (grub_scsi_close): free `scsi'.
33431
33432 2009-02-27 Robert Millan <rmh@aybabtu.com>
33433
33434 * loader/i386/pc/multiboot.c: Move from here ...
33435 * loader/i386/multiboot.c: ... to here. Update all users.
33436
33437 2009-02-27 Robert Millan <rmh@aybabtu.com>
33438
33439 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33440 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33441
33442 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33443
33444 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33445 b-tree.
33446
33447 2009-02-27 Robert Millan <rmh@aybabtu.com>
33448
33449 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33450 `0x' qualifier as 0 when base is specified as parameter).
33451
33452 2009-02-24 Bean <bean123ch@gmail.com>
33453
33454 * configure.ac: Check for -mcmodel=large in x86_64 target.
33455
33456 * include/grub/efi/api.h (efi_call_10): New macro.
33457 (efi_wrap_10): New function.
33458
33459 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33460 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33461 (GRUB_PE32_REL_BASED_LOW): Likewise.
33462 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33463 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33464 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33465 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33466 (GRUB_PE32_REL_BASED_REL): Likewise.
33467 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33468 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33469 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33470
33471 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33472 issue.
33473
33474 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33475 (efi_wrap_10): New function.
33476
33477 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33478
33479 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33480 MB/MBP model (NV chipset).
33481 (devdata_devs): Add devpath_5 to the list.
33482
33483 * load/i386/efi/linux.c (video_base): Remove variable.
33484 (RGB_MASK): New macro.
33485 (RGB_MAGIC): Likewise.
33486 (LINE_MIN): Likewise.
33487 (LINE_MAX): Likewise.
33488 (FBTEST_STEP): Likewise.
33489 (FBTEST_COUNT): Likewise.
33490 (fb_list): New variable.
33491 (grub_find_video_card): Remove function.
33492 (find_framebuf): New function.
33493 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33494 line length.
33495
33496 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33497 problem for x86_64.
33498
33499 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33500
33501 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33502
33503 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33504 coding tool name.
33505
33506 2009-02-22 Robert Millan <rmh@aybabtu.com>
33507
33508 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33509 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33510 in our relocation, instead of using it directly from heap. Also
33511 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33512
33513 2009-02-21 Robert Millan <rmh@aybabtu.com>
33514
33515 Implement USB keyboard support (based on patch by Marco Gerards)
33516
33517 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33518 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33519 (usb_keyboard_mod_LDFLAGS): New variables.
33520
33521 * term/usb_keyboard.c: New file.
33522
33523 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33524
33525 Corrected wrong declaration
33526
33527 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33528
33529 2009-02-14 Christian Franke <franke@computer.org>
33530
33531 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33532 (grub_lspci_iter): Print class code and programming interface byte.
33533
33534 2009-02-14 Christian Franke <franke@computer.org>
33535
33536 * gendistlist.sh: Ignore `.svn' directories.
33537
33538 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33539
33540 * fs/fat.c: Add 2009 to Copyright line.
33541
33542 2009-02-14 Christian Franke <franke@computer.org>
33543
33544 * commands/hdparm.c: New file. Provides `hdparm' command
33545 which sends ATA commands via grub_disk_ata_pass_through ().
33546
33547 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33548
33549 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33550 and <grub/cpu/io.h> to include/grub/ata.h.
33551 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33552 (GRUB_CDROM_SECTOR_SIZE): Remove.
33553 (GRUB_ATA_*): Move to include/grub/ata.h.
33554 (GRUB_ATAPI_*): Likewise.
33555 (enum grub_ata_commands): Likewise.
33556 (enum grub_ata_timeout_milliseconds): Likewise.
33557 (struct grub_ata_device): Likewise.
33558 (grub_ata_regset): Likewise.
33559 (grub_ata_regget): Likewise.
33560 (grub_ata_regset2): Likewise.
33561 (grub_ata_regget2): Likewise.
33562 (grub_ata_check_ready): Likewise.
33563 (grub_ata_wait_not_busy): Remove static, exported in
33564 include/grub/ata.h.
33565 (grub_ata_wait_drq): Likewise.
33566 (grub_ata_pio_read): Likewise.
33567
33568 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33569 function for hdparm.mod.
33570
33571 * include/grub/ata.h: New file, contains declarations from
33572 disk/ata.c.
33573 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33574
33575 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33576 (grub_disk_ata_pass_through): New exported variable.
33577
33578 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33579
33580 2009-02-13 Colin D Bennett <colin@gibibit.com>
33581
33582 Support multiple fallback entries, and provide an API to support
33583 executing default+fallback menu entries. Renamed the `terminal' menu
33584 viewer to `text'.
33585
33586 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33587 variable declaration.
33588 (grub_menu_execute_callback): New structure declaration.
33589 (grub_menu_execute_callback_t): New typedef.
33590 (grub_menu_execute_with_fallback): New function declaration.
33591 (grub_menu_get_entry): Likewise.
33592 (grub_menu_get_timeout): Likewise.
33593 (grub_menu_set_timeout): Likewise.
33594
33595 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33596
33597 * normal/menu.c (grub_wait_after_message): Moved to
33598 `normal/menu_text.c'.
33599 (draw_border): Likewise.
33600 (print_message): Likewise.
33601 (print_entry): Likewise.
33602 (print_entries): Likewise.
33603 (grub_menu_init_page): Likewise.
33604 (get_entry_number): Likewise.
33605 (print_timeout): Likewise.
33606 (run_menu): Likewise.
33607 (grub_menu_execute_entry): Likewise.
33608 (show_text_menu): Likewise.
33609 (get_and_remove_first_entry_number): New function.
33610 (grub_menu_execute_with_fallback): Likewise.
33611 (get_entry): Renamed to ...
33612 (grub_menu_get_entry): .. this and made it global.
33613 (get_timeout): Renamed to ...
33614 (grub_menu_get_timeout): ... this and made it global.
33615 (set_timeout): Renamed to ...
33616 (grub_menu_set_timeout): ... this and made it global.
33617 (grub_normal_terminal_menu_viewer): Renamed to ...
33618 (grub_normal_text_menu_viewer): ... this.
33619
33620 * normal/menu_text.c: New file. Extracted text-menu-specific code
33621 from normal/menu.c.
33622
33623 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33624 (normal_mod_SOURCES): Likewise.
33625
33626 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33627 (normal_mod_SOURCES): Likewise.
33628
33629 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33630 (normal_mod_SOURCES): Likewise.
33631
33632 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33633 (normal_mod_SOURCES): Likewise.
33634
33635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33636 (normal_mod_SOURCES): Likewise.
33637
33638 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33639 (normal_mod_SOURCES): Likewise.
33640
33641 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33642 (normal_mod_SOURCES): Likewise.
33643
33644 2009-02-11 Robert Millan <rmh@aybabtu.com>
33645
33646 * util/grub.d/00_header.in: Update old reference to `font' command.
33647
33648 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33649
33650 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33651
33652 Based on patch from Javier Martín.
33653
33654 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33655
33656 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33657 to avoid false positives with FAT.
33658 (grub_fstest_SOURCES): Likewise.
33659 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33660 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33661 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33662 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33663 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33664 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33665
33666 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33667
33668 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33669 bpb.version_specific.fat12_or_fat16.fstype and
33670 bpb.version_specific.fat32.fstype.
33671
33672 2009-02-08 Robert Millan <rmh@aybabtu.com>
33673
33674 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33675
33676 2009-02-08 Robert Millan <rmh@aybabtu.com>
33677
33678 * Makefile.in (host_os, host_cpu): New variables.
33679 (target_os): Remove. Update all users.
33680
33681 2009-02-08 Marco Gerards <marco@gnu.org>
33682
33683 * Makefile.in (enable_grub_emu_usb): New variable.
33684 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33685 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33686 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33687 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33688 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33689 `usbtest.mod' and `usbms.mod'.
33690 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33691 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33692 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33693 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33694 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33695 variables.
33696
33697 * disk/usbms.c: New file.
33698
33699 * include/grub/usb.h: Likewise.
33700
33701 * include/grub/usbtrans.h: Likewise.
33702
33703 * include/grub/usbdesc.h: Likewise.
33704
33705 * bus/usb/usbtrans.c: Likewise.
33706
33707 * bus/usb/ohci.c: Likewise.
33708
33709 * bus/usb/uhci.c: Likewise.
33710
33711 * bus/usb/usbhub.c: Likewise.
33712
33713 * bus/usb/usb.c: Likewise.
33714
33715 * commands/usbtest.c: Likewise.
33716
33717 * util/usb.c: Likewise.
33718
33719 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33720
33721 * configure.ac: Test for libusb presence.
33722
33723 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33724
33725 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33726
33727 * kern/mm.c: Add more comments.
33728
33729 2009-02-08 Robert Millan <rmh@aybabtu.com>
33730
33731 Patch from Javier Martín.
33732 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33733 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33734
33735 2009-02-08 Robert Millan <rmh@aybabtu.com>
33736
33737 * fs/cpio.c: Split tar functionality to ...
33738 * fs/tar.c: ... here (new file). Update all users.
33739
33740 2009-02-07 Robert Millan <rmh@aybabtu.com>
33741
33742 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33743 backward-incompatible features.
33744
33745 Based on patch from Javier Martín, with some adjustments.
33746
33747 2009-02-07 Michael Scherer <misc@mandriva.org>
33748
33749 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33750
33751 2009-02-07 Robert Millan <rmh@aybabtu.com>
33752
33753 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33754 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33755 after the RAID stuff.
33756
33757 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33758
33759 Fixes problem when running vbetest command as reported by
33760 Vladimir Serbinenko <phcoder@gmail.com>.
33761
33762 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33763
33764 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
33765
33766 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33767 /dev/md/NpN style mdraid devices.
33768
33769 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33770
33771 * util/unifont2pff.rb: Remove.
33772
33773 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33774
33775 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33776 `#'.
33777
33778 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
33779
33780 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33781 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33782 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33783 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33785 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33786 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33787
33788 2009-02-02 Christian Franke <franke@computer.org>
33789
33790 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33791
33792 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
33793
33794 * INSTALL: Note that we now require at least autoconf 2.59 and
33795 that LZO is optional.
33796
33797 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33798
33799 Base on patch on bug #24154 created by Tomas Tintera
33800 <trosos@seznam.cz>.
33801
33802 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33803
33804 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33805
33806 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
33807 <bero@arklinux.org>.
33808
33809 * normal/parser.y (script_init): Add missing semicolon.
33810
33811 2009-01-31 Colin D Bennett <colin@gibibit.com>
33812
33813 * normal/main.c: Add include to grub/menu_viewer.h.
33814 (free_menu_entry_classes): Added.
33815 (grub_normal_menu_addentry): Added class property handling.
33816 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33817 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33818
33819 * normal/menu_viewer.c: New file.
33820
33821 * normal/menu.c (run_menu_entry): Renamed to ...
33822 (grub_menu_execute_entry): ... this and made it as global.
33823 (grub_menu_run): Renamed to ...
33824 (show_text_menu): ... this and made it local.
33825 (show_text_menu): Adapt to new function names.
33826 (grub_normal_terminal_menu_viewer): New global variable.
33827
33828 * include/grub/menu.h: New file.
33829
33830 * include/grub/menu_viewer.h: New file.
33831
33832 * include/grub/normal.h: Added include to grub/menu.h.
33833 (grub_menu_entry): Moved to include/grub/menu.h.
33834 (grub_menu_entry_t): Likewise.
33835 (grub_menu): Likewise.
33836 (grub_menu_t): Likewise.
33837 (grub_normal_terminal_menu_viewer): Added.
33838 (grub_menu_execute_entry): Likewise.
33839 (grub_menu_run): Removed.
33840
33841 * DISTLIST: Added include/grub/menu.h.
33842 Added include/grub/menu_viewer.h.
33843 Added normal/menu_viewer.c.
33844
33845 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33846
33847 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33848 arglist for menutitle arguments.
33849
33850 * normal/main.c (grub_normal_menu_addentry): Likewise.
33851
33852 * normal/parser.y (menuentry): Likewise.
33853
33854 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33855
33856 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33857 (grub_script_create_cmdmenu): Likewise.
33858
33859 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33860
33861 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33862 changes.
33863
33864 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33865
33866 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33867
33868 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33869
33870 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33871
33872 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33873
33874 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33875
33876 2009-01-30 Christian Franke <franke@computer.org>
33877
33878 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33879 in option help text.
33880
33881 2009-01-27 Pavel Roskin <proski@gnu.org>
33882
33883 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33884
33885 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33886
33887 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33888
33889 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33890
33891 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33892 unregister function.
33893
33894 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33895
33896 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33897
33898 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33899
33900 * util/grub-mkfont.c (usage): Fix typo.
33901
33902 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33903
33904 2009-01-26 Daniel Mierswa <impulze@impulze.org>
33905
33906 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33907
33908 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33909
33910 * kern/misc.c (grub_strcasecmp): New function.
33911 (grub_strcasecmp): Use grub_size_t instead of int for length.
33912 Fix return value.
33913 * include/grub/misc.h: Update function prototypes.
33914
33915 2009-01-26 Robert Millan <rmh@aybabtu.com>
33916
33917 * configure.ac: Fix cross-compilation check.
33918
33919 2009-01-22 Christian Franke <franke@computer.org>
33920
33921 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33922 (precision) digit string. Allow `.format2' without `format1' (width).
33923 Limit input chars for `%s' output to `format2' if specified. This is
33924 compatible with standard printf ().
33925
33926 2009-01-22 Christian Franke <franke@computer.org>
33927
33928 * disk/ata.c (grub_ata_wait_status): Replace by ...
33929 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33930 other status bits may be invalid while BSY is asserted.
33931 (grub_ata_check_ready): New function.
33932 (grub_ata_cmd): Removed.
33933 (grub_ata_wait_drq): New function.
33934 (grub_ata_strncpy): Remove inline.
33935 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33936 and error check now done by grub_ata_wait_drq ().
33937 (grub_ata_pio_write): Likewise.
33938 (grub_atapi_identify): Set DEV before check for !BSY. Use
33939 grub_ata_wait_drq () to wait for data.
33940 (grub_ata_device_initialize): Add status register check to
33941 detect missing SATA slave devices. Add debug messages.
33942 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33943 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33944 transfer loop by grub_ata_pio_write ().
33945 (grub_ata_identify): Set DEV before check for !BSY. Use
33946 grub_ata_wait_drq () to wait for data.
33947 (grub_ata_setaddress): Set DEV before check for !BSY.
33948 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33949 read/write in one loop. Fix invalid command on write. Fix incomplete
33950 command on (size % batch) == 0. Add missing error check after write of
33951 last block. Add debug messages.
33952 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33953
33954 2009-01-19 Christian Franke <franke@computer.org>
33955
33956 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33957 (GRUB_ATAPI_IREASON_*): Likewise.
33958 (grub_ata_pio_write): Fix timeout error return.
33959 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33960 (grub_atapi_wait_drq): New function.
33961 (grub_atapi_packet): New parameter `size'.
33962 Use grub_atapi_wait_drq () and direct write instead of
33963 grub_ata_pio_write ().
33964 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33965 reads the number of bytes requested by the device for each DRQ
33966 assertion.
33967 (grub_atapi_write): Remove old implementation, return not
33968 implemented instead.
33969
33970 2009-01-19 Christian Franke <franke@computer.org>
33971
33972 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33973 of 512 to calculate data size.
33974 (grub_scsi_read12): Likewise.
33975 (grub_scsi_write10): Likewise.
33976 (grub_scsi_write12): Likewise.
33977 (grub_scsi_read): Adjust size according to blocksize.
33978 Add checks for invalid blocksize and unaligned transfer.
33979
33980 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33981
33982 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33983
33984 * term/gfxterm.c (write_char): Fix background rendering for wide
33985 width glyphs.
33986
33987 2009-01-19 Robert Millan <rmh@aybabtu.com>
33988
33989 * config.guess: Update to latest version from config git.
33990 * config.sub: Likewise.
33991
33992 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
33993
33994 * Makefile.in: Change font compilation to use new grub-mkfont instead
33995 of java version.
33996
33997 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33998 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33999 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34000 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34001 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34002 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34003 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34004 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34005 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34006
34007 2009-01-16 Christian Franke <franke@computer.org>
34008
34009 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34010 (enum grub_ata_timeout_milliseconds): New enum.
34011 (grub_ata_wait_status): Add parameter milliseconds.
34012 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34013 recovery from timed-out commands.
34014 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34015 return grub_errno instead of REG_ERROR.
34016 (grub_ata_pio_write): Add parameter milliseconds.
34017 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34018 Pass milliseconds to grub_ata_wait_status () and
34019 grub_ata_pio_read ().
34020 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34021 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34022 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34023 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34024 It is not suitable for device detection, because DEV bit is ignored,
34025 the command may run too long, and not all devices set the signature
34026 properly.
34027 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34028 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34029 Fix device selection, DEV bit must be set first to address the registers
34030 of the correct device.
34031 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34032 grub_ata_pio_read/write ().
34033 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34034 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34035
34036 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34037
34038 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34039
34040 2009-01-13 Bean <bean123ch@gmail.com>
34041
34042 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34043
34044 2009-01-13 Bean <bean123ch@gmail.com>
34045
34046 * Makefile.in: (enable_grub_mkfont): New variable.
34047 (freetype_cflags): Likewise.
34048 (freetype_libs): Likewise.
34049
34050 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34051 (grub_mkfont_SOURCES): New variable.
34052 (grub_mkfont_CFLAGS): Likewise.
34053 (grub_mkfont_LDFLAGS): Likewise.
34054
34055 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34056 library if `--enable-grub-mkfont' is requested.
34057 (enable_grub_mkfont): New variable.
34058 (freetype_cflags): Likewise.
34059 (freetype_libs): Likewise.
34060
34061 * util/grub-mkfont.c: New file.
34062
34063 2009-01-12 Christian Franke <franke@computer.org>
34064
34065 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34066 mode check. Fix setting of compat_use[].
34067
34068 2009-01-10 Robert Millan <rmh@aybabtu.com>
34069
34070 Update a few copyright years which we forgot to do in 2008 (only for
34071 files whose changes made in 2008 were copyright-significant)
34072
34073 * Makefile.in: Add 2008 to Copyright line.
34074 * disk/ieee1275/ofdisk.c: Likewise.
34075 * disk/efi/efidisk.c: Likewise.
34076 * kern/dl.c: Likewise.
34077 * kern/sparc64/ieee1275/init.c: Likewise.
34078 * kern/mm.c: Likewise.
34079 * kern/efi/mm.c: Likewise.
34080 * boot/i386/pc/boot.S: Likewise.
34081 * genfslist.sh: Likewise.
34082 * fs/iso9660.c: Likewise.
34083 * fs/hfs.c: Likewise.
34084 * fs/jfs.c: Likewise.
34085 * fs/minix.c: Likewise.
34086 * fs/ufs.c: Likewise.
34087 * gensymlist.sh.in: Likewise.
34088 * genkernsyms.sh.in: Likewise.
34089 * include/grub/misc.h: Likewise.
34090 * include/grub/types.h: Likewise.
34091 * include/grub/symbol.h: Likewise.
34092 * include/grub/elf.h: Likewise.
34093 * include/grub/kernel.h: Likewise.
34094 * include/grub/disk.h: Likewise.
34095 * include/grub/dl.h: Likewise.
34096 * include/grub/i386/linux.h: Likewise.
34097 * include/grub/i386/pc/biosdisk.h: Likewise.
34098 * include/grub/efi/api.h: Likewise.
34099 * include/grub/efi/pe32.h: Likewise.
34100 * include/grub/util/misc.h: Likewise.
34101 * normal/execute.c: Likewise.
34102 * normal/arg.c: Likewise.
34103 * normal/completion.c: Likewise.
34104 * normal/lexer.c: Likewise.
34105 * normal/parser.y: Likewise.
34106 * normal/misc.c: Likewise.
34107 * commands/i386/pc/vbeinfo.c: Likewise.
34108 * commands/hexdump.c: Likewise.
34109 * commands/terminal.c: Likewise.
34110 * commands/ls.c: Likewise.
34111 * commands/help.c: Likewise.
34112 * partmap/pc.c: Likewise.
34113 * loader/efi/chainloader.c: Likewise.
34114 * loader/multiboot_loader.c: Likewise.
34115 * loader/i386/pc/multiboot2.c: Likewise.
34116 * term/efi/console.c: Likewise.
34117 * term/i386/pc/serial.c: Likewise.
34118 * util/lvm.c: Likewise.
34119 * util/console.c: Likewise.
34120 * util/i386/efi/grub-mkimage.c: Likewise.
34121 * util/raid.c: Likewise.
34122
34123 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34124
34125 * commands/videotest.c: Removed include to grub/machine/memory.h.
34126
34127 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34128 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34129 (video_mod_SOURCES): Removed.
34130 (video_mod_CFLAGS): Likewise.
34131 (video_mod_LDFLAGS): Likewise.
34132 (gfxterm_mod_SOURCES): Likewise.
34133 (gfxterm_mod_CFLAGS): Likewise.
34134 (gfxterm_mod_LDFLAGS): Likewise.
34135 (videotest_mod_SOURCES): Likewise.
34136 (videotest_mod_CFLAGS): Likewise.
34137 (videotest_mod_LDFLAGS): Likewise.
34138 (bitmap_mod_SOURCES): Likewise.
34139 (bitmap_mod_CFLAGS): Likewise.
34140 (bitmap_mod_LDFLAGS): Likewise.
34141 (tga_mod_SOURCES): Likewise.
34142 (tga_mod_CFLAGS): Likewise.
34143 (tga_mod_LDFLAGS): Likewise.
34144 (jpeg_mod_SOURCES): Likewise.
34145 (jpeg_mod_CFLAGS): Likewise.
34146 (jpeg_mod_LDFLAGS): Likewise.
34147 (png_mod_SOURCES): Likewise.
34148 (png_mod_CFLAGS): Likewise.
34149 (png_mod_LDFLAGS): Likewise.
34150
34151 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34152 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34153 (video_mod_SOURCES): Added.
34154 (video_mod_CFLAGS): Likewise.
34155 (video_mod_LDFLAGS): Likewise.
34156 (videotest_mod_SOURCES): Likewise.
34157 (videotest_mod_CFLAGS): Likewise.
34158 (videotest_mod_LDFLAGS): Likewise.
34159 (bitmap_mod_SOURCES): Likewise.
34160 (bitmap_mod_CFLAGS): Likewise.
34161 (bitmap_mod_LDFLAGS): Likewise.
34162 (tga_mod_SOURCES): Likewise.
34163 (tga_mod_CFLAGS): Likewise.
34164 (tga_mod_LDFLAGS): Likewise.
34165 (jpeg_mod_SOURCES): Likewise.
34166 (jpeg_mod_CFLAGS): Likewise.
34167 (jpeg_mod_LDFLAGS): Likewise.
34168 (png_mod_SOURCES): Likewise.
34169 (png_mod_CFLAGS): Likewise.
34170 (png_mod_LDFLAGS): Likewise.
34171 (gfxterm_mod_SOURCES): Likewise.
34172 (gfxterm_mod_CFLAGS): Likewise.
34173 (gfxterm_mod_LDFLAGS): Likewise.
34174
34175 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34176 grub/machine/console.h.
34177
34178 2009-01-04 Jerone Young <jerone@gmail.com>
34179
34180 Make on screen instructions clearer
34181
34182 Based on patch created by Jidanni <jidanni@jidanni.org>
34183
34184 * normal/menu.c: print clearer instructions on the screen
34185
34186 2009-01-02 Colin D Bennett <colin@gibibit.com>
34187
34188 New font engine.
34189
34190 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34191 build system and fixed gfxterm.c to work with different sized fonts.
34192
34193 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34194
34195 * configure: Re-generated.
34196
34197 * DISTLIST: Removed font/manager.c.
34198 Added font/font.c.
34199 Added font/font_cmd.c.
34200
34201 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34202 compilation.
34203
34204 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34205
34206 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34207
34208 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34209
34210 * normal/menu.c: Likewise.
34211
34212 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34213 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34214
34215 * include/grub/font.h: Replaced with new file.
34216
34217 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34218 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34219 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34220 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34221 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34222 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34223 fg_red, fg_green, fg_blue, fg_alpha.
34224 (grub_video_adapter): Removed blit_glyph.
34225 (grub_video_blit_glyph): Removed.
34226
34227 * font/manager.c: Removed file.
34228
34229 * font/font.c: New file.
34230
34231 * font/font_cmd.c: Likewise.
34232
34233 * video/video.c (grub_video_blit_glyph): Removed.
34234
34235 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34236 (grub_video_vbe_map_rgba): Likewise.
34237 (grub_video_vbe_unmap_color_int): Likewise.
34238 (grub_video_vbe_blit_glyph): Removed.
34239 (grub_video_vbe_adapter): Removed blit_glyph.
34240
34241 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34242 (get_pixel): Likewise.
34243 (set_pixel): Likewise.
34244
34245 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34246
34247 * term/gfxterm.c: Adapted to new font engine.
34248
34249 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34250
34251 * term/i386/pc/vga.c: Likewise.
34252
34253 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34254
34255 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34256
34257 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34258
34259 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34260
34261 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34262
34263 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34264
34265 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34266
34267 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34268
34269 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34270
34271 * util/grub.d/00_header.in: Changed to use new loadfont command.
34272
34273 * util/grub-mkconfig_lib.in: Changed font extension.
34274
34275 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34276
34277 * util/getroot.c (grub_util_get_grub_dev): Add support for
34278 /dev/md/dNNpNN style partitionable mdraid devices.
34279
34280 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34281
34282 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34283 at a time limit of the PXE TFTP API correctly.
34284 (grub_pxefs_close): Likewise.
34285
34286 2008-11-29 Robert Millan <rmh@aybabtu.com>
34287
34288 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34289 grub_ata_device_initialize() calls.
34290
34291 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34292
34293 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34294 iteration failed.
34295 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34296
34297 2008-11-28 Robert Millan <rmh@aybabtu.com>
34298
34299 Fix build on powerpc-ieee1275. Based on patch created by
34300 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34301 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34302 `kern/ieee1275/mmap.c'.
34303 * include/grub/powerpc/ieee1275/memory.h: New file.
34304
34305 Provide grub-install on coreboot.
34306 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34307 (grub_install_SOURCES): New variable.
34308 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34309 usable on coreboot.
34310
34311 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34312
34313 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34314 to `grub_term_input_t'.
34315 (grub_term_get_current_output): Change return type to
34316 `grub_term_output_t'.
34317
34318 2008-11-22 Robert Millan <rmh@aybabtu.com>
34319
34320 Fix breakage on coreboot due to declaration mismatch.
34321 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34322 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34323 grub_vga_text_cls().
34324
34325 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34326 comments. Avoid copying one more byte than necessary (just in case).
34327
34328 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34329 to 0x200000 (avoids trouble with some OFW implementations, and matches
34330 with the one in Yaboot).
34331 Reported by Manoel Abranches
34332
34333 2008-11-20 Robert Millan <rmh@aybabtu.com>
34334
34335 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34336 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34337
34338 * util/grub-mkconfig_lib.in (grub_warn): New function.
34339 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34340 warnings, to obtain consistent formatting.
34341 * util/grub.d/00_header.in: Likewise.
34342 * util/update-grub_lib.in: Likewise.
34343
34344 * loader/i386/linux.c (allocate_pages): Fix a warning.
34345 Move comment text to `#error' stanza.
34346
34347 Harmonize ieee1275's grub_available_iterate() with the generic
34348 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34349 build problem on i386-ieee1275):
34350 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34351 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34352 parameter `type'. Update all users of this function.
34353 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34354 `kern/ieee1275/mmap.c'.
34355 * kern/ieee1275/init.c
34356 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34357 with ...
34358 (grub_machine_mmap_iterate): ... this.
34359 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34360 return type to `grub_err_t'. Update all implementations of this
34361 function prototype.
34362 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34363 Likewise.
34364
34365 Add `lsmmap' command (lists firmware-provided memory map):
34366 * commands/lsmmap.c: New file.
34367 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34368 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34369 variables.
34370 * conf/powerpc-ieee1275.rmk: Likewise.
34371 * conf/i386-coreboot.rmk: Likewise.
34372 * conf/i386-ieee1275.rmk: Likewise.
34373
34374 2008-11-19 Robert Millan <rmh@aybabtu.com>
34375
34376 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34377 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34378 constraints to initrd allocation (based on code from
34379 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34380 for Linux to find it.
34381
34382 2008-11-14 Robert Millan <rmh@aybabtu.com>
34383
34384 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34385 order to cope with duplicate slashes.
34386
34387 2008-11-14 Robert Millan <rmh@aybabtu.com>
34388
34389 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34390 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34391 don't want to mess with lower memory, because it is used in the Linux
34392 loader.
34393
34394 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34395 an appropriate place in lower memory, between 0x10000 and 0x90000,
34396 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34397 is in our heap (probably as a result of it being corrupted during
34398 decompression). Add #error instance with comment to explain why this
34399 loader isn't currently usable on PC/BIOS.
34400
34401 2008-11-14 Robert Millan <rmh@aybabtu.com>
34402
34403 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34404 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34405
34406 2008-11-12 Robert Millan <rmh@aybabtu.com>
34407
34408 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34409
34410 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34411 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34412 from here ...
34413 * include/grub/i386/pc/memory.h: ... to here.
34414
34415 2008-11-12 Robert Millan <rmh@aybabtu.com>
34416
34417 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34418 split).
34419
34420 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34421 (grub_console_cur_color, grub_console_real_putchar)
34422 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34423 (grub_console_setcolorstate, grub_console_setcolor)
34424 (grub_console_getcolor): Move from here ...
34425 * include/grub/i386/vga_common.h: ... to here (new file).
34426
34427 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34428 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34429 `<grub/i386/io.h>'.
34430 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34431 `<grub/i386/vga_common.h>'.
34432
34433 2008-11-12 Robert Millan <rmh@aybabtu.com>
34434
34435 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34436 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34437 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34438 variables.
34439 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34440 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34441
34442 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34443 grub_console_init() with call to grub_vga_text_init().
34444 (grub_machine_fini): Replace call to
34445 grub_console_fini() with call to grub_vga_text_fini() and
34446 grub_at_keyboard_fini().
34447
34448 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34449 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34450 (grub_console_setcolorstate, grub_console_setcolor)
34451 (grub_console_getcolor): New function prototypes.
34452
34453 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34454 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34455 (grub_vga_text_setcursor): Static-ize.
34456 (grub_vga_text_term): New structure.
34457 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34458
34459 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34460 (grub_console_cur_color, grub_console_standard_color)
34461 (grub_console_normal_color, grub_console_highlight_color)
34462 (map_char, grub_console_putchar, grub_console_getcharwidth)
34463 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34464 (grub_console_getcolor): Move from here ...
34465 * term/i386/vga_common.c: ... to here (same function names).
34466
34467 2008-11-12 Robert Millan <rmh@aybabtu.com>
34468
34469 Use newly-added Multiboot support in coreboot.
34470
34471 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34472 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34473
34474 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34475 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34476 (codestart): Store the MBI in `startup_multiboot_info' when we're
34477 being loaded using Multiboot.
34478
34479 * kern/i386/coreboot/init.c (grub_machine_init): Move
34480 grub_at_keyboard_init() call to beginning of function (useful for
34481 debugging). Call grub_machine_mmap_init() before attempting to use
34482 grub_machine_mmap_iterate().
34483 (grub_lower_mem, grub_upper_mem): Move from here ...
34484 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34485 here (new file).
34486
34487 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34488 function prototype.
34489
34490 2008-11-12 Robert Millan <rmh@aybabtu.com>
34491
34492 Fix a regression introduced by the at_keyboard.mod split. Because
34493 some terminals are default on some platforms and non-default on
34494 others, the first terminal being registered determines which is
34495 going to be default.
34496
34497 * kern/term.c (grub_term_register_input): If this is the first
34498 terminal being registered, set it as the current one.
34499 (grub_term_register_output): Likewise.
34500
34501 * term/efi/console.c (grub_console_init): Do not call
34502 grub_term_set_current_output() or grub_term_set_current_input().
34503 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34504 * term/i386/pc/console.c (grub_console_init): Likewise.
34505 (grub_console_fini): Do not call grub_term_set_current_input()
34506 (but leave grub_term_set_current_output() to restore text mode).
34507
34508 2008-11-10 Robert Millan <rmh@aybabtu.com>
34509
34510 * util/grub.d/00_header.in: Add backward compatibility check for
34511 versions of terminal.mod that don't understand `terminal_input' or
34512 `terminal_output'.
34513
34514 2008-11-09 Robert Millan <rmh@aybabtu.com>
34515
34516 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34517 `terminal_input' / `terminal_output', not `terminal'.
34518
34519 2008-11-08 Robert Millan <rmh@aybabtu.com>
34520
34521 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34522 (DISTCLEANFILES): Add `build_env.mk'.
34523
34524 2008-11-08 Robert Millan <rmh@aybabtu.com>
34525
34526 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34527 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34528 members. Update all users.
34529 * util/console.c (grub_ncurses_term): Split in ...
34530 (grub_ncurses_term_input): ... this, and ...
34531 (grub_ncurses_term_output): ... this. Update all users.
34532 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34533
34534 2008-11-08 Robert Millan <rmh@aybabtu.com>
34535
34536 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34537 (PKGDATA): Add $(pkgdata_SRCDIR).
34538 (pkglib_BUILDDIR): New variable.
34539 (pkgdata_SRCDIR): New variable.
34540 (build_env.mk): New target.
34541 (include_DATA): New variable.
34542 (install-local): Install $(include_DATA) files in $(includedir).
34543
34544 2008-11-07 Pavel Roskin <proski@gnu.org>
34545
34546 * gendistlist.sh: Use C locale for sorting to ensure consistent
34547 output on all systems.
34548
34549 * util/grub.d/00_header.in: Remove incorrect space before
34550 "serial".
34551
34552 2008-11-07 Robert Millan <rmh@aybabtu.com>
34553
34554 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34555 per specification.
34556 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34557 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34558 (based on find_multi_boot1_header).
34559 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34560 using find_multi_boot2_header(), and abort if neither Multiboot or
34561 Multiboot headers were found.
34562
34563 2008-11-07 Robert Millan <rmh@aybabtu.com>
34564
34565 Modularize at_keyboard.mod:
34566
34567 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34568 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34569 (at_keyboard_mod_LDFLAGS): New variables.
34570
34571 Actual terminal split:
34572
34573 * include/grub/term.h (struct grub_term): Split in ...
34574 (struct grub_term_input): ... this, and ...
34575 (struct grub_term_output): ... this. Update all users.
34576 (grub_term_set_current): Split in ...
34577 (grub_term_set_current_input): ... this, and ...
34578 (grub_term_set_current_output): ... this.
34579 (grub_term_get_current): Split in ...
34580 (grub_term_get_current_input): ... this, and ...
34581 (grub_term_get_current_output): ... this.
34582 (grub_term_register): Split in ...
34583 (grub_term_register_input): ... this, and ...
34584 (grub_term_register_output): ... this.
34585 (grub_term_unregister): Split in ...
34586 (grub_term_unregister_input): ... this, and ...
34587 (grub_term_unregister_output): ... this.
34588 (grub_term_iterate): Split in ...
34589 (grub_term_iterate_input): ... this, and ...
34590 (grub_term_iterate_output): ... this.
34591
34592 * kern/term.c (grub_term_list): Split in ...
34593 (grub_term_list_input): ... this, and ...
34594 (grub_term_list_output): ... this. Update all users.
34595 (grub_cur_term): Split in ...
34596 (grub_cur_term_input): ... this, and ...
34597 (grub_cur_term_output): ... this. Update all users.
34598 (grub_term_set_current): Split in ...
34599 (grub_term_set_current_input): ... this, and ...
34600 (grub_term_set_current_output): ... this.
34601 (grub_term_get_current): Split in ...
34602 (grub_term_get_current_input): ... this, and ...
34603 (grub_term_get_current_output): ... this.
34604 (grub_term_register): Split in ...
34605 (grub_term_register_input): ... this, and ...
34606 (grub_term_register_output): ... this.
34607 (grub_term_unregister): Split in ...
34608 (grub_term_unregister_input): ... this, and ...
34609 (grub_term_unregister_output): ... this.
34610 (grub_term_iterate): Split in ...
34611 (grub_term_iterate_input): ... this, and ...
34612 (grub_term_iterate_output): ... this.
34613
34614 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34615 a check for input and one for output (and only attempt to get keys
34616 from user when input works).
34617
34618 * util/grub-probe.c (grub_term_get_current): Split in ...
34619 (grub_term_get_current_input): ... this, and ...
34620 (grub_term_get_current_output): ... this.
34621 * util/grub-fstest.c: Likewise.
34622 * util/i386/pc/grub-setup.c: Likewise.
34623 * util/grub-editenv.c: Likewise.
34624
34625 Portability adjustments:
34626
34627 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34628 `term/i386/pc/at_keyboard.c'.
34629 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34630 grub_keyboard_controller_init() (now handled by terminal .init).
34631 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34632 grub_at_keyboard_init().
34633 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34634 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34635 at_keyboard.mod via input terminal interface).
34636 * include/grub/i386/coreboot/console.h: Convert into a stub for
34637 `<grub/i386/pc/console.h>'.
34638
34639 Migrate full terminals to new API:
34640
34641 * term/efi/console.c (grub_console_term): Split into ...
34642 (grub_console_term_input): ... this, and ...
34643 (grub_console_term_output): ... this. Update all users.
34644 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34645 (grub_ofconsole_init): Split into ...
34646 (grub_ofconsole_init_input): ... this, and ...
34647 (grub_ofconsole_init_output): ... this.
34648 (grub_ofconsole_term): Split into ...
34649 (grub_ofconsole_term_input): ... this, and ...
34650 (grub_ofconsole_term_output): ... this. Update all users.
34651 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34652 (grub_serial_term_input): ... this, and ...
34653 (grub_serial_term_output): ... this. Update all users.
34654 * term/i386/pc/console.c (grub_console_term): Split into ...
34655 (grub_console_term_input): ... this, and ...
34656 (grub_console_term_output): ... this. Update all users.
34657 (grub_console_term_input): Only enable it on PC/BIOS platform.
34658 (grub_console_init): Remove grub_keyboard_controller_init() call.
34659
34660 Migrate input terminals to new API:
34661
34662 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34663 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34664 i386-specific anyway).
34665 (grub_console_checkkey): Rename to ...
34666 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34667 users.
34668 (grub_keyboard_controller_orig): New variable.
34669 (grub_console_getkey): Rename to ...
34670 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34671 users.
34672 (grub_keyboard_controller_init): Static-ize. Save original
34673 controller value so that it can be restored ...
34674 (grub_keyboard_controller_fini): ... here (new function).
34675 (grub_at_keyboard_term): New structure.
34676 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34677 functions.
34678
34679 Migrate output terminals to new API:
34680
34681 * term/i386/pc/vga.c (grub_vga_term): Change type to
34682 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34683 members. Update all users.
34684 * term/gfxterm.c (grub_video_term): Change type to
34685 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34686 members. Update all users.
34687 * include/grub/i386/pc/console.h (grub_console_checkkey)
34688 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34689 etc).
34690
34691 Migrate `terminal' command and userland tools to new API:
34692
34693 * commands/terminal.c (grub_cmd_terminal): Split into ...
34694 (grub_cmd_terminal_input): ... this, and ...
34695 (grub_cmd_terminal_output): ... this.
34696 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34697 `terminal_input' and `terminal_output'.
34698 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34699 `terminal_input' / `terminal_output' API.
34700 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34701 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34702 provided ${GRUB_TERMINAL}, convert it).
34703
34704 2008-11-04 Robert Millan <rmh@aybabtu.com>
34705
34706 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34707 for FreeBSD.
34708 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34709
34710 2008-11-03 Bean <bean123ch@gmail.com>
34711
34712 * kern/elf.c (grub_elf32_load): Revert to previous code.
34713 (grub_elf64_load): Likewise.
34714
34715 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34716
34717 2008-11-01 Robert Millan <rmh@aybabtu.com>
34718
34719 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34720 (TARGET_CPPFLAGS): Likewise.
34721 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34722
34723 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34724
34725 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34726
34727 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34728
34729 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34730 addition of objects until the code is not going to be able to fail.
34731
34732 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34733
34734 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34735 (add a missing NULL check, and correct them by moving the pointer
34736 operations after the actual check).
34737
34738 2008-10-29 Robert Millan <rmh@aybabtu.com>
34739
34740 * util/i386/pc/grub-install.in: Handle empty string as output from
34741 make_system_path_relative_to_its_root().
34742
34743 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34744
34745 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34746 circular metadata worst case scenario. If the metadata is circular
34747 then copy the wrap in place.
34748 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34749 project lib/format_text/layout.h
34750 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34751
34752 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34753
34754 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
34755
34756 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
34757
34758 * util/update-grub_lib.in: Mention filename in warning message.
34759
34760 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34761
34762 * NEWS: Update for rename of update-grub to grub-mkconfig.
34763
34764 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
34765
34766 * util/update-grub_lib.in: Copy to ...
34767 * util/grub-mkconfig_lib.in: ... this. Update all users.
34768 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
34769 * util/update-grub.in: Rename to ...
34770 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34771 option. Add `--output' option to allow users to specify the generated
34772 configuration file. Default to stdout.
34773 (update_grub_dir): Rename to ...
34774 (grub_mkconfig_dir): ... this.
34775 (grub_cfg): Default to an empty string.
34776 * conf/common.rmk (update-grub): Rename to ...
34777 (grub-mkconfig): ... this.
34778 (update-grub_lib): Copy to ...
34779 (grub-mkconfig_lib): ... this.
34780 (update-grub_SCRIPTS): Copy to ...
34781 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34782 (update-grub_DATA): Rename to ...
34783 (grub-mkconfig_DATA): ... this.
34784
34785 2008-09-28 Robert Millan <rmh@aybabtu.com>
34786
34787 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34788 to `modified'. Add the real `created' field.
34789 (grub_iso9660_uuid): Use `modified' rather than `created' for
34790 constructing the UUID.
34791
34792 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
34793
34794 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34795 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34796
34797 2008-09-28 Bean <bean123ch@gmail.com>
34798
34799 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34800 Thanks to Christian Franke for finding this bug.
34801
34802 2008-09-25 Robert Millan <rmh@aybabtu.com>
34803
34804 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34805 instances of grub_util_get_disk_name() (see previous commit).
34806
34807 2008-09-25 Robert Millan <rmh@aybabtu.com>
34808
34809 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34810 `util/i386/get_disk_name.c'.
34811 * conf/i386-efi.rmk: Likewise.
34812 * conf/x86_64-efi.rmk: Likewise.
34813 * conf/i386-coreboot.rmk: Likewise.
34814 * conf/i386-ieee1275.rmk: Likewise.
34815 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34816 `util/ieee1275/get_disk_name.c'.
34817 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34818 * util/ieee1275/get_disk_name.c: Remove file.
34819 * util/i386/get_disk_name.c: Remove file.
34820 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34821 "hd%d" for device.map entries, rather than using
34822 grub_util_get_disk_name().
34823
34824 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34825
34826 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34827 warning.
34828 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34829
34830 2008-09-24 Carles Pina i Estany <carles@pina.cat>
34831
34832 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34833 Changed to 0x5100.
34834 (GRUB_TERM_PPAGE): Changed to 0x4900.
34835
34836 2008-09-24 Robert Millan <rmh@aybabtu.com>
34837
34838 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34839 macros (they were i386-pc specific).
34840 * include/grub/sparc64/ieee1275/console.h: Likewise.
34841 * include/grub/efi/console.h: Likewise.
34842
34843 2008-09-22 Bean <bean123ch@gmail.com>
34844
34845 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34846 resident and in attribute list.
34847
34848 * include/grub/ntfs.h (BMP_LEN): Removed.
34849
34850 2008-09-22 Bean <bean123ch@gmail.com>
34851
34852 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
34853 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34854
34855 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34856 error occurs, as grub_disk_open will call grub_disk_close, which will
34857 call p->close (scsi).
34858
34859 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34860
34861 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34862 (AC_PREREQ): Bumped to 2.59.
34863 (AC_TRY_COMPILE): Replace obsolete macro with ...
34864 (AC_COMPILE_IFELSE): ... this.
34865 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34866 (AC_LINK_IFELSE): ... this.
34867
34868 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
34869
34870 * autogen.sh: Add a call to `gendistlist.sh'.
34871
34872 2008-09-19 Christian Franke <franke@computer.org>
34873
34874 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34875 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34876 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34877 Export __enable_execute_stack() to modules.
34878 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34879 New function.
34880
34881 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34882
34883 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34884 Sort the list.
34885
34886 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
34887
34888 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
34889 #include <grub/util/hostdisk.h>.
34890
34891 2008-09-08 Robert Millan <rmh@aybabtu.com>
34892
34893 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34894 segments when their filesz is zero (grub_file_read() interprets
34895 zero-size as "read until EOF", which results in memory corruption).
34896 Use `lowest_segment' rather than 0 for calculating the current
34897 segment load address.
34898
34899 2008-09-08 Robert Millan <rmh@aybabtu.com>
34900
34901 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34902 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34903 clobbered useful information.
34904
34905 2008-09-08 Robert Millan <rmh@aybabtu.com>
34906
34907 * include/grub/util/biosdisk.h: Move to ...
34908 * include/grub/util/hostdisk.h: ... here. Update all users.
34909 * util/biosdisk.c: Move to ...
34910 * util/hostdisk.c: ... here. Update all users.
34911
34912 2008-09-07 Robert Millan <rmh@aybabtu.com>
34913
34914 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34915 variables.
34916 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34917 and length can be stored directly in the `mbi->mmap_addr' and
34918 `mbi->mmap_length' struct fields.
34919
34920 2008-09-07 Robert Millan <rmh@aybabtu.com>
34921
34922 * conf/i386.rmk: New file. Provides declaration for building
34923 `cpuid.mod'.
34924 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34925 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34926 variables.
34927 Include `conf/i386.mk'.
34928 * conf/i386-efi.rmk: Likewise.
34929 * conf/x86_64-efi.rmk: Likewise.
34930 * conf/i386-coreboot.rmk: Likewise.
34931 * conf/i386-ieee1275.rmk: Likewise.
34932
34933 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34934
34935 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34936 Adds optimization support for BGR based modes.
34937
34938 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34939 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34940 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34941 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34942 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34943 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34944 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34945 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34946 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34947 (grub_video_i386_vbeblit_index_index): Likewise.
34948 (grub_video_i386_vbeblit_replace_directN): Added.
34949 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34950 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34951 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34952 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34953 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34954 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34955 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34956 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34957 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34958 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34959 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34960 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34961 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34962
34963 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34964 (grub_video_i386_vbefill_R8G8B8): Likewise.
34965 (grub_video_i386_vbefill_index): Likewise.
34966 (grub_video_i386_vbefill_direct32): Added.
34967 (grub_video_i386_vbefill_direct24): Likewise.
34968 (grub_video_i386_vbefill_direct16): Likewise.
34969 (grub_video_i386_vbefill_direct8): Likewise.
34970
34971 * include/grub/video.h (grub_video_blit_format): Removed
34972 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34973 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34974 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34975 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34976 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
34977
34978 * video/video.c (grub_video_get_blit_format): Updated to use new
34979 blit formats. Added handling for 16 bit color modes.
34980
34981 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
34982 fillers.
34983 (common_blitter): Updated to use new blitters.
34984
34985 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34986 Removed.
34987 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34988 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34989 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34990 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34991 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34992 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34993 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34994 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34995 (grub_video_i386_vbeblit_index_index): Likewise.
34996 (grub_video_i386_vbeblit_replace_directN): Added.
34997 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34998 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34999 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35000 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35001 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35002 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35003 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35004 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35005 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35006 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35007 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35008 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35009 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35010
35011 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35012 (grub_video_i386_vbefill_R8G8B8): Likewise.
35013 (grub_video_i386_vbefill_index): Likewise.
35014 (grub_video_i386_vbefill_direct32): Added.
35015 (grub_video_i386_vbefill_direct24): Likewise.
35016 (grub_video_i386_vbefill_direct16): Likewise.
35017 (grub_video_i386_vbefill_direct8): Likewise.
35018
35019 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35020 types.
35021
35022 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35023 types.
35024
35025 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35026 blitter types.
35027
35028 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35029 types.
35030
35031 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35032
35033 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35034 RAID level 1.
35035
35036 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35037
35038 * fs/iso9660.c (grub_iso9660_date): New structure.
35039 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35040 (grub_iso9660_uuid): New function.
35041
35042 2008-09-05 Bean <bean123ch@gmail.com>
35043
35044 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35045
35046 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35047 insensitive bit for names in Win32 and Win32 & DOS namespace.
35048
35049 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35050
35051 * include/grub/types.h (LONG_MAX): Likewise.
35052
35053 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35054
35055 * util/getroot.c: Include <config.h>.
35056 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35057 add support for /dev/md/N devices and handle LVM double dash escaping.
35058
35059 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35060
35061 * config.guess: Update to latest version from config git.
35062 * config.sub: Likewise.
35063
35064 2008-09-03 Robert Millan <rmh@aybabtu.com>
35065
35066 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35067 `disk->total_sectors'.
35068
35069 2008-09-01 Colin D Bennett <colin@gibibit.com>
35070
35071 * include/grub/normal.h: Fixed incorrect comment for
35072 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35073
35074 2008-09-01 Colin D Bennett <colin@gibibit.com>
35075
35076 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35077 values with defines.
35078
35079 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35080 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35081 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35082 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35083 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35084 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35085 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35086 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35087 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35088 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35089 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35090 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35091 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35092 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35093 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35094 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35095 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35096 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35097 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35098
35099 2008-08-31 Robert Millan <rmh@aybabtu.com>
35100
35101 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35102 declaration.
35103 (grub_multiboot): Fix a few warnings.
35104
35105 2008-08-31 Robert Millan <rmh@aybabtu.com>
35106
35107 * loader/i386/pc/multiboot.c: Update comment not to say that
35108 boot_device support is unimplemented.
35109
35110 2008-08-31 Robert Millan <rmh@aybabtu.com>
35111
35112 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35113 or memory map support are unimplemented.
35114
35115 2008-08-31 Colin D Bennett <colin@gibibit.com>
35116
35117 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35118
35119 2008-08-31 Colin D Bennett <colin@gibibit.com>
35120
35121 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35122 total video memory in 'vbeinfo' output; show color format details for
35123 each video mode.
35124
35125 2008-08-30 Pavel Roskin <proski@gnu.org>
35126
35127 * util/genmoddep.c: Remove for real this time.
35128 * DISTLIST: Remove util/genmoddep.c.
35129
35130 2008-08-30 Robert Millan <rmh@aybabtu.com>
35131
35132 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35133 as required by Multiboot spec (it was already 4-byte aligned, but
35134 only by chance).
35135
35136 2008-08-29 Pavel Roskin <proski@gnu.org>
35137
35138 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35139 * kern/powerpc/ieee1275/startup.S: ... this.
35140 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35141 * DISTLIST: Likewise.
35142
35143 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35144 grub/cpu/kernel.h. Add start label for consistency with other
35145 platforms. Add grub_prefix immediately after start. Add jump
35146 to the code after grub_prefix.
35147 * include/grub/powerpc/kernel.h: Provide valid values for
35148 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35149
35150 2008-08-29 Bean <bean123ch@gmail.com>
35151
35152 * configure.ac: Change host_os to cygwin for mingw.
35153 (asprintf): New check for function.
35154
35155 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35156 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35157
35158 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35159 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35160 sync, sleep and grub_util_get_disk_size for mingw.
35161
35162 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35163 to get size in mingw.
35164 (open_device): Use flag O_BINARY if it's defined.
35165 (find_root_device): Add dummy code for mingw.
35166
35167 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35168 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35169 (get_scsi_disk_name): Return 0 for mingw.
35170
35171 * util/hostfs.c: #include <grub/util/misc.h>.
35172 (grub_hostfs_open): Use "rb" flag to open file, use
35173 grub_util_get_disk_size to get disk size for mingw.
35174
35175 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35176 (asprintf): New function if HAVE_ASPRINTF is not set.
35177 (sync): New function for mingw.
35178 (sleep): Likewise.
35179 (grub_util_get_disk_size): Likewise.
35180
35181 2008-08-28 Pavel Roskin <proski@gnu.org>
35182
35183 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35184 kern/time.c.
35185
35186 2008-08-28 Robert Millan <rmh@aybabtu.com>
35187
35188 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35189
35190 2008-08-28 Robert Millan <rmh@aybabtu.com>
35191
35192 Change find_grub_drive() syntax so it doesn't prevent it from
35193 detecting NULL names as errors.
35194
35195 * util/biosdisk.c (find_grub_drive): Move free slot search code
35196 from here ...
35197 (find_free_slot): ... to here.
35198 (read_device_map): Use find_free_slot() to search for free slots.
35199
35200 2008-08-27 Marco Gerards <marco@gnu.org>
35201
35202 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35203 (scsi_mod_SOURCES): New variable.
35204 (scsi_mod_CFLAGS): Likewise
35205 (scsi_mod_LDFLAGS): Likewise.
35206
35207 * disk/scsi.c: New file.
35208
35209 * include/grub/scsi.h: Likewise.
35210
35211 * include/grub/scsicmd.h: Likewise.
35212
35213 * disk/ata.c: Include <grub/scsi.h>.
35214 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35215 instead.
35216 (grub_ata_iterate): Skip ATAPI devices.
35217 (grub_ata_open): Only handle ATAPI devices.
35218 (struct grub_atapi_read): Removed.
35219 (grub_atapi_readsector): Likewise.
35220 (grub_ata_read): No longer handle ATAPI devices.
35221 (grub_ata_write): Likewise.
35222 (grub_atapi_iterate): New function.
35223 (grub_atapi_read): Likewise.
35224 (grub_atapi_write): Likewise.
35225 (grub_atapi_open): Likewise.
35226 (grub_atapi_close): Likewise.
35227 (grub_atapi_dev): New variable.
35228 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35229 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35230
35231 * include/grub/disk.h (enum grub_disk_dev_id): Add
35232 `GRUB_DISK_DEVICE_SCSI_ID'.
35233
35234 2008-08-26 Robert Millan <rmh@aybabtu.com>
35235
35236 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35237 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35238 descriptive.
35239
35240 2008-08-23 Bean <bean123ch@gmail.com>
35241
35242 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35243 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35244 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35245 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35246 dm_nv.mod.
35247 (raid5rec_mod_SOURCES): New macro.
35248 (raid5rec_mod_CFLAGS): Likewise.
35249 (raid5rec_mod_LDFLAGS): Likewise.
35250 (raid6rec_mod_SOURCES): Likewise.
35251 (raid6rec_mod_CFLAGS): Likewise.
35252 (raid6rec_mod_LDFLAGS): Likewise.
35253 (mdraid_mod_SOURCES): Likewise.
35254 (mdraid_mod_CFLAGS): Likewise.
35255 (mdraid_mod_LDFLAGS): Likewise.
35256 (dm_nv_mod_SOURCES): Likewise.
35257 (dm_nv_mod_CFLAGS): Likewise.
35258 (dm_nv_mod_LDFLAGS): Likewise.
35259
35260 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35261 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35262 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35263
35264 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35265 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35266
35267 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35268
35269 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35270
35271 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35272
35273 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35274
35275 * disk/raid5_recover.c: New file.
35276
35277 * disk/raid6_recover.c: Likewise.
35278
35279 * disk/mdraid_linux.c: Likewise.
35280
35281 * disk/dmraid_nvidia.c: Likewise.
35282
35283 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35284 ULONG_MAX.
35285
35286 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35287 calculate the size of raid device.
35288 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35289 different layout of raid5.
35290 (grub_raid_scan_device): Remove code specific to mdraid.
35291 (grub_raid_list): New variable.
35292 (free_array): New function.
35293 (grub_raid_register): Likewise.
35294 (grub_raid_unregister): Likewise.
35295 (grub_raid_rescan): Likewise.
35296 (GRUB_MOD_INIT): Don't iterate device here.
35297 (GRUB_MOD_FINI): Use free_array to release resource.
35298
35299 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35300 (grub_raid5_recover_func_t): New function variable type.
35301 (grub_raid6_recover_func_t): Likewise.
35302 (grub_raid5_recover_func): New variable.
35303 (grub_raid6_recover_func): Likewise.
35304 (grub_raid_register): New function.
35305 (grub_raid_unregister): Likewise.
35306 (grub_raid_rescan): Likewise.
35307 (grub_raid_block_xor): Likewise.
35308
35309 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35310 (CMD_CRC): New macro.
35311 (part): Removed.
35312 (read_file): Handle device as well as file.
35313 (cmd_crc): New function.
35314 (fstest): Handle multiple disks.
35315 (options): Remove part, raw and long, add root and diskcount.
35316 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35317 (main): Find the first non option entry and ignore subsequent options,
35318 add handling for the new options, support multiple disks.
35319
35320 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35321
35322 2008-08-23 Bean <bean123ch@gmail.com>
35323
35324 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35325
35326 * genfslist.sh: Ignore kernel.mod.
35327
35328 * genpartmaplist.sh: Likewise.
35329
35330 2008-08-23 Robert Millan <rmh@aybabtu.com>
35331
35332 * util/getroot.c (find_root_device): Skip anything that starts with
35333 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35334
35335 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35336
35337 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35338 * util/grub.d/00_header.in: Allow the administrator to change default
35339 gfxmode via ${GRUB_GFXMODE}.
35340
35341 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35342
35343 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35344
35345 2008-08-21 Robert Millan <rmh@aybabtu.com>
35346
35347 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35348 loader.
35349 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35350 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35351
35352 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35353
35354 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35355 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35356
35357 2008-08-19 Robert Millan <rmh@aybabtu.com>
35358
35359 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35360 (struct grub_virtual_screen): Remove `cursor_color'.
35361 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35362 initialization.
35363 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35364
35365 2008-08-18 Robert Millan <rmh@aybabtu.com>
35366
35367 Unify (identical) linux_normal.c files.
35368 * loader/i386/efi/linux_normal.c: Move from here ...
35369 * loader/linux_normal.c: ... to here. Update all users.
35370 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35371 * loader/i386/ieee1275/linux_normal.c: Likewise.
35372
35373 2008-08-18 Robert Millan <rmh@aybabtu.com>
35374
35375 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35376 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35377 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35378 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35379 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35380 New macros.
35381 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35382 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35383 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35384 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35385 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35386 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35387 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35388 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35389 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35390 portably using grub_getxy().
35391 Replace `-EFI' with `-bzImage' in boot message.
35392
35393 2008-08-17 Robert Millan <rmh@aybabtu.com>
35394
35395 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35396
35397 2008-08-17 Robert Millan <rmh@aybabtu.com>
35398
35399 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35400
35401 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35402 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35403 (grub_machine_mmap_iterate): New function declaration.
35404 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35405 structure.
35406 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35407 macros.
35408
35409 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35410 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35411 Move e820 parsing from here ...
35412 * kern/i386/pc/mmap.c: New file.
35413 (grub_machine_mmap_iterate): ... to here.
35414
35415 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35416 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35417 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35418 (grub_available_iterate): Redeclare to return `void', and redeclare
35419 its hook to use grub_uint64_t as addr and size parameters, and rename
35420 to ...
35421 (grub_machine_mmap_iterate): ... this. Update all users.
35422
35423 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35424 to make it more readable. Rename to ...
35425 (grub_machine_mmap_iterate): ... this.
35426
35427 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35428 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35429 (grub_multiboot): Allocate an extra region after the payload, and fill
35430 it with a Multiboot memory map. Adjust a.out loader to calculate size
35431 with the extra space.
35432 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35433 with the extra space.
35434
35435 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35436
35437 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35438
35439 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35440
35441 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35442 mdate-sh to the list `find' searches for.
35443 * DISTLIST: Regenerated.
35444
35445 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35446
35447 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35448 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35449 genmoddep.awk, gensymlist.sh.in.
35450 (DISTDIRS): Add bus, docs, hook, lib.
35451 * DISTLIST: Regenerated.
35452 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35453
35454 2008-08-16 Robert Millan <rmh@aybabtu.com>
35455
35456 * disk/raid.c (grub_raid_init): Handle/report errors set by
35457 grub_device_iterate().
35458 * disk/lvm.c (grub_lvm_init): Likewise.
35459
35460 2008-08-15 Bean <bean123ch@gmail.com>
35461
35462 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35463 and datehook.mod.
35464 (datetime_mod_SOURCES): New macro.
35465 (datetime_mod_CFLAGS): Likewise.
35466 (datetime_mod_LDFLAGS): Likewise.
35467 (date_mod_SOURCES): Likewise.
35468 (date_mod_CFLAGS): Likewise.
35469 (date_mod_LDFLAGS): Likewise.
35470 (datehook_mod_SOURCES): Likewise.
35471 (datehook_mod_CFLAGS): Likewise.
35472 (datehook_mod_LDFLAGS): Likewise.
35473
35474 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35475 and datehook.mod.
35476 (datetime_mod_SOURCES): New macro.
35477 (datetime_mod_CFLAGS): Likewise.
35478 (datetime_mod_LDFLAGS): Likewise.
35479 (date_mod_SOURCES): Likewise.
35480 (date_mod_CFLAGS): Likewise.
35481 (date_mod_LDFLAGS): Likewise.
35482 (datehook_mod_SOURCES): Likewise.
35483 (datehook_mod_CFLAGS): Likewise.
35484 (datehook_mod_LDFLAGS): Likewise.
35485
35486 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35487 and datehook.mod.
35488 (datetime_mod_SOURCES): New macro.
35489 (datetime_mod_CFLAGS): Likewise.
35490 (datetime_mod_LDFLAGS): Likewise.
35491 (date_mod_SOURCES): Likewise.
35492 (date_mod_CFLAGS): Likewise.
35493 (date_mod_LDFLAGS): Likewise.
35494 (datehook_mod_SOURCES): Likewise.
35495 (datehook_mod_CFLAGS): Likewise.
35496 (datehook_mod_LDFLAGS): Likewise.
35497
35498 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35499 and datehook.mod.
35500 (datetime_mod_SOURCES): New macro.
35501 (datetime_mod_CFLAGS): Likewise.
35502 (datetime_mod_LDFLAGS): Likewise.
35503 (date_mod_SOURCES): Likewise.
35504 (date_mod_CFLAGS): Likewise.
35505 (date_mod_LDFLAGS): Likewise.
35506 (datehook_mod_SOURCES): Likewise.
35507 (datehook_mod_CFLAGS): Likewise.
35508 (datehook_mod_LDFLAGS): Likewise.
35509
35510 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35511 and datehook.mod.
35512 (datetime_mod_SOURCES): New macro.
35513 (datetime_mod_CFLAGS): Likewise.
35514 (datetime_mod_LDFLAGS): Likewise.
35515 (date_mod_SOURCES): Likewise.
35516 (date_mod_CFLAGS): Likewise.
35517 (date_mod_LDFLAGS): Likewise.
35518 (datehook_mod_SOURCES): Likewise.
35519 (datehook_mod_CFLAGS): Likewise.
35520 (datehook_mod_LDFLAGS): Likewise.
35521
35522 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35523
35524 * commands/date.c: New file.
35525
35526 * hook/datehook.c: Likewise.
35527
35528 * include/grub/lib/datetime.h: Likewise.
35529
35530 * include/grub/i386/cmos.h: Likewise.
35531
35532 * lib/datetime.c: Likewise.
35533
35534 * lib/i386/datetime.c: Likewise.
35535
35536 * lib/efi/datetime.c: Likewise.
35537
35538 2008-08-14 Robert Millan <rmh@aybabtu.com>
35539
35540 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35541 (grub_mkelfimage_SOURCES): New variable.
35542 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35543
35544 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35545 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35546 * conf/powerpc-ieee1275.rmk: Likewise.
35547 * conf/i386-ieee1275.rmk: Likewise.
35548
35549 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35550 * kern/i386/coreboot/init.c: Likewise.
35551
35552 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35553 with `<grub/cpu/kernel.h>'.
35554 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35555 to ...
35556 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35557 * kern/i386/coreboot/startup.S: Likewise.
35558
35559 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35560 (GRUB_MOD_GAP): Remove.
35561 * include/grub/powerpc/kernel.h: New file.
35562 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35563 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35564 * include/grub/i386/kernel.h: New file.
35565 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35566 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35567 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35568
35569 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35570 `grub-mkelfimage'.
35571 Use --directory when invoking grub_mkimage.
35572
35573 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35574 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35575 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35576 and GRUB_KERNEL_CPU_PREFIX.
35577
35578 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35579
35580 * include/grub/err.h (grub_err_printf): New function prototype.
35581 * util/misc.c (grub_err_printf): New function.
35582 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35583 grub_printf.
35584 * kern/err.c (grub_print_error): Use grub_err_printf.
35585
35586 2008-08-13 Robert Millan <rmh@aybabtu.com>
35587
35588 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35589
35590 2008-08-13 Robert Millan <rmh@aybabtu.com>
35591
35592 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35593 boot entry.
35594
35595 2008-08-12 Robert Millan <rmh@aybabtu.com>
35596
35597 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35598 of the relocation code from here ...
35599 (grub_multiboot): ... to here.
35600 (forward_relocator, backward_relocator): Move from here ...
35601 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35602 (grub_multiboot_backward_relocator): ... to here.
35603 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35604 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35605 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35606 (grub_multiboot_forward_relocator_end)
35607 (grub_multiboot_backward_relocator)
35608 (grub_multiboot_backward_relocator_end): New variables.
35609
35610 2008-08-12 Bean <bean123ch@gmail.com>
35611
35612 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35613
35614 2008-08-11 Robert Millan <rmh@aybabtu.com>
35615
35616 * kern/i386/linuxbios/startup.S: Move from here ...
35617 * kern/i386/coreboot/startup.S: ... to here.
35618
35619 * kern/i386/linuxbios/init.c: Move from here ...
35620 * kern/i386/coreboot/init.c: ... to here.
35621
35622 * kern/i386/linuxbios/table.c: Move from here ...
35623 * kern/i386/coreboot/mmap.c: ... to here.
35624
35625 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35626
35627 2008-08-11 Robert Millan <rmh@aybabtu.com>
35628
35629 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35630 errors. Leave it to the upper layer to handle them.
35631
35632 2008-08-09 Christian Franke <franke@computer.org>
35633
35634 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35635 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35636 Install `grub.d/10_windows' only on Cygwin.
35637 * configure.ac: Add subst of `target_os'.
35638 Check `target_os' also before setting TARGET_OBJ2ELF.
35639 Add `--enable-grub-pe2elf'.
35640
35641 2008-08-08 Robert Millan <rmh@aybabtu.com>
35642
35643 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35644 (grub_last_time): Change type to grub_uint64_t.
35645 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35646 (grub_disk_close): Likewise.
35647
35648 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35649 (run_menu): Migrate code from to using grub_get_time_ms().
35650
35651 * util/misc.c (grub_get_time_ms): New function.
35652
35653 2008-08-08 Marco Gerards <marco@gnu.org>
35654
35655 * disk/ata.c (grub_ata_regget): Change return type to
35656 `grub_uint8_t'.
35657 (grub_ata_regget2): Likewise.
35658 (grub_ata_wait_status): New function.
35659 (grub_ata_wait_busy): Removed function, updated all users to use
35660 `grub_ata_wait_status'.
35661 (grub_ata_wait_drq): Likewise.
35662 (grub_ata_cmd): New function.
35663 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35664 error handling.
35665 (grub_ata_pio_write): Add error handling.
35666 (grub_atapi_identify): Likewise.
35667 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35668 handling.
35669 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35670 handling. Actually use the detected registers. Reorder the
35671 detection logic such that it is easier to read.
35672 (grub_ata_pciinit): Do not assign the same ID to each controller.
35673 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35674 handling.
35675 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35676
35677 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35678
35679 2008-08-08 Marco Gerards <marco@gnu.org>
35680
35681 * NEWS: Update.
35682
35683 2008-08-07 Bean <bean123ch@gmail.com>
35684
35685 * include/grub/x86_64/pci.h: New file.
35686
35687 2008-08-07 Christian Franke <franke@computer.org>
35688
35689 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35690 (TIMER2_GATE): Likewise.
35691 (grub_pit_wait): Add enable/disable of the timer2 gate
35692 bit of port 0x61. This fixes a possible infinite loop.
35693
35694 2008-08-07 Bean <bean123ch@gmail.com>
35695
35696 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35697 kern/i386/tsc.c and kern/i386/pit.c.
35698
35699 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35700 x86_64 platform.
35701
35702 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35703 <grub/i386/tsc.h>.
35704
35705 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35706
35707 2008-08-07 Bean <bean123ch@gmail.com>
35708
35709 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35710
35711 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35712
35713 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35714 multiple inclusion. Add #include <grub/types.h>.
35715
35716 2008-08-06 Christian Franke <franke@computer.org>
35717
35718 * conf/common.rmk: Build and install `10_windows'.
35719 * util/grub.d/10_windows.in: New script.
35720
35721 2008-08-06 Pavel Roskin <proski@gnu.org>
35722
35723 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35724
35725 2008-08-06 Robert Millan <rmh@aybabtu.com>
35726
35727 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35728 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35729
35730 2008-08-06 Bean <bean123ch@gmail.com>
35731
35732 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35733 (grub_pxefs_fs_int): Remove dummy definition.
35734 (grub_pxefs_open): Use data->block_size to store the current block
35735 size setting.
35736 (grub_pxefs_read): Use block size stored in data->block_size. As the
35737 value of grub_pxe_blksize can be changed after the file is opened.
35738
35739 2008-08-06 Bean <bean123ch@gmail.com>
35740
35741 * fs/i386/pc/pxe.c (curr_file): new variable.
35742 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35743 require the dummy internal file system anymore.
35744 (grub_pxefs_read): Removed.
35745 (grub_pxefs_close): Likewise.
35746 (grub_pxefs_fs_int): Likewise.
35747 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35748 connection when we switch file.
35749 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35750
35751 2008-08-06 Robert Millan <rmh@aybabtu.com>
35752
35753 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35754 `halt.mod'.
35755 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35756 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35757
35758 * kern/i386/halt.c: New file.
35759 * kern/i386/reboot.c: Likewise.
35760 * include/grub/i386/reboot.h: Likewise.
35761 * include/grub/i386/halt.h: Likewise.
35762
35763 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35764 Include `<grub/cpu/halt.h>'.
35765 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35766 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35767
35768 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35769 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35770 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35771 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35772 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35773 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35774 from here ...
35775 * include/grub/i386/at_keyboard.h: ... to here.
35776
35777 2008-08-05 Robert Millan <rmh@aybabtu.com>
35778
35779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35780 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35781 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35782 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35783 `kern/generic/millisleep.c'.
35784
35785 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35786 instead of grub_get_rtc().
35787 (grub_tsc_init): Initialize `tsc_boot_time'.
35788
35789 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35790 (grub_machine_init): Use grub_tsc_init() rather than
35791 installing an RTC-based handler via grub_install_get_time_ms().
35792
35793 * kern/i386/pit.c: New file.
35794 * include/grub/i386/pit.h: Likewise.
35795
35796 2008-08-05 Bean <bean123ch@gmail.com>
35797
35798 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35799
35800 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35801 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35802 (pxe_mod_SOURCES): New macro.
35803 (pxe_mod_CFLAGS): Likewise.
35804 (pxe_mod_LDFLAGS): Likewise.
35805 (pxecmd_mod_SOURCES): Likewise.
35806 (pxecmd_mod_CFLAGS): Likewise.
35807 (pxecmd_mod_LDFLAGS): Likewise.
35808
35809 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35810 (grub_pxe_call): Likewise.
35811
35812 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35813
35814 * commands/i386/pc/pxecmd.c: New file.
35815
35816 * fs/i386/pc/pxe.c: Likewise.
35817
35818 * include/grub/i386/pc/pxe.h: Likewise.
35819
35820 2008-08-05 Bean <bean123ch@gmail.com>
35821
35822 * util/console.c (grub_console_cur_color): New variable.
35823 (grub_console_standard_color): Likewise.
35824 (grub_console_normal_color): Likewise.
35825 (grub_console_highlight_color): Likewise.
35826 (color_map): Likewise.
35827 (use_color): Likewise.
35828 (NUM_COLORS): New macro.
35829 (grub_ncurses_setcolorstate): Handle color properly.
35830 (grub_ncurses_setcolor): Don't change color here, just remember the
35831 settings, color will be set in grub_ncurses_setcolorstate.
35832 (grub_ncurses_getcolor): New function.
35833 (grub_ncurses_init): Initialize color pairs.
35834 (grub_ncurses_term): New member grub_ncurses_getcolor.
35835
35836 2008-08-05 Colin D Bennett <colin@gibibit.com>
35837
35838 High resolution timer support. Implemented for x86 CPUs using TSC.
35839 Extracted generic grub_millisleep() so it's linked in only as needed.
35840 This requires a Pentium compatible CPU; if the RDTSC instruction is
35841 not supported, then it falls back on the generic grub_get_time_ms()
35842 implementation that uses the machine's RTC.
35843
35844 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35845 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35846 `kern/generic/millisleep.c'.
35847
35848 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35849 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35850
35851 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35852 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35853
35854 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35855
35856 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35857 `kern/generic/millisleep.c'.
35858
35859 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35860
35861 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35862
35863 * kern/generic/rtc_get_time_ms.c: New file.
35864
35865 * kern/generic/millisleep.c: New file.
35866
35867 * kern/misc.c: Don't include
35868 <kern/time.h> anymore.
35869 (grub_millisleep_generic): Removed.
35870
35871 * commands/sleep.c (grub_interruptible_millisleep): Uses
35872 grub_get_time_ms() instead of grub_get_rtc().
35873
35874 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35875 function.
35876 (grub_cpu_is_cpuid_supported): New inline function.
35877 (grub_cpu_is_tsc_supported): New inline function.
35878 (grub_tsc_init): New function prototype.
35879 (grub_tsc_get_time_ms): New function prototype.
35880
35881 * kern/i386/tsc.c (grub_get_time_ms): New file.
35882
35883 * include/grub/time.h: Include <grub/types.h.
35884 (grub_millisleep_generic): Removed.
35885 (grub_get_time_ms): New prototype.
35886 (grub_install_get_time_ms): New prototype.
35887 (grub_rtc_get_time_ms): New prototype.
35888
35889 * kern/time.c (grub_get_time_ms): New function.
35890 (grub_install_get_time_ms): New function.
35891
35892 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35893 <grub/time.h> anymore.
35894 (grub_millisleep): Removed.
35895 (grub_machine_init): Call grub_tsc_init.
35896
35897 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35898 get_time_ms() implementation.
35899
35900 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35901 (ieee1275_get_time_ms): New function.
35902 (grub_machine_init): Install get_time_ms() implementation.
35903
35904 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35905 (grub_machine_init): Call grub_tsc_init().
35906 (grub_millisleep): Removed.
35907
35908 * kern/ieee1275/init.c (grub_millisleep): Removed.
35909 (grub_machine_init): Install ieee1275_get_time_ms()
35910 implementation.
35911 (ieee1275_get_time_ms): New function.
35912 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35913 real work.
35914
35915 2008-08-05 Marco Gerards <marco@gnu.org>
35916
35917 * disk/ata.c: Include <grub/pci.h>.
35918 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35919 (grub_ata_initialize): Rewritten.
35920 (grub_ata_device_initialize): New function.
35921
35922 2008-08-04 Pavel Roskin <proski@gnu.org>
35923
35924 * kern/main.c: Include grub/mm.h.
35925
35926 2008-08-04 Robert Millan <rmh@aybabtu.com>
35927
35928 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35929 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35930 corruption problem).
35931
35932 2008-08-04 Robert Millan <rmh@aybabtu.com>
35933
35934 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35935 warnings introduced in my last commit.
35936
35937 2008-08-03 Robert Millan <rmh@aybabtu.com>
35938
35939 Make PCI available on all i386 architectures.
35940
35941 * include/grub/i386/pc/pci.h: Move from here ...
35942 * include/grub/i386/pci.h: ... to here.
35943
35944 * include/grub/i386/pc/pci.h: Remove.
35945 * include/grub/i386/efi/pci.h: Remove.
35946 * include/grub/x86_64/efi/pci.h: Remove.
35947
35948 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35949 `<grub/cpu/pci.h>'.
35950
35951 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35952 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35953 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35954
35955 * conf/i386-ieee1275.rmk: Likewise.
35956
35957 2008-08-03 Robert Millan <rmh@aybabtu.com>
35958
35959 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35960 (grub_console_setcursor): Make it possible to set cursor off.
35961
35962 2008-08-03 Robert Millan <rmh@aybabtu.com>
35963
35964 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35965 of modules instead of assuming which platform provides what.
35966 * util/update-grub.in: Likewise.
35967
35968 2008-08-03 Robert Millan <rmh@aybabtu.com>
35969
35970 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35971 instead of `grub_install_dos_part' to determine whether a drive needs
35972 to be prepended to prefix (`grub_install_dos_part' is not reliable,
35973 because it can be overridden when loading GRUB via Multiboot).
35974
35975 2008-08-02 Robert Millan <rmh@aybabtu.com>
35976
35977 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35978
35979 2008-08-02 Robert Millan <rmh@aybabtu.com>
35980
35981 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35982 of informational grub_dprintf() calls.
35983
35984 2008-08-02 Robert Millan <rmh@aybabtu.com>
35985
35986 * disk/memdisk.c (memdisk_size): Don't initialize.
35987 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35988
35989 * include/grub/i386/pc/kernel.h
35990 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35991 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35992 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35993 (grub_arch_memdisk_size): Remove.
35994
35995 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35996 field (was only used to transfer a constant). Add `type' field to
35997 support multiple module types.
35998 (grub_module_iterate): New function.
35999
36000 * kern/device.c (grub_device_open): Do not hide error messages
36001 when grub_disk_open() fails. Use grub_print_error() instead.
36002
36003 * kern/i386/pc/init.c (grub_arch_modules_addr)
36004 (grub_arch_memdisk_size): Remove functions.
36005 (grub_arch_modules_addr): Return the module address in high memory
36006 (now that it isn't copied anymore).
36007
36008 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36009 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36010 decompression routine (grub_total_module_size already includes that
36011 now). Don't copy modules back to low memory.
36012
36013 * kern/main.c: Include `<grub/mm.h>'.
36014 (grub_load_modules): Split out (and use) ...
36015 (grub_module_iterate): ... this function, which iterates through
36016 module objects and runs a hook.
36017 Comment out grub_mm_init_region() call, as it would cause non-ELF
36018 modules to be overwritten.
36019
36020 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36021 the memdisk image in its own region, make it part of the module list.
36022 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36023 (main): Parse --memdisk|-m option, and pass user-provided path as
36024 parameter to generate_image().
36025 (add_segments): Pass `memdisk_path' down to load_modules().
36026 (load_modules): Embed memdisk image in module section when requested.
36027 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36028 `header.type' instead of `header.offset'.
36029
36030 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36031 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36032 (memdisk_mod_LDFLAGS): New variables.
36033 * conf/i386-coreboot.rmk: Likewise.
36034 * conf/i386-ieee1275.rmk: Likewise.
36035
36036 2008-08-02 Robert Millan <rmh@aybabtu.com>
36037
36038 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36039 (backward_relocator): New variables. Used to allocate and relocate
36040 the payload, respectively.
36041 (grub_multiboot_load_elf32): Load into heap instead of requested
36042 address, install the appropriate relocator code in each bound of
36043 the payload, and set the entry point such that
36044 grub_multiboot_real_boot() will jump to one of them.
36045
36046 * kern/i386/loader.S (grub_multiboot_payload_size)
36047 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36048 (grub_multiboot_payload_entry_offset): New variables.
36049 (grub_multiboot_real_boot): Set cpu context to what the relocator
36050 expects, and jump to the relocator instead of the payload.
36051
36052 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36053 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36054 (grub_multiboot_payload_entry_offset): Export.
36055
36056 2008-08-01 Bean <bean123ch@gmail.com>
36057
36058 * normal/menu_entry.c (editor_getline): Don't return the original
36059 string as result, as it will be released by lexer once it has done
36060 using it.
36061
36062 2008-08-01 Robert Millan <rmh@aybabtu.com>
36063
36064 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36065 within menuentries, not before them.
36066 util/grub.d/10_hurd.in: Likewise.
36067
36068 2008-08-01 Bean <bean123ch@gmail.com>
36069
36070 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36071 (bufio_mod_SOURCES): New macro.
36072 (bufio_mod_CFLAGS): Likewise.
36073 (bufio_mod_LDFLAGS): Likewise.
36074
36075 * include/grub/bufio.h: New file.
36076
36077 * io/bufio.c: Likewise.
36078
36079 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36080 (grub_video_reader_png): Use grub_buffile_open to open file.
36081
36082 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36083 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36084
36085 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36086 (grub_video_reader_tga): Use grub_buffile_open to open file.
36087
36088 * font/manager.c: Include <grub/bufio.h>.
36089 (add_font): Use grub_buffile_open to open file.
36090
36091 2008-07-31 Robert Millan <rmh@aybabtu.com>
36092
36093 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36094 ELF segments, use a macro for arbitrarily accessing any of them instead
36095 of preparing a pointer that allows access to one at a time.
36096 (grub_multiboot_load_elf64): Likewise.
36097
36098 2008-07-31 Bean <bean123ch@gmail.com>
36099
36100 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36101 GRUB_KERNEL_MACHINE_DATA_END.
36102
36103 2008-07-30 Robert Millan <rmh@aybabtu.com>
36104
36105 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36106 Increase from 0x50 to 0x60.
36107 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36108 use UUIDs to identify the root drive for them. If that's not
36109 possible, abort.
36110 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36111 check, for cross-disk installs.
36112
36113 2008-07-30 Robert Millan <rmh@aybabtu.com>
36114
36115 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36116 is non-empty, use it to set the `prefix' environment variable instead
36117 of the usual approach.
36118 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36119 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36120 environment variable instead of dummy make_install_device().
36121
36122 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36123 (start): Insert a data section, with `grub_prefix' variable.
36124 * kern/i386/linuxbios/startup.S: Likewise.
36125
36126 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36127 New variable reference.
36128 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36129 New macro. Defines offset of `grub_prefix' within startup.S (relative
36130 to `start').
36131 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36132 section within startup.S (relative to `start').
36133 * include/grub/i386/coreboot/kernel.h: Likewise.
36134
36135 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36136 Overwrite grub_prefix with its contents, at the beginning of the
36137 first segment.
36138 (main): Understand -p|--prefix.
36139
36140 2008-07-30 Robert Millan <rmh@aybabtu.com>
36141
36142 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36143
36144 2008-07-30 Robert Millan <rmh@aybabtu.com>
36145
36146 * term/i386/pc/vga_text.c (grub_console_cls): Use
36147 grub_console_gotoxy() to go back to beginning of the screen.
36148 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36149
36150 2008-07-29 Christian Franke <franke@computer.org>
36151
36152 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36153 Add conversion of emulated mount points on Cygwin.
36154
36155 2008-07-29 Christian Franke <franke@computer.org>
36156
36157 * util/update-grub.in: Add a check for admin
36158 group on Cygwin.
36159 Remove old `grub.cfg.new' before creation.
36160 Add `-f' to `mv' to handle the different filesystem
36161 semantics of Windows.
36162
36163 2008-07-29 Bean <bean123ch@gmail.com>
36164
36165 * normal/main.c (get_line): Fix buffer overflow bug.
36166
36167 2008-07-28 Robert Millan <rmh@aybabtu.com>
36168
36169 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36170 (struct grub_apple_header): New struct. Describes the layout of
36171 the partmap header.
36172 (apple_partition_map_iterate): Check the header magic as well as the
36173 partition magic (which was already being checked).
36174
36175 2008-07-28 Pavel Roskin <proski@gnu.org>
36176
36177 * genmk.rb: Add a warning to the beginning of the output that
36178 it's a generated file and should not be edited.
36179
36180 2008-07-28 Robert Millan <rmh@aybabtu.com>
36181
36182 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36183 with the same number are found, just use issue a warning with
36184 grub_dprintf(), as this error has been reported to be non-fatal.
36185
36186 2008-07-27 Robert Millan <rmh@aybabtu.com>
36187
36188 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36189 information.
36190
36191 2008-07-27 Bean <bean123ch@gmail.com>
36192
36193 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36194 (grub_fat_find_dir): Ignore case when comparing filename.
36195
36196 2008-07-27 Bean <bean123ch@gmail.com>
36197
36198 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36199 smallino, as it's more descriptive, and i8count can be confused with
36200 the other field count.
36201 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36202 inode type.
36203
36204 2008-07-27 Bean <bean123ch@gmail.com>
36205
36206 * commands/crc.c: New file.
36207
36208 * lib/crc.c: Likewise.
36209
36210 * include/grub/lib/crc.h: Likewise.
36211
36212 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36213
36214 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36215 (hexdump): Move this function to ...
36216
36217 * lib/hexdump.c: ... here.
36218
36219 * include/grub/hexdump.h: Renamed to ...
36220
36221 * include/grub/lib/hexdump.h: ... this.
36222
36223 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36224
36225 * util/grub-editenv.c: Likewise.
36226
36227 * include/envblk.h: Renamed to ...
36228
36229 * include/lib/envblk.h: ... this.
36230
36231 * util/envblk.c: Renamed to ...
36232
36233 * lib/envblk.c: ... this.
36234
36235 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36236 lib/hexdump.c.
36237 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36238 (pkglib_MODULES): Add crc.mod.
36239 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36240 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36241 (crc_mod_SOURCES): New macro.
36242 (crc_mod_CFLAGS): Likewise.
36243 (crc_mod_LDFLAGS): Likewise.
36244
36245 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36246
36247 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36248
36249 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36250
36251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36252
36253 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36254
36255 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36256
36257 * commands/help.c: Include <grub/term.h>.
36258 (TERM_WIDTH): Removed. Updated all users.
36259
36260 2008-07-27 Pavel Roskin <proski@gnu.org>
36261
36262 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36263 spurious warnings about a comment within a comment.
36264
36265 2008-07-25 Robert Millan <rmh@aybabtu.com>
36266
36267 * util/getroot.c (find_root_device): Skip devices that match
36268 /dev/dm-[0-9]. This lets the real device be found for any type of
36269 abstraction (LVM, EVMS, RAID..).
36270 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36271 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36272 device is found first, find_root_device() will now skip it.
36273
36274 2008-07-24 Pavel Roskin <proski@gnu.org>
36275
36276 * include/grub/types.h: Use __builtin_bswap32() and
36277 __builtin_bswap64() with gcc 4.3 and newer.
36278
36279 2008-07-24 Christian Franke <franke@computer.org>
36280
36281 * util/i386/pc/grub-install.in: If `--debug' is specified,
36282 pass `--verbose' to grub-setup.
36283 Abort script if make_system_path_relative_to_its_root() fails.
36284
36285 2008-07-24 Bean <bean123ch@gmail.com>
36286
36287 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36288 variable `target_platform' should be `platform'.
36289
36290 2008-07-24 Bean <bean123ch@gmail.com>
36291
36292 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36293 (grub_png_init_fixed_block): New function.
36294 (grub_png_decode_image_data): Handle fixed huffman code compression.
36295
36296 2008-07-24 Bean <bean123ch@gmail.com>
36297
36298 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36299 (grub_pe2elf_SOURCES): New macro.
36300 (CLEANFILES): Add grub-pe2elf.
36301
36302 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36303 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36304 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36305 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36306 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36307 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36308 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36309 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36310 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36311 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36312 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36313 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36314 (GRUB_PE32_DT_FUNCTION): Likewise.
36315 (GRUB_PE32_REL_I386_DIR32): Likewise.
36316 (GRUB_PE32_REL_I386_REL32): Likewise.
36317 (grub_pe32_symbol): New structure.
36318 (grub_pe32_reloc): Likewise.
36319
36320 * util/grub-pe2elf.c: New file.
36321
36322 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36323 start symbol in non pc platform.
36324
36325 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36326
36327 The following patches are from Christian Franke.
36328
36329 * include/grub/dl.h: Remove .previous, gas supports this only
36330 for ELF format.
36331
36332 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36333 Remove .type, gas supports this only for ELF format.
36334
36335 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36336 nullbytes in symbol table. This fixes an infinite loop if table is
36337 zero filled.
36338
36339 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36340 TARGET_IMG_LDFLAGS and EXEEXT.
36341
36342 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36343 TARGET_IMG_LDFLAGS_AC.
36344 (grub_CHECK_STACK_ARG_PROBE): New function.
36345
36346 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36347
36348 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36349
36350 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36351 to set TARGET_IMG_LD* accordingly.
36352 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36353 Add call to grub_CHECK_STACK_ARG_PROBE.
36354 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36355
36356 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36357
36358 * genmk.rb: Add EXEEXT to CLEANFILES.
36359
36360 2008-07-23 Robert Millan <rmh@aybabtu.com>
36361
36362 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36363 define the codes for arrows and lines used for the menu).
36364 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36365 as well.
36366
36367 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36368 fonts, because the latter are too slow.
36369
36370 2008-07-21 Bean <bean123ch@gmail.com>
36371
36372 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36373 a20. Run keyboard test last, as it will cause macbook to halt.
36374
36375 2008-07-18 Pavel Roskin <proski@gnu.org>
36376
36377 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36378 load foreign architecture modules correctly anyway. Keep
36379 support for loading host architecture modules, whether we
36380 compile them or not.
36381
36382 2008-07-17 Pavel Roskin <proski@gnu.org>
36383
36384 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36385 change target_cpu. The compiler default can mismatch target_cpu
36386 in any case.
36387
36388 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36389 * kern/efi/efi.c: Likewise.
36390
36391 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36392 target compiler is functional.
36393 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36394 are set up.
36395
36396 * configure.ac: Default to efi platform for x86_64-apple. Allow
36397 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36398 adjustments from the rest, only do them if target is not
36399 explicitly given. Merge other adjustments with the final sanity
36400 check. Remove an extraneous check for supported CPU. Be
36401 specific which CPU and which platform is not supported.
36402
36403 * configure.ac: Default to pc platform for x86_64.
36404
36405 2008-07-17 Robert Millan <rmh@aybabtu.com>
36406
36407 Partial LinuxBIOS -> Coreboot rename.
36408
36409 * conf/i386-linuxbios.rmk: Renamed to ...
36410 * conf/i386-coreboot.rmk: ... this.
36411 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36412 * configure.ac: Accept "coreboot" as input platform (but maintain
36413 compatibility with "linuxbios").
36414 * include/grub/i386/linuxbios: Renamed to ...
36415 * include/grub/i386/coreboot: ... this.
36416
36417 2008-07-17 Bean <bean123ch@gmail.com>
36418
36419 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36420 (appleldr_mod_SOURCE): New variable.
36421 (appleldr_mod_CFLAGS): Likewise.
36422 (appleldr_mod_LDFLAGS): Likewise.
36423 (pci_mod_SOURCES): Likewise.
36424 (pci_mod_CFLAGS): Likewise.
36425 (pci_mod_LDFLAGS): Likewise.
36426 (lspci_mod_SOURCES): Likewise.
36427 (lspci_mod_CFLAGS): Likewise.
36428 (lspci_mod_LDFLAGS): Likewise.
36429
36430 * conf/x86_64-efi.rmk: New file.
36431
36432 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36433 macro.
36434 (grub_efidisk_write): Likewise.
36435
36436 * include/efi/api.h (efi_call_0): New macro.
36437 (efi_call_1): Likewise.
36438 (efi_call_2): Likewise.
36439 (efi_call_3): Likewise.
36440 (efi_call_4): Likewise.
36441 (efi_call_5): Likewise.
36442 (efi_call_6): Likewise.
36443
36444 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36445 grub_rescue_cmd_chainloader.
36446
36447 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36448 (grub_pe32_optional_header): Change some fields based on i386 or
36449 x86_64 platform.
36450 (GRUB_PE32_PE32_MAGIC): Likewise.
36451
36452 * include/grub/efi/uga_draw.h: New file.
36453
36454 * include/grub/elf.h (STN_ABS): New constant.
36455 (R_X86_64_NONE): Relocation constant for x86_64.
36456 (R_X86_64_64): Likewise.
36457 (R_X86_64_PC32): Likewise.
36458 (R_X86_64_GOT32): Likewise.
36459 (R_X86_64_PLT32): Likewise.
36460 (R_X86_64_COPY): Likewise.
36461 (R_X86_64_GLOB_DAT): Likewise.
36462 (R_X86_64_JUMP_SLOT): Likewise.
36463 (R_X86_64_RELATIVE): Likewise.
36464 (R_X86_64_GOTPCREL): Likewise.
36465 (R_X86_64_32): Likewise.
36466 (R_X86_64_32S): Likewise.
36467 (R_X86_64_16): Likewise.
36468 (R_X86_64_PC16): Likewise.
36469 (R_X86_64_8): Likewise.
36470 (R_X86_64_PC8): Likewise.
36471
36472 * include/grub/i386/efi/pci.h: New file.
36473
36474 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36475 Change it value based on platform.
36476 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36477 (GRUB_E820_RAM): Likewise.
36478 (GRUB_E820_RESERVED): Likewise.
36479 (GRUB_E820_ACPI): Likewise.
36480 (GRUB_E820_NVS): Likewise.
36481 (GRUB_E820_EXEC_CODE): Likewise.
36482 (GRUB_E820_MAX_ENTRY): Likewise.
36483 (grub_e820_mmap): New structure.
36484 (linux_kernel_header): Change the efi field according to different
36485 kernel version, also field from linux_kernel_header.
36486
36487 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36488
36489 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36490 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36491 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36492 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36493 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36494 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36495 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36496 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36497 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36498 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36499
36500 * include/grub/x86_64/efi/kernel.h: New file.
36501
36502 * include/grub/x86_64/efi/loader.h: Likewise.
36503
36504 * include/grub/x86_64/efi/machine.h: Likewise.
36505
36506 * include/grub/x86_64/efi/pci.h: Likewise.
36507
36508 * include/grub/x86_64/efi/time.h: Likewise.
36509
36510 * include/grub/x86_64/linux.h: Likewise.
36511
36512 * include/grub/x86_64/setjmp.h: Likewise.
36513
36514 * include/grub/x86_64/time.h: Likewise.
36515
36516 * include/grub/x86_64/types.h: Likewise.
36517
36518 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36519 GRUB_TARGET_SIZEOF_VOID_P.
36520
36521 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36522 (grub_efi_locate_handle): Likewise.
36523 (grub_efi_open_protocol): Likewise.
36524 (grub_efi_set_text_mode): Likewise.
36525 (grub_efi_stall): Likewise.
36526 (grub_exit): Likewise.
36527 (grub_reboot): Likewise.
36528 (grub_halt): Likewise.
36529 (grub_efi_exit_boot_services): Likewise.
36530 (grub_get_rtc): Likewise.
36531
36532 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36533 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36534 (grub_efi_allocate_pages): Wrap efi calls.
36535 (grub_efi_free_pages): Wrap efi calls.
36536 (grub_efi_get_memory_map): Wrap efi calls.
36537
36538 * kern/x86_64/dl.c: New file.
36539
36540 * kern/x86_64/efi/callwrap.S: Likewise.
36541
36542 * kern/x86_64/efi/startup.S: Likewise.
36543
36544 * loader/efi/appleloader.c: Likewise.
36545
36546 * loader/efi/chainloader.c (cmdline): New variable.
36547 (grub_chainloader_unload): Wrap efi calls.
36548 (grub_chainloader_boot): Likewise.
36549 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36550 command line.
36551
36552 * loader/efi/chainloader_normal.c (chainloader_command):
36553 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36554 command line.
36555
36556 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36557 method.
36558 (grub_e820_add_region): New function.
36559 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36560 booting.
36561 (grub_find_video_card): New function.
36562 (grub_linux_setup_video): New function.
36563 (grub_rescue_cmd_linux): Probe for video information.
36564
36565 * normal/x86_64/setjmp.S: New file.
36566
36567 * term/efi/console.c (map_char): New function.
36568 (grub_console_putchar): Map unicode char.
36569 (grub_console_checkkey): Wrap efi calls.
36570 (grub_console_getkey): Likewise.
36571 (grub_console_getwh): Likewise.
36572 (grub_console_gotoxy): Likewise.
36573 (grub_console_cls): Likewise.
36574 (grub_console_setcolorstate): Likewise.
36575 (grub_console_setcursor): Likewise.
36576
36577 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36578
36579 2008-07-16 Pavel Roskin <proski@gnu.org>
36580
36581 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36582 format strings.
36583
36584 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36585 pointer, not an integer. This fixes a warning and prevents
36586 precision loss on 64-bit systems.
36587 (relocate_addresses): Remove unneeded cast.
36588
36589 2008-07-15 Pavel Roskin <proski@gnu.org>
36590
36591 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36592
36593 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36594
36595 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36596 Fix comparison between signed and unsigned.
36597
36598 * include/grub/i386/ieee1275/console.h: Declare
36599 grub_console_init() and grub_console_fini().
36600
36601 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36602 It's empty and unused.
36603
36604 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36605 beginning to avoid warnings with some compilers.
36606
36607 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36608 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36609
36610 2008-07-14 Pavel Roskin <proski@gnu.org>
36611
36612 * kern/env.c (grub_register_variable_hook): Don't copy empty
36613 string, it leaks memory. Pass "" to grub_env_set(), it should
36614 handle constant strings.
36615
36616 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36617 * commands/cmp.c (grub_cmd_cmp): Likewise.
36618 * kern/dl.c (grub_dl_flush_cache): Likewise.
36619 (grub_dl_load_core): Likewise.
36620 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36621 (grub_elf64_load_phdrs): Likewise.
36622
36623 2008-07-13 Pavel Roskin <proski@gnu.org>
36624
36625 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36626 between signed and unsigned.
36627 (LzmaEnc_Finish): Fix warning about an unused parameter.
36628
36629 2008-07-13 Bean <bean123ch@gmail.com>
36630
36631 * Makefile.in (enable_lzo): New rule.
36632
36633 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36634
36635 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36636
36637 * boot/i386/pc/lnxboot.S: #include <config.h>.
36638
36639 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36640 its value according to the compression algorithm used, lzo or lzma.
36641
36642 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36643 compression algorithm according to configure macro.
36644
36645 * kern/i386/pc/startup.S (codestart): Likewise.
36646
36647 * kern/i386/pc/lzma_decode.S: New file.
36648
36649 * include/grub/lib/LzFind.h: Likewise.
36650
36651 * include/grub/lib/LzHash.h: Likewise.
36652
36653 * include/grub/lib/LzmaDec.h: Likewise.
36654
36655 * include/grub/lib/LzmaEnc.h: Likewise.
36656
36657 * include/grub/lib/LzmaTypes.h: Likewise.
36658
36659 * lib/LzFind.c: Likewise.
36660
36661 * lib/LzmaDec.c: Likewise.
36662
36663 * lib/LzmaEnc.c: Likewise.
36664
36665 2008-07-13 Bean <bean123ch@gmail.com>
36666
36667 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36668 (grub_ext4_extent_header): New structure.
36669 (grub_ext4_extent): Likewise.
36670 (grub_ext4_extent_idx): Likewise.
36671 (grub_ext4_find_leaf): New function.
36672 (grub_ext2_read_block): Handle extents.
36673
36674 2008-07-12 Robert Millan <rmh@aybabtu.com>
36675
36676 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36677
36678 2008-07-11 Robert Millan <rmh@aybabtu.com>
36679
36680 * util/grub.d/40_custom.in: New file. Example on how to add custom
36681 entries to /etc/grub.d.
36682 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36683 40_custom (implicitly, by merging all the grub.d rules).
36684
36685 2008-07-11 Pavel Roskin <proski@gnu.org>
36686
36687 * commands/read.c (grub_getline): Fix invalid memory access.
36688 Don't add newline to the variable value.
36689
36690 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36691 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36692 (serial_hw_get_port): Check validity of the port number.
36693 (grub_cmd_serial): Check return value of serial_hw_get_port().
36694
36695 2008-07-07 Pavel Roskin <proski@gnu.org>
36696
36697 * boot/i386/pc/diskboot.S (notification_string): Replace
36698 "Loading kernel" with just "loading". This is shorter, less
36699 confusing and saves a few bytes for possible future changes.
36700
36701 2008-07-05 Pavel Roskin <proski@gnu.org>
36702
36703 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36704 size for ATAPI devices, they are undefined. Output sector
36705 number in decimal form.
36706
36707 * disk/ata.c: Use named constants for status bits.
36708
36709 2008-07-04 Pavel Roskin <proski@gnu.org>
36710
36711 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36712 grub_addr_t before casting it to the void pointer to fix a
36713 warning. Non-addressable regions are discarded earlier.
36714 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36715 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36716 (check_signature): Don't shadow table_header.
36717 (grub_linuxbios_table_iterate): Cast numeric constants to
36718 grub_linuxbios_table_header_t.
36719 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36720 grub_stop().
36721
36722 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36723 prevent warnings.
36724
36725 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36726 pointer, which can cause warnings. Support 64-bit addresses.
36727
36728 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36729 of sizeof(long). This fixes PowerPC image generation on x86_64.
36730
36731 2008-07-04 Robert Millan <rmh@aybabtu.com>
36732
36733 This fixes a performance issue when pc & gpt partmap iterators
36734 didn't abort iteration even after our hook found what it was
36735 looking for (often causing expensive probes of non-existent drives).
36736
36737 Some callers relied on previous buggy behaviour, since they would
36738 raise an error when their own hooks caused early abortion of its
36739 iteration.
36740
36741 * kern/device.c (grub_device_open): Improve error message.
36742 * disk/lvm.c (grub_lvm_open): Likewise.
36743 * disk/raid.c (grub_raid_open): Likewise.
36744
36745 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36746 when hook requests it, independently of grub_errno.
36747 (pc_partition_map_probe): Do not fail when find_func() caused
36748 early abortion of pc_partition_map_iterate().
36749
36750 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36751 when hook requests it, independently of grub_errno.
36752 (gpt_partition_map_probe): Do not fail when find_func() caused
36753 early abortion of gpt_partition_map_iterate().
36754
36755 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36756 when hook requests it, independently of grub_errno. Do not fail when
36757 part_map_iterate_hook() caused early abortion of p->iterate().
36758
36759 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36760 when grub_partition_iterate() returned with non-zero.
36761
36762 2008-07-03 Pavel Roskin <proski@gnu.org>
36763
36764 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36765 like we do in grub_ata_pio_read().
36766 (grub_ata_readwrite): Always write individual sectors. Fix the
36767 sector count for the remainder.
36768 (grub_ata_write): Enable writing to ATA devices. Correctly
36769 report error for ATAPI devices.
36770
36771 2008-07-02 Pavel Roskin <proski@gnu.org>
36772
36773 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36774 warning.
36775
36776 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36777 for every read sector, we already increment it for the whole
36778 batch. This fixes reading more than 256 sectors at once.
36779
36780 * util/grub-editenv.c (cmd_info): Cast argument to long
36781 explicitly. ptrdiff_t reduces to int on i386.
36782
36783 * util/grub-editenv.c (main): Be specific which parameter is
36784 missing.
36785
36786 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36787 (memdisk): Make memdisk_orig_addr a pointer.
36788
36789 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36790 for file offsets, use grub_off_t instead. Fix printf format
36791 warnings.
36792
36793 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36794 there. Real unexpected warnings should not drown in the noise
36795 about known problems.
36796
36797 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36798 grub_disk_addr_t for memory addresses.
36799
36800 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36801 explicitly to fix a warning.
36802
36803 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36804
36805 * Makefile.in (MODULE_LDFLAGS): New variable.
36806 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36807 the linker accepts --build-id=none.
36808 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36809 MODULE_LDFLAGS.
36810 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36811
36812 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36813 those in Linux XFS code. Provide a way to access 64-bit parent
36814 inode.
36815 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36816 the end of struct grub_xfs_dir_header.
36817
36818 2008-07-02 Bean <bean123ch@gmail.com>
36819
36820 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36821 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36822 and GRUB_IEEE1275_FLAG_NO_ANSI.
36823
36824 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36825 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36826 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36827
36828 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36829 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36830
36831 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36832 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36833
36834 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36835 esc sequence on non ANSI terminal.
36836 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36837
36838 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36839 beginning of file.
36840
36841 2008-07-02 Bean <bean123ch@gmail.com>
36842
36843 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36844 (grub_editenv_SOURCES): New variable.
36845 (pkglib_MODULES): Add loadenv.mod.
36846 (loadenv_mod_SOURCES): New variable.
36847 (loadenv_mod_CFLAGS): Likewise.
36848 (loadenv_mod_LDFLAGS): Likewise.
36849
36850 * include/grub/envblk.h: New file.
36851
36852 * util/envblk.c: New file.
36853
36854 * util/grub-editenv.c: New file.
36855
36856 * commands/loadenv.c: New file.
36857
36858 2008-07-01 Pavel Roskin <proski@gnu.org>
36859
36860 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36861 not unsigned char. This fixes warnings and is consistent with
36862 other tags.
36863
36864 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36865
36866 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36867
36868 * term/tparm.c (analyze): Always set *popcount.
36869
36870 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36871 cast to fix a warning.
36872
36873 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36874 cast to suppress a warning.
36875
36876 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36877 grub_fshelp_read_file() expects.
36878
36879 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36880 write uuid as a 32-bit value in CPU byte order, so declare and
36881 use it as such.
36882
36883 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36884 long if the format specifier expects it.
36885 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36886 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36887 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36888 long to fix a warning.
36889 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36890 grub_dprintf() arguments to fix warnings.
36891
36892 2008-06-30 Pavel Roskin <proski@gnu.org>
36893
36894 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36895 install_bsd_part immediately before core.img is embedded or
36896 modified on disk. This fixes core.img verification if core.img
36897 cannot be embedded.
36898
36899 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36900 core_path to calculate the blocklist.
36901 Patch from Javier Martín <lordhabbit@gmail.com>
36902
36903 2008-06-29 Robert Millan <rmh@aybabtu.com>
36904
36905 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36906 block to disk block.
36907 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36908 Patch from Niels Böhm <bitbucket@arcor.de>
36909
36910 2008-06-29 Robert Millan <rmh@aybabtu.com>
36911
36912 * util/update-grub_lib.in (font_path): Search for fonts in
36913 /boot/grub first, which is more likely to be readable (we aren't
36914 deciding where fonts live, just looking for them).
36915
36916 2008-06-26 Pavel Roskin <proski@gnu.org>
36917
36918 * util/biosdisk.c (read_device_map): Don't leave dead map
36919 entries for devices failing stat() check.
36920
36921 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36922 core_path_dev for the core.img path on the target device.
36923
36924 2008-06-26 Robert Millan <rmh@aybabtu.com>
36925
36926 * disk/fs_uuid.c: New file.
36927 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36928 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36929 (fs_uuid_mod_LDFLAGS): New variables.
36930 * include/grub/disk.h (grub_disk_dev_id): Add
36931 `GRUB_DISK_DEVICE_UUID_ID'.
36932 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36933 implement iterate().
36934
36935 2008-06-26 Robert Millan <rmh@aybabtu.com>
36936
36937 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36938 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36939 Linux image includes no initrd.
36940
36941 2008-06-21 Javier Martín <lordhabbit@gmail.com>
36942
36943 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36944 call to resolve the core image location that effectively appended the
36945 name twice.
36946
36947 2008-06-21 Robert Millan <rmh@aybabtu.com>
36948
36949 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36950 call from here ...
36951
36952 * util/grub.d/10_hurd.in: ... to here ...
36953 * util/grub.d/10_linux.in: ... and here.
36954
36955 2008-06-19 Robert Millan <rmh@aybabtu.com>
36956
36957 * kern/main.c (grub_main): Export `prefix' variable immediately
36958 after it has been set by grub_machine_set_prefix().
36959
36960 2008-06-19 Robert Millan <rmh@aybabtu.com>
36961
36962 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36963 search result when not saving to variable, not the other way around.
36964 When saving to variable, abort iteration as soon as a match is found.
36965
36966 2008-06-19 Robert Millan <rmh@aybabtu.com>
36967
36968 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36969 check for partition that provides /boot/grub. Its logic is flawed,
36970 as it prevents prepare_grub_to_access_device() from being called
36971 multiple times.
36972
36973 2008-06-19 Robert Millan <rmh@aybabtu.com>
36974
36975 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36976 "insmod" command directly when abstraction modules are needed,
36977 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
36978 since it had already been processed).
36979
36980 2008-06-19 Pavel Roskin <proski@gnu.org>
36981
36982 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36983 changed. This is needed in case GRUB_LIBDIR changes.
36984 * conf/i386-ieee1275.rmk: Likewise.
36985 * conf/i386-linuxbios.rmk: Likewise.
36986 * conf/i386-pc.rmk: Likewise.
36987 * conf/powerpc-ieee1275.rmk: Likewise.
36988
36989 2008-06-18 Pavel Roskin <proski@gnu.org>
36990
36991 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36992 kernel_elf_symlist.c to symlist.c for consistency with other
36993 architectures. Update all users.
36994 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36995
36996 2008-06-18 Robert Millan <rmh@aybabtu.com>
36997
36998 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36999 it in prefix.
37000
37001 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37002 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37003 a RAID device, run setup() for all members independently on whether
37004 LVM abstraction is being used.
37005 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37006 If grub-mkimage has set `*install_dos_part == -2', don't override this
37007 value.
37008 Perform *install_dos_part adjustments independently on whether
37009 we're embedding or not.
37010 Clarify error message when image is too big for embedding.
37011 Remove duplicate *install_dos_part stanza.
37012
37013 2008-06-17 Robert Millan <rmh@aybabtu.com>
37014
37015 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37016 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37017 variables.
37018 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37019 values in grub_ofconsole_normal_color and
37020 grub_ofconsole_highlight_color (they're not directly related to
37021 background and foreground).
37022 (grub_ofconsole_setcolorstate): Extract background and foreground
37023 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37024
37025 2008-06-17 Robert Millan <rmh@aybabtu.com>
37026
37027 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37028 /boot/grub for the check in last commit, not /boot (they could be
37029 different partitions).
37030
37031 2008-06-16 Robert Millan <rmh@aybabtu.com>
37032
37033 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37034 asked to setup access for the same partition that provides /boot,
37035 don't bother using UUIDs since our root already has the value we
37036 want.
37037
37038 2008-06-16 Robert Millan <rmh@aybabtu.com>
37039
37040 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37041 I2O devices.
37042 Patch from Sven Mueller <sven@debian.org>.
37043
37044 2008-06-16 Robert Millan <rmh@aybabtu.com>
37045
37046 * util/update-grub.in: Check for $EUID instead of $UID.
37047 Reported by Vincent Zweije.
37048
37049 2008-06-16 Bean <bean123ch@gmail.com>
37050
37051 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37052 (grub_ext2_read_block): Likewise.
37053 (grub_ext2_read_inode): Likewise.
37054 (grub_ext2_mount): Likewise.
37055 (grub_ext2_close): Likewise.
37056 (grub_ext3_get_journal): Removed.
37057
37058 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37059 (grub_reiserfs_read_symlink): Likewise.
37060 (grub_reiserfs_mount): Likewise.
37061 (grub_reiserfs_open): Likewise.
37062 (grub_reiserfs_read): Likewise.
37063 (grub_reiserfs_close): Likewise.
37064 (grub_reiserfs_get_journal): Removed.
37065
37066 * fs/fshelp.c (grub_fshelp_read): Removed.
37067 (grub_fshelp_map_block): Likewise.
37068
37069 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37070 (grub_fshelp_journal): Likewise.
37071 (grub_fshelp_read): Likewise.
37072 (grub_fshelp_map_block): Likewise.
37073
37074 2008-06-16 Pavel Roskin <proski@gnu.org>
37075
37076 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37077 floating point anymore.
37078 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37079
37080 2008-06-15 Pavel Roskin <proski@gnu.org>
37081
37082 * commands/ls.c (grub_ls_list_files): Use integer calculations
37083 for human readable format, avoid floating point use.
37084 * kern/misc.c (grub_ftoa): Remove.
37085 (grub_vsprintf): Remove floating point support.
37086
37087 2008-06-15 Robert Millan <rmh@aybabtu.com>
37088
37089 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37090 devices.
37091 Reported by Max Vozeler.
37092
37093 2008-06-15 Robert Millan <rmh@aybabtu.com>
37094
37095 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37096 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37097 skipped later.
37098 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37099 the beginning of the prefix.
37100
37101 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37102 It is assumed that if we have a memdisk, grub-mkimage has set
37103 grub_prefix to include the "(memdisk)" drive in it.
37104
37105 2008-06-15 Robert Millan <rmh@aybabtu.com>
37106
37107 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37108 Initialize keyboard controller after registering the terminal, so that
37109 grub_printf() can be called from grub_keyboard_controller_init().
37110
37111 2008-06-15 Robert Millan <rmh@aybabtu.com>
37112
37113 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37114 extent-btree which is written as big endian on disk.
37115 Reported by Alain Greppin <al@chilibi.org>.
37116
37117 2008-06-14 Robert Millan <rmh@aybabtu.com>
37118
37119 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37120 * util/i386/pc/grub-install.in (modules): Likewise.
37121
37122 2008-06-13 Pavel Roskin <proski@gnu.org>
37123
37124 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37125
37126 2008-06-13 Bean <bean123ch@gmail.com>
37127
37128 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37129
37130 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37131
37132 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37133 to indicate sparse block.
37134
37135 2008-06-12 Pavel Roskin <proski@gnu.org>
37136
37137 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37138 number, grub_fshelp_read() does it for us.
37139
37140 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37141 linear disk read with journal translation.
37142 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37143 * include/grub/fshelp.h: Declare grub_fshelp_read().
37144
37145 2008-06-09 Pavel Roskin <proski@gnu.org>
37146
37147 * fs/minix.c (grub_minix_mount): Handle error reading
37148 superblock.
37149
37150 2008-06-08 Robert Millan <rmh@aybabtu.com>
37151
37152 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37153 don't append the RAID prefix afterwards.
37154 Reported by Clint Adams.
37155
37156 2008-06-08 Robert Millan <rmh@aybabtu.com>
37157
37158 Based on description from Pavel:
37159 * kern/disk.c (grub_disk_check_range): Rename to ...
37160 (grub_disk_adjust_range): ... this. Add a comment explaining the
37161 tasks performed by this function.
37162
37163 2008-06-08 Robert Millan <rmh@aybabtu.com>
37164
37165 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37166 `num_serial' (for consistency with other variables).
37167 (struct grub_ntfs_data): Add `uuid' member.
37168 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37169 (grub_ntfs_uuid): New function.
37170 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37171
37172 2008-06-07 Pavel Roskin <proski@gnu.org>
37173
37174 * util/biosdisk.c (open_device): Revert last change to the
37175 function, it broke installation. The sector needs to be
37176 different dependent on which device is opened.
37177
37178 2008-06-06 Robert Millan <rmh@aybabtu.com>
37179
37180 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37181 rest of GRUB, and breakage doesn't happen if its value were modified.
37182
37183 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37184 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37185 a constant (same value).
37186 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37187 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37188
37189 2008-06-06 Robert Millan <rmh@aybabtu.com>
37190
37191 * util/biosdisk.c (open_device): Do not modify sector offset when
37192 accessing a partition. kern/disk.c already handles this for us.
37193
37194 2008-06-06 Robert Millan <rmh@aybabtu.com>
37195
37196 * util/grub-emu.c (grub_machine_init): Move code in this function from
37197 here ...
37198 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37199 segfault in case grub_printf() is called).
37200
37201 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37202 grub_probe. Update all users not to explicitly add it again.
37203 (grub_device): New variable; contains corresponding device for grubdir.
37204 (fs_module, partmap_module, devabstraction_module): Pass
37205 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37206 every time.
37207
37208 2008-06-05 Robert Millan <rmh@aybabtu.com>
37209
37210 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37211 is found, print it (same layout as with labels).
37212
37213 2008-06-04 Robert Millan <rmh@aybabtu.com>
37214
37215 * util/biosdisk.c (get_drive): Rename to ...
37216 (find_grub_drive): ... this. Update all users.
37217
37218 (get_os_disk): Rename to ...
37219 (convert_system_partition_to_system_disk): ... this. Update all users.
37220
37221 (find_drive): Rename to ...
37222 (find_system_device): ... this. Update all users.
37223
37224 2008-06-04 Robert Millan <rmh@aybabtu.com>
37225
37226 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37227 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37228 (make_device_map): Likewise.
37229
37230 2008-06-01 Robert Millan <rmh@aybabtu.com>
37231
37232 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37233 before dereferencing it.
37234
37235 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37236 union with fat12/fat16-specific ones. Add some new fields, including
37237 `num_serial' for both versions.
37238 (struct grub_fat_data): Add `uuid' member.
37239 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37240 names. Initialize `data->uuid' using `num_serial'.
37241 (grub_fat_uuid): New function.
37242 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37243
37244 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37245 (grub_reiserfs_uuid): New function.
37246 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37247 member.
37248
37249 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37250 (grub_xfs_uuid): New function.
37251 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37252
37253 2008-06-01 Robert Millan <rmh@aybabtu.com>
37254
37255 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37256 code that is backward compatible with pre-uuid search command.
37257
37258 2008-05-31 Robert Millan <rmh@aybabtu.com>
37259
37260 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37261 floppies after everything else, to ensure floppy drive isn't accessed
37262 unnecessarily (patch from Bean).
37263
37264 2008-05-31 Robert Millan <rmh@aybabtu.com>
37265
37266 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37267 not print device names when we were asked to set a variable.
37268
37269 2008-05-31 Robert Millan <rmh@aybabtu.com>
37270
37271 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37272 using "cursor-on" and "cursor-off" commands (understood at least by
37273 the Open Firmware flavour on OLPC).
37274
37275 2008-05-31 Michael Gorven <michael@gorven.za.net>
37276
37277 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37278 on and off sequences.
37279
37280 2008-05-31 Robert Millan <rmh@aybabtu.com>
37281
37282 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37283 * util/update-grub.in: Likewise.
37284
37285 2008-05-30 Pavel Roskin <proski@gnu.org>
37286
37287 * util/biosdisk.c (linux_find_partition): Simplify logic and
37288 make the code more universal. Keep special processing for
37289 devfs, but use a simple rule for all other devices. If the
37290 device ends with a number, append 'p' and the partition number.
37291 Otherwise, append only the partition number.
37292
37293 2008-05-30 Robert Millan <rmh@aybabtu.com>
37294
37295 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37296 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37297 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37298 the `root' parameter to Linux.
37299
37300 2008-05-30 Robert Millan <rmh@aybabtu.com>
37301
37302 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37303 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37304 --fs_uuid with --fs-uuid.
37305 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37306 all filesystems support them).
37307
37308 2008-05-30 Robert Millan <rmh@aybabtu.com>
37309
37310 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37311 grub_printf() flags, since we're printing in units of 2 bytes.
37312
37313 2008-05-30 Robert Millan <rmh@aybabtu.com>
37314
37315 * util/grub.d/00_header.in: Remove obsolete comment referencing
37316 convert_system_path_to_grub_path().
37317 * util/update-grub.in: Likewise.
37318 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37319 (convert_system_path_to_grub_path): Add a warning message explaining
37320 that this function is deprecated. Rely on is_path_readable_by_grub()
37321 for the readability checks.
37322 (font_path): Use is_path_readable_by_grub() for the readability
37323 check rather than convert_system_path_to_grub_path().
37324
37325 2008-05-30 Robert Millan <rmh@aybabtu.com>
37326
37327 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37328 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37329 converting it first.
37330 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37331 grub.cfg for access to font file, and afterwards call it again to set
37332 the root device.
37333
37334 2008-05-30 Robert Millan <rmh@aybabtu.com>
37335
37336 * commands/search.c (options): Add --fs_uuid option.
37337 (search_fs_uuid): New function.
37338 (grub_cmd_search): Fix --set argument passing.
37339 Use search_fs_uuid() when requested via --fs_uuid.
37340 (grub_search_init): Update help message.
37341 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37342 and redeclare it as an array of 16-bit words.
37343 (grub_ext2_uuid): New function.
37344 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37345 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37346 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37347 (GRUB_DEVICE_BOOT_UUID): New variables.
37348 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37349 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37350 whenever possible.
37351 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37352 just assume `root' variable has the right value.
37353 * util/grub.d/10_linux.in: Likewise.
37354 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37355 via PRINT_FS_UUID.
37356 (main): Recognise `-t fs_uuid' argument.
37357
37358 2008-05-30 Robert Millan <rmh@aybabtu.com>
37359
37360 * util/biosdisk.c (map): Redefine structure to hold information
37361 about GRUB drive name.
37362 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37363 drive names.
37364 (call_hook): Remove.
37365 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37366 member. Assume drive has partitions.
37367 (grub_util_biosdisk_open): Access device names via `.device' struct
37368 member.
37369 (open_device): Likewise.
37370 (find_drive): Likewise.
37371 (read_device_map): Adjust map[] usage to match the new struct
37372 definition. Don't check for duplicates (still possible, but not cheap
37373 anymore).
37374 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37375 (make_device_name): Remove assumption of BIOS-like drive names.
37376
37377 2008-05-30 Pavel Roskin <proski@gnu.org>
37378
37379 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37380 compiling execute.c doesn't need grub_script.tab.h anymore.
37381 (normal/command.c_DEPENDENCIES): Likewise.
37382 (normal/function.c_DEPENDENCIES): Likewise.
37383 * conf/i386-ieee1275.rmk: Likewise.
37384 * conf/i386-linuxbios.rmk: Likewise.
37385 * conf/i386-pc.rmk: Likewise.
37386 * conf/powerpc-ieee1275.rmk: Likewise.
37387 * conf/sparc64-ieee1275.rmk: Likewise.
37388
37389 2008-05-29 Pavel Roskin <proski@gnu.org>
37390
37391 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37392 when scanning metadata for volume group name.
37393
37394 * include/grub/script.h: Don't include grub_script.tab.h. It's
37395 a generated file, which may only be included from the files with
37396 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37397 use union YYSTYPE, as the later allows forward declaration.
37398 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37399
37400 2008-05-29 Robert Millan <rmh@aybabtu.com>
37401
37402 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37403 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37404 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37405 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37406 scan codes.
37407
37408 2008-05-29 Robert Millan <rmh@aybabtu.com>
37409
37410 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37411 control key combinations.
37412
37413 2008-05-29 Robert Millan <rmh@aybabtu.com>
37414
37415 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37416 * util/ieee1275/grub-install.in: ... to here.
37417 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37418 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37419 (grub_install_SOURCES): Likewise.
37420
37421 2008-05-29 Robert Millan <rmh@aybabtu.com>
37422
37423 * fs/affs.c: Update copyright year.
37424 * fs/ext2.c: Likewise.
37425 * fs/fshelp.c: Likewise.
37426 * fs/hfsplus.c: Likewise.
37427 * fs/ntfs.c: Likewise.
37428 * fs/xfs.c: Likewise.
37429 * include/grub/fshelp.h: Likewise.
37430 * util/grub-mkdevicemap.c: Likewise.
37431
37432 2008-05-28 Robert Millan <rmh@aybabtu.com>
37433
37434 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37435 might need to be fatfs to support some firmware implementations
37436 (e.g. OFW or EFI).
37437
37438 2008-05-28 Robert Millan <rmh@aybabtu.com>
37439
37440 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37441 devices.
37442 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37443 (make_device_map): Likewise.
37444
37445 2008-05-20 Bean <bean123ch@gmail.com>
37446
37447 * fs/fshelp.c (grub_fshelp_map_block): New function.
37448 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37449 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37450
37451 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37452 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37453 (grub_fshelp_journal): New structure.
37454 (grub_fshelp_map_block): New function prototype.
37455 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37456 (grub_fshelp_map_block): Likewise.
37457
37458 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37459 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37460 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37461 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37462 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37463 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37464 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37465 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37466 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37467 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37468 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37469 (grub_ext2_sblock): New members for journal support.
37470 (grub_ext3_journal_header): New structure.
37471 (grub_ext3_journal_revoke_header): Likewise.
37472 (grub_ext3_journal_block_tag): Likewise.
37473 (grub_ext3_journal_sblock): Likewise.
37474 (grub_fshelp_node): New members logfile and journal.
37475 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37476 grub_fshelp_map_block to get real block number.
37477 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37478 number.
37479 (grub_ext2_read_inode): Likewise.
37480 (grub_ext3_get_journal): New function.
37481 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37482 (grub_ext2_close): Release memory used by journal.
37483
37484 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37485 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37486 (grub_reiserfs_transaction_header): Renamed to
37487 grub_reiserfs_description_block, replace field data with real_blocks.
37488 (grub_reiserfs_commit_block): New structure.
37489 (grub_reiserfs_data): New member journal.
37490 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37491 number.
37492 (grub_reiserfs_read_symlink): Likewise.
37493 (grub_reiserfs_iterate_dir): Likewise.
37494 (grub_reiserfs_open): Likewise.
37495 (grub_reiserfs_read): Likewise.
37496 (grub_reiserfs_get_journal): New function.
37497 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37498 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37499 using grub_reiserfs_get_journal.
37500 (grub_reiserfs_close): Release memory used by journal.
37501
37502 * fs/affs.c (grub_affs_read_block): Change block type to
37503 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37504
37505 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37506
37507 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37508
37509 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37510
37511 * fs/udf.c (grub_udf_read_block): Change block type to
37512 grub_disk_addr_t. Use type cast to avoid warning.
37513
37514 * fs/xfs.c (grub_xfs_read_block): Likewise.
37515
37516 2008-05-16 Christian Franke <franke@computer.org>
37517
37518 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37519 to ensure that break with ESC will always work.
37520 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37521 Remove ESC from keyboard queue.
37522
37523 2008-05-16 Christian Franke <franke@computer.org>
37524
37525 * util/biosdisk.c: [__CYGWIN__] Add includes.
37526 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37527 (get_os_disk): Move variable declarations to OS specific
37528 parts to avoid warning.
37529 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37530 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37531 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37532 Cygwin.
37533 * util/getroot.c: [__CYGWIN__] Add includes.
37534 (strip_extra_slashes): Fix "/" case.
37535 [__CYGWIN__] (get_win32_path): New function.
37536 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37537 [__CYGWIN__] (find_root_device): Disable.
37538 [__CYGWIN__] (get_bootsec_serial): New function.
37539 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37540 [__linux__] (grub_guess_root_device): Add early returns to simplify
37541 structure.
37542 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37543 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37544 check for Linux only.
37545
37546 2008-05-15 Bean <bean123ch@gmail.com>
37547
37548 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37549 keyboard hang problem in apple's intel mac.
37550
37551 2008-05-09 Robert Millan <rmh@aybabtu.com>
37552
37553 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37554 devices.
37555 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37556 (make_device_map): Likewise.
37557 Reported by Aurelien Jarno <aurel32@debian.org>
37558
37559 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37560
37561 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37562 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37563 (make_device_map): Output entries for xvd type disks.
37564
37565 2008-05-07 Robert Millan <rmh@aybabtu.com>
37566
37567 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37568 devices.
37569 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37570 (make_device_map): Likewise.
37571 Reported by Roland Dreier <rdreier@cisco.com>
37572
37573 2008-05-07 Robert Millan <rmh@aybabtu.com>
37574
37575 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37576 grub_strstr() call. Correct a few mistakes in failure path handling.
37577
37578 2008-05-06 Robert Millan <rmh@aybabtu.com>
37579
37580 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37581 Do not print a trailing slash (therefore, the root directory is an
37582 empty string).
37583 (convert_system_path_to_grub_path): Do not remove trailing slash
37584 from make_system_path_relative_to_its_root() output.
37585
37586 * util/i386/pc/grub-install.in: Add trailing slash to output from
37587 make_system_path_relative_to_its_root().
37588
37589 2008-05-06 Robert Millan <rmh@aybabtu.com>
37590
37591 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37592 ensures that output lines aren't intermangled with those sent to
37593 stderr (via grub_util_info()).
37594 * util/grub-probe.c (grub_refresh): Likewise.
37595 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37596
37597 2008-05-05 Christian Franke <franke@computer.org>
37598
37599 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37600 Add Cygwin device names.
37601 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37602 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37603 (check_device): Return error instead of success on empty name.
37604 (make_device_map): Move label inside linux specific code to
37605 prevent compiler warning.
37606
37607 2008-04-30 Robert Millan <rmh@aybabtu.com>
37608
37609 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37610 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37611 first boot option.
37612 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37613
37614 2008-04-29 Robert Millan <rmh@aybabtu.com>
37615
37616 * docs/grub.cfg: New file (example GRUB configuration).
37617
37618 2008-04-26 Robert Millan <rmh@aybabtu.com>
37619
37620 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37621 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37622 and `disk/ieee1275/nand.c'.
37623
37624 2008-04-25 Bean <bean123ch@gmail.com>
37625
37626 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37627 i386-linuxbios.
37628
37629 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37630 change the buffer size to 4096 for cdrom device.
37631
37632 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37633 and nand.mod.
37634 (_linux_mod_SOURCES): New variable.
37635 (_linux_mod_CFLAGS): Likewise.
37636 (_linux_mod_LDFLAGS): Likewise.
37637 (linux_mod_SOURCES): Likewise.
37638 (linux_mod_CFLAGS): Likewise.
37639 (linux_mod_LDFLAGS): Likewise.
37640 (nand_mod_SOURCES): Likewise.
37641 (nand_mod_CFLAGS): Likewise.
37642 (nand_mod_LDFLAGS): Likewise.
37643
37644 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37645 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37646 type property. (nand device in olpc don't have this property)
37647
37648 * include/grub/disk.h (grub_disk_dev_id): New macro
37649 GRUB_DISK_DEVICE_NAND_ID.
37650
37651 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37652 function prototype.
37653 (grub_rescue_cmd_initrd): Likewise.
37654
37655 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37656 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37657 ofw_cif_handler and ofw_idt, adjust padding number.
37658
37659 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37660 GRUB_MACHINE_IEEE1275 is defined.
37661
37662 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37663 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37664
37665 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37666 on nested function heap_init.
37667 (grub_upper_mem): New variable for i386-ieee1275.
37668 (grub_get_extended_memory): New function for i386-ieee1275.
37669 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37670
37671 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37672 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37673 property.
37674
37675 * loader/i386/ieee1275/linux.c: New file.
37676
37677 * loader/i386/ieee1275/linux_normal.c: New file.
37678
37679 * disk/ieee1275/nand.c: New file.
37680
37681 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37682
37683 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37684 value.
37685 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37686
37687 2008-04-18 Robert Millan <rmh@aybabtu.com>
37688
37689 Restructures early code path on ieee1275 to unify grub_main() as
37690 the first C function that is executed in every platform.
37691
37692 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37693 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37694 cmain().
37695 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37696 * kern/ieee1275/cmain.c (cmain): Rename to ...
37697 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37698 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37699 at the beginning.
37700
37701 2008-04-18 Robert Millan <rmh@aybabtu.com>
37702
37703 * util/update-grub.in: Fix syntax error when setting
37704 `GRUB_PRELOAD_MODULES'.
37705 Reported by Stephane Chazelas <stephane@artesyncp.com>
37706
37707 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37708
37709 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37710 section into account, newer toolchains generate unique build ids
37711 * configure.ac: remove the test for --build-id=none acceptance,
37712 we want build ids to be preserved
37713 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37714 far from other sections don't cause the raw binary images grow
37715 size
37716
37717 2008-04-15 Robert Millan <rmh@aybabtu.com>
37718
37719 * disk/lvm.c: Update copyright year.
37720 * kern/misc.c: Likewise.
37721
37722 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37723
37724 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37725 there is no memory left for physical volume name.
37726
37727 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37728
37729 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37730 volume name mapping to support bigger than 9 character names properly.
37731
37732 2008-04-13 Robert Millan <rmh@aybabtu.com>
37733
37734 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37735 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37736
37737 2008-04-13 Christian Franke <franke@computer.org>
37738
37739 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37740 to create a floppy emulation boot CD when non emulation mode
37741 does not work.
37742 Enable Joliet CD filesystem extension.
37743
37744 2008-04-13 Robert Millan <rmh@aybabtu.com>
37745
37746 * kern/misc.c (grub_strncat): Fix off-by-one error.
37747 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37748
37749 * kern/env.c (grub_env_context_close): Clear current context, not
37750 previous one.
37751 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37752
37753 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37754
37755 2008-04-13 Robert Millan <rmh@aybabtu.com>
37756
37757 Improve robustness when handling LVM.
37758
37759 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
37760 (and leave `*p' unmodified).
37761 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37762 through it.
37763 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37764 iterating through it.
37765 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37766 through it.
37767 (grub_lvm_scan_device): Check the return value (and fail gracefully
37768 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37769 Don't assume `vg->pvs != NULL' when iterating through it.
37770
37771 2008-04-13 Robert Millan <rmh@aybabtu.com>
37772
37773 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37774 * genmk.rb (partmap): New variable.
37775 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37776 (#{partmap}): New target rule.
37777 * genpartmaplist.sh: New file.
37778 * Makefile.in (pkglib_DATA): Add partmap.lst.
37779 (partmap.lst): New target rule.
37780 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37781 modules (including all partition maps), instead of preloading them.
37782
37783 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37784
37785 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37786 `linux-boot-prober' (if installed) to detect other operating
37787 systems which are installed on the computer and add them to
37788 the boot menu.
37789 * conf/common.rmk: Build and install 30_os-prober.
37790
37791 2008-04-12 Robert Millan <rmh@aybabtu.com>
37792
37793 * kern/powerpc/ieee1275/init.c: Move from here ...
37794 * kern/ieee1275/init.c: ... to here. Update all users.
37795
37796 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37797 * kern/ieee1275/cmain.c: ... to here. Update all users.
37798
37799 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37800 * kern/ieee1275/openfw.c: ... to here. Update all users.
37801
37802 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37803 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37804
37805 2008-04-10 Pavel Roskin <proski@gnu.org>
37806
37807 * configure.ac: Always use "_cv_" in cache variables for
37808 compatibility with Autoconf 2.62.
37809
37810 2008-04-07 Robert Millan <rmh@aybabtu.com>
37811
37812 Revert grub/machine/init.h addition by Pavel (since it breaks on
37813 i386-ieee1275 and others):
37814 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37815 * util/powerpc/ieee1275/misc.c: Likewise.
37816
37817 2008-04-07 Robert Millan <rmh@aybabtu.com>
37818
37819 * util/grub-probe.c (probe): Improve error message.
37820
37821 2008-04-07 Robert Millan <rmh@aybabtu.com>
37822
37823 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37824 (this prevents the presence of a bogus entry from ruining the whole
37825 thing).
37826
37827 2008-04-06 Pavel Roskin <proski@gnu.org>
37828
37829 * util/biosdisk.c: Include grub/util/biosdisk.h.
37830 * util/grub-fstest.c (execute_command): Make static.
37831 * util/grub-mkdevicemap.c (check_device): Likewise.
37832 * util/i386/pc/misc.c: Include grub/machine/init.h.
37833 * util/powerpc/ieee1275/misc.c: Likewise.
37834 * util/lvm.c: Include grub/util/lvm.h.
37835 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37836 grub/cache.h.
37837 * util/raid.c: Include grub/util/raid.h.
37838 (grub_util_getdiskname): Make static.
37839
37840 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37841 grub_hostfs_fini(), as they are called from grub_init_all() and
37842 grub_fini_all() respectively. This fixes an infinite loop in
37843 grub-fstest due to double registration of hostfs.
37844 Reported by Christian Franke <Christian.Franke@t-online.de>
37845
37846 2008-04-05 Pavel Roskin <proski@gnu.org>
37847
37848 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37849 all 8 functions. Otherwise, probe function 0 only.
37850
37851 2008-04-04 Pavel Roskin <proski@gnu.org>
37852
37853 * commands/lspci.c (grub_lspci_iter): Print the bus number
37854 correctly.
37855
37856 * commands/lspci.c (grub_pci_classes): Fix typos.
37857 (grub_lspci_iter): Don't print func twice. Print vendor ID
37858 before device ID, as it's normally done.
37859
37860 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37861 Fix signedness warnings.
37862 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37863 Likewise.
37864 * util/ieee1275/get_disk_name.c: Include config.h so that
37865 _GNU_SOURCE is defined and getline() is declared. Mark an
37866 unused argument as such. Fix a signedness warning.
37867
37868 2008-04-02 Pavel Roskin <proski@gnu.org>
37869
37870 * genkernsyms.sh.in: Use more robust assignments for CC and
37871 srcdir. Quote srcdir.
37872 * gensymlist.sh.in: Likewise. Assert at the compile time that
37873 the symbol table is not empty.
37874
37875 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37876 * fs/cpio.c (grub_cpio_read): Likewise.
37877
37878 2008-04-01 Pavel Roskin <proski@gnu.org>
37879
37880 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37881 * disk/host.c (grub_host_open): Likewise.
37882 * disk/loopback.c (grub_loopback_open): Likewise.
37883 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37884 disk->id as in disk/host.c, not a multi-character constant.
37885
37886 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37887 later is obsolete, potentially dangerous and sets a bad example.
37888 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37889 * util/misc.c (grub_util_get_image_size): Likewise.
37890
37891 * disk/loopback.c (options): Improve help for "--partitions".
37892
37893 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37894 options to align them with the short options, e.g. "echo -e".
37895
37896 2008-03-31 Bean <bean123ch@gmail.com>
37897
37898 * video/reader/png.c (grub_png_data): New member is_16bit and
37899 image_data.
37900 (grub_png_decode_image_header): Detect 16 bit png image.
37901 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37902 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37903 (grub_video_reader_png): Release memory occupied by image_data.
37904
37905 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37906 4096 bytes.
37907 (grub_nfs_mount): Skip the test for sector per cluster.
37908
37909 * include/grub/ntfs.h (MAX_SPC): Removed.
37910
37911 2008-03-31 Bean <bean123ch@gmail.com>
37912
37913 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37914 (grub_probe_SOURCES): Add fs/afs.c.
37915 (grub_fstest_SOURCES): Likewise.
37916 (afs_mod_SOURCES): New variable.
37917 (afs_mod_CFLAGS): Likewise.
37918 (afs_mod_LDFLAGS): Likewise.
37919
37920 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37921 (grub_emu_SOURCES): Likewise.
37922
37923 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37924
37925 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37926
37927 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37928
37929 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37930
37931 * fs/afs.c: New file.
37932
37933 2008-03-30 Pavel Roskin <proski@gnu.org>
37934
37935 * disk/host.c: Include grub/misc.h to fix a warning.
37936 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37937 warnings about implicit declarations.
37938
37939 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37940 variable.
37941 * include/grub/i386/loader.h: Change declaration of
37942 grub_linux_boot() to match what grub_loader_set() expects.
37943 * util/getroot.c (grub_guess_root_device): Return const char* to
37944 fix a warning.
37945 * util/grub-probe.c (probe): Fix a warning about uninitialized
37946 abstraction_name variable.
37947 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37948 second argument as unused to fix a warning.
37949
37950 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37951 missing grub_error() call.
37952
37953 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37954 2.60 and newer uses it to define datadir.
37955
37956 * commands/sleep.c: Fix warning about implicit declaration.
37957 * disk/memdisk.c: Likewise.
37958 * loader/aout.c: Likewise.
37959 * loader/i386/bsd_normal.c: Likewise.
37960 * util/grub-probe.c: Likewise.
37961
37962 * commands/i386/cpuid.c (has_longmode): Make static.
37963 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37964 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37965
37966 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37967 GDT. This is more robust, as %ds can change.
37968 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37969 calling real_to_prot().
37970 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37971
37972 2008-03-28 Pavel Roskin <proski@gnu.org>
37973
37974 * kern/i386/pc/startup.S: Assert that uncompressed functions
37975 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37976 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37977 code, as they push parts of the code (error handlers) beyond
37978 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37979 code as correctness and size.
37980
37981 2008-03-28 Pavel Roskin <proski@gnu.org>
37982
37983 * kern/i386/pc/startup.S
37984 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37985 data block address to the real mode, keep offset minimal. This
37986 works around a bug in AWARD BIOS on old Athlon systems, which
37987 makes CD detection hang.
37988
37989 2008-03-26 Pavel Roskin <proski@gnu.org>
37990
37991 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37992 const.
37993 * include/grub/normal.h: Add grub_parse_color_name_pair()
37994 declaration.
37995
37996 2008-03-24 Bean <bean123ch@gmail.com>
37997
37998 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37999 (cd_count): Removed.
38000 (cd_drive): New variable.
38001 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38002 (grub_biosdisk_call_hook): Likewise.
38003 (grub_biosdisk_iterate): Change cdrom detection method.
38004 (grub_biosdisk_open): Replace cd_start with cd_drive.
38005 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38006 detect cdrom device.
38007
38008 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38009 Removed.
38010 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38011 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38012 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38013 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38014 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38015 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38016 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38017 (grub_biosdisk_cdrp): New structure.
38018 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38019
38020 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38021
38022 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38023 device.
38024
38025 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38026 New function.
38027
38028 2008-03-20 Robert Millan <rmh@aybabtu.com>
38029
38030 Remove 2 TiB limit in ata.mod.
38031 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38032 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38033 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38034 grub_uint64_t instead of grub_uint32_t.
38035
38036 2008-03-05 Bean <bean123ch@gmail.com>
38037
38038 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38039 (grub_multiboot): Set boot device.
38040
38041 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38042
38043 2008-03-02 Bean <bean123ch@gmail.com>
38044
38045 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38046 symlink_buffer.
38047
38048 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38049
38050 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38051 texinfo.tex.
38052
38053 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38054 modified.
38055
38056 * docs/fdl.texi: New file.
38057
38058 * docs/mdate-sh: New file. Copied from gnulib.
38059 * docs/texinfo.tex: Likewise.
38060
38061 * config.guess: Updated from gnulib.
38062 * install-sh: Likewise.
38063
38064 2008-02-28 Robert Millan <rmh@aybabtu.com>
38065
38066 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38067 (aout_mod_SOURCES): New variable.
38068 (aout_mod_CFLAGS): Likewise.
38069 (aout_mod_LDFLAGS): Likewise.
38070
38071 * conf/i386-ieee1275.rmk: Likewise.
38072
38073 2008-02-28 Robert Millan <rmh@aybabtu.com>
38074
38075 * util/update-grub.in: Reorganise terminal validity check. Accept
38076 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38077 Based on suggestion by Franklin PIAT.
38078
38079 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38080
38081 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38082 function.
38083 * util/getroot.c (grub_util_check_block_device): New function that
38084 returns the given argument if it is a block device and returns NULL else.
38085 * util/grub-probe.c (argument_is_device): New variable.
38086 (probe): Promote device_name from a variable to an argument. Receive
38087 device_name from grub_util_check_block_device() if path is NULL and from
38088 grub_guess_root_device() else. Do not free() device_name anymore.
38089 (options): Introduce new parameter '-d, --device'.
38090 (main): Add description of the new parameter to the help screen.
38091 Rename path variable to argument. Set argument_is_device if the '-d'
38092 option is given. Pass argument to probe() depending on
38093 argument_is_device.
38094
38095 2008-02-24 Bean <bean123ch@gmail.com>
38096
38097 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38098 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38099 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38100 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38101 (GRUB_ISO9660_VOLDESC_END): Likewise.
38102 (grub_iso9660_primary_voldesc): New member escape.
38103 (grub_iso9660_data): New member joliet.
38104 (grub_iso9660_convert_string): New function.
38105 (grub_iso9660_mount): Detect joliet extension.
38106 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38107 (grub_iso9660_iso9660_label): Likewise.
38108
38109 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38110 (grub_setup_SOURCES): Add fs/udf.c.
38111 (grub_fstest_SOURCES): Likewise.
38112 (udf_mod_SOURCES): New variable.
38113 (udf_mod_CFLAGS): Likewise.
38114 (udf_mod_LDFLAGS): Likewise.
38115
38116 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38117 (grub_emu_SOURCES): Likewise.
38118
38119 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38120
38121 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38122
38123 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38124
38125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38126
38127 * fs/udf.c: New file.
38128
38129 2008-02-24 Robert Millan <rmh@aybabtu.com>
38130
38131 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38132 (normal/lexer.c_DEPENDENCIES): New variables.
38133 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38134 (normal/lexer.c_DEPENDENCIES): Likewise.
38135 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38136 (normal/lexer.c_DEPENDENCIES): Likewise.
38137 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38138 (normal/lexer.c_DEPENDENCIES): Likewise.
38139 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38140 (normal/lexer.c_DEPENDENCIES): Likewise.
38141 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38142 (normal/lexer.c_DEPENDENCIES): Likewise.
38143
38144 2008-02-23 Robert Millan <rmh@aybabtu.com>
38145
38146 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38147 since they were intended to be in hex. This didn't break previously
38148 because of a bug in gpt_partition_map_iterate() (see below).
38149
38150 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38151 when checking the validity of GPT header.
38152 Remove `partno', since it always provides the same information as `i'.
38153
38154 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38155
38156 * include/grub/efi/time.h: Fix a wrong comment.
38157
38158 2008-02-19 Pavel Roskin <proski@gnu.org>
38159
38160 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38161 message.
38162
38163 2008-02-19 Bean <bean123ch@gmail.com>
38164
38165 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38166 (aout_mod_SOURCES): New variable.
38167 (aout_mod_CFLAGS): Likewise.
38168 (aout_mod_LDFLAGS): Likewise.
38169 (_bsd_mod_SOURCES): New variable.
38170 (_bsd_mod_CFLAGS): Likewise.
38171 (_bsd_mod_LDFLAGS): Likewise.
38172 (bsd_mod_SOURCES): New variable.
38173 (bsd_mod_CFLAGS): Likewise.
38174 (bsd_mod_LDFLAGS): Likewise.
38175
38176 * include/grub/aout.h: New file.
38177
38178 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38179
38180 * include/grub/i386/bsd.h: New file.
38181
38182 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38183 to make it public.
38184
38185 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38186 function is called, so that it's possible to change it inside the hook.
38187 (grub_elf64_load): Likewise.
38188 (grub_elf_file): Don't close the file if elf header is not found.
38189 (grub_elf_close): Close the file if grub_elf_file fails (The new
38190 grub_elf_file won't close it).
38191 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38192 (grub_elf64_size): Likewise.
38193
38194 * kern/i386/loader.S (grub_unix_real_boot): New function.
38195
38196 * loader/aout.c: New file.
38197
38198 * loader/i386/bsd.c: New file.
38199
38200 * loader/i386/bsd_normal.c: New file.
38201
38202 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38203
38204 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38205 can test other formats.
38206
38207 2008-02-19 Robert Millan <rmh@aybabtu.com>
38208
38209 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38210 (grub_gpt_partition_type_empty): Redefine with macro from
38211 `<grub/gpt_partition.h>'.
38212 (gpt_partition_map_iterate): Adjust partition type comparison.
38213
38214 Export `entry' as partmap-specific `part.data' struct.
38215 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38216
38217 * include/grub/gpt_partition.h (grub_gpt_header)
38218 (grub_gpt_partentry): ... to here (new file).
38219
38220 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38221
38222 (grub_gpt_partition_type_bios_boot): New const variable, defined
38223 with macro from `<grub/gpt_partition.h>'.
38224
38225 (setup): Replace `first_start' with `embed_region', which keeps
38226 track of the embed region (and is partmap-agnostic).
38227
38228 Replace find_first_partition_start() with find_usable_region(),
38229 which finds a usable region for embedding using partmap-specific
38230 knowledge (supports PC/MSDOS and GPT).
38231
38232 Fix all assumptions that the embed region start at sector 1, using
38233 `embed_region.start' from now on. Similarly, use `embed_region.end'
38234 rather than `first_start' to calculate available size.
38235
38236 In grub_util_info() message, replace "into after the MBR" with an
38237 indication of the specific sector our embed region starts at.
38238
38239 2008-02-19 Robert Millan <rmh@aybabtu.com>
38240
38241 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38242 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38243 `commands/reboot.c'.
38244 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38245 (halt_mod_SOURCES): Likewise.
38246 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38247 (halt_mod_SOURCES): Likewise.
38248
38249 2008-02-17 Christian Franke <franke@computer.org>
38250
38251 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38252
38253 2008-02-17 Robert Millan <rmh@aybabtu.com>
38254
38255 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38256 set `first_start' to 0 for non-PC/MSDOS partition maps.
38257
38258 2008-02-16 Robert Millan <rmh@aybabtu.com>
38259
38260 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38261 do not assume partition map is PC/MSDOS before performing checks that
38262 are specific to that layout.
38263
38264 2008-02-13 Robert Millan <rmh@aybabtu.com>
38265
38266 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38267 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38268 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38269
38270 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38271
38272 * configure.ac: Only a cosmetic change on the handling of
38273 -fno-stack-protector.
38274
38275 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38276
38277 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38278 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38279 reboot.c.
38280 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38281 (halt_mod_SOURCES): New variable.
38282 (halt_mod_CFLAGS): Likewise.
38283 (halt_mod_LDFLAGS): Likewise.
38284 (reboot_mod_SOURCES): Likewise.
38285 (reboot_mod_CFLAGS): Likewise.
38286 (reboot_mod_LDFLAGS): Likewise.
38287
38288 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38289 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38290 reboot.c.
38291 (halt_mod_SOURCES): Likewise.
38292 (reboot_mod_SOURCES): Likewise.
38293
38294 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38295 commands/i386/pc/reboot.c by commands/reboot.c.
38296 (reboot_mod_SOURCES): Likewise.
38297
38298 * commands/i386/pc/reboot.c: merge this file ...
38299
38300 * commands/ieee1275/reboot.c: ... and this file ...
38301
38302 * commands/reboot.c: ... to this file.
38303 Add some precompiler directive to include the correct header for
38304 each machine.
38305
38306 * commands/ieee1275/halt.c: move this file ...
38307
38308 * commands/halt.c: ... to here.
38309 Add some precompiler directive to include the correct header for
38310 each machine.
38311
38312 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38313 (grub_halt): Likewise.
38314
38315 * kern/efi/efi.c (grub_reboot): New function.
38316 (grub_halt): Likewise.
38317
38318 2008-02-12 Robert Millan <rmh@aybabtu.com>
38319
38320 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38321 /dev (like it is done for /dev/mapper). This doesn't provide support
38322 for EVMS, but at least it is now easy to identify the problem when it
38323 arises.
38324
38325 2008-02-11 Robert Millan <rmh@aybabtu.com>
38326
38327 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38328 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38329 comparing it with -1, not 0.
38330
38331 2008-02-10 Robert Millan <rmh@aybabtu.com>
38332
38333 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38334 `disk/lvm.c'.
38335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38336 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38337
38338 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38339 `disk/lvm.c' to the end of the list.
38340 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38341 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38342
38343 2008-02-10 Robert Millan <rmh@aybabtu.com>
38344
38345 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38346 grub_print_error() instead. This will let user know why we're entering
38347 rescue mode.
38348 Based on suggestions from Sam Morris.
38349
38350 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38351
38352 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38353 on remaining N args, instead of "--" arg N times.
38354
38355 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38356
38357 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38358 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38359 pattern for unknown glyphs.
38360
38361 2008-02-09 Robert Millan <rmh@aybabtu.com>
38362
38363 * configure.ac: Probe for `help2man'.
38364 * Makefile.in (builddir): New variable.
38365 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38366 or otherwise add a few flags/options to it.
38367 (install-local): For every executable utility or script that is
38368 installed, invoke $(HELP2MAN) to install a manpage based on --help
38369 output.
38370
38371 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38372 that it doesn't prevent --help from working in build tree.
38373
38374 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38375 with `bug-grub@gnu.org'.
38376 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38377 * util/update-grub.in (usage): New function.
38378 Implement proper argument check, with support for --help and --version
38379 (as well as existing -y).
38380
38381 2008-02-09 Christian Franke <franke@computer.org>
38382
38383 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38384 avoid overwriting previous output.
38385 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38386
38387 2008-02-09 Robert Millan <rmh@aybabtu.com>
38388
38389 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38390 drawing the menu.
38391
38392 2008-02-09 Robert Millan <rmh@aybabtu.com>
38393
38394 * commands/sleep.c: New file.
38395 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38396 (sleep_mod_SOURCES): New variable.
38397 (sleep_mod_CFLAGS): Likewise.
38398 (sleep_mod_LDFLAGS): Likewise.
38399
38400 2008-02-09 Robert Millan <rmh@aybabtu.com>
38401
38402 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38403 situations in which we can deduce the RAID size and the superblock
38404 doesn't match it.
38405
38406 2008-02-09 Robert Millan <rmh@aybabtu.com>
38407
38408 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38409 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38410 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38411
38412 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38413 and return a grub_diskmemberlist_t composed of physical array members.
38414 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38415
38416 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38417 prototype.
38418 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38419 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38420 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38421
38422 * util/grub-probe.c (probe): Move partmap probing code from here ...
38423 (probe_partmap): ... to here.
38424 (probe): Use probe_partmap() once for the disk we're probing, and
38425 additionally, when such disk contains a memberlist() struct member,
38426 once for each disk that is contained in the structure returned by
38427 memberlist().
38428
38429 2008-02-09 Robert Millan <rmh@aybabtu.com>
38430
38431 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38432 environment variable to 'all' in order to obtain debug output from
38433 non-util/ code.
38434 * util/i386/pc/grub-setup.c (main): Likewise.
38435
38436 2008-02-08 Robert Millan <rmh@aybabtu.com>
38437
38438 * disk/raid.c (grub_raid_scan_device): Check for
38439 `array->device[sb.this_disk.number]' rather than for
38440 `array->device[sb.this_disk.number]->name', since the latter is not
38441 guaranteed to be accessible.
38442
38443 2008-02-08 Robert Millan <rmh@aybabtu.com>
38444
38445 * disk/raid.c: Update copyright.
38446 * fs/cpio.c: Likewise.
38447 * include/grub/raid.h: Likewise.
38448 * loader/i386/pc/multiboot.c: Likewise.
38449 * util/hostfs.c: Likewise.
38450
38451 2008-02-08 Robert Millan <rmh@aybabtu.com>
38452
38453 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38454 to a grub_disk_t array.
38455 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38456 `device[x]'.
38457 (grub_raid_scan_device): Replace `device[x].name' accesses with
38458 `device[x]->name'. Simplify initialization of `array->device[x]'.
38459
38460 2008-02-08 Robert Millan <rmh@aybabtu.com>
38461
38462 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38463 grub_dprintf() calls.
38464 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38465 error message.
38466
38467 2008-02-07 Christian Franke <franke@computer.org>
38468
38469 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38470 instead of fseek and ftell to support large files.
38471 (grub_hostfs_read): Likewise.
38472
38473 2008-02-07 Robert Millan <rmh@aybabtu.com>
38474
38475 Patch from Jeroen Dekkers.
38476 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38477 failure, since successfully reading all array members might not be
38478 required.
38479
38480 2008-02-06 Robert Millan <rmh@aybabtu.com>
38481
38482 * util/grub-probe.c (probe): Simplify partmap probing (with the
38483 assumption that the first word up to the underscore equals to
38484 the module name).
38485
38486 2008-02-06 Christian Franke <franke@computer.org>
38487
38488 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38489 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38490 last block of a cpio or tar stream.
38491 Check for "TRAILER!!!" instead of any empty data
38492 block to detect last block of a cpio stream.
38493 (grub_cpio_dir): Fix constness of variable np.
38494 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38495 cpio or tar trailer is detected. This fixes a crash
38496 on open of a non existing file.
38497
38498 2008-02-05 Bean <bean123ch@gmail.com>
38499
38500 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38501 address of entry.
38502 (grub_multiboot_load_elf64): Likewise.
38503 (grub_multiboot): Initialize mbi structure.
38504
38505 * util/grub-fstest.c: Don't include unused header file script.h.
38506
38507 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38508 of file.
38509 (grub_fstest_SOURCES): Likewise.
38510
38511 2008-02-05 Robert Millan <rmh@aybabtu.com>
38512
38513 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38514 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38515 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38516 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38517
38518 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38519 (translation_table): Replace hardcoded values with macros
38520 provided by `<grub/term.h>'.
38521
38522 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38523 (keyboard_map): Correct/add a few values, with macros provided
38524 by `<grub/term.h>'.
38525 (keyboard_map_shift): Zero values that don't differ from their
38526 `keyboard_map' equivalents.
38527 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38528 Discard the second scan code that is always sent by Caps lock.
38529 Only use `keyboard_map_shift' when it provides a non-zero value,
38530 otherwise fallback to `keyboard_map'.
38531
38532 2008-02-04 Bean <bean123ch@gmail.com>
38533
38534 * Makefile.in (enable_grub_fstest): New variable.
38535
38536 * conf/common.rmk (grub_fstest_init.lst): New rule.
38537 (grub_fstest_init.h): Likewise.
38538 (grub_fstest_init.c): Likewise.
38539 (util/grub-fstest.c_DEPENDENCIES): New variable.
38540 (grub_fstest_SOURCES): Likewise.
38541
38542 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38543
38544 * util/grub-fstest.c: New file.
38545
38546 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38547
38548 Make grub-setup handle a separate root device.
38549
38550 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38551 so that the root device can be compared with the destination
38552 device.
38553 When embedding the core image, if the root and destination devices
38554 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38555 0xFF.
38556 When not embedding, set ROOT_DRIVE to 0xFF.
38557
38558 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38559
38560 Add support for having a grub directory in a different drive. This
38561 is still only the data handling part.
38562
38563 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38564 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38565 (grub_root_drive): New variable.
38566
38567 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38568 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38569 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38570 as it was.
38571
38572 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38573
38574 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38575 macro.
38576 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38577
38578 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38579 is bogus, because PXE booting does not specify any drive
38580 correctly.
38581
38582 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38583 am not sure if this is really correct.
38584
38585 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38586 is always identical to the boot drive when booting from a CD.
38587
38588 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38589 longer.
38590 (root_drive): New variable.
38591 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38592 (setup_sectors): Push %dx right after popping it, because %dh will
38593 be modified later.
38594 (copy_buffer): Restore %dx.
38595
38596 2008-02-03 Robert Millan <rmh@aybabtu.com>
38597
38598 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38599 use `cdboot.img' for cdrom images.
38600
38601 2008-02-03 Robert Millan <rmh@aybabtu.com>
38602
38603 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38604 only setup gfxterm when `font' command has succeeded.
38605
38606 2008-02-03 Robert Millan <rmh@aybabtu.com>
38607
38608 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38609 (grub_rescue_cmd_multiboot_loader)
38610 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38611
38612 2008-02-03 Pavel Roskin <proski@gnu.org>
38613
38614 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38615 %edx and %esi from stack only after grub_gate_a20() is called.
38616 grub_gate_a20() clobbers %edx.
38617
38618 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38619
38620 * configure.ac (AC_INIT): Bumped to 1.96.
38621
38622 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38623 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38624 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38625 video/readers/png.c.
38626
38627 2008-02-03 Bean <bean123ch@gmail.com>
38628
38629 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38630 (cdboot_img_SOURCES): New variable.
38631 (cdboot_img_ASFLAGS): New variable.
38632 (cdboot_img_LDFLAGS): New variable.
38633
38634 * boot/i386/pc/cdboot.S: New file.
38635
38636 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38637 (cd_count): Likewise.
38638 (grub_biosdisk_get_drive): Add support for cd device.
38639 (grub_biosdisk_call_hook): Likewise.
38640 (grub_biosdisk_iterate): Likewise.
38641 (grub_biosdisk_open): Likewise.
38642 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38643 (grub_biosdisk_rw): Support reading from cd device.
38644 (GRUB_MOD_INIT): Iterate cd devices.
38645
38646 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38647 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38648 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38649
38650 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38651
38652 2008-02-02 Robert Millan <rmh@aybabtu.com>
38653
38654 * commands/read.c: New file.
38655 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38656 (read_mod_SOURCES): New variable.
38657 (read_mod_CFLAGS): Likewise.
38658 (read_mod_LDFLAGS): Likewise.
38659
38660 2008-02-02 Robert Millan <rmh@aybabtu.com>
38661
38662 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38663 determining whether menu has to be displayed.
38664
38665 2008-02-02 Marco Gerards <marco@gnu.org>
38666
38667 * bus/pci.c: New file.
38668
38669 * include/grub/pci.h: Likewise.
38670
38671 * include/grub/i386/pc/pci.h: Likewise.
38672
38673 * commands/lspci.c: Likewise.
38674
38675 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38676 `lspci.mod'.
38677 (pci_mod_SOURCES): New variable.
38678 (pci_mod_CFLAGS): Likewise.
38679 (pci_mod_LDFLAGS): Likewise.
38680 (lspci_mod_SOURCES): Likewise.
38681 (lspci_mod_CFLAGS): Likewise.
38682 (lspci_mod_LDFLAGS): Likewise.
38683
38684 2008-02-02 Bean <bean123ch@gmail.com>
38685
38686 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38687 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38688
38689 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38690 (grub_xfs_btree_node): New structure.
38691 (grub_xfs_btree_root): New structure.
38692 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38693 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38694 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38695 (GRUB_XFS_EXTENT_SIZE): Likewise.
38696 (grub_xfs_read_block): Support btree format type.
38697 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38698 Use directory block as basic unit.
38699
38700 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38701
38702 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38703 __attribute__ ((__regparm__ (1))).
38704
38705 2008-02-01 Robert Millan <rmh@aybabtu.com>
38706
38707 Correct a mistake in previous commit.
38708
38709 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38710 top.
38711 (normal/command.c_DEPENDENCIES): New variable.
38712
38713 2008-02-01 Robert Millan <rmh@aybabtu.com>
38714
38715 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38716 top.
38717 (normal/command.c_DEPENDENCIES): New variable.
38718 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38719 * conf/i386-ieee1275.rmk: Likewise.
38720 * conf/i386-linuxbios.rmk: Likewise.
38721 * conf/i386-pc.rmk: Likewise.
38722 * conf/sparc64-ieee1275.rmk: Likewise.
38723 * conf/powerpc-ieee1275.rmk: Likewise.
38724 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38725
38726 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38727
38728 2008-02-01 Robert Millan <rmh@aybabtu.com>
38729
38730 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38731 call at beginning of function.
38732
38733 2008-01-31 Pavel Roskin <proski@gnu.org>
38734
38735 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38736 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38737 (grub_mkrescue_SOURCES): Likewise.
38738 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38739
38740 2008-01-30 Robert Millan <rmh@aybabtu.com>
38741
38742 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38743 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38744 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38745 (grub_probe_SOURCES): ... to here.
38746
38747 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38748 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38749 * conf/i386-ieee1275.rmk: Likewise.
38750 * conf/i386-linuxbios.rmk: Likewise.
38751 * conf/powerpc-ieee1275.rmk: Likewise.
38752
38753 2008-01-30 Tristan Gingold <gingold@free.fr>
38754
38755 * kern/rescue.c: Silently accept empty lines.
38756
38757 2008-01-29 Bean <bean123ch@gmail.com>
38758
38759 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38760 (real_code_2): Code cleanup and change comment style.
38761 (move_memory): Avoid using 32-bit address mode.
38762
38763 2008-01-29 Bean <bean123ch@gmail.com>
38764
38765 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38766 (png_mod_SOURCES): New variable.
38767 (png_mod_CFLAGS): Likewise.
38768 (png_mod_LDFLAGS): Likewise.
38769
38770 * video/readers/png.c: New file.
38771
38772 2008-01-28 Robert Millan <rmh@aybabtu.com>
38773
38774 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38775 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38776 `ifndef GRUB_MOD_GAP' hack.
38777 * util/elf/grub-mkimage.c (add_segments): Likewise.
38778
38779 2008-01-27 Robert Millan <rmh@aybabtu.com>
38780
38781 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38782 `GRUB_MOD_GAP' for platforms in which it's not defined.
38783 * util/elf/grub-mkimage.c (add_segments): Likewise.
38784
38785 2008-01-27 Robert Millan <rmh@aybabtu.com>
38786
38787 Get grub-emu to build again (including parallel builds).
38788
38789 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38790 Split into ...
38791 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38792 (normal/execute.c_DEPENDENCIES): ... this, ...
38793 (grub-emu_DEPENDENCIES): ... and this.
38794
38795 * conf/i386-efi.rmk: Likewise.
38796 * conf/i386-linuxbios.rmk: Likewise.
38797 * conf/i386-ieee1275.rmk: Likewise.
38798 * conf/powerpc-ieee1275.rmk: Likewise.
38799 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38800
38801 2008-01-27 Robert Millan <rmh@aybabtu.com>
38802
38803 * NEWS: Add a few items.
38804
38805 2008-01-27 Robert Millan <rmh@aybabtu.com>
38806
38807 Fix parallel builds with grub-emu. Based on earlier commit for
38808 grub-probe and grub-setup.
38809
38810 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38811 (util/grub-emu.c_DEPENDENCIES): ... this.
38812 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38813 (util/grub-emu.c_DEPENDENCIES): ... this.
38814 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38815 (util/grub-emu.c_DEPENDENCIES): ... this.
38816 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38817 (util/grub-emu.c_DEPENDENCIES): ... this.
38818 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38819 (util/grub-emu.c_DEPENDENCIES): ... this.
38820
38821 2008-01-27 Pavel Roskin <proski@gnu.org>
38822
38823 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38824 to create a gap between _end and the modules added to the image
38825 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38826 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38827 * util/elf/grub-mkimage.c (add_segments): Likewise.
38828
38829 2008-01-26 Pavel Roskin <proski@gnu.org>
38830
38831 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38832 just return an error.
38833
38834 2008-01-26 Bean <bean123ch@gmail.com>
38835
38836 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38837 (grub_reiserfs_get_item): Save offset of the next item.
38838 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38839
38840 2008-01-25 Robert Millan <rmh@aybabtu.com>
38841
38842 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38843 make all filesystem sources appear together (possibly fixing omissions
38844 while at it).
38845 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38846 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38847 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38848 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38849
38850 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38851 add `kern/file.c'.
38852 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38853 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38854 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38855 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38856
38857 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38858 (probe): Add a sanity check to make sure of our ability to read
38859 requested files when probing for filesystem type.
38860
38861 * genmk.rb: Update copyright year (2007).
38862
38863 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38864 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38865 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38866 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38867 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38868 : Remove function prototypes.
38869
38870 2008-01-25 Robert Millan <rmh@aybabtu.com>
38871
38872 Revert my previous commits (based on wrong assumption of how grub_errno
38873 works).
38874
38875 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
38876 * kern/file.c (grub_file_open): Likewise.
38877
38878 2008-01-24 Pavel Roskin <proski@gnu.org>
38879
38880 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38881 that hang if GRUB tries to setup colors.
38882 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38883 colors for firmwares that don't support it.
38884 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38885 Recognize Open Hack'Ware, set flags to work around its
38886 limitations.
38887
38888 2008-01-24 Robert Millan <rmh@aybabtu.com>
38889
38890 * kern/file.c (grub_file_open): Do not account previous failures of
38891 unrelated functions when grub_errno is checked for.
38892 Reported by Oleg Strikov.
38893
38894 2008-01-24 Bean <bean123ch@gmail.com>
38895
38896 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38897 (grub_ufs_sblock): New member volume name.
38898 (grub_ufs_find_file): Fix string copy bug.
38899 (grub_ufs_label): Implement this function properly.
38900
38901 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38902 (grub_hfs_iterate_records): Use the correct file number for extents
38903 and catalog file. Fix problem in next index calculation.
38904 (grub_hfs_find_node): Replace recursive function call with loop.
38905 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38906
38907 2008-01-23 Robert Millan <rmh@aybabtu.com>
38908
38909 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38910 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38911 (grub_multiboot2_real_boot): New function prototype.
38912
38913 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38914 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38915
38916 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38917 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38918
38919 2008-01-23 Robert Millan <rmh@aybabtu.com>
38920
38921 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38922 #ifdef'ed out grub_printf().
38923
38924 2008-01-23 Robert Millan <rmh@aybabtu.com>
38925
38926 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38927 grub_dprintf calls, since they make "debug=all" mode unusable.
38928 (grub_console_checkkey): Likewise.
38929
38930 2008-01-23 Robert Millan <rmh@aybabtu.com>
38931
38932 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38933 `term/i386/pc/at_keyboard.c'.
38934 (pkglib_MODULES): Add `serial.mod'.
38935 (serial_mod_SOURCES): New variable.
38936 (serial_mod_CFLAGS): Likewise.
38937 (serial_mod_LDFLAGS): Likewise.
38938
38939 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38940 `<grub/powerpc/ieee1275/console.h>'.
38941 (grub_keyboard_controller_init): New function prototype.
38942 (grub_console_checkkey): Likewise.
38943 (grub_console_getkey): Likewise.
38944
38945 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38946 keyboard on i386.
38947
38948 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38949 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38950
38951 2008-01-23 Robert Millan <rmh@aybabtu.com>
38952
38953 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38954 present, "(memdisk)/boot/grub" becomes the default prefix.
38955
38956 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38957 a memdisk tarball with all the modules. Add --overlay=DIR option that
38958 allows users to overlay additional files into the image.
38959
38960 2008-01-23 Robert Millan <rmh@aybabtu.com>
38961
38962 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38963 and `machine/memory.h'.
38964 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38965 (_multiboot_mod_SOURCES): New variable.
38966 (_multiboot_mod_CFLAGS): Likewise.
38967 (_multiboot_mod_LDFLAGS): Likewise.
38968 (multiboot_mod_SOURCES): Likewise.
38969 (multiboot_mod_CFLAGS): Likewise.
38970 (multiboot_mod_LDFLAGS): Likewise.
38971
38972 * include/grub/i386/ieee1275/loader.h: New file.
38973
38974 * include/grub/i386/ieee1275/machine.h: Likewise.
38975
38976 * include/grub/i386/ieee1275/memory.h: Likewise.
38977
38978 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38979 variable declaration.
38980 (grub_os_area_size): Likewise.
38981
38982 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38983 (grub_lower_mem, grub_upper_mem): New variables.
38984 (grub_stop_floppy): New function (just to make
38985 grub_multiboot2_real_boot() happy).
38986
38987 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38988 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38989 (grub_stop): New function.
38990 Include `"../realmode.S"' and `"../loader.S"'.
38991
38992 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38993 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38994
38995 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38996 rely on grub_multiboot2_real_boot() for final boot.
38997
38998 2008-01-22 Robert Millan <rmh@aybabtu.com>
38999
39000 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39001 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39002 device that doesn't look like an SD card.
39003 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39004 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39005 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39006 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39007 found.
39008
39009 2008-01-22 Robert Millan <rmh@aybabtu.com>
39010
39011 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39012 avoid claiming over our own code.
39013
39014 2008-01-22 Bean <bean123ch@gmail.com>
39015
39016 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39017 (jpeg_mod_SOURCES): New variable.
39018 (jpeg_mod_CFLAGS): Likewise.
39019 (jpeg_mod_LDFLAGS): Likewise.
39020
39021 * video/readers/jpeg.c : New file.
39022
39023 2008-01-22 Bean <bean123ch@gmail.com>
39024
39025 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39026 there are no more items.
39027
39028 2008-01-21 Robert Millan <rmh@aybabtu.com>
39029
39030 * kern/mm.c (grub_mm_init_region): Improve debug message.
39031
39032 2008-01-21 Robert Millan <rmh@aybabtu.com>
39033
39034 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39035 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39036 address.
39037 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39038 a C macro.
39039 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39040 Indicates start of upper memory.
39041 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39042 (generate_image): Abort when image size is big enough to corrupt
39043 upper memory.
39044
39045 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39046 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39047 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39048 instead of hardcoding 0xA0000.
39049 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39050 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39051 instead of hardcoding 0xA0000.
39052
39053 2008-01-21 Robert Millan <rmh@aybabtu.com>
39054
39055 * disk/memdisk.c (memdisk_size): New variable.
39056 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39057 `memdisk_size'.
39058 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39059 image to dynamic memory.
39060 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39061 `memdisk_size'. Free memdisk block.
39062
39063 2008-01-21 Robert Millan <rmh@aybabtu.com>
39064
39065 Fix detection of very small filesystems (like tar).
39066
39067 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39068 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39069 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39070 a problem with this disk).
39071
39072 2008-01-21 Robert Millan <rmh@aybabtu.com>
39073
39074 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39075 on grub_biosdisk_rw_standard() error.
39076
39077 2008-01-21 Robert Millan <rmh@aybabtu.com>
39078
39079 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39080 recent changes.
39081 * kern/elf.c: Likewise.
39082 * kern/ieee1275/ieee1275.c: Likewise.
39083 * kern/powerpc/ieee1275/openfw.c: Likewise.
39084 * term/ieee1275/ofconsole.c: Likewise.
39085
39086 2008-01-21 Robert Millan <rmh@aybabtu.com>
39087
39088 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39089
39090 * include/grub/kernel.h (grub_arch_memdisk_addr)
39091 (grub_arch_memdisk_size): Moved from here ...
39092
39093 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39094 (grub_arch_memdisk_size): ... to here.
39095
39096 2008-01-21 Robert Millan <rmh@aybabtu.com>
39097
39098 Mostly based on bugfix from Bean.
39099
39100 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39101 attribute with hook() parameter.
39102 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39103 declaration.
39104 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39105 attribute with hook() parameter.
39106 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39107 declaration.
39108
39109 2008-01-21 Robert Millan <rmh@aybabtu.com>
39110
39111 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39112 (pkglib_MODULES): Add `memdisk.mod'.
39113 (memdisk_mod_SOURCES): New variable.
39114 (memdisk_mod_CFLAGS): Likewise.
39115 (memdisk_mod_LDFLAGS): Likewise.
39116
39117 * disk/memdisk.c: New file.
39118
39119 * include/grub/disk.h (grub_disk_dev_id): Add
39120 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39121
39122 * include/grub/i386/pc/kernel.h
39123 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39124 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39125 (grub_kernel_image_size): New variable declaration.
39126 (grub_total_module_size): Likewise.
39127 (grub_memdisk_image_size): Likewise.
39128
39129 * include/grub/i386/pc/memory.h
39130 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39131
39132 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39133 (grub_arch_memdisk_addr): New variable declaration.
39134 (grub_arch_memdisk_size): Likewise.
39135
39136 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39137 (grub_arch_memdisk_size): Likewise.
39138
39139 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39140 (codestart): Replace hardcoded `0x100000' with
39141 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39142
39143 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39144 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39145 not NULL, append the contents of the file it refers to, at the end of
39146 the compressed kernel image. Initialize `grub_memdisk_image_size'
39147 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39148 (options): Add "memdisk"|'m' option.
39149 (main): Parse --memdisk|-m option, and pass user-provided path as
39150 parameter to generate_image().
39151
39152 2008-01-20 Robert Millan <rmh@aybabtu.com>
39153
39154 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39155 grub_dprintf() calls from here ...
39156 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39157
39158 2008-01-20 Robert Millan <rmh@aybabtu.com>
39159
39160 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39161
39162 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39163 declaration.
39164 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39165 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39166 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39167 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39168 property).
39169 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39170 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39171
39172 2008-01-19 Robert Millan <rmh@aybabtu.com>
39173
39174 Get rid of confusing function (superseded by
39175 `grub_ieee1275_get_integer_property')
39176 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39177 prototype.
39178 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39179 function.
39180 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39181 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39182 in native endianness from grub_ieee1275_get_integer_property().
39183
39184 2008-01-19 Robert Millan <rmh@aybabtu.com>
39185
39186 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39187 command after "shut-down", since implementations differ on which
39188 the command for halt is.
39189
39190 2008-01-19 Robert Millan <rmh@aybabtu.com>
39191
39192 * include/grub/i386/linuxbios/console.h: Add header protection.
39193 (grub_keyboard_controller_init): New function prototype.
39194 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39195 (KEYBOARD_COMMAND_READ): Likewise.
39196 (KEYBOARD_COMMAND_WRITE): Likewise.
39197 (KEYBOARD_SCANCODE_SET1): Likewise.
39198 (grub_keyboard_controller_write): New function.
39199 (grub_keyboard_controller_read): Likewise.
39200 (grub_keyboard_controller_init): Likewise.
39201
39202 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39203 (grub_console_init): On coreboot/LinuxBIOS, call
39204 grub_keyboard_controller_init().
39205
39206 2008-01-19 Robert Millan <rmh@aybabtu.com>
39207
39208 PowerPC changes provided by Pavel Roskin.
39209
39210 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39211 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39212 don't rely on cmain() doing it.
39213 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39214 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39215
39216 2008-01-16 Robert Millan <rmh@aybabtu.com>
39217
39218 * include/grub/i386/linuxbios/memory.h
39219 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39220 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39221 receive `table_header' as argument. Instead, probe for it in the
39222 known memory ranges where it can be present.
39223 (grub_available_iterate): Do not pass a fixed `table_header' address
39224 to grub_linuxbios_table_iterate().
39225
39226 2008-01-15 Robert Millan <rmh@aybabtu.com>
39227
39228 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39229 * conf/i386-ieee1275.rmk: New file.
39230 * include/grub/i386/ieee1275/console.h: Likewise.
39231 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39232 * include/grub/i386/ieee1275/kernel.h: Likewise.
39233 * include/grub/i386/ieee1275/time.h: Likewise.
39234 * kern/i386/ieee1275/init.c: Likewise.
39235 * kern/i386/ieee1275/startup.S: Likewise.
39236
39237 2008-01-15 Robert Millan <rmh@aybabtu.com>
39238
39239 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39240 when pointers are 32-bit (but still do set it to one when they are
39241 64-bit).
39242
39243 2008-01-15 Robert Millan <rmh@aybabtu.com>
39244
39245 * include/grub/ieee1275/ieee1275.h
39246 (grub_ieee1275_get_integer_property): New function prototype.
39247
39248 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39249 (grub_ieee1275_get_integer_property): New function. Wraps around
39250 grub_ieee1275_get_property() to handle endianness.
39251
39252 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39253 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39254 where appropriate.
39255 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39256 (grub_map): Likewise.
39257 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39258
39259 2008-01-15 Bean <bean123ch@gmail.com>
39260
39261 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39262 (grub_script_execute_cmdline): Reset grub_errno.
39263
39264 * normal/main.c (read_config_file): Reset grub_errno.
39265
39266 * normal/parse.y (script_init): New.
39267 (script): Move function and menuentry here.
39268 (delimiter): New.
39269 (command): Add delimiter at the end of command.
39270 (commands): Adjust to match the new command.
39271 (commandblock): Remove grub_script_lexer_record_start.
39272 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39273 (if): Use the new commands.
39274
39275 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39276
39277 2008-01-15 Robert Millan <rmh@aybabtu.com>
39278
39279 * normal/menu.c (run_menu): Move timeout message from here ...
39280 (print_timeout): ... to here.
39281 (run_menu): Use print_timeout() once during initial draw to print
39282 the whole message, and again in every clock tick to update only
39283 the number of seconds.
39284
39285 2008-01-15 Robert Millan <rmh@aybabtu.com>
39286
39287 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39288 actual size of `available' from grub_ieee1275_get_property(), and
39289 restrict parsing to that bound.
39290
39291 2008-01-15 Christian Franke <franke@computer.org>
39292
39293 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39294 (argp_program_version): Remove variable.
39295 (argp_program_bug_address): Likewise.
39296 (options): Convert from struct argp_option to struct option.
39297 (struct arguments): Remove.
39298 (parse_opt): Remove.
39299 (usage): New function.
39300 (main): Replace struct args members by simple variables.
39301 Replace argp_parse() by getopt_long().
39302 Add switch to evaluate options.
39303 Add missing "(...)" around root_dev in prefix string.
39304
39305 2008-01-14 Robert Millan <rmh@aybabtu.com>
39306
39307 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39308 for grub_ieee1275_exit(), in order to improve portability.
39309
39310 2008-01-14 Robert Millan <rmh@aybabtu.com>
39311
39312 * util/grub.d/10_linux.in (prefix): Define.
39313 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39314
39315 2008-01-13 Pavel Roskin <proski@gnu.org>
39316
39317 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39318 grub_errno if no errors have been detected.
39319
39320 2008-01-12 Robert Millan <rmh@aybabtu.com>
39321
39322 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39323 (grub_util_get_dev_abstraction): New function prototype.
39324
39325 * util/getroot.c: Include `<grub/util/getroot.h>'
39326 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39327 (grub_util_get_dev_abstraction): ... here (new function).
39328
39329 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39330 `PRINT_ABSTRACTION'.
39331 (probe): Probe for abstraction type when requested.
39332 (main): Understand `--target=abstraction'.
39333
39334 * util/i386/efi/grub-install.in: Add abstraction module to core
39335 image when it is found to be necessary.
39336 * util/i386/pc/grub-install.in: Likewise.
39337 * util/powerpc/ieee1275/grub-install.in: Likewise.
39338
39339 * util/update-grub_lib.in (font_path): Return system path without
39340 converting to GRUB path.
39341 * util/update-grub.in: Convert system path returned by font_path()
39342 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39343 abstraction module is needed for loading fonts (if any). Export
39344 that as `GRUB_PRELOAD_MODULES'.
39345 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39346 insmod commands).
39347
39348 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39349
39350 Remove some unused code from reiserfs.
39351
39352 * fs/reiserfs.c (struct grub_reiserfs_key)
39353 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39354 (struct grub_reiserfs_node_body): Removed.
39355 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39356 Likewise.
39357 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39358 Likewise.
39359 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39360 Likewise.
39361 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39362 Likewise.
39363 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39364 Likewise.
39365 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39366 Likewise.
39367 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39368 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39369 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39370
39371 2008-01-10 Robert Millan <rmh@aybabtu.com>
39372
39373 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39374 Determines if a file is garbage left by packaging systems, etc.
39375 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39376 for processing /etc/grub.d scripts.
39377 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39378 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39379 as a condition for processing Linux images.
39380
39381 2008-01-10 Pavel Roskin <proski@gnu.org>
39382
39383 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39384 to compile reiserfs.c on PowerPC.
39385
39386 2008-01-10 Robert Millan <rmh@aybabtu.com>
39387
39388 * kern/device.c (grub_device_iterate): Do not abort device iteration
39389 when one of the devices cannot be opened.
39390 * kern/disk.c (grub_disk_open): Do not account previous failures of
39391 unrelated functions when grub_errno is checked for.
39392
39393 2008-01-08 Robert Millan <rmh@aybabtu.com>
39394
39395 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39396 `! grub_linux_is_bzimage', change order of address comparison to make
39397 it more intuitive, and improve "too big zImage" error message.
39398
39399 2008-01-08 Robert Millan <rmh@aybabtu.com>
39400
39401 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39402 `$(update-grub_DATA)'.
39403 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39404 targets.
39405
39406 2008-01-07 Robert Millan <rmh@aybabtu.com>
39407
39408 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39409 which instruction is modified by grub-setup during installation
39410 (since it wasn't obvious by only looking at this file).
39411
39412 2008-01-07 Robert Millan <rmh@aybabtu.com>
39413
39414 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39415 listing actual TODO items.
39416
39417 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39418
39419 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39420 correctly.
39421 (grub_reiserfs_get_key_offset): Likewise.
39422 (grub_reiserfs_set_key_offset): Likewise.
39423 (grub_reiserfs_set_key_type): Likewise.
39424 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39425
39426 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39427 better to remove the bitfield version completely.
39428
39429 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39430
39431 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39432 allocated from the heap, due to the fshelp implementation.
39433 (grub_reiserfs_dir): Free NODE, due to the same reason.
39434
39435 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39436
39437 Mostly from Vincent Pelletier:
39438
39439 * fs/reiserfs.c: New file.
39440
39441 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39442 (reiserfs_mod_SOURCES): New variable.
39443 (reiserfs_mod_CFLAGS): Likewise.
39444 (reiserfs_mod_LDFLAGS): Likewise.
39445
39446 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39447 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39448 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39449 normal/color.c.
39450
39451 2008-01-06 Robert Millan <rmh@aybabtu.com>
39452
39453 * normal/color.c: Remove `<grub/env.h>'.
39454
39455 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39456
39457 * include/grub/normal.h: Include <grub/env.h>.
39458
39459 2008-01-05 Robert Millan <rmh@aybabtu.com>
39460
39461 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39462 usage example with `(hd0,1)'.
39463 Reported by Samuel Thibault.
39464
39465 2008-01-05 Robert Millan <rmh@aybabtu.com>
39466
39467 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39468 (grub_linux_boot_zimage): Rename to ...
39469 (grub_linux_boot): ... this.
39470 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39471 (grub_linux_boot_zimage): Conditionalize zImage copy.
39472
39473 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39474 (grub_linux_boot_bzimage): Remove prototype.
39475 (grub_linux_boot_zimage): Rename to ...
39476 (grub_linux_boot): ... this.
39477
39478 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39479 (grub_linux_boot): Remove function.
39480
39481 2008-01-05 Robert Millan <rmh@aybabtu.com>
39482
39483 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39484 (grub_env_write_color_highlight): Likewise.
39485 (grub_wait_after_message): Likewise.
39486
39487 * normal/color.c: New file.
39488
39489 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39490 (normal_mod_DEPENDENCIES): Likewise.
39491
39492 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39493 (normal_mod_DEPENDENCIES): Likewise.
39494
39495 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39496 (normal_mod_DEPENDENCIES): Likewise.
39497
39498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39499 (normal_mod_DEPENDENCIES): Likewise.
39500
39501 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39502 for waiting after a message is printed.
39503 * normal/main.c (read_config_file): Likewise.
39504 (grub_normal_init): Register grub_env_write_color_normal() and
39505 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39506 `color_highlight' variables as global.
39507
39508 * normal/menu.c (grub_wait_after_message): New function.
39509 (grub_color_menu_normal): New variable. Replaces ...
39510 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39511 (grub_color_menu_highlight): New variable. Replaces ...
39512 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39513 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39514 `GRUB_TERM_COLOR_STANDARD'.
39515 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39516 `normal_code' and `highlight_code' to `old_color_normal' and
39517 `old_color_highlight', respectively.
39518 (grub_menu_init_page): Update colors when drawing the menu, based on
39519 `menu_color_normal' and `menu_color_highlight' variables.
39520 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39521 a message is printed.
39522
39523 2008-01-05 Robert Millan <rmh@aybabtu.com>
39524
39525 * kern/env.c (grub_env_context_open): Propagate hooks for global
39526 variables to new context.
39527
39528 * kern/main.c (grub_set_root_dev): Export `root' variable.
39529
39530 2008-01-05 Robert Millan <rmh@aybabtu.com>
39531
39532 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39533 discs unconditionally, since udev and others have options to provide
39534 them.
39535
39536 2008-01-05 Robert Millan <rmh@aybabtu.com>
39537
39538 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39539
39540 2008-01-04 Christian Franke <franke@computer.org>
39541
39542 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39543 of eisa_mmap.
39544
39545 2008-01-03 Pavel Roskin <proski@gnu.org>
39546
39547 * kern/i386/linuxbios/init.c: Put "void" to all function
39548 declarations with no arguments.
39549 * kern/powerpc/ieee1275/init.c: Likewise.
39550 * term/i386/pc/at_keyboard.c: Likewise.
39551 * term/i386/pc/vga_text.c: Likewise.
39552 * util/grub-mkdevicemap.c: Likewise.
39553
39554 2008-01-02 Robert Millan <rmh@aybabtu.com>
39555
39556 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39557 message when loaded image is out of bounds.
39558 (grub_multiboot_load_elf64): Likewise.
39559
39560 2008-01-02 Pavel Roskin <proski@gnu.org>
39561
39562 * util/grub.d/10_linux.in: Try version without ".old" when
39563 looking for initrd. It's better to use initrd from the newer
39564 kernel of the same version than no initrd at all.
39565
39566 2008-01-01 Robert Millan <rmh@aybabtu.com>
39567
39568 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39569
39570 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39571
39572 * include/grub/video.h: Added grub_video_unmap_color and
39573 grub_video_get_active_render_target.
39574 (grub_video_adapter): Added unmap_color and get_active_render_target.
39575
39576 * video/video.c: Added grub_video_unmap_color and
39577 grub_video_get_active_render_target.
39578 (grub_video_get_info): Changed method to accept NULL pointer as an
39579 argument to allow detection of active video adapter.
39580
39581 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39582 grub_video_vbe_unmap_color_int.
39583 Added grub_video_vbe_unmap_color and
39584 grub_video_vbe_get_active_render_target.
39585 (grub_video_vbe_adapter): Added unmap_color and
39586 get_active_render_target.
39587
39588 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39589 with grub_video_vbe_unmap_color_int.
39590
39591 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39592 (DEFAULT_NORMAL_COLOR): Likewise.
39593 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39594 (DEFAULT_FG_COLOR): Removed.
39595 (DEFAULT_BG_COLOR): Likewise.
39596 (DEFAULT_CURSOR_COLOR): Changed value.
39597 (grub_virtual_screen): Added standard_color_setting,
39598 normal_color_setting, highlight_color_setting and term_color.
39599 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39600 (bitmap_width): Added.
39601 (bitmap_height): Likewise.
39602 (bitmap): Likewise.
39603 (set_term_color): Likewise.
39604 (grub_virtual_screen_setup): Changed to use new terminal coloring
39605 settings.
39606 (grub_gfxterm_init): Added init for bitmap.
39607 (grub_gfxterm_fini): Added destroy for bitmap.
39608 (redraw_screen_rect): Updated to use background bitmap and new
39609 terminal coloring.
39610 (scroll_up): Added optimization for case when there is no bitmap.
39611 (grub_gfxterm_cls): Fixed to use correct background color.
39612 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39613 coloring.
39614 (grub_virtual_screen_setcolor): Likewise.
39615 (grub_virtual_screen_getcolor): Added.
39616 (grub_gfxterm_background_image_cmd): Likewise.
39617 (grub_video_term): Added setcolor and getcolor.
39618 (MOD_INIT): Added registration of background_image command.
39619 (MOD_TERM): Added unregistration for background_image command.
39620
39621 2007-12-30 Pavel Roskin <proski@gnu.org>
39622
39623 * loader/multiboot_loader.c: Fix multiboot command
39624 unregistration. Fix all typos in the word "multiboot".
39625
39626 2007-12-29 Pavel Roskin <proski@gnu.org>
39627
39628 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39629 support for initrd names used in Fedora.
39630
39631 2007-12-26 Bean <bean123ch@gmail.com>
39632
39633 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39634 (cpio_mod_SOURCES): New variable.
39635 (cpio_mod_CFLAGS): Likewise.
39636 (cpio_mod_LDFLAGS): Likewise.
39637
39638 * fs/cpio.c: New file.
39639
39640 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39641
39642 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39643
39644 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39645
39646 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39647
39648 2007-12-25 Robert Millan <rmh@aybabtu.com>
39649
39650 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39651 (grub_getcolor): New function.
39652
39653 * kern/term.c (grub_getcolor): New function.
39654 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39655 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39656 (print_entry): Set normal and highlight colors to
39657 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39658 respectively, before printing and restore them to old
39659 values afterwards.
39660 (grub_menu_init_page): Likewise. Fill an additional colored space
39661 that would otherwise be left blank.
39662
39663 * term/efi/console.c (grub_console_getcolor): New function.
39664 (struct grub_console_term.getcolor): New variable.
39665 * term/i386/pc/console.c (grub_console_getcolor): New function.
39666 (struct grub_console_term.getcolor): New variable.
39667 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39668 (struct grub_console_term.getcolor): New variable.
39669
39670 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39671 (struct grub_console_term.setcolor): Remove variable.
39672 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39673 (struct grub_console_term.setcolor): Remove variable.
39674 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39675 (struct grub_console_term.setcolor): Remove variable.
39676 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39677 (struct grub_console_term.setcolor): Remove variable.
39678
39679 2007-12-25 Robert Millan <rmh@aybabtu.com>
39680
39681 * configure.ac: Search for possible unifont.hex locations, and
39682 define UNIFONT_HEX if found.
39683
39684 * Makefile.in (UNIFONT_HEX): Define variable.
39685 (DATA): Rename to ...
39686 (PKGLIB): ... this. Update all users.
39687 (PKGDATA): New variable.
39688 (pkgdata_IMAGES): Rename to ...
39689 (pkglib_IMAGES): ... this. Update all users.
39690 (pkgdata_MODULES): Rename to ...
39691 (pkglib_MODULES): ... this. Update all users.
39692 (pkgdata_PROGRAMS): Rename to ...
39693 (pkglib_PROGRAMS): ... this. Update all users.
39694 (pkgdata_DATA): Rename to ...
39695 (pkglib_DATA): ... this. Update all users.
39696 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39697 (unicode.pff, ascii.pff): New rules.
39698 (all-local): Add `$(PKGDATA)' dependency.
39699 (install-local): Process `$(PKGDATA)'.
39700
39701 * util/update-grub_lib.in (font_path): Search for *.pff files in
39702 a few more locations, including `${pkgdata}'.
39703
39704 2007-12-23 Robert Millan <rmh@aybabtu.com>
39705
39706 Patch from Bean <bean123ch@gmail.com>:
39707 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39708 `size'.
39709
39710 2007-12-21 Bean <bean123ch@gmail.com>
39711
39712 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39713 (ntfscomp_mod_SOURCES): New variable.
39714 (ntfscomp_mod_CFLAGS): Likewise.
39715 (ntfscomp_mod_LDFLAGS): Likewise.
39716
39717 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39718 (grub_probe_SOURCES): Likewise.
39719 (grub_emu_SOURCES): Likewise.
39720
39721 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39722 (grub_emu_SOURCES): Likewise.
39723
39724 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39725 (grub_emu_SOURCES): Likewise.
39726
39727 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39728 (grub_emu_SOURCES): Likewise.
39729
39730 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39731 (read_run_list): Renamed to grub_ntfs_read_run_list.
39732 (decomp_nextvcn): Moved to ntfscomp.c.
39733 (decomp_getch): Likewise.
39734 (decomp_get16): Likewise.
39735 (decomp_block): Likewise.
39736 (read_block): Likewise.
39737 (read_data): Partially moved to ntfscomp.c.
39738 (fixup): Change unsigned to grub_uint16_t.
39739 (read_mft): Change unsigned long to grub_uint32_t.
39740 (read_attr): Likewise.
39741 (read_data): Likewise.
39742 (read_run_data): Likewise.
39743 (read_run_list): Likewise.
39744 (read_mft): Likewise.
39745
39746 * fs/ntfscomp.c: New file.
39747
39748 * include/grub/ntfs.h: New file.
39749
39750 2007-12-16 Robert Millan <rmh@aybabtu.com>
39751
39752 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39753 IDE disk check, since Linux is known to support 20 IDE disks.
39754 Reported by Colin Watson.
39755
39756 2007-12-15 Bean <bean123ch@gmail.com>
39757
39758 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39759 (lnxboot_img_SOURCES): New variable.
39760 (lnxboot_img_ASFLAGS): Likewise.
39761 (lnxboot_img_LDFLAGS): Likewise.
39762
39763 * boot/i386/pc/lnxboot.S: New file.
39764
39765 2007-11-24 Pavel Roskin <proski@gnu.org>
39766
39767 * configure.ac: Test if '--build-id=none' is supported by the
39768 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39769 objcopy to generate incorrect binary files (binutils
39770 2.17.50.0.18-1 as shipped by Fedora 8).
39771 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39772 linking, so that build ID doesn't break the test.
39773
39774 2007-11-24 Pavel Roskin <proski@gnu.org>
39775
39776 * include/grub/i386/time.h: use "void" in the argument list
39777 of grub_cpu_idle().
39778 * include/grub/powerpc/time.h: Likewise.
39779 * include/grub/sparc64/time.h: Likewise.
39780
39781 2007-11-18 Christian Franke <franke@computer.org>
39782
39783 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39784 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39785 This fixes the problem that function keys did not work in grub-emu.
39786
39787 2007-11-18 Christian Franke <franke@computer.org>
39788
39789 * disk/host.c (grub_host_open): Remove attribute unused from
39790 name parameter. Add check for "host". This fixes the problem
39791 that grub-emu does not find partitions.
39792
39793 2007-11-18 Christian Franke <franke@computer.org>
39794
39795 * util/hostfs.c (is_dir): New function.
39796 (grub_hostfs_dir): Handle missing dirent.d_type case.
39797 (grub_hostfs_read): Add missing fseek().
39798 (grub_hostfs_label): Clear label pointer. This fixes a crash
39799 of grub-emu on "ls (host)".
39800
39801 2007-11-18 Christian Franke <franke@computer.org>
39802
39803 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39804 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39805 to 64 bit boundary by default.
39806
39807 2007-11-18 Bean <bean123ch@gmail.com>
39808
39809 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39810 (hexdump_mod_SOURCES): New variable.
39811 (hexdump_mod_CFLAGS): Likewise.
39812 (hexdump_mod_LDFLAGS): Likewise.
39813
39814 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39815
39816 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39817
39818 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39819
39820 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39821
39822 * include/grub/hexdump.h: New file.
39823
39824 * commands/hexdump.c: New file.
39825
39826 2007-11-10 Robert Millan <rmh@aybabtu.com>
39827
39828 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39829 in grub_outb() calls.
39830 (beep_on): Likewise.
39831
39832 2007-11-10 Christian Franke <franke@computer.org>
39833
39834 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39835 (grub_menu_run): Likewise.
39836
39837 2007-11-10 Robert Millan <rmh@aybabtu.com>
39838
39839 * include/grub/i386/efi/machine.h: New file.
39840 * include/grub/i386/linuxbios/machine.h: Likewise.
39841 * include/grub/i386/pc/machine.h: Likewise.
39842 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39843 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39844
39845 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39846 (serial_hw_io_addr): New variable.
39847 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39848 instead of `(unsigned short *) 0x400'.
39849
39850 2007-11-10 Bean <bean123ch@gmail.com>
39851
39852 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39853
39854 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39855
39856 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39857 (vga_mod_SOURCES): Added.
39858 (vga_mod_CFLAGS): Likewise.
39859 (vga_mod_LDFLAGS): Likewise.
39860
39861 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39862 grub_outb() calls.
39863 (set_map_mask): Likewise.
39864 (set_read_map): Likewise.
39865 (set_read_address): Likewise.
39866 (vga_font): Removed variable.
39867 (get_vga_glyph): Removed function.
39868 (invalidate_char): Likewise.
39869 (write_char): Changed to use grub_font_get_glyph() for font
39870 information.
39871 (grub_vga_putchar): Likewise.
39872 (grub_vga_getcharwidth): Likewise.
39873
39874 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39875
39876 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39877 flags.
39878 (pxeboot_img_LDFLAGS): Likewise.
39879 (diskboot_img_LDFLAGS): Likewise.
39880 (kernel_img_LDFLAGS): Likewise.
39881
39882 2007-11-06 Robert Millan <rmh@aybabtu.com>
39883
39884 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39885 in grub_outb() calls.
39886 (serial_hw_init): Likewise.
39887
39888 2007-11-05 Robert Millan <rmh@aybabtu.com>
39889
39890 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39891 spaces. Skip non-regular files.
39892
39893 2007-11-05 Robert Millan <rmh@aybabtu.com>
39894
39895 * kern/disk.c (grub_disk_firmware_fini)
39896 (grub_disk_firmware_is_tainted): New variables.
39897
39898 * include/grub/disk.h (grub_disk_firmware_fini)
39899 (grub_disk_firmware_is_tainted): Likewise.
39900
39901 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39902 (grub_disk_biosdisk_fini): ... to here.
39903 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39904 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39905 is set. Register grub_disk_biosdisk_fini() in
39906 `grub_disk_firmware_fini'.
39907
39908 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39909 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39910 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39911 to finish existing firmware disk interface.
39912
39913 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39914 (ata_mod_SOURCES): New variable.
39915 (ata_mod_CFLAGS): Likewise.
39916 (ata_mod_LDFLAGS): Likewise.
39917
39918 2007-11-05 Robert Millan <rmh@aybabtu.com>
39919
39920 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39921 (grub_ata_wait): Reimplement using grub_millisleep().
39922
39923 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39924 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39925
39926 2007-11-03 Marco Gerards <marco@gnu.org>
39927
39928 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39929 (CRTC_ADDR_PORT): New macro.
39930 (CRTC_DATA_PORT): Likewise.
39931 (CRTC_CURSOR): Likewise.
39932 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39933 (CRTC_CURSOR_ADDR_LOW): Likewise.
39934 (update_cursor): New function.
39935 (grub_console_real_putchar): Call `update_cursor'.
39936 (grub_console_gotoxy): Likewise.
39937 (grub_console_cls): Set the default color when clearing the
39938 screen.
39939 (grub_console_setcursor): Implemented.
39940
39941 2007-11-03 Marco Gerards <marco@gnu.org>
39942
39943 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39944 become activate.
39945 (grub_ata_pio_write): Likewise.
39946
39947 (grub_atapi_identify): Wait after issuing an ATA command.
39948 (grub_atapi_packet): Likewise.
39949 (grub_ata_identify): Likewise.
39950 (grub_ata_readwrite): Likewise.
39951
39952 2007-11-03 Marco Gerards <marco@gnu.org>
39953
39954 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39955 (grub_ata_pio_write): Likewise.
39956 (grub_ata_readwrite): Use `grub_error', instead of
39957 returning `grub_errno'.
39958
39959 2007-11-03 Marco Gerards <marco@gnu.org>
39960
39961 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39962 grub_ata_pio_write once for every single sector, instead of for
39963 multiple sectors.
39964
39965 2007-10-31 Robert Millan <rmh@aybabtu.com>
39966
39967 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39968
39969 * conf/i386-linuxbios.rmk: New file.
39970
39971 * kern/i386/pc/hardware.c: Likewise.
39972 * term/i386/pc/at_keyboard.c: Likewise.
39973 * term/i386/pc/vga_text.c: Likewise.
39974
39975 * include/grub/i386/linuxbios/boot.h: Likewise.
39976 * include/grub/i386/linuxbios/console.h: Likewise.
39977 * include/grub/i386/linuxbios/init.h: Likewise.
39978 * include/grub/i386/linuxbios/kernel.h: Likewise.
39979 * include/grub/i386/linuxbios/loader.h: Likewise.
39980 * include/grub/i386/linuxbios/memory.h: Likewise.
39981 * include/grub/i386/linuxbios/serial.h: Likewise.
39982 * include/grub/i386/linuxbios/time.h: Likewise.
39983
39984 * kern/i386/linuxbios/init.c: Likewise.
39985 * kern/i386/linuxbios/startup.S: Likewise.
39986 * kern/i386/linuxbios/table.c: Likewise.
39987
39988 2007-10-31 Marco Gerards <marco@gnu.org>
39989
39990 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39991 (ata_mod_SOURCES): New variable.
39992 (ata_mod_CFLAGS): Likewise.
39993 (ata_mod_LDFLAGS): Likewise.
39994
39995 * disk/ata.c: New file.
39996
39997 * include/grub/disk.h (grub_disk_dev_id): Add
39998 `GRUB_DISK_DEV_ATA_ID'.
39999
40000 2007-10-31 Robert Millan <rmh@aybabtu.com>
40001
40002 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40003 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40004
40005 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40006 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40007
40008 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40009 `<grub/types.h>'.
40010
40011 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40012
40013 2007-10-27 Robert Millan <rmh@aybabtu.com>
40014
40015 * include/grub/types.h (ULONG_MAX): Define macro.
40016
40017 2007-10-22 Robert Millan <rmh@aybabtu.com>
40018
40019 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40020 `"../realmode.S"'.
40021 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40022
40023 2007-10-22 Robert Millan <rmh@aybabtu.com>
40024
40025 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40026 (pkgdata_MODULES): Add `biosdisk.mod'.
40027 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40028 variables.
40029
40030 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40031 (grub_biosdisk_init): Replace with ...
40032 (GRUB_MOD_INIT(biosdisk)): ... this.
40033 (grub_biosdisk_fini): Replace with ...
40034 (GRUB_MOD_FINI(biosdisk)): ... this.
40035
40036 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40037 (grub_machine_init): Remove call to grub_biosdisk_init().
40038 (grub_machine_fini): Remove call to grub_machine_fini().
40039
40040 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40041
40042 2007-10-22 Robert Millan <rmh@aybabtu.com>
40043
40044 * include/grub/time.h: New file.
40045 * include/grub/i386/time.h: Likewise.
40046 * include/grub/powerpc/time.h: Likewise.
40047 * include/grub/sparc64/time.h: Likewise.
40048
40049 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40050 instances to ...
40051 (KERNEL_MACHINE_TIME_HEADER): ... this.
40052 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40053 instances to ...
40054 (KERNEL_MACHINE_TIME_HEADER): ... this.
40055 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40056 instances to ...
40057 (KERNEL_MACHINE_TIME_HEADER): ... this.
40058
40059 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40060 (grub_millisleep): New function.
40061 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40062 (grub_millisleep): New function.
40063 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40064 Remove `grub/machine/time.h' include.
40065 (grub_millisleep): New function.
40066 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40067 Remove `grub/machine/time.h' include.
40068 (grub_millisleep): New function.
40069
40070 * include/grub/misc.h (grub_div_roundup): New function.
40071
40072 * kern/misc.c: Include `<grub/time.h>'.
40073 (grub_millisleep_generic): New function.
40074
40075 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40076 Add `time.h'.
40077 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40078 Add `time.h'.
40079 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40080 `machine/time.h'. Add `time.h'.
40081 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40082
40083 2007-10-21 Robert Millan <rmh@aybabtu.com>
40084
40085 * include/grub/misc.h (grub_max): New function.
40086
40087 2007-10-21 Robert Millan <rmh@aybabtu.com>
40088
40089 * util/misc.c (grub_util_info): Call fflush() before returning.
40090
40091 2007-10-20 Robert Millan <rmh@aybabtu.com>
40092
40093 * genmk.rb (Image): Copy `extra_flags' from here ...
40094 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40095
40096 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40097 to `argc' and `args' arguments.
40098
40099 2007-10-17 Robert Millan <rmh@aybabtu.com>
40100
40101 * kern/i386/loader.S: New file.
40102
40103 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40104 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40105 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40106 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40107 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40108 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40109 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40110 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40111 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40112 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40113 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40114 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40115 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40116 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40117
40118 * kern/i386/realmode.S: New file.
40119
40120 * kern/i386/pc/startup.S (protstack): Moved from here ...
40121 * kern/i386/realmode.S (protstack)... to here.
40122 * kern/i386/pc/startup.S (gdt): Moved from here ...
40123 * kern/i386/realmode.S (gdt)... to here.
40124 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40125 * kern/i386/realmode.S (prot_to_real)... to here.
40126
40127 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40128 `kern/i386/realmode.S'.
40129
40130 2007-10-17 Robert Millan <rmh@aybabtu.com>
40131
40132 * include/grub/i386/loader.h: New file.
40133
40134 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40135 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40136 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40137 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40138 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40139 * include/grub/i386/loader.h (grub_linux_prot_size)
40140 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40141 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40142 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40143 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40144
40145 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40146
40147 2007-10-15 Robert Millan <rmh@aybabtu.com>
40148
40149 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40150 filesystem when dev->disk is unset.
40151 Do probe for filesystem even when dev->disk->has_partitions is set.
40152 In case a filesystem is found, always report it.
40153 In case it isn't, if dev->disk->has_partitions is set, report that
40154 a partition table was found instead of reporting that no filesystem
40155 could be identified.
40156
40157 2007-10-12 Robert Millan <rmh@aybabtu.com>
40158
40159 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40160 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40161
40162 * include/grub/types.h (grub_host_to_target16): New macro.
40163 (grub_host_to_target32): Likewise.
40164 (grub_host_to_target64): Likewise.
40165 (grub_target_to_host16): Likewise.
40166 (grub_target_to_host32): Likewise.
40167 (grub_target_to_host64): Likewise.
40168
40169 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40170 Renamed from to ...
40171 (GRUB_MOD_ALIGN): ...this. Update all users.
40172
40173 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40174 grub_host_to_target32.
40175 Replace grub_be_to_cpu32 with grub_target_to_host32.
40176 (load_modules): Likewise.
40177 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40178 Replace grub_be_to_cpu32 with grub_target_to_host32.
40179 Replace grub_cpu_to_be16 with grub_host_to_target16.
40180 Replace grub_cpu_to_be32 grub_host_to_target32.
40181
40182 2007-10-12 Robert Millan <rmh@aybabtu.com>
40183
40184 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40185 * util/elf/grub-mkimage.c: ... here.
40186
40187 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40188 `util/powerpc/ieee1275/grub-mkimage.c'.
40189
40190 2007-10-07 Robert Millan <rmh@aybabtu.com>
40191
40192 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40193 and make it easier to figure out.
40194 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40195 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40196 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40197 leave us with less than HEAP_MIN_SIZE total heap.
40198 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40199
40200 2007-10-03 Robert Millan <rmh@aybabtu.com>
40201
40202 * include/grub/i386/io.h: New file.
40203 * commands/i386/pc/play.c (inb): Removed.
40204 (outb): Removed.
40205 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40206 with grub_outb().
40207 * term/i386/pc/serial.c (inb): Removed.
40208 (outb): Removed.
40209 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40210 with grub_outb().
40211 * term/i386/pc/vga.c (inb): Removed.
40212 (outb): Removed.
40213 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40214 with grub_outb().
40215
40216 2007-10-02 Robert Millan <rmh@aybabtu.com>
40217
40218 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40220 Reported by Marcin Kurek.
40221
40222 2007-09-07 Robert Millan <rmh@aybabtu.com>
40223
40224 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40225 SmartFirmware version updates (as released by Sven Luther), and avoid
40226 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40227 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40228 known broken.
40229
40230 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40231
40232 From Hitoshi Ozeki:
40233 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40234 when merging two regions.
40235
40236 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40237
40238 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40239 * normal/completion.c (grub_normal_do_completion): Likewise.
40240 Reported by Hitoshi Ozeki.
40241
40242 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40243
40244 Do not use devices at boot in chainloading.
40245
40246 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40247 (boot_part_addr): Likewise.
40248 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40249 with BOOT_DRIVE and BOOT_PART_ADDR.
40250 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40251 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40252
40253 2007-08-29 Robert Millan <rmh@aybabtu.com>
40254
40255 Patch from Simon Peter <dn.tlp@gmx.net>:
40256 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40257 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40258 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40259 util/i386/pc/grub-setup.c_DEPENDENCIES.
40260 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40261 util/grub-probe.c_DEPENDENCIES.
40262 * conf/powerpc-ieee1275.rmk: Likewise.
40263
40264 2007-08-28 Robert Millan <rmh@aybabtu.com>
40265
40266 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40267 to tell grub-mkdevicemap how to name devices.
40268 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40269 feature).
40270
40271 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40272 util/i386/get_disk_name.c.
40273 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40274 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40275 util/ieee1275/get_disk_name.c.
40276
40277 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40278
40279 * DISTLIST: Add util/i386/get_disk_name.c and
40280 util/ieee1275/get_disk_name.c.
40281
40282 * util/grub-mkdevicemap.c: Replace device naming logic with
40283 grub_util_get_disk_name() calls.
40284
40285 2007-08-20 Robert Millan <rmh@aybabtu.com>
40286
40287 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40288 (so that it works for both plural and singular quantities).
40289
40290 2007-08-05 Robert Millan <rmh@aybabtu.com>
40291
40292 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40293 so that [xz] isn't taken into account when determining order.
40294
40295 2007-08-02 Marco Gerards <marco@gnu.org>
40296
40297 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40298 `include/multiboot2.h', `include/grub/elfload.h',
40299 `include/multiboot.h', `include/grub/multiboot.h',
40300 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40301 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40302 `kern/elf.c', `loader/multiboot_loader.c',
40303 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40304 `loader/i386/pc/multiboot2.c',
40305 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40306 `util/i386/pc/grub-mkrescue.in'. Remove
40307 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40308 `include/grub/i386/pc/util/biosdisk.h' and
40309 `include/grub/powerpc/ieee1275/multiboot.h'.
40310
40311 2007-08-02 Bean <bean123ch@gmail.com>
40312
40313 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40314 (ntfs_mod_SOURCES): New variable.
40315 (ntfs_mod_CFLAGS): Likewise.
40316 (ntfs_mod_LDFLAGS): Likewise.
40317
40318 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40319 (grub_probe_SOURCES): Likewise.
40320 (grub_emu_SOURCES): Likewise.
40321
40322 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40323 (grub_emu_SOURCES): Likewise.
40324
40325 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40326 (grub_emu_SOURCES): Likewise.
40327
40328 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40329
40330 * fs/ntfs.c: New file.
40331
40332 2007-08-02 Bean <bean123ch@gmail.com>
40333
40334 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40335
40336 * file.h (grub_file): Likewise.
40337
40338 * fshelp.h (grub_fshelp_read_file): Likewise.
40339
40340 * util/i386/pc/grub-setup.c (setup): Likewise.
40341 (save_first_sector): Likewise.
40342 (save_blocklists): Likewise.
40343
40344 * fs/affs.c (grub_affs_read_file): Likewise.
40345
40346 * fs/ext2.c (grub_ext2_read_file): Likewise.
40347
40348 * fs/fat.c (grub_fat_read_data): Likewise.
40349
40350 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40351
40352 * fs/hfs.c (grub_hfs_read_file): Likewise.
40353
40354 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40355
40356 * fs/jfs.c (grub_jfs_read_file): Likewise.
40357
40358 * fs/minix.c (grub_minix_read_file): Likewise.
40359
40360 * fs/sfs.c (grub_sfs_read_file): Likewise.
40361
40362 * fs/ufs.c (grub_ufs_read_file): Likewise.
40363
40364 * fs/xfs.c (grub_xfs_read_file): Likewise.
40365
40366 * command/blocklist.c (read_blocklist): Likewise.
40367 (print_blocklist): Likewise.
40368
40369 2007-08-02 Marco Gerards <marco@gnu.org>
40370
40371 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40372 `util/hostfs.c'.
40373
40374 * disk/host.c: New file.
40375
40376 * util/hostfs.c: Likewise.
40377
40378 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40379 return `GRUB_ERR_BAD_FS'.
40380 * fs/sfs.c (grub_sfs_mount): Likewise.
40381 * fs/xfs.c (grub_xfs_mount): Likewise.
40382
40383 * include/grub/disk.h (enum grub_disk_dev_id): Add
40384 `GRUB_DISK_DEVICE_HOST_ID'.
40385
40386 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40387
40388 2007-07-24 Jerone Young <jerone@gmail.com>
40389
40390 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40391 modules for compilation.
40392 * conf/powerpc-ieee1275.rmk: Likewise.
40393
40394 * include/multiboot.h: Move multiboot definitions to one file. Rename
40395 many definitions to not get grub specific.
40396 * include/multiboot2.h: Create header with multiboot 2 definitions.
40397 * include/grub/multiboot.h: Header for grub specific function
40398 prototypes and definitions.
40399 * include/grub/multiboot2.h: Likewise.
40400 * include/grub/multiboot_loader.h: Likewise.
40401 * include/grub/i386/pc/multiboot.h: Removed.
40402 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40403
40404 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40405 and 2 to allow for one multiboot and module commands.
40406 * loader/multiboot2.c: Add multiboot2 functionality.
40407 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40408 and definition names.
40409 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40410 2 functions.
40411 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40412 ieee1275 specific multiboot2 code.
40413
40414 * kern/i386/pc/startup.S: Change headers and definition names for
40415 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40416
40417 2007-07-22 Robert Millan <rmh@aybabtu.com>
40418
40419 * geninitheader.sh: Process file specified in first parameter rather
40420 than hardcoding grub_modules_init.lst.
40421 * geninit.sh: Likewise. Also, construct header name dynamically rather
40422 than hardcoding grub_modules_init.h.
40423
40424 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40425 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40426 grub_probe_init.[ch] and grub_setup_init.[ch].
40427
40428 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40429 grub_modules_init.h with grub_emu_init.h.
40430 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40431 grub_probe_init.[ch] files.
40432 * conf/i386-efi.rmk: Likewise.
40433 * conf/i386-pc.rmk: Likewise.
40434 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40435 grub_setup_init.[ch] files.
40436
40437 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40438 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40439 to initialize modules rather than a list of hardcoded functions.
40440 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40441 grub_init_all() to initialize modules rather than a list of hardcoded
40442 functions.
40443
40444 2007-07-22 Robert Millan <rmh@aybabtu.com>
40445
40446 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40447 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40448
40449 2007-07-22 Robert Millan <rmh@aybabtu.com>
40450
40451 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40452 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40453 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40454 flag when running on SmartFirmware.
40455 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40456 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40457 was set.
40458
40459 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40460 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40461 rather than decreasing it.
40462
40463 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40464 there's not enough space to do it, fail in the same way as when it
40465 can't be done because there are no partitions.
40466
40467 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40468 when nvsetenv failed.
40469
40470 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40471
40472 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40473 because this rule is automatically generated.
40474 (grub-mkrescue): Removed for the same reason as above.
40475
40476 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40477
40478 Migrate to GNU General Public License Version 3.
40479
40480 * COPYING: Replaced with the plain text version of GPLv3.
40481
40482 * config.guess: Updated from gnulib.
40483 * config.sub: Likewise.
40484
40485 * geninit.sh: Output a GPLv3 copyright notice.
40486 * geninitheader.sh: Likewise.
40487 * genmodsrc.sh: Likewise.
40488 * gensymlist.sh.in: Likewise.
40489
40490 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40491 * boot/i386/pc/diskboot.S: Likewise.
40492 * boot/i386/pc/pxeboot.S: Likewise.
40493 * commands/blocklist.c: Likewise.
40494 * commands/boot.c: Likewise.
40495 * commands/cat.c: Likewise.
40496 * commands/cmp.c: Likewise.
40497 * commands/configfile.c: Likewise.
40498 * commands/echo.c: Likewise.
40499 * commands/help.c: Likewise.
40500 * commands/ls.c: Likewise.
40501 * commands/search.c: Likewise.
40502 * commands/terminal.c: Likewise.
40503 * commands/test.c: Likewise.
40504 * commands/videotest.c: Likewise.
40505 * commands/i386/cpuid.c: Likewise.
40506 * commands/i386/pc/halt.c: Likewise.
40507 * commands/i386/pc/play.c: Likewise.
40508 * commands/i386/pc/reboot.c: Likewise.
40509 * commands/i386/pc/vbeinfo.c: Likewise.
40510 * commands/i386/pc/vbetest.c: Likewise.
40511 * commands/ieee1275/halt.c: Likewise.
40512 * commands/ieee1275/reboot.c: Likewise.
40513 * commands/ieee1275/suspend.c: Likewise.
40514 * disk/loopback.c: Likewise.
40515 * disk/lvm.c: Likewise.
40516 * disk/raid.c: Likewise.
40517 * disk/efi/efidisk.c: Likewise.
40518 * disk/i386/pc/biosdisk.c: Likewise.
40519 * disk/ieee1275/ofdisk.c: Likewise.
40520 * font/manager.c: Likewise.
40521 * fs/affs.c: Likewise.
40522 * fs/ext2.c: Likewise.
40523 * fs/fat.c: Likewise.
40524 * fs/fshelp.c: Likewise.
40525 * fs/hfs.c: Likewise.
40526 * fs/hfsplus.c: Likewise.
40527 * fs/iso9660.c: Likewise.
40528 * fs/jfs.c: Likewise.
40529 * fs/minix.c: Likewise.
40530 * fs/sfs.c: Likewise.
40531 * fs/ufs.c: Likewise.
40532 * fs/xfs.c: Likewise.
40533 * hello/hello.c: Likewise.
40534 * include/grub/acorn_filecore.h: Likewise.
40535 * include/grub/arg.h: Likewise.
40536 * include/grub/bitmap.h: Likewise.
40537 * include/grub/boot.h: Likewise.
40538 * include/grub/cache.h: Likewise.
40539 * include/grub/device.h: Likewise.
40540 * include/grub/disk.h: Likewise.
40541 * include/grub/dl.h: Likewise.
40542 * include/grub/elfload.h: Likewise.
40543 * include/grub/env.h: Likewise.
40544 * include/grub/err.h: Likewise.
40545 * include/grub/file.h: Likewise.
40546 * include/grub/font.h: Likewise.
40547 * include/grub/fs.h: Likewise.
40548 * include/grub/fshelp.h: Likewise.
40549 * include/grub/gzio.h: Likewise.
40550 * include/grub/hfs.h: Likewise.
40551 * include/grub/kernel.h: Likewise.
40552 * include/grub/loader.h: Likewise.
40553 * include/grub/lvm.h: Likewise.
40554 * include/grub/misc.h: Likewise.
40555 * include/grub/mm.h: Likewise.
40556 * include/grub/net.h: Likewise.
40557 * include/grub/normal.h: Likewise.
40558 * include/grub/parser.h: Likewise.
40559 * include/grub/partition.h: Likewise.
40560 * include/grub/pc_partition.h: Likewise.
40561 * include/grub/raid.h: Likewise.
40562 * include/grub/rescue.h: Likewise.
40563 * include/grub/script.h: Likewise.
40564 * include/grub/setjmp.h: Likewise.
40565 * include/grub/symbol.h: Likewise.
40566 * include/grub/term.h: Likewise.
40567 * include/grub/terminfo.h: Likewise.
40568 * include/grub/tparm.h: Likewise.
40569 * include/grub/types.h: Likewise.
40570 * include/grub/video.h: Likewise.
40571 * include/grub/efi/api.h: Likewise.
40572 * include/grub/efi/chainloader.h: Likewise.
40573 * include/grub/efi/console.h: Likewise.
40574 * include/grub/efi/console_control.h: Likewise.
40575 * include/grub/efi/disk.h: Likewise.
40576 * include/grub/efi/efi.h: Likewise.
40577 * include/grub/efi/pe32.h: Likewise.
40578 * include/grub/efi/time.h: Likewise.
40579 * include/grub/i386/linux.h: Likewise.
40580 * include/grub/i386/setjmp.h: Likewise.
40581 * include/grub/i386/types.h: Likewise.
40582 * include/grub/i386/efi/kernel.h: Likewise.
40583 * include/grub/i386/efi/loader.h: Likewise.
40584 * include/grub/i386/efi/time.h: Likewise.
40585 * include/grub/i386/pc/biosdisk.h: Likewise.
40586 * include/grub/i386/pc/boot.h: Likewise.
40587 * include/grub/i386/pc/chainloader.h: Likewise.
40588 * include/grub/i386/pc/console.h: Likewise.
40589 * include/grub/i386/pc/init.h: Likewise.
40590 * include/grub/i386/pc/kernel.h: Likewise.
40591 * include/grub/i386/pc/loader.h: Likewise.
40592 * include/grub/i386/pc/memory.h: Likewise.
40593 * include/grub/i386/pc/multiboot.h: Likewise.
40594 * include/grub/i386/pc/serial.h: Likewise.
40595 * include/grub/i386/pc/time.h: Likewise.
40596 * include/grub/i386/pc/vbe.h: Likewise.
40597 * include/grub/i386/pc/vbeblit.h: Likewise.
40598 * include/grub/i386/pc/vbefill.h: Likewise.
40599 * include/grub/i386/pc/vbeutil.h: Likewise.
40600 * include/grub/i386/pc/vga.h: Likewise.
40601 * include/grub/ieee1275/ieee1275.h: Likewise.
40602 * include/grub/ieee1275/ofdisk.h: Likewise.
40603 * include/grub/powerpc/libgcc.h: Likewise.
40604 * include/grub/powerpc/setjmp.h: Likewise.
40605 * include/grub/powerpc/types.h: Likewise.
40606 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40607 * include/grub/powerpc/ieee1275/console.h: Likewise.
40608 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40609 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40610 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40611 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40612 * include/grub/powerpc/ieee1275/time.h: Likewise.
40613 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40614 * include/grub/sparc64/libgcc.h: Likewise.
40615 * include/grub/sparc64/setjmp.h: Likewise.
40616 * include/grub/sparc64/types.h: Likewise.
40617 * include/grub/sparc64/ieee1275/console.h: Likewise.
40618 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40619 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40620 * include/grub/sparc64/ieee1275/time.h: Likewise.
40621 * include/grub/util/biosdisk.h: Likewise.
40622 * include/grub/util/getroot.h: Likewise.
40623 * include/grub/util/lvm.h: Likewise.
40624 * include/grub/util/misc.h: Likewise.
40625 * include/grub/util/raid.h: Likewise.
40626 * include/grub/util/resolve.h: Likewise.
40627 * io/gzio.c: Likewise.
40628 * kern/device.c: Likewise.
40629 * kern/disk.c: Likewise.
40630 * kern/dl.c: Likewise.
40631 * kern/elf.c: Likewise.
40632 * kern/env.c: Likewise.
40633 * kern/err.c: Likewise.
40634 * kern/file.c: Likewise.
40635 * kern/fs.c: Likewise.
40636 * kern/loader.c: Likewise.
40637 * kern/main.c: Likewise.
40638 * kern/misc.c: Likewise.
40639 * kern/mm.c: Likewise.
40640 * kern/parser.c: Likewise.
40641 * kern/partition.c: Likewise.
40642 * kern/rescue.c: Likewise.
40643 * kern/term.c: Likewise.
40644 * kern/efi/efi.c: Likewise.
40645 * kern/efi/init.c: Likewise.
40646 * kern/efi/mm.c: Likewise.
40647 * kern/i386/dl.c: Likewise.
40648 * kern/i386/efi/init.c: Likewise.
40649 * kern/i386/efi/startup.S: Likewise.
40650 * kern/i386/pc/init.c: Likewise.
40651 * kern/i386/pc/lzo1x.S: Likewise.
40652 * kern/i386/pc/startup.S: Likewise.
40653 * kern/ieee1275/ieee1275.c: Likewise.
40654 * kern/powerpc/cache.S: Likewise.
40655 * kern/powerpc/dl.c: Likewise.
40656 * kern/powerpc/ieee1275/cmain.c: Likewise.
40657 * kern/powerpc/ieee1275/crt0.S: Likewise.
40658 * kern/powerpc/ieee1275/init.c: Likewise.
40659 * kern/powerpc/ieee1275/openfw.c: Likewise.
40660 * kern/sparc64/cache.S: Likewise.
40661 * kern/sparc64/dl.c: Likewise.
40662 * kern/sparc64/ieee1275/init.c: Likewise.
40663 * kern/sparc64/ieee1275/openfw.c: Likewise.
40664 * loader/efi/chainloader.c: Likewise.
40665 * loader/efi/chainloader_normal.c: Likewise.
40666 * loader/i386/efi/linux.c: Likewise.
40667 * loader/i386/efi/linux_normal.c: Likewise.
40668 * loader/i386/pc/chainloader.c: Likewise.
40669 * loader/i386/pc/chainloader_normal.c: Likewise.
40670 * loader/i386/pc/linux.c: Likewise.
40671 * loader/i386/pc/linux_normal.c: Likewise.
40672 * loader/i386/pc/multiboot.c: Likewise.
40673 * loader/i386/pc/multiboot_normal.c: Likewise.
40674 * loader/powerpc/ieee1275/linux.c: Likewise.
40675 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40676 * normal/arg.c: Likewise.
40677 * normal/cmdline.c: Likewise.
40678 * normal/command.c: Likewise.
40679 * normal/completion.c: Likewise.
40680 * normal/execute.c: Likewise.
40681 * normal/function.c: Likewise.
40682 * normal/lexer.c: Likewise.
40683 * normal/main.c: Likewise.
40684 * normal/menu.c: Likewise.
40685 * normal/menu_entry.c: Likewise.
40686 * normal/misc.c: Likewise.
40687 * normal/parser.y: Likewise.
40688 * normal/script.c: Likewise.
40689 * normal/i386/setjmp.S: Likewise.
40690 * normal/powerpc/setjmp.S: Likewise.
40691 * normal/sparc64/setjmp.S: Likewise.
40692 * partmap/acorn.c: Likewise.
40693 * partmap/amiga.c: Likewise.
40694 * partmap/apple.c: Likewise.
40695 * partmap/gpt.c: Likewise.
40696 * partmap/pc.c: Likewise.
40697 * partmap/sun.c: Likewise.
40698 * term/gfxterm.c: Likewise.
40699 * term/terminfo.c: Likewise.
40700 * term/efi/console.c: Likewise.
40701 * term/i386/pc/console.c: Likewise.
40702 * term/i386/pc/serial.c: Likewise.
40703 * term/i386/pc/vesafb.c: Likewise.
40704 * term/i386/pc/vga.c: Likewise.
40705 * term/ieee1275/ofconsole.c: Likewise.
40706 * util/biosdisk.c: Likewise.
40707 * util/console.c: Likewise.
40708 * util/genmoddep.c: Likewise.
40709 * util/getroot.c: Likewise.
40710 * util/grub-emu.c: Likewise.
40711 * util/grub-mkdevicemap.c: Likewise.
40712 * util/grub-probe.c: Likewise.
40713 * util/lvm.c: Likewise.
40714 * util/misc.c: Likewise.
40715 * util/raid.c: Likewise.
40716 * util/resolve.c: Likewise.
40717 * util/update-grub.in: Likewise.
40718 * util/update-grub_lib.in: Likewise.
40719 * util/grub.d/00_header.in: Likewise.
40720 * util/grub.d/10_hurd.in: Likewise.
40721 * util/grub.d/10_linux.in: Likewise.
40722 * util/i386/efi/grub-install.in: Likewise.
40723 * util/i386/efi/grub-mkimage.c: Likewise.
40724 * util/i386/pc/grub-install.in: Likewise.
40725 * util/i386/pc/grub-mkimage.c: Likewise.
40726 * util/i386/pc/grub-mkrescue.in: Likewise.
40727 * util/i386/pc/grub-setup.c: Likewise.
40728 * util/i386/pc/misc.c: Likewise.
40729 * util/powerpc/ieee1275/grub-install.in: Likewise.
40730 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40731 * util/powerpc/ieee1275/misc.c: Likewise.
40732 * video/bitmap.c: Likewise.
40733 * video/video.c: Likewise.
40734 * video/i386/pc/vbe.c: Likewise.
40735 * video/i386/pc/vbeblit.c: Likewise.
40736 * video/i386/pc/vbefill.c: Likewise.
40737 * video/i386/pc/vbeutil.c: Likewise.
40738 * video/readers/tga.c: Likewise.
40739
40740 2007-07-02 Robert Millan <rmh@aybabtu.com>
40741
40742 * conf/i386-efi.rmk: Replace obsolete reference to
40743 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40744 with util/getroot.c.
40745 * conf/powerpc-ieee1275.rmk: Likewise.
40746 * conf/sparc64-ieee1275.rmk: Likewise.
40747
40748 * util/grub-emu.c (main): Fix unchecked pointer handling.
40749
40750 2007-07-02 Robert Millan <rmh@aybabtu.com>
40751
40752 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40753 invocation to fail, in order to support partition-less media.
40754
40755 * util/i386/pc/grub-install.in: Likewise.
40756
40757 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40758 which fs or partmap modules are needed (akin to its sister scripts).
40759
40760 Also use grub-probe to get rid of unportable /proc/mounts check.
40761
40762 Print the same informational message that the other scripts do, before
40763 exiting.
40764
40765 2007-06-23 Robert Millan <rmh@aybabtu.com>
40766
40767 * util/update-grub_lib.in (font_path): New function. Determine whether
40768 a font file can be found and, if so, echo the GRUB path to it.
40769
40770 * util/update-grub.in: Handle multiple terminals depending on user
40771 input, platform availability and font file presence. Propagate
40772 variables of our findings to /etc/grub.d/ children.
40773
40774 * util/grub.d/00_header.in: Handle multiple terminals, based on
40775 environment setup by update-grub.
40776
40777 2007-06-23 Robert Millan <rmh@aybabtu.com>
40778
40779 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
40780
40781 2007-06-21 Robert Millan <rmh@aybabtu.com>
40782
40783 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40784 indicate end of data section in kernel image.
40785 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40786 GRUB_KERNEL_MACHINE_DATA_END.
40787
40788 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40789 space for it.
40790 * kern/i386/efi/startup.S: Likewise.
40791
40792 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40793 during image generation. Implement --prefix option to override this
40794 patch.
40795 * util/i386/efi/grub-mkimage.c: Likewise.
40796
40797 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40798 code to make path relative to its root into a separate function.
40799
40800 * util/i386/pc/grub-install.in: Use newly provided
40801 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40802 pass the result to grub-install --prefix.
40803
40804 2007-06-13 Robert Millan <rmh@aybabtu.com>
40805
40806 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40807 DEFAULT_DEVICE_MAP.
40808 * util/grub-emu.c: Use above definitions from misc.h instead of
40809 defining them.
40810 * util/grub-mkdevicemap.c: Likewise.
40811 * util/i386/pc/grub-setup.c: Likewise.
40812 * util/grub-probe.c: Likewise.
40813 (probe): Abort with grub_util_error() when either
40814 grub_guess_root_device or grub_util_get_grub_dev fails.
40815
40816 2007-06-12 Robert Millan <rmh@aybabtu.com>
40817
40818 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40819 "pager" assignment.
40820 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40821 "pcdata".
40822 * util/grub-probe.c (probe): Likewise for "drive_name".
40823
40824 2007-06-11 Robert Millan <rmh@aybabtu.com>
40825
40826 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40827 not just the cdrom one.
40828
40829 2007-06-11 Robert Millan <rmh@aybabtu.com>
40830
40831 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40832 Add --pkglibdir=DIR option to override pkglibdir.
40833 Mention --image-type=TYPE in help output.
40834 Fix --grub-mkimage (it was a no-op).
40835 Abort gracefully when no parameter is given.
40836
40837 2007-06-11 Robert Millan <rmh@aybabtu.com>
40838
40839 * util/i386/pc/grub-mkrescue.in: New file.
40840 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40841 * Makefile.in: Handle bin_SCRIPTS.
40842
40843 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40844
40845 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40846 list of video modes.
40847
40848 2007-06-06 Robert Millan <rmh@aybabtu.com>
40849
40850 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40851 file doesn't exist, or if it is in a filesystem grub can't read.
40852
40853 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40854 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40855 header comment to fit in 80 columns when the variables are resolved.
40856
40857 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40858 could be identified by update-grub. Remove redundant check for
40859 unifont.pff existence (since convert_system_path_to_grub_path now
40860 handles that).
40861
40862 2007-06-04 Robert Millan <rmh@aybabtu.com>
40863
40864 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40865
40866 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40867
40868 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40869
40870 2007-06-04 Robert Millan <rmh@aybabtu.com>
40871
40872 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40873
40874 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40875 grub_apple_partition_map_fini.
40876
40877 * util/biosdisk.c
40878 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40879 to access >2 TiB disks).
40880
40881 Print disk->total_sectors with %llu instead of %lu, since this
40882 variable is always 64-bit (prevents wrong disk size from being displayed
40883 on either >2 TiB disk or big-endian CPU).
40884
40885 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40886 into a generic case that supports all (sane) partition maps.
40887
40888 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40889 breaks big-endian.
40890
40891 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40892 and grub_apple_partition_map_fini() after that.
40893
40894 2007-06-01 Robert Millan <rmh@aybabtu.com>
40895
40896 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40897
40898 * util/grub.d/00_header.in: Only enable gfxterm when
40899 convert_system_path_to_grub_path() succeeds.
40900
40901 2007-05-20 Robert Millan <rmh@aybabtu.com>
40902
40903 * util/update-grub_lib.in: New file.
40904 * DISTLIST: Add update-grub_lib.in.
40905 * conf/common.rmk: Generate update-grub_lib and install it in
40906 $(lib_DATA).
40907 * Makefile.in: Add install routine for $(lib_DATA).
40908
40909 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40910 function provided by update-grub_lib to support arbitrary paths of
40911 unifont.pff.
40912 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40913 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40914
40915 2007-05-19 Robert Millan <rmh@aybabtu.com>
40916
40917 * commands/i386/cpuid.c: New module.
40918 * DISTLIST: Add it.
40919 * conf/i386-efi.rmk: Enable cpuid.mod.
40920 * conf/i386-pc.rmk: Likewise.
40921
40922 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40923
40924 * kern/disk.c (grub_disk_read): Check return value of
40925 grub_realloc().
40926
40927 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40928
40929 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40930 arrays.
40931 * disk/raid.c (grub_raid_open): Likewise.
40932
40933 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40934
40935 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40936 stack instead of on the heap.
40937
40938 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40939 before doing a read on it.
40940
40941 * configure.ac: Only use -fno-stack-protector for the target
40942 environment.
40943
40944 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40945
40946 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40947 __attribute_ ((unused)) to mode_type argument.
40948
40949 * util/getroot.c (grub_guess_root_device): Fix #endif.
40950
40951 * kern/misc.c (memcmp): Fix prototype.
40952
40953 * include/grub/partition.h [GRUB_UTIL]
40954 (grub_gpt_partition_map_init): Add prototype.
40955 (grub_gpt_partition_map_fini): Likewise.
40956
40957 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40958 at the right place.
40959
40960 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40961 (grub_fat_read_data): Likewise.
40962 (grub_fat_find_dir): Likewise.
40963
40964 * font/manager.c (find_glyph): Make table a const.
40965 (grub_font_get_glyph): Remove bitmap from if statement.
40966
40967 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40968
40969 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40970 code, first search for device in /dev/mapper, then in /dev.
40971 (grub_util_get_grub_dev): New function.
40972 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40973 prototype.
40974 * util/grub-probe.c (probe): Remove check for RAID, call
40975 grub_util_get_grub_dev() instead of
40976 grub_util_biosdisk_get_grub_dev().
40977 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40978 grub_util_biosdisk_get_grub_dev().
40979 * util/i386/pc/grub-setup.c (main): Likewise.
40980
40981 2007-05-16 Robert Millan <rmh@aybabtu.com>
40982
40983 * DISTLIST: Update for the latest changes.
40984 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40985 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40986 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40987 grub/util/biosdisk.h.
40988 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40989 grub/util/biosdisk.h.
40990
40991 2007-05-16 Robert Millan <rmh@aybabtu.com>
40992
40993 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40994
40995 2007-05-16 Robert Millan <rmh@aybabtu.com>
40996
40997 * util/i386/efi/grub-install.in: New.
40998 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40999 newly added grub-install.
41000 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41001 include.
41002 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41003 grub/util/biosdisk.h.
41004 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41005 grub/util/biosdisk.h.
41006
41007 2007-05-16 Robert Millan <rmh@aybabtu.com>
41008
41009 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41010 * include/grub/util/biosdisk.h: ... here.
41011 * util/i386/pc/biosdisk.c: Moved to ...
41012 * util/biosdisk.c: ... here.
41013 * util/i386/pc/getroot.c: Moved to ...
41014 * util/getroot.c: ... here.
41015 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41016 * util/grub-mkdevicemap.c: ... here.
41017 * util/i386/pc/grub-probe.c: Moved to ...
41018 * util/grub-probe.c: ... here.
41019
41020 2007-05-15 Robert Millan <rmh@aybabtu.com>
41021
41022 * util/update-grub.in: Remove duplicated line in grub.cfg header
41023 message.
41024
41025 2007-05-13 Robert Millan <rmh@aybabtu.com>
41026
41027 * util/update-grub.in: Fix a few assumptions about the devices holding
41028 /, /boot and /boot/grub being the same.
41029 * util/grub.d/00_header.in: Likewise.
41030 * util/grub.d/10_hurd.in: Likewise.
41031 * util/grub.d/10_linux.in: Likewise.
41032
41033 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41034 patterns. Use that to define the `.old' suffix as older than `'.
41035
41036 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41037
41038 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41039 the grub.cfg header message.
41040
41041 2007-05-11 Robert Millan <rmh@aybabtu.com>
41042
41043 * util/update-grub.in: Create device.map if it doesn't already exist,
41044 before attempting to run grub-probe.
41045 Check for grub-probe and grub-mkdevicemap with the same code
41046 grub-install is using.
41047 Remove test mode.
41048
41049 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41050
41051 * Makefile.in: Add the datarootdir autoconf variable.
41052
41053 2007-05-09 Robert Millan <rmh@aybabtu.com>
41054
41055 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41056 fail gracefully if dev->disk->partition == NULL.
41057
41058 2007-05-07 Robert Millan <rmh@aybabtu.com>
41059
41060 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41061 determine partition map module.
41062 * util/i386/pc/grub-install.in: Use this feature to decide which
41063 partition module to load, instead of hardcoding pc and gpt.
41064
41065 2007-05-07 Robert Millan <rmh@aybabtu.com>
41066
41067 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41068 source directory differs from build directory.
41069
41070 2007-05-05 Robert Millan <rmh@aybabtu.com>
41071
41072 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41073 initialisation.
41074
41075 2007-05-05 Robert Millan <rmh@aybabtu.com>
41076
41077 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41078
41079 2007-05-05 Robert Millan <rmh@aybabtu.com>
41080
41081 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41082 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41083
41084 2007-05-05 Robert Millan <rmh@aybabtu.com>
41085
41086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41087 (grub_probe_SOURCES): Likewise.
41088 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41089 GPT and initialize dos_part and bsd_part accordingly.
41090 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41091 install_bsd_part.
41092 (main): Activate gpt module for use during partition identification,
41093 and deactivate it afterwards.
41094 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41095 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41096 partition identification, and deactivate it afterwards.
41097
41098 2007-05-05 Robert Millan <rmh@aybabtu.com>
41099
41100 * term/i386/pc/console.c (grub_console_fini): Call
41101 grub_term_set_current() before grub_term_unregister().
41102
41103 2007-05-04 Robert Millan <rmh@aybabtu.com>
41104
41105 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41106 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41107 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41108 and update-grub_DATA.
41109 * conf/common.rmk: Build and install update-grub components.
41110 * conf/common.mk: Regenerate.
41111 * util/update-grub.in: New. Core of update-grub.
41112 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41113 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41114 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41115 * util/grub.d/README: New. Document grub.d directory layout.
41116
41117 2007-05-01 Robert Millan <rmh@aybabtu.com>
41118
41119 * util/grub-emu.c: Move initialization functions
41120 grub_util_biosdisk_init() and grub_init_all() before
41121 grub_util_biosdisk_get_grub_dev(), which relies on them.
41122
41123 2007-04-19 Robert Millan <rmh@aybabtu.com>
41124
41125 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41126 it is used later.
41127
41128 2007-04-18 Jerone Young <jerone@gmail.com>
41129
41130 * kernel/elf.c: Add missing parenthesis for conditional statement
41131 stanza.
41132
41133 2007-04-10 Jerone Young <jerone@gmail.com>
41134
41135 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41136 continue on and look for device node with real device name.
41137
41138 2007-04-10 Jerone Young <jerone@gmail.com>
41139
41140 * configure.ac: Add argument for autoconf to use transformation
41141 ability.
41142 * Makefile.in: Add autoconf package transformation code.
41143 * util/i386/pc/grub-install.in: Likewise.
41144 * util/powerpc/ieee1275/grub-install.in: Likewise.
41145
41146 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41147
41148 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41149 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41150 (EXT2_REVISION): Likewise.
41151 (EXT2_INODE_SIZE): Likewise.
41152 (struct grub_ext2_block_group): Added a missing member
41153 "used_dirs".
41154 (grub_ext2_read_inode): Divide by the inode size in a superblock
41155 instead of 128 to obtain INODES_PER_BLOCK.
41156 Use the macro EXT2_INODE_SIZE instead of directly using
41157 SBLOCK->INODE_SIZE.
41158
41159 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41160
41161 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41162 superblock instead of the structure size to compute an
41163 offset. This fixes the problem that GRUB could not read a
41164 filesystem when inode size is different from 128-byte.
41165
41166 2007-03-05 Marco Gerards <marco@gnu.org>
41167
41168 * normal/main.c (read_config_file): When "menu" is not set, create
41169 an initial context.
41170
41171 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41172
41173 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41174 (HEAP_LIMIT): New macro.
41175 (grub_claim_heap): Claim memory up to `heaplimit'.
41176
41177 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41178
41179 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41180 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41181 (_start): Likewise.
41182 (grub_arch_modules_addr): Return address after `_end'.
41183 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41184 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41185 (add_segments): Calculate `_end' from phdr size and location.
41186 (ALIGN_UP): Moved to ...
41187 * include/grub/misc.h: here.
41188 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41189 New macro.
41190 (GRUB_IEEE1275_MODULE_BASE): Removed.
41191
41192 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41193
41194 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41195 loop boundary.
41196
41197 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41198
41199 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41200 All users updated.
41201 (grub_elf64_load_hook_t): Likewise.
41202 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41203 debug output.
41204
41205 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41206
41207 * kern/mm.c: Update copyright.
41208 (grub_mm_debug): Correct syntax error.
41209 (grub_mm_dump_free): New function.
41210 (grub_debug_free): Call `grub_free'.
41211 * include/grub/mm.h: Update copyright.
41212 (grub_mm_dump_free): Add declaration.
41213
41214 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41215
41216 * include/grub/ieee1275/ieee1275.h: Update copyright.
41217 * kern/powerpc/ieee1275/init.c: Likewise.
41218 * kern/powerpc/ieee1275/openfw.c: Likewise.
41219
41220 * loader/powerpc/ieee1275/linux.c: Likewise.
41221 * include/grub/elfload.h: Likewise.
41222 * kern/elf.c: Likewise.
41223 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41224 callers.
41225 (grub_elf64_load): Likewise.
41226 (grub_elf32_load_segment): Move to a nested function.
41227 (grub_elf64_load_segment): Likewise.
41228
41229 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41230
41231 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41232 prototype.
41233 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41234 (grub_heap_len): Likewise.
41235 (HEAP_SIZE): New macro.
41236 (grub_claim_heap): New function.
41237 (grub_machine_init): Don't claim heap directly. Call
41238 `grub_claim_heap'.
41239 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41240 (grub_available_iterate): New function.
41241
41242 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41243
41244 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41245 * configure.ac: Use it for testing the HOST and TARGET compilers.
41246
41247 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41248
41249 * Makefile.in (enable_grub_emu): New variable.
41250 * configure.ac (--enable-grub-emu): New option.
41251 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41252 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41253 * conf/i386-pc.rmk: Likewise.
41254 * conf/powerpc-ieee1275.rmk: Likewise.
41255 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41256
41257 2006-12-12 Marco Gerards <marco@gnu.org>
41258
41259 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41260
41261 * kern/env.c (grub_env_unset): Don't free the member `value' when
41262 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41263 pointer.
41264
41265 * normal/main.c (current_menu): Removed.
41266 (free_menu): Unset the `menu' environment variable.
41267 (grub_normal_menu_addentry): Make use of the environment variable
41268 `menu', instead of using the global `current_menu'. Allocate
41269 memory for the sourcecode of this entry.
41270 (read_config_file): New argument `nested', changed all callers.
41271 Only in the case of a new context, initialize a new menu. Set the
41272 `menu' environment variable.
41273 (grub_normal_execute): Don't set and unset the environment
41274 variable `menu' here anymore. Only free the menu when leaving the
41275 context.
41276
41277 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41278 leak.
41279
41280 2006-12-11 Marco Gerards <marco@gnu.org>
41281
41282 * normal/menu_entry.c (run): Fix off by one bug so the last line
41283 is executed. Move the loader check to outside the loop.
41284
41285 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41286
41287 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41288
41289 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41290
41291 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41292 the number of sectors. Reported by Andrey Shuvikov
41293 <mr_hyro@yahoo.com>.
41294
41295 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41296
41297 * kern/disk.c (grub_disk_read): When there is a read error, always
41298 try to read only the necessary data.
41299
41300 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41301 disk/raid.c.
41302 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41303 prototype.
41304 [GRUB_UTIL] (grub_raid_fini): Likewise.
41305 [GRUB_UTIL] (grub_lvm_init): Likewise.
41306 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41307 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41308 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41309 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41310 and grub_raid_fini().
41311
41312 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41313
41314 * include/grub/types.h (__unused): Rename to UNUSED.
41315 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41316 (grub_elf64_size): Likewise.
41317
41318 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41319
41320 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41321 grub_error_push and grub_error_pop in the error-handling path.
41322 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41323 length.
41324
41325 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41326
41327 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41328 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41330 (kernel_elf_SOURCES): Likewise.
41331 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41332 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41333 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41334 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41335 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41336 (elf_mod_SOURCES): New variable.
41337 (elf_mod_CFLAGS): Likewise.
41338 (elf_mod_LDFLAGS): Likewise.
41339 * include/grub/types.h (__unused): New macro.
41340 * include/grub/elfload.h: New file.
41341 * kern/elf.c: Likewise.
41342 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41343 (ELF32_LOADMASK): New macro.
41344 (ELF64_LOADMASK): Likewise.
41345 (vmlinux): Removed.
41346 (grub_linux_load32): New function.
41347 (grub_linux_load64): Likewise.
41348 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41349 Use grub_elf_t instead of grub_file_t.
41350
41351 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41352
41353 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41354 `catch_result' to struct set_color_args.
41355
41356 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41357
41358 * normal/menu.c: Include grub/script.h.
41359 * normal/menu_entry.c: Likewise.
41360 * include/grub/normal.h: Do not include grub/script.h.
41361
41362 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41363
41364 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41365
41366 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41367
41368 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41369 disk.
41370 (grub_disk_close): Print debug messages when closing a disk.
41371 (grub_disk_read): Print debug messages when disk read fails.
41372 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41373 filesystem type.
41374 * kern/partition.c: Include misc.h.
41375 (grub_partition_iterate): Print debug messages when detecting
41376 partition type.
41377
41378 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41379
41380 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41381 is negative.
41382 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41383
41384 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41385
41386 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41387 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41388
41389 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41390
41391 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41392 instead of sizeof(lv). Patch by Michael Guntsche.
41393
41394 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41395
41396 * disk/lvm.c: Rename VGS to VG_LIST.
41397 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41398 (grub_lvm_open): Likewise.
41399 Thanks to Michael Guntsche for finding this bug.
41400
41401 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41402
41403 * configure.ac (AC_INIT): Bumped to 1.95.
41404
41405 2006-10-14 Robert Millan <rmh@aybabtu.com>
41406
41407 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41408 with "/dev/.static/dev/md".
41409
41410 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41411
41412 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41413 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41414 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41415 DRIVE_NAME are always freed.
41416
41417 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41418 DOS_PART, as a DOS partition is counted from one instead of zero
41419 now. Reported by Robert Millan.
41420
41421 2006-10-14 Robert Millan <rmh@aybabtu.com>
41422
41423 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41424 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41425 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41426 string returned by grub_guess_root_device.
41427 * util/i386/pc/grub-setup.c: Likewise.
41428 * util/i386/pc/grub-probefs.c: Likewise.
41429
41430 * util/i386/pc/grub-probefs.c: Rename to ...
41431 * util/i386/pc/grub-probe.c: ... this.
41432 * DISTLIST: Remove grub-probefs, add grub-probe.
41433 * conf/i386-efi.rmk: Likewise.
41434 * conf/i386-pc.rmk: Likewise.
41435 * util/i386/pc/grub-install.in: Likewise.
41436
41437 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41438 choose which information we want to print.
41439
41440 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41441
41442 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41443 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41444 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41445 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41446 video/readers/tga.c and video/i386/pc/vbeutil.c.
41447
41448 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41449
41450 Added support for RAID and LVM.
41451
41452 * disk/lvm.c: New file.
41453 * disk/raid.c: Likewise.
41454 * include/grub/lvm.h: Likewise.
41455 * include/grub/raid.h: Likewise.
41456 * include/grub/util/lvm.h: Likewise.
41457 * include/grub/util/raid.h: Likewise.
41458 * util/lvm.c: Likewise.
41459 * util/raid.c: Likewise.
41460
41461 * include/grub/disk.h (grub_disk_dev_id): Add
41462 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41463 (grub_disk_get_size): New prototype.
41464 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41465 returns a partition.
41466 (grub_disk_get_size): New function.
41467
41468 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41469 verbatim if grub_install_dos_part is -2.
41470
41471 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41472 and LVM devices.
41473
41474 * util/i386/pc/grub-setup.c (setup): New argument
41475 MUST_EMBED. Force embedding of GRUB when the argument is
41476 true. Close FILE before returning.
41477 (main): Add support for RAID and LVM.
41478
41479 * conf/common.rmk: Add RAID and LVM modules.
41480 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41481 util/lvm.c.
41482 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41483
41484 * kern/misc.c (grub_strstr): New function.
41485 * include/grub/misc.h (grub_strstr): New prototype.
41486
41487 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41488
41489 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41490
41491 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41492
41493 * kern/misc.c (grub_strtoull): Guess the base only if not
41494 specified.
41495
41496 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41497
41498 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41499 PowerMac support.
41500
41501 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41502
41503 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41504
41505 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41506 Remove `flags' argument. All callers changed.
41507 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41508 (IEEE1275_IHANDLE_INVALID): New variable.
41509 (IEEE1275_CELL_INVALID): New variable.
41510 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41511 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41512 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41513 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41514 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41515 codes from Open Firmware. All callers updated.
41516 (grub_ieee1275_next_property): Directly return Open Firmware return
41517 code.
41518 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41519 Standardize error checking from `grub_ieee1275_get_property'.
41520 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41521 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41522
41523 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41524
41525 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41526 `instance_to_package_args' to `instance_to_path_args'.
41527
41528 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41529 `grub_ieee1275_chosen'.
41530
41531 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41532 `grub_ieee1275_interpret'.
41533
41534 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41535
41536 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41537
41538 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41539
41540 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41541 (__cmpdi): Likewise.
41542
41543 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41544 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41545 `grub_ssize_t'.
41546
41547 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41548
41549 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41550 to type `grub_ssize_t'.
41551 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41552
41553 2006-09-22 Marco Gerards <marco@gnu.org>
41554
41555 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41556 newlines.
41557
41558 2006-09-22 Marco Gerards <marco@gnu.org>
41559
41560 * commands/echo.c: New file.
41561
41562 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41563
41564 * conf/common.rmk (echo_mod_SOURCES): New variable.
41565 (echo_mod_CFLAGS): Likewise.
41566 (echo_mod_LDFLAGS): Likewise.
41567
41568 2006-09-22 Marco Gerards <marco@gnu.org>
41569
41570 * normal/main.c (get_line): Malloc memory instead of using
41571 preallocated memory. Removed the arguments `cmdline' and
41572 `max_len'. Updated all callers.
41573
41574 2006-09-22 Marco Gerards <marco@gnu.org>
41575
41576 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41577 (normal_mod_DEPENDENCIES): Likewise.
41578
41579 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41580 (normal_mod_DEPENDENCIES): Likewise.
41581
41582 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41583
41584 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41585
41586 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41587 programs.
41588 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41589 (normal_mod_DEPENDENCIES): Likewise.
41590 * conf/i386-pc.mk: Regenerate.
41591 * conf/i386-efi.mk: Likewise
41592 * conf/common.mk: Likewise.
41593 * conf/powerpc-ieee1275.mk: Likewise.
41594 * conf/sparc64-ieee1275.mk: Likewise.
41595
41596 2006-09-22 Robert Millan <rmh@aybabtu.com>
41597
41598 Sync with i386 version.
41599 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41600 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41601
41602 2006-09-21 Robert Millan <rmh@aybabtu.com>
41603
41604 Import from GRUB Legacy (lib/device.c):
41605 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41606 (init_device_map) [__linux__]: Add support for I2O devices.
41607
41608 2006-09-14 Marco Gerards <marco@gnu.org>
41609
41610 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41611 `-melf_i386'.
41612
41613 2006-09-14 Robert Millan <rmh@aybabtu.com>
41614
41615 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41616 /boot/grub/*.lst.
41617
41618 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41619
41620 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41621 before adding it to device.map.
41622
41623 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41624
41625 * genmk.rb: Let GCC generate dependencies the first time it
41626 compiles a file; using the -MD option.
41627 * conf/common.mk: Regenerate.
41628 * conf/i386-pc.mk: Likewise.
41629 * conf/i386-efi.mk: Likewise.
41630 * conf/powerpc-ieee1275.mk: Likewise.
41631 * conf/sparc64-ieee1275.mk: Likewise.
41632
41633 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41634
41635 Move the prototypes of grub_setjmp and grub_longjmp to
41636 cpu/setjmp.h, so that each architecture may specify different
41637 attributes.
41638
41639 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41640 (grub_longjmp): Likewise.
41641 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41642 (grub_longjmp): Likewise.
41643 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41644 (grub_longjmp): Likewise.
41645
41646 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41647 [!GRUB_UTIL] (grub_longjmp): Removed.
41648
41649 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41650
41651 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41652 "color!" method does not return any value.
41653
41654 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41655
41656 * include/grub/bitmap.h: New file.
41657
41658 * include/grub/i386/pc/vbeutil.h: Likewise.
41659
41660 * video/bitmap.c: Likewise.
41661
41662 * video/readers/tga.c: Likewise.
41663
41664 * video/i386/pc/vbeutil.c: Likewise.
41665
41666 * commands/videotest.c: Code cleanup and updated to reflect to new
41667 video API.
41668
41669 * term/gfxterm.c: Likewise.
41670
41671 * video/video.c: Likewise.
41672
41673 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41674 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41675 (bitmap_mod_SOURCES): New entry.
41676 (bitmap_mod_CFLAGS): Likewise.
41677 (bitmap_mod_LDFLAGS): Likewise.
41678 (tga_mod_SOURCES): Likewise.
41679 (tga_mod_CFLAGS): Likewise.
41680 (tga_mod_LDFLAGS): Likewise.
41681
41682 * include/grub/video.h (grub_video_blit_operators): New enum type.
41683 (grub_video_render_target): Changed as forward declaration and moved
41684 actual definition to be video driver specific.
41685 (grub_video_adapter.blit_bitmap): Added blitting operator.
41686 (grub_video_adapter.blit_render_target): Likewise.
41687 (grub_video_blit_bitmap): Likewise.
41688 (grub_video_blit_render_target): Likewise.
41689
41690 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41691 driver specific render target definition.
41692 (grub_video_vbe_map_rgba): Added driver internal helper.
41693 (grub_video_vbe_unmap_color): Updated to use
41694 grub_video_i386_vbeblit_info.
41695 (grub_video_vbe_get_video_ptr): Likewise.
41696
41697 * include/grub/i386/pc/vbeblit.h
41698 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41699 grub_video_i386_vbeblit_info.
41700 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41701 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41702 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41703 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41704 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41705 (grub_video_i386_vbeblit_index_index): Likewise.
41706 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41707 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41708 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41709 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41710 operator.
41711 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41712 operator.
41713
41714 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41715 include/grub/i386/pc/vbeblit.h.
41716
41717 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41718 Updated to use grub_video_i386_vbeblit_info.
41719 (grub_video_i386_vbefill_R8G8B8): Likewise.
41720 (grub_video_i386_vbefill_index): Likewise.
41721 (grub_video_i386_vbefill): Added generic filler.
41722
41723 * video/i386/pc/vbefill.c: Updated to reflect changes on
41724 include/grub/i386/pc/vbefill.h.
41725
41726 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41727 grub_video_i386_vbeblit_info.
41728 (grub_video_vbe_unmap_color): Likewise.
41729 (grub_video_vbe_blit_glyph): Likewise.
41730 (grub_video_vbe_scroll): Likewise.
41731 (grub_video_vbe_draw_pixel): Removed function.
41732 (grub_video_vbe_get_pixel): Likewise.
41733 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41734 updated code to use it.
41735 (common_blitter): Added common blitter for render target and bitmap.
41736 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41737 (grub_video_vbe_blit_render_target): Likewise.
41738
41739 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41740
41741 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41742 is in text mode if there is no console control protocol instance
41743 available.
41744
41745 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41746
41747 * include/grub/video.h: Code cleanup.
41748
41749 * include/grub/i386/pc/vbe.h: Likewise.
41750
41751 * video/i386/pc/vbe.c: Likewise.
41752
41753 * video/i386/pc/vbeblit.c: Likewise.
41754
41755 * video/i386/pc/vbefill.c: Likewise.
41756
41757 * video/video.c: Likewise. Also added more comments.
41758
41759 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41760
41761 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41762 (struct grub_biosdisk_dap): Likewise.
41763
41764 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41765 linkage settings for all functions.
41766
41767 2006-07-12 Marco Gerards <marco@gnu.org>
41768
41769 * configure.ac (--enable-mm-debug): Fix typo.
41770
41771 * genkernsyms.sh.in: Use proper quoting for `CC'.
41772
41773 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41774
41775 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41776 (normal_mod_ASFLAGS): Remove "-m32".
41777
41778 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41779
41780 * util/misc.c: Include config.h.
41781 [!HAVE_MEMALIGN]: Do not include malloc.h.
41782 (grub_memalign): Use posix_memalign, if present. Then, use
41783 memalign, if present. Otherwise, emit an error.
41784
41785 * util/grub-emu.c: Do not include malloc.h.
41786
41787 * include/grub/util/misc.h: Include unistd.h. This is required for
41788 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41789 D. Eades III <hde@foobar-qux.org>.
41790
41791 * configure.ac (AC_GNU_SOURCE): Added.
41792 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41793 type.
41794
41795 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41796
41797 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41798 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41799
41800 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41801
41802 * include/grub/types.h (grub_host_addr_t): Rename to
41803 grub_target_addr_t.
41804 (grub_host_off_t): Rename to grub_target_off_t.
41805 (grub_host_size_t): Rename to grub_target_size_t.
41806 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41807 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41808
41809 * include/grub/kernel.h (struct grub_module_header): Change type
41810 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41811 (grub_module_info): Likewise.
41812
41813 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41814
41815 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41816 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41817 Velazquez <jesus.velazquez@gmail.com>.
41818
41819 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41820
41821 Count partitions from 1 instead of 0 in the string representation
41822 of partitions. Still use 0-based internally.
41823
41824 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41825 (sun_partition_map_iterate): Use grub_partition_t instead of
41826 struct grub_partition *. Cast DESC->START_CYLINDER to
41827 grub_uint64_t after converting the endian.
41828 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41829 (sun_partition_map_get_name): Add 1 to P->INDEX.
41830
41831 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41832 PCDATA->DOS_PART.
41833 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41834
41835 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41836 zero instead of one.
41837 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41838 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41839
41840 * partmap/apple.c (apple_partition_map_iterate): Change the type
41841 of POS to unsigned.
41842 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41843 (apple_partition_map_get_name): Add 1 into P->INDEX.
41844
41845 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41846 of POS to unsigned.
41847 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41848 calculate the offset of a partition.
41849 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41850 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41851
41852 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41853 SECTOR to grub_disk_addr_t.
41854 (acorn_partition_map_iterate): Likewise.
41855 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41856 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41857 top.
41858 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41859
41860 * kern/i386/pc/init.c (make_install_device): Add 1 into
41861 GRUB_INSTALL_DOS_PART.
41862
41863 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41864 conditional.
41865
41866 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41867
41868 Clean up the code to support 64-bit addressing in disks and
41869 files. This change is not enough for filesystems yet.
41870
41871 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41872 type of "start" to grub_uint64_t.
41873 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41874 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41875 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41876 convert addresses.
41877
41878 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41879 to grub_disk_addr_t.
41880
41881 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41882 string.
41883
41884 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41885
41886 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41887 to char *.
41888
41889 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41890
41891 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41892
41893 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41894
41895 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41896 to grub_off_t, to detect an error from grub_file_seek.
41897 (grub_multiboot_load_elf32): Likewise.
41898
41899 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41900 maximum unsigned long value when an overflow is detected.
41901 (grub_strtoull): New function.
41902 (grub_divmod64): Likewise.
41903 (grub_lltoa): use grub_divmod64.
41904
41905 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41906 grub_disk_addr_t.
41907 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41908 the pointer to next character. Use grub_strtoull instead of
41909 grub_strtoul.
41910 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41911 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41912 respectively.
41913
41914 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
41915 return value is signed.
41916 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41917 test if OFFSET is less than zero, as OFFSET is unsigned now.
41918
41919 * kern/disk.c (struct grub_disk_cache): Change the type of
41920 "sector" to grub_disk_addr_t.
41921 (grub_disk_cache_get_index): Change the type of SECTOR to
41922 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41923 unsigned after shifting.
41924 (grub_disk_cache_invalidate): Change the type of SECTOR to
41925 grub_disk_addr_t.
41926 (grub_disk_cache_unlock): Likewise.
41927 (grub_disk_cache_store): Likewise.
41928 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41929 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41930 grub_disk_addr_t and grub_uint64_t, respectively.
41931 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41932 body, as the value of OFFSET is tweaked by
41933 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41934 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41935 respectively.
41936 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41937 body, as the value of OFFSET is tweaked by
41938 grub_disk_check_range. Change the types of LEN and N to
41939 grub_size_t.
41940
41941 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41942 and "saved_offset" to grub_off_t.
41943 (test_header): Cast BUF to char *.
41944 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41945 to char *.
41946 (grub_gzio_read): Change the types of OFFSET and SIZE to
41947 grub_off_t and grub_size_t, respectively.
41948
41949 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41950 Removed.
41951 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41952 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41953 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41954 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41955 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41956
41957 * include/grub/types.h (grub_off_t): Unconditionally set to
41958 grub_uint64_t.
41959 (grub_disk_addr_t): Changed to grub_uint64_t.
41960
41961 * include/grub/partition.h (struct grub_partition): Change the
41962 types of "start", "len" and "offset" to grub_disk_addr_t,
41963 grub_uint64_t and grub_disk_addr_t, respectively.
41964 (grub_partition_get_start): Return grub_disk_addr_t.
41965 (grub_partition_get_len): Return grub_uint64_t.
41966
41967 * include/grub/misc.h (grub_strtoull): New prototype.
41968 (grub_divmod64): Likewise.
41969
41970 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41971 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41972 grub_off_t, respectively.
41973 All callers and references changed.
41974
41975 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41976 grub_size_t in "read".
41977 All callers and references changed.
41978
41979 * include/grub/file.h (struct grub_file): Change the types of
41980 "offset" and "size" to grub_off_t and grub_off_t,
41981 respectively. Change the type of SECTOR to grub_disk_addr_t in
41982 "read_hook".
41983 (grub_file_read): Change the type of LEN to grub_size_t.
41984 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41985 grub_off_t.
41986 (grub_file_size): Return grub_off_t.
41987 (grub_file_tell): Likewise.
41988 All callers and references changed.
41989
41990 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41991 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41992 "write".
41993 (struct grub_disk): Change the type of "total_sectors" to
41994 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
41995 "read_hook".
41996 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41997 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41998 (grub_disk_write): Likewise.
41999 All callers and references changed.
42000
42001 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42002 char * for grub_strncmp to silence gcc.
42003 (grub_iso9660_mount): Likewise.
42004 (grub_iso9660_mount): Likewise.
42005 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42006 return statement.
42007 (grub_iso9660_iterate_dir): Likewise.
42008 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42009
42010 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42011 LEN to grub_disk_addr_t and grub_size_t, respectively.
42012
42013 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42014
42015 * fs/jfs.c (grub_jfs_read_file): Likewise.
42016
42017 * fs/minix.c (grub_jfs_read_file): Likewise.
42018
42019 * fs/sfs.c (grub_jfs_read_file): Likewise.
42020
42021 * fs/ufs.c (grub_jfs_read_file): Likewise.
42022
42023 * fs/xfs.c (grub_jfs_read_file): Likewise.
42024
42025 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42026 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42027 respectively.
42028
42029 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42030 BLKNR to -1 instead of returning GRUB_ERRNO.
42031 (grub_ext2_read_file): Change the types of SECTOR and
42032 LEN to grub_disk_addr_t and grub_size_t, respectively.
42033
42034 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42035 LEN to grub_disk_addr_t and grub_size_t, respectively.
42036
42037 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42038 grub_file_read.
42039
42040 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42041 string. Do not cast SECTOR explicitly.
42042
42043 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42044 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42045 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42046 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42047 over 2TB and LBA mode is not supported, raise an error.
42048 (get_safe_sectors): New function.
42049 (grub_biosdisk_read): Use get_safe_sectors.
42050 (grub_biosdisk_write): Likewise.
42051
42052 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42053 (grub_efidisk_write): Likewise.
42054
42055 * disk/loopback.c (delete_loopback): Cosmetic changes.
42056 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42057 correctly.
42058 (grub_loopback_open): Likewise.
42059 (grub_loopback_read): Likewise. Also, change the type of POS to
42060 grub_off_t, and fix the usage of grub_memset.
42061
42062 * commands/i386/pc/play.c: Include grub/machine/time.h.
42063
42064 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42065 print FILE->SIZE.
42066
42067 * commands/configfile.c: Include grub/env.h.
42068
42069 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42070 GRUB_ERRNO directly instead. Change the type of POS to
42071 grub_off_t. Follow the coding standard.
42072
42073 * commands/blocklist.c: Include grub/partition.h.
42074 (grub_cmd_blocklist): Return an error if the underlying device is
42075 not a disk. Take the starting sector of a partition into account,
42076 if a partition is used.
42077
42078 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42079 a length field.
42080 (lba_mode): Support 64-bit addresses.
42081 (chs_mode): Likewise.
42082 (copy_buffer): Adapted to the new offsets of a length field and a
42083 segment field.
42084 (blocklist_default_start): Allocate 64-bit space.
42085
42086 * boot/i386/pc/boot.S (force_lba): Removed.
42087 (boot_drive): Moved to under KERNEL_SECTOR.
42088 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42089 space.
42090 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42091 is useless.
42092 (lba_mode): Refactored to support a 64-bit address. More size
42093 optimization.
42094 (setup_sectors): Likewise.
42095
42096 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42097
42098 * DISTLIST: Added include/grub/i386/linux.h. Removed
42099 include/grub/i386/pc/linux.h
42100
42101 * configure.ac (AC_INIT): Bumped to 1.94.
42102
42103 * config.guess: Updated from gnulib.
42104 * config.sub: Likewise.
42105 * install-sh: Likewise.
42106 * mkinstalldirs: Likewise.
42107
42108 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42109
42110 * conf/common.rmk (grub_modules_init.lst): Depended on
42111 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42112 MODSRCFILES.
42113
42114 * genmk.rb (PModule::rule): Reverted the previous change.
42115
42116 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42117
42118 * conf/common.rmk (grub_modules_init.lst): Depends on
42119 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42120 that the target does not exist before producing.
42121 (grub_modules_init.h): Remove the target before generating.
42122 (grub_emu_init.c): Likewise.
42123
42124 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42125
42126 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42127
42128 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42129 for the target-specific tests. Make sure that we also have the
42130 up-to-date target variables for those tests.
42131
42132 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42133
42134 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42135 (PModule::rule): Likewise.
42136
42137 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42138
42139 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42140 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42141 target-specific flags should be prefixed.
42142 (PModule::rule): Likewise.
42143
42144 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42145
42146 * configure.ac (CMP): Check if cmp is available explicitly.
42147
42148 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42149
42150 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42151 (target_cpu): New variable.
42152 (pkglibdir): Use target_cpu instead of host_cpu.
42153
42154 * util/i386/pc/grub-install.in (host_cpu): Removed.
42155 (target_cpu): New variable.
42156 (pkglibdir): Use target_cpu instead of host_cpu.
42157
42158 * util/genmoddep.c: Removed.
42159
42160 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42161 instead of GRUB_HOST_SIZEOF_VOID_P.
42162 * kern/dl.c: Likewise.
42163
42164 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42165 ...
42166 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42167 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42168 (GRUB_TARGET_SIZEOF_LONG): ... this.
42169 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42170 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42171 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42172 to ...
42173 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42174 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42175 (GRUB_TARGET_SIZEOF_LONG): ... this.
42176 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42177 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42178 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42179 to ...
42180 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42181 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42182 (GRUB_TARGET_SIZEOF_LONG): ... this.
42183 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42184 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42185
42186 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42187 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42188 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42189 instead of GRUB_HOST_SIZEOF_LONG.
42190 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42191 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42192 GRUB_CPU_WORDS_BIGENDIAN.
42193 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42194 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42195 grub_host_ssize_t.
42196
42197 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42198 (genmoddep_SOURCES): Likewise.
42199 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42200 (genmoddep_SOURCES): Likewise.
42201 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42202 (genmoddep_SOURCES): Likewise.
42203 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42204 Likewise.
42205 (genmoddep_SOURCES): Likewise.
42206
42207 * genmoddep.awk: New file.
42208
42209 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42210 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42211 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42212 (PModule::rule): Likewise.
42213 (Program::rule): Likewise.
42214 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42215 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42216 respectively.
42217
42218 * configure.ac: Rewritten intensively to use host and target
42219 instead of build and host, respectively.
42220
42221 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42222 (host_cpu): Removed.
42223 (target_cpu): New variable.
42224 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42225 (BUILD_CC): Removed.
42226 (BUILD_CFLAGS): Likewise.
42227 (BUILD_CPPFLAGS): Likewise.
42228 (TARGET_CC): New variable.
42229 (TARGET_CFLAGS): Likewise.
42230 (TARGET_CPPFLAGS): Likewise.
42231 (TARGET_LDFLAGS): Likewise.
42232 (AWK): Likewise.
42233 (include): Use target_cpu instead of host_cpu.
42234 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42235
42236 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42237
42238 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42239
42240 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42241 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42242 field 'false' to 'exec_on_false'.
42243 (grub_script_create_cmdif): Renamed argument names to reflect above
42244 changes.
42245
42246 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42247
42248 * normal/script.c (grub_script_create_cmdif): Likewise.
42249
42250 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42251
42252 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42253 top.
42254 (grub_hfsplus_btree_recptr): Likewise.
42255 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42256 FILEBLOCK both to pass a block number and store next block
42257 number.
42258 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42259 overflow file correctly. Specify errors appropriately, because
42260 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42261 grub_hfsplus_btree_recptr to get the pointer to a found key.
42262 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42263 is found.
42264
42265 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42266 linux.mod.
42267 (_linux_mod_SOURCES): New variable.
42268 (_linux_mod_CFLAGS): Likewise.
42269 (_linux_mod_LDFLAGS): Likewise.
42270 (linux_mod_SOURCES): Likewise.
42271 (linux_mod_CFLAGS): Likewise.
42272 (linux_mod_LDFLAGS): Likewise.
42273
42274 * DISTLIST: Added loader/i386/efi/linux.c,
42275 loader/i386/efi/linux_normal.c and
42276 include/grub/i386/efi/loader.h.
42277
42278 * loader/i386/efi/linux.c: New file.
42279 * loader/i386/efi/linux_normal.c: Likewise.
42280 * include/grub/i386/efi/loader.h: Likewise.
42281
42282 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42283
42284 * commands/blocklist.c: New file.
42285
42286 * DISTLIST: Added commands/blocklist.c.
42287
42288 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42289 color for the background, and a darker color for the foreground.
42290 (grub_console_checkkey): Return READ_KEY.
42291 (grub_console_cls): Set the background to
42292 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42293
42294 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42295
42296 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42297 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42298
42299 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42300 prototype.
42301
42302 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42303 BG. The spec is wrong again.
42304
42305 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42306 prototype.
42307 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42308
42309 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42310 commands/blocklist.c.
42311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42312
42313 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42314 (blocklist_mod_SOURCES): New variable.
42315 (blocklist_mod_CFLAGS): Likewise.
42316 (blocklist_mod_LDFLAGS): Likewise.
42317
42318 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42319
42320 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42321 duplication.
42322 (lba_mode): Use %eax more intensively to reduce the code size.
42323
42324 2006-05-20 Marco Gerards <marco@gnu.org>
42325
42326 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42327
42328 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42329 for `menuentry'.
42330 (script): Accept leading newlines.
42331 (newlines): New rule to describe 0 or more newlines.
42332 (commands): Accept `command' with trailing newline. Fixed the
42333 order in which arguments were passed to `grub_script_add_cmd'.
42334 Accept commands separated by newlines.
42335 (function): Changed to accept newlines.
42336 (menuentry) Rewritten.
42337
42338 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42339 front of the list, instead of to the end.
42340
42341 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42342
42343 * util/i386/pc/grub-install.in (bindir): New variable.
42344 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42345 Shaver <lbgwjl@gmail.com>.
42346
42347 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42348
42349 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42350 grub/machine/linux.h
42351 * loader/i386/pc/linux.c: Likewise.
42352
42353 * include/grub/i386/pc/linux.h: Moved to ...
42354 * include/grub/i386/linux.h: ... here.
42355
42356 * include/grub/i386/linux.h (struct linux_kernel_params): New
42357 struct.
42358
42359 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42360
42361 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42362 checking.
42363 (grub_video_vbe_blit_glyph): Likewise.
42364 (grub_video_vbe_blit_bitmap): Likewise.
42365 (grub_video_vbe_blit_render_target): Likewise.
42366
42367 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42368
42369 * configure.ac (--with-platform): Properly quote the square
42370 brackets.
42371
42372 2006-05-08 Marco Gerards <marco@gnu.org>
42373
42374 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42375 this...
42376 (kernel_elf_HEADERS): ...to this. Updated all users.
42377 (grubof_symlist.c): Renamed from this...
42378 (kernel_elf_symlist.c): ...to this. Updated all users.
42379 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42380 (grubof_SOURCES): Renamed from this...
42381 (kernel_elf_SOURCES): ...to this.
42382 (grubof_HEADERS): Renamed from this...
42383 (kernel_elf_HEADERS): ...to this.
42384 (grubof_CFLAGS): Renamed from this...
42385 (kernel_elf_CFLAGS): ...to this.
42386 (grubof_ASFLAGS): Renamed from this...
42387 (kernel_elf_ASFLAGS): ...to this.
42388 (grubof_LDFLAGS): Renamed from this...
42389 (kernel_elf_LDFLAGS): ...to this.
42390
42391 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42392 this...
42393 (kernel_elf_HEADERS): ...to this. Updated all users.
42394 (grubof_symlist.c): Renamed from this...
42395 (kernel_elf_symlist.c): ...to this. Updated all users.
42396 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42397 (grubof_SOURCES): Renamed from this...
42398 (kernel_elf_SOURCES): ...to this.
42399 (grubof_HEADERS): Renamed from this...
42400 (kernel_elf_HEADERS): ...to this.
42401 (grubof_CFLAGS): Renamed from this...
42402 (kernel_elf_CFLAGS): ...to this.
42403 (grubof_ASFLAGS): Renamed from this...
42404 (kernel_elf_ASFLAGS): ...to this.
42405 (grubof_LDFLAGS): Renamed from this...
42406 (kernel_elf_LDFLAGS): ...to this.
42407
42408 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42409 `kernel.elf' instead of `grubof'.
42410
42411 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42412
42413 Add --with-platform to configure. Use pkglibdir instead of
42414 pkgdatadir. This is reported by Roger Leigh.
42415
42416 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42417 (host_vendor): Likewise.
42418 (host_os): Likewise.
42419 (pkgdatadir): Likewise.
42420 (platform): New variable.
42421 (pkglibdir): Likewise.
42422 Use PKGLIBDIR instead of PKGDATADIR.
42423
42424 * util/i386/pc/grub-install.in (datadir): Removed.
42425 (host_vendor): Likewise.
42426 (host_os): Likewise.
42427 (pkgdatadir): Likewise.
42428 (platform): New variable.
42429 (pkglibdir): Likewise.
42430 Use PKGLIBDIR instead of PKGDATADIR.
42431
42432 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42433 instead of GRUB_DATADIR.
42434 (main): Likewise.
42435 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42436 (main): Likewise.
42437 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42438 (main): Likewise.
42439
42440 * configure.ac (--with-platform): New option.
42441 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42442
42443 * Makefile.in: Include a makefile based on PLATFORM instead of
42444 HOST_VENDOR.
42445 (pkgdatadir): Not appended by the machine type.
42446 (pkglibdir): Appended by the machine type.
42447 (host_vendor): Removed.
42448 (platform): New variable.
42449 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42450 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42451 (uninstall): Likewise.
42452
42453 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42454
42455 Use the environment context in the menu. Remove the commands
42456 "default" and "timeout", and use variables instead.
42457
42458 * normal/menu.c: Include grub/env.h.
42459 (print_entry): Cast TITLE to silence gcc.
42460 (get_timeout): New function.
42461 (set_timeout): Likewise.
42462 (get_entry_number): Likewise.
42463 (run_menu): Use a default entry, a fallback entry and a timeout
42464 in the environment variables "default", "fallback" and
42465 "timeout". Also, tweak the default entry if it is not within the
42466 current menu entries.
42467 (grub_menu_run): Use a fallback entry in the environment variable
42468 "fallback".
42469
42470 * normal/main.c (read_config_file): Do not initialize
42471 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42472 NEWMENU->TIMEOUT.
42473 (grub_normal_execute): Use a data slot to store the menu.
42474
42475 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42476 fallback_entry and timeout.
42477 (struct grub_menu_list): Removed.
42478 (grub_menu_list_t): Likewise.
42479 (struct grub_context): Likewise.
42480 (grub_context_t): Likewise.
42481 (grub_context_get): Likewise.
42482 (grub_context_get_current_menu): Likewise.
42483 (grub_context_push_menu): Likewise.
42484 (grub_context_pop_menu): Likewise.
42485 (grub_default_init): Likewise.
42486 (grub_default_fini): Likewise.
42487 (grub_timeout_init): Likewise.
42488 (grub_timeout_fini): Likewise.
42489
42490 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42491 and timeout.mod.
42492 (normal_mod_SOURCES): Removed normal/context.c.
42493
42494 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42495 commands/default.c, commands/timeout.c and normal/context.c.
42496 (normal_mod_SOURCES): Removed normal/context.c.
42497
42498 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42499 commands/timeout.c and normal/context.c.
42500 (normal_mod_SOURCES): Removed normal/context.c.
42501
42502 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42503 commands/default.c, commands/timeout.c and normal/context.c.
42504 (normal_mod_SOURCES): Removed normal/context.c.
42505
42506 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42507 timeout.mod.
42508 (default_mod_SOURCES): Removed.
42509 (default_mod_CFLAGS): Likewise.
42510 (default_mod_LDFLAGS): Likewise.
42511 (timeout_mod_SOURCES): Removed.
42512 (timeout_mod_CFLAGS): Likewise.
42513 (timeout_mod_LDFLAGS): Likewise.
42514
42515 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42516 normal/context.c.
42517
42518 * commands/default.c: Removed.
42519 * commands/timeout.c: Likewise.
42520 * normal/context.c: Likewise.
42521
42522 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42523
42524 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42525
42526 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42527
42528 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42529 "next" to "prev" for readability.
42530 (struct grub_env_sorted_var): New struct.
42531 (grub_env_context): Renamed to ...
42532 (initial_context): ... this.
42533 (grub_env_var_context): Renamed to ...
42534 (current_context): ... this.
42535 (grub_env_find): Look only at CURRENT_CONTEXT.
42536 (grub_env_context_open): Rewritten to copy exported variables from
42537 previous context.
42538 (grub_env_context_close): Rewritten according to the new
42539 scheme. Also, add an assertion to prevent the initial context from
42540 removed.
42541 (grub_env_insert): Removed the code for the sorted list.
42542 (grub_env_remove): Likewise.
42543 (grub_env_export): Simply mark the variable with
42544 GRUB_ENV_VAR_GLOBAL.
42545 (grub_env_set): A cosmetic change for naming consistency.
42546 (grub_env_get): Likewise.
42547 (grub_env_unset): Likewise.
42548 (grub_env_iterate): Rewritten to sort variables within this
42549 function.
42550 (grub_register_variable_hook): Fixed for naming consistency. Call
42551 grub_env_find again, only if NAME is not found at the first time.
42552 (mangle_data_slot_name): New function.
42553 (grub_env_set_data_slot): Likewise.
42554 (grub_env_get_data_slot): Likewise.
42555 (grub_env_unset_data_slot): Likewise.
42556
42557 * include/grub/env.h (grub_env_var_type): New enum.
42558 (GRUB_ENV_VAR_LOCAL): New constant.
42559 (GRUB_ENV_VAR_GLOBAL): Likewise.
42560 (GRUB_ENV_VAR_DATA): Likewise.
42561 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42562 "type".
42563 (grub_env_set): Replace VAR with NAME for consistency.
42564 (grub_register_variable_hook): Likewise.
42565 (grub_env_export): Specify the name of the argument.
42566 (grub_env_set_data_slot): New prototype.
42567 (grub_env_get_data_slot): Likewise.
42568 (grub_env_unset_data_slot): Likewise.
42569
42570 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42571
42572 Extend the loader so that GRUB can accept a loader which comes
42573 back to GRUB when a loaded image exits. Also, this change adds
42574 support for a chainloader on EFI.
42575
42576 * term/efi/console.c: Include grub/misc.h.
42577 (grub_console_checkkey): Display a scan code on the top for
42578 debugging. This will be removed once the EFI port gets stable.
42579 Correct the scan code mapping.
42580
42581 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42582 allocate memory from larger regions, in order to reduce the number
42583 of allocated regions. Otherwise, the MacOSX loader panics.
42584 (filter_memory_map): Avoid less than 1MB for compatibility with
42585 other loaders.
42586 (add_memory_regions): Allocate from the tail of a region, if
42587 possible, to avoid allocating a region near to 1MB, for the MacOSX
42588 loader.
42589
42590 * kern/efi/init.c (grub_efi_set_prefix): Specify
42591 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42592
42593 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42594 argument IMAGE_HANDLE and specify it to get a loaded image.
42595 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42596 grub_efi_get_loaded_image.
42597 (grub_efi_get_filename): Divide the length by the size of
42598 grub_efi_char16_t.
42599 (grub_efi_get_device_path): New function.
42600 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42601 the length by the size of grub_efi_char16_t for a file path device
42602 path node.
42603
42604 * kern/loader.c (grub_loader_noreturn): New variable.
42605 (grub_loader_set): Accept a new argument NORETURN. Set
42606 GRUB_LOADER_NORETURN to NORETURN.
42607 All callers changed.
42608 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42609 grub_machine_fini.
42610
42611 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42612 prototype.
42613 (grub_efi_get_loaded_image): Take an argument to specify an image
42614 handle.
42615
42616 * include/grub/loader.h (grub_loader_set): Added one more argument
42617 NORETURN.
42618
42619 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42620 instead of grub_efi_open_protocol.
42621 (grub_efidisk_get_device_name): Likewise.
42622 (grub_efidisk_close): Print a newline.
42623 (grub_efidisk_get_device_handle): Fixed to use
42624 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42625 GRUB_EFI_DEVICE_PATH_TYPE.
42626
42627 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42628 * kern/efi/efi.c (device_path_guid): ... here.
42629
42630 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42631 chain.mod.
42632 (kernel_mod_HEADERS): Added efi/disk.h.
42633 (_chain_mod_SOURCES): New variable.
42634 (_chain_mod_CFLAGS): Likewise.
42635 (_chain_mod_LDFLAGS): Likewise.
42636 (chain_mod_SOURCES): Likewise.
42637 (chain_mod_CFLAGS): Likewise.
42638 (chain_mod_LDFLAGS): Likewise.
42639
42640 * DISTLIST: Added include/grub/efi/chainloader.h,
42641 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42642
42643 * include/grub/efi/chainloader.h: New file.
42644 * loader/efi/chainloader.c: Likewise.
42645 * loader/efi/chainloader_normal.c: Likewise.
42646
42647 2006-04-30 Marco Gerards <marco@gnu.org>
42648
42649 * commands/configfile.c (grub_cmd_source): New function.
42650 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42651 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42652
42653 2006-04-30 Marco Gerards <marco@gnu.org>
42654
42655 * normal/execute.c (grub_script_execute_cmd): Change the return
42656 type to `grub_err_t'. Correctly return the error.
42657 (grub_script_execute_cmdline): In case a command line is not a
42658 command or a function, try to interpret it as an assignment.
42659
42660 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42661
42662 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42663 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42664 skip a node whose name is obviously invalid as UTF-16,
42665 i.e. contains a NUL character. Stop the iteration when the last
42666 directory entry is found. Instead of using the return value of
42667 grub_hfsplus_btree_iterate_node, store the value in RET and use
42668 it, because the iterator can be stopped by the last directory
42669 entry.
42670
42671 2006-04-30 Marco Gerards <marco@gnu.org>
42672
42673 * include/grub/env.h (grub_env_export): New prototype. Reported
42674 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42675
42676 2006-04-30 Marco Gerards <marco@gnu.org>
42677
42678 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42679 size of the extents in a catalog file record.
42680
42681 2006-04-29 Marco Gerards <marco@gnu.org>
42682
42683 * commands/configfile.c (grub_cmd_configfile): Execute the
42684 configfile within its own context.
42685
42686 * include/grub/env.h (grub_env_context_open): New prototype.
42687 (grub_env_context_close): Likewise.
42688
42689 * kern/env.c (grub_env): Removed.
42690 (grub_env_sorted): Likewise.
42691 (grub_env_context): New variable.
42692 (grub_env_var_context): Likewise.
42693 (grub_env_find): Search both the active context and the global
42694 context.
42695 (grub_env_context_open): New function.
42696 (grub_env_context_close): Likewise.
42697 (grub_env_insert): Likewise.
42698 (grub_env_remove): Likewise.
42699 (grub_env_export): Likewise.
42700 (grub_env_set): Changed to use helper functions to avoid code
42701 duplication.
42702 (grub_env_iterate): Rewritten so both the current context and the
42703 global context are being used.
42704
42705 * normal/command.c (export_command): New function.
42706 (grub_command_init): Register the `export' function.
42707
42708 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42709
42710 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42711 explicitly to suppress gcc's warnings.
42712 * fs/fat.c (grub_fat_find_dir): Likewise.
42713 (grub_fat_label): Likewise.
42714 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42715 (grub_xfs_mount): Likewise.
42716 (grub_xfs_label): Likewise.
42717 * fs/affs.c (grub_affs_mount): Likewise.
42718 (grub_affs_label): Likewise.
42719 (grub_affs_iterate_dir): Likewise.
42720 * fs/sfs.c (grub_sfs_mount): Likewise.
42721 (grub_sfs_iterate_dir): Likewise.
42722 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42723 * fs/hfs.c (grub_hfs_mount): Likewise.
42724 (grub_hfs_cmp_catkeys): Likewise.
42725 (grub_hfs_find_dir): Likewise.
42726 (grub_hfs_dir): Likewise.
42727 (grub_hfs_label): Likewise.
42728 * fs/jfs.c (grub_jfs_mount): Likewise.
42729 (grub_jfs_opendir): Likewise.
42730 (grub_jfs_getent): Likewise.
42731 (grub_jfs_lookup_symlink): Likewise.
42732 (grub_jfs_label): Likewise.
42733 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42734 (grub_hfsplus_iterate_dir): Likewise.
42735 (grub_hfsplus_btree_iterate_node): Made static.
42736
42737 * util/grub-emu.c (prefix): New variable.
42738 (grub_machine_set_prefix): New function.
42739 (main): Do not set the environment variable "prefix" here. Only
42740 set PREFIX, which is used later by grub_machine_set_prefix.
42741
42742 * include/grub/video.h: Do not include grub/symbol.h.
42743 (grub_video_register): Not exported. This symbol is not defined in
42744 the kernel.
42745 (grub_video_unregister): Likewise.
42746 (grub_video_iterate): Likewise.
42747 (grub_video_setup): Likewise.
42748 (grub_video_restore): Likewise.
42749 (grub_video_get_info): Likewise.
42750 (grub_video_get_blit_format): Likewise.
42751 (grub_video_set_palette): Likewise.
42752 (grub_video_get_palette): Likewise.
42753 (grub_video_set_viewport): Likewise.
42754 (grub_video_get_viewport): Likewise.
42755 (grub_video_map_color): Likewise.
42756 (grub_video_map_rgb): Likewise.
42757 (grub_video_map_rgba): Likewise.
42758 (grub_video_fill_rect): Likewise.
42759 (grub_video_blit_glyph): Likewise.
42760 (grub_video_blit_bitmap): Likewise.
42761 (grub_video_blit_render_target): Likewise.
42762 (grub_video_scroll): Likewise.
42763 (grub_video_swap_buffers): Likewise.
42764 (grub_video_create_render_target): Likewise.
42765 (grub_video_delete_render_target): Likewise.
42766 (grub_video_set_active_render_target): Likewise.
42767
42768 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42769 Undefined.
42770 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42771
42772 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42773 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42774 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42775 instead of $(srcdir)/genkernsyms.sh.
42776
42777 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42778 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42779 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42780 instead of $(srcdir)/genkernsyms.sh.
42781
42782 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42783 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42784 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42785 instead of $(srcdir)/genkernsyms.sh.
42786
42787 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42788 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42789 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42790 instead of $(srcdir)/genkernsyms.sh.
42791
42792 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42793 genkernsyms.sh.
42794
42795 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42796 genkernsyms.sh.
42797 (gensymlist.sh): New target.
42798 (genkernsyms.sh): Likewise.
42799
42800 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42801 genkernsyms.sh.in and gensymlist.sh.in.
42802
42803 * genkernsyms.sh: Removed.
42804 * gensymlist.sh: Likewise.
42805
42806 * genkernsyms.sh.in: New file.
42807 * gensymlist.sh.in: Likewise.
42808
42809 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42810
42811 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42812 clobber "prefix", since we may have already set it manually.
42813
42814 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42815
42816 * kern/misc.c (abort): New alias for grub_abort.
42817
42818 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42819
42820 A new machine-specific function "grub_machine_set_prefix" is
42821 defined. This is called after loading modules, so that a prefix
42822 initialization can use modules. Also, this change adds an
42823 intensive debugging feature for the memory manager via the
42824 configure option "--enable-mm-debug".
42825
42826 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42827 PART.LEN.
42828
42829 * kern/sparc64/ieee1275/init.c (abort): Removed.
42830 (grub_stop): Likewise.
42831 (grub_exit): New function.
42832 (grub_set_prefix): Renamed to ...
42833 (grub_machine_set_prefix): ... this.
42834 (grub_machine_init): Do not call grub_set_prefix.
42835
42836 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42837 (grub_machine_set_prefix): ... this.
42838 (grub_machine_init): Do not call grub_set_prefix.
42839
42840 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42841 (grub_machine_init): Do not set the prefix here.
42842
42843 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42844
42845 * kern/efi/init.c: Include grub/mm.h.
42846 (grub_efi_set_prefix): New function.
42847
42848 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42849 (grub_efi_get_filename): New function.
42850 (grub_print_device_path): Renamed to ...
42851 (grub_efi_print_device_path): ... this.
42852
42853 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42854 [MM_DEBUG] (grub_realloc): Likewise.
42855 [MM_DEBUG] (grub_free): Likewise.
42856 [MM_DEBUG] (grub_memalign): Likewise.
42857 [MM_DEBUG] (grub_mm_debug): New variable.
42858 [MM_DEBUG] (grub_debug_malloc): New function.
42859 [MM_DEBUG] (grub_debug_free): New function.
42860 [MM_DEBUG] (grub_debug_realloc): New function.
42861 [MM_DEBUG] (grub_debug_memalign): New function.
42862
42863 * kern/misc.c (grub_abort): Print a newline to distinguish
42864 the message.
42865
42866 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42867 grub_set_root_dev after loading modules. This is necessary when
42868 setting a prefix depends on modules.
42869
42870 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42871 (grub_efi_print_device_path): ... this.
42872 (grub_efi_get_filename): New prototype.
42873 (grub_efi_set_prefix): Likewise.
42874
42875 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42876 and grub/disk.h.
42877 (grub_efidisk_get_device_handle): New prototype.
42878 (grub_efidisk_get_device_name): Likewise.
42879
42880 * include/grub/mm.h: Include config.h.
42881 (MM_DEBUG): Removed.
42882 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42883 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42884 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42885 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42886 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42887 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42888 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42889 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42890 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42891
42892 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42893
42894 * disk/efi/efidisk.c: Include grub/partition.h.
42895 (iterate_child_devices): New function.
42896 (add_device): First, compare only last device path nodes, so that
42897 devices are sorted by the types.
42898 (grub_efidisk_get_device_handle): New function.
42899 (grub_efidisk_get_device_name): Likewise.
42900
42901 * configure.ac (--enable-mm-debug): New option to enable the
42902 memory manager debugging feature. This makes the binary much
42903 bigger, so is disabled by default.
42904
42905 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42906
42907 Use grub_abort instead of grub_stop, and grub_exit must be
42908 define in each architecture now. Also, this change adds support
42909 for EFI disks.
42910
42911 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42912 (grub_getkey): New function.
42913 (grub_term_get_current): Likewise.
42914
42915 * util/i386/pc/grub-setup.c: Include grub/term.h.
42916 (grub_getkey): New function.
42917 (grub_term_get_current): Likewise.
42918
42919 * util/misc.c (grub_stop): Renamed to ...
42920 (grub_exit): ... this.
42921
42922 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42923 (grub_exit): ... this.
42924 (grub_machine_init): Use grub_abort instead of abort.
42925 (grub_stop): Removed.
42926
42927 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42928 abort.
42929
42930 * kern/i386/pc/startup.S (grub_exit): New function.
42931 (cold_reboot): New label.
42932
42933 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42934 (grub_efi_init): Call grub_efidisk_init.
42935 (grub_efi_fini): Call grub_efidisk_fini.
42936
42937 * kern/efi/efi.c: Include grub/mm.h.
42938 (grub_efi_console_control_guid): Renamed to ...
42939 (console_control_guid): ... this.
42940 (grub_efi_loaded_image_guid): Renamed to ...
42941 (loaded_image_guid): ... this.
42942 (grub_efi_locate_handle): New function.
42943 (grub_efi_open_protocol): Likewise.
42944 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42945 GRUB_EFI_CONSOLE_CONTROL_GUID.
42946 (grub_efi_exit): Removed.
42947 (grub_stop): Likewise.
42948 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42949 (grub_exit): New function.
42950 (grub_print_device_path): Likewise.
42951
42952 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42953 (grub_enter_rescue_mode): Register "exit".
42954
42955 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42956 (grub_abort): New function.
42957
42958 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42959
42960 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42961
42962 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42963
42964 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42965 (grub_print_device_path): New prototype.
42966 (grub_efi_locate_handle): Likewise.
42967 (grub_efi_open_protocol): Likewise.
42968
42969 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42970 * disk/efi/efidisk.c: Likewise.
42971
42972 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42973
42974 * include/grub/efi/console_control.h
42975 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42976
42977 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42978 last 8 bytes as an array.
42979 (GRUB_EFI_DISK_IO_GUID): New macro.
42980 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42981 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42982 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42983 grub_uint8_t.
42984 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42985 (struct grub_efi_device_path): Rename the member "sub_type" to
42986 "subtype".
42987 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42988 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42989 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42990 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42991 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42992 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42993 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42994 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42995 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42996 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42997 (struct grub_efi_pci_device_path): New structure.
42998 (grub_efi_pci_device_path_t): New type.
42999 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43000 (struct grub_efi_pccard_device_path): New structure.
43001 (grub_efi_pccard_device_path_t): New type.
43002 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43003 (struct grub_efi_memory_mapped_device_path): New structure.
43004 (grub_efi_memory_mapped_device_path_t): New type.
43005 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43006 (struct grub_efi_vendor_device_path): New structure.
43007 (grub_efi_vendor_device_path_t): New type.
43008 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43009 (struct grub_efi_controller_device_path): New structure.
43010 (grub_efi_controller_device_path_t): New type.
43011 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43012 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43013 (struct grub_efi_acpi_device_path): New structure.
43014 (grub_efi_acpi_device_path_t): New type.
43015 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43016 (struct grub_efi_expanded_acpi_device_path): New structure.
43017 (grub_efi_expanded_acpi_device_path_t): New type.
43018 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43019 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43020 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43021 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43022 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43023 (struct grub_efi_atapi_device_path): New structure.
43024 (grub_efi_atapi_device_path_t): New type.
43025 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43026 (struct grub_efi_fibre_channel_device_path): New structure.
43027 (grub_efi_fibre_channel_device_path_t): New type.
43028 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43029 (struct grub_efi_1394_device_path): New structure.
43030 (grub_efi_1394_device_path_t): New type.
43031 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43032 (struct grub_efi_usb_device_path): New structure.
43033 (grub_efi_usb_device_path_t): New type.
43034 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43035 (struct grub_efi_usb_class_device_path): New structure.
43036 (grub_efi_usb_class_device_path_t): New type.
43037 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43038 (struct grub_efi_i2o_device_path): New structure.
43039 (grub_efi_i2o_device_path_t): New type.
43040 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43041 (struct grub_efi_mac_address_device_path): New structure.
43042 (grub_efi_mac_address_device_path_t): New type.
43043 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43044 (struct grub_efi_ipv4_device_path): New structure.
43045 (grub_efi_ipv4_device_path_t): New type.
43046 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43047 (struct grub_efi_ipv6_device_path): New structure.
43048 (grub_efi_ipv6_device_path_t): New type.
43049 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43050 (struct grub_efi_infiniband_device_path): New structure.
43051 (grub_efi_infiniband_device_path_t): New type.
43052 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43053 (struct grub_efi_uart_device_path): New structure.
43054 (grub_efi_uart_device_path_t): New type.
43055 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43056 (struct grub_efi_vendor_messaging_device_path): New structure.
43057 (grub_efi_vendor_messaging_device_path_t): New type.
43058 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43059 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43060 (struct grub_efi_hard_drive_device_path): New structure.
43061 (grub_efi_hard_drive_device_path_t): New type.
43062 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43063 (struct grub_efi_cdrom_device_path): New structure.
43064 (grub_efi_cdrom_device_path_t): New type.
43065 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43066 (struct grub_efi_vendor_media_device_path): New structure.
43067 (grub_efi_vendor_media_device_path_t): New type.
43068 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43069 (struct grub_efi_file_path_device_path): New structure.
43070 (grub_efi_file_path_device_path_t): New type.
43071 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43072 (struct grub_efi_protocol_device_path): New structure.
43073 (grub_efi_protocol_device_path_t): New type.
43074 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43075 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43076 (struct grub_efi_bios_device_path): New structure.
43077 (grub_efi_bios_device_path_t): New type.
43078 (struct grub_efi_disk_io): New structure.
43079 (grub_efi_disk_io_t): New type.
43080 (struct grub_efi_block_io_media): New structure.
43081 (grub_efi_block_io_media_t): New type.
43082 (struct grub_efi_block_io): New structure.
43083 (grub_efi_block_io_t): New type.
43084
43085 * include/grub/misc.h (grub_stop): Removed.
43086 (grub_exit): New prototype.
43087 (grub_abort): Likewise.
43088
43089 * include/grub/disk.h (enum grub_disk_dev_id): Added
43090 GRUB_DISK_DEVICE_EFIDISK_ID.
43091
43092 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43093 disk/efi/efidisk.c.
43094 (kernel_syms.lst): Remove the target if an error occurs.
43095
43096 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43097
43098 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43099 as it was simply too buggy.
43100
43101 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43102
43103 * kern/misc.c (grub_lltoa): New function.
43104 (grub_vsprintf): Added support for the long long suffix,
43105 i.e. "ll".
43106
43107 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43108
43109 * Makefile.in (LDFLAGS): Add variable.
43110 (LD): Remove variable.
43111 * configure.ac: Add -m32 to LDFLAGS.
43112 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43113 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43114 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43115 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43116 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43117 variables.
43118 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43119 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43120 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43121
43122 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43123
43124 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43125 length for unknown glyph.
43126
43127 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43128
43129 Add support for pre-loaded modules into the EFI port.
43130
43131 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43132 completely. Accept one more argument DIR. The caller has changed.
43133
43134 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43135
43136 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43137 (grub_efi_loaded_image_guid): New variable.
43138 (grub_efi_get_loaded_image): New function.
43139 (grub_arch_modules_addr): Likewise.
43140
43141 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43142 prototype.
43143
43144 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43145 (struct grub_efi_loaded_image): New structure.
43146 (grub_efi_loaded_image_t): New type.
43147
43148 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43149
43150 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43151 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43152 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43153
43154 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43155
43156 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43157
43158 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43159
43160 * DISTLIST: Added include/grub/efi/console.h,
43161 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43162 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43163
43164 * include/grub/efi/console.h: New file.
43165 * include/grub/efi/time.h: Likewise.
43166 * include/grub/i386/efi/kernel.h: Likewise.
43167 * kern/efi/init.c: Likewise.
43168 * kern/efi/mm.c: Likewise.
43169 * term/efi/console.c: Likewise.
43170
43171 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43172 (grub_stop): Removed.
43173 (grub_get_rtc): Likewise.
43174 (grub_machine_init): Simply call grub_efi_init.
43175 (grub_machine_fini): Call grub_efi_fini.
43176
43177 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43178 (grub_efi_output_string): Removed.
43179 (grub_efi_stall): New function.
43180 (grub_stop): Likewise.
43181 (grub_get_rtc): Likewise.
43182
43183 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43184 (grub_efi_stall): New prototype.
43185 (grub_efi_allocate_pages): Likewise.
43186 (grub_efi_free_pages): Likewise.
43187 (grub_efi_get_memory_map): Likewise.
43188 (grub_efi_mm_init): Likewise.
43189 (grub_efi_mm_fini): Likewise.
43190 (grub_efi_init): Likewise.
43191 (grub_efi_fini): Likewise.
43192
43193 * include/grub/i386/efi/time.h: Do not include
43194 grub/symbol.h. Include grub/efi/time.h.
43195 (GRUB_TICKS_PER_SECOND): Removed.
43196 (grub_get_rtc): Likewise.
43197
43198 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43199 Added padding. The EFI spec is buggy.
43200 (GRUB_EFI_BLACK): New macro.
43201 (GRUB_EFI_BLUE): Likewise.
43202 (GRUB_EFI_GREEN): Likewise.
43203 (GRUB_EFI_CYAN): Likewise.
43204 (GRUB_EFI_RED): Likewise.
43205 (GRUB_EFI_MAGENTA): Likewise.
43206 (GRUB_EFI_BROWN): Likewise.
43207 (GRUB_EFI_LIGHTGRAY): Likewise.
43208 (GRUB_EFI_BRIGHT): Likewise.
43209 (GRUB_EFI_DARKGRAY): Likewise.
43210 (GRUB_EFI_LIGHTBLUE): Likewise.
43211 (GRUB_EFI_LIGHTGREEN): Likewise.
43212 (GRUB_EFI_LIGHTCYAN): Likewise.
43213 (GRUB_EFI_LIGHTRED): Likewise.
43214 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43215 (GRUB_EFI_YELLOW): Likewise.
43216 (GRUB_EFI_WHITE): Likewise.
43217 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43218 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43219 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43220 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43221 (GRUB_EFI_BACKGROUND_RED): Likewise.
43222 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43223 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43224 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43225 (GRUB_EFI_TEXT_ATTR): Likewise.
43226
43227 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43228 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43229 (kernel_mod_HEADERS): Added efi/time.h.
43230
43231 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43232
43233 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43234 include/grub/efi/api.h, include/grub/efi/console_control.h,
43235 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43236 include/grub/i386/efi/time.h, kern/efi/efi.c,
43237 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43238 and util/i386/efi/grub-mkimage.c.
43239
43240 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43241
43242 * genmk.rb (PModule#rule): Do not export symbols if
43243 #{prefix}_EXPORTS is set to "no".
43244
43245 * conf/i386-efi.mk: New file.
43246 * conf/i386-efi.rmk: Likewise.
43247 * include/grub/efi/api.h: Likewise.
43248 * include/grub/efi/console_control.h: Likewise.
43249 * include/grub/efi/efi.h: Likewise.
43250 * include/grub/efi/pe32.h: Likewise.
43251 * include/grub/i386/efi/time.h: Likewise.
43252 * kern/efi/efi.c: Likewise.
43253 * kern/i386/efi/init.c: Likewise.
43254 * kern/i386/efi/startup.S: Likewise.
43255 * util/i386/efi/grub-mkimage.c: Likewise.
43256
43257 2006-04-17 Marco Gerards <marco@gnu.org>
43258
43259 * include/grub/script.h: Include <grub/parser.h> and
43260 "grub_script.tab.h".
43261 (struct grub_lexer_param): New struct.
43262 (struct grub_parser_param): Likewise.
43263 (grub_script_create_arglist): Pass the state in an argument.
43264 (grub_script_add_arglist): Likewise.
43265 (grub_script_create_cmdline): Likewise.
43266 (grub_script_create_cmdblock): Likewise.
43267 (grub_script_create_cmdif): Likewise.
43268 (grub_script_create_cmdmenu): Likewise.
43269 (grub_script_add_cmd): Likewise.
43270 (grub_script_arg_add): Likewise.
43271 (grub_script_lexer_ref): Likewise.
43272 (grub_script_lexer_deref): Likewise.
43273 (grub_script_lexer_record_start): Likewise.
43274 (grub_script_lexer_record_stop): Likewise.
43275 (grub_script_mem_record): Likewise.
43276 (grub_script_mem_record_stop): Likewise.
43277 (grub_script_malloc): Likewise.
43278 (grub_script_yylex): Likewise.
43279 (grub_script_yyparse): Likewise.
43280 (grub_script_yyerror): Likewise.
43281 (grub_script_yylex): Likewise.
43282 (grub_script_lexer_init): Return the state.
43283
43284 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43285 (grub_script_lexer_done): Likewise.
43286 (grub_script_lexer_getline): Likewise.
43287 (grub_script_lexer_refs): Likewise.
43288 (script): Likewise.
43289 (newscript): Likewise.
43290 (record): Likewise.
43291 (recording): Likewise.
43292 (recordpos): Likewise.
43293 (recordlen): Likewise.
43294 (grub_script_lexer_init): Return the state instead of setting
43295 global variables.
43296 (grub_script_lexer_ref): Use the newly added argument for state
43297 instead of globals.
43298 (grub_script_lexer_deref): Likewise.
43299 (grub_script_lexer_record_start): Likewise.
43300 (grub_script_lexer_record_stop): Likewise.
43301 (recordchar): Likewise.
43302 (nextchar): Likewise.
43303 (grub_script_yylex2): Likewise.
43304 (grub_script_yylex): Likewise.
43305 (grub_script_yyerror): Likewise.
43306
43307 * normal/parser.y (func_mem): Removed variable.
43308 (menu_entry): Likewise.
43309 (err): Likewise.
43310 (%lex-param): New parser option.
43311 (%parse-param): Likewise.
43312 (script): Always return the AST.
43313 (argument): Pass the state around.
43314 (arguments): Likewise.
43315 (grubcmd): Likewise.
43316 (commands): Likewise.
43317 (function): Likewise.
43318 (menuentry): Likewise.
43319 (if_statement): Likewise.
43320 (if): Likewise.
43321
43322 * normal/script.c (grub_script_memused): Removed variable.
43323 (grub_script_parsed): Likewise.
43324 (grub_script_malloc): Added a state argument. Use that instead of
43325 global variables.
43326 (grub_script_mem_record): Likewise.
43327 (grub_script_mem_record_stop): Likewise.
43328 (grub_script_arg_add): Likewise.
43329 (grub_script_add_arglist): Likewise.
43330 (grub_script_create_cmdline): Likewise.
43331 (grub_script_create_cmdif): Likewise.
43332 (grub_script_create_cmdmenu): Likewise.
43333 (grub_script_add_cmd): Likewise.
43334 (grub_script_parse): Setup the state before calling the parser.
43335
43336 2006-04-16 Marco Gerards <marco@gnu.org>
43337
43338 * normal/command.c (grub_command_init): Remove the title command.
43339
43340 * normal/lexer.c (grub_script_yylex): Renamed from this...
43341 (grub_script_yylex2): ... to this.
43342 (grub_script_yylex): New function. Temporary
43343 introduced to filter some tokens.
43344 (grub_script_yyerror): Print a newline.
43345
43346 * normal/main.c (read_config_file): Output information about the
43347 lines that contain errors. Wait for a key after all lines have
43348 been processed. Don't return an empty menu.
43349
43350 * normal/parser.y (func_mem): Don't initialize.
43351 (menu_entry): Likewise.
43352 (err): New variable.
43353 (script): Don't return anything when an error was encountered.
43354 (ws, returns): Removed rules.
43355 (argument): Disabled concatenated variable support.
43356 (arguments): Remove explicit separators.
43357 (grubcmd): Likewise.
43358 (function): Likewise.
43359 (menuentry): Likewise.
43360 (if): Likewise.
43361 (commands): Likewise. Add error handling.
43362
43363 * normal/script.c (grub_script_create_cmdline): If
43364 `grub_script_parsed' is 0, assume the parser encountered an error.
43365
43366 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43367
43368 * configure.ac: Add support for EFI. Fix the typo
43369 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43370
43371 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43372
43373 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43374 foreign multibyte characters should be shown correctly.
43375
43376 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43377
43378 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43379 calculation.
43380 (read_config_file): Made it to close file before returning.
43381
43382 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43383
43384 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43385 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43386 video/i386/pc/vbefill.c.
43387
43388 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43389 video/i386/pc/vbefill.c.
43390
43391 * include/grub/video.h (grub_video_blit_format): New enum.
43392 (grub_video_mode_info): Added new member blit_format.
43393 (grub_video_get_blit_format): New function prototype.
43394
43395 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43396 function prototype.
43397 (grub_video_vbe_map_rgb): Likewise.
43398 (grub_video_vbe_unmap_color): Likewise.
43399
43400 * include/grub/i386/pc/vbeblit.h: New file.
43401
43402 * include/grub/i386/pc/vbefill.h: New file.
43403
43404 * video/video.c (grub_video_get_blit_format): New function.
43405 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43406 (grub_video_vbe_map_rgb): Likewise.
43407 (grub_video_vbe_unmap_color): Likewise.
43408
43409 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43410 optimized fills.
43411 (grub_video_vbe_blit_render_target): Changed to use more optimized
43412 blits.
43413 (grub_video_vbe_setup): Added detection for optimized settings.
43414 (grub_video_vbe_create_render_target): Likewise.
43415
43416 * video/i386/pc/vbeblit.c: New file.
43417
43418 * video/i386/pc/vbefill.c: New file.
43419
43420 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43421
43422 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43423 here...
43424
43425 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43426 parsing to support both hex and dec ranges. If filename was missing
43427 show usage information.
43428
43429 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43430
43431 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43432 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43433
43434 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43435 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43436 (video_mod_SOURCES): Added.
43437 (video_mod_CFLAGS): Likewise.
43438 (video_mod_LDFLAGS): Likewise.
43439 (gfxterm_mod_SOURCES): Likewise.
43440 (gfxterm_mod_CFLAGS): Likewise.
43441 (gfxterm_mod_LDFLAGS): Likewise.
43442 (videotest_mod_SOURCES): Likewise.
43443 (videotest_mod_CFLAGS): Likewise.
43444 (videotest_mod_LDFLAGS): Likewise.
43445 (vesafb_mod_SOURCES): Removed.
43446 (vesafb_mod_CFLAGS): Likewise.
43447 (vesafb_mod_LDFLAGS): Likewise.
43448 (vga_mod_SOURCES): Likewise.
43449 (vga_mod_CFLAGS): Likewise.
43450 (vga_mod_LDFLAGS): Likewise.
43451
43452 * commands/videotest.c: New file.
43453
43454 * font/manager.c (fill_with_default_glyph): Modified to use
43455 grub_font_glyph.
43456 (grub_font_get_glyph): Likewise.
43457 (fontmanager): Renamed from this...
43458 (font_manager): ... to this.
43459
43460 * include/grub/font.h (grub_font_glyph): Added new structure.
43461 (grub_font_get_glyph): Modified to use grub_font_glyph.
43462
43463 * include/grub/misc.h (grub_abs): Added as inline function.
43464
43465 * include/grub/video.h: New file.
43466
43467 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43468 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43469 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43470 (grub_vbe_get_controller_info): Renamed from this...
43471 (grub_vbe_bios_get_controller_info): ... to this.
43472 (grub_vbe_get_mode_info): Renamed from this...
43473 (grub_vbe_bios_get_mode_info): ... to this.
43474 (grub_vbe_set_mode): Renamed from this...
43475 (grub_vbe_bios_set_mode): ... to this.
43476 (grub_vbe_get_mode): Renamed from this...
43477 (grub_vbe_bios_get_mode): ... to this.
43478 (grub_vbe_set_memory_window): Renamed from this...
43479 (grub_vbe_bios_set_memory_window): ... to this.
43480 (grub_vbe_get_memory_window): Renamed from this...
43481 (grub_vbe_bios_get_memory_window): ... to this.
43482 (grub_vbe_set_scanline_length): Renamed from this...
43483 (grub_vbe_set_scanline_length): ... to this.
43484 (grub_vbe_get_scanline_length): Renamed from this...
43485 (grub_vbe_bios_get_scanline_length): ... to this.
43486 (grub_vbe_set_display_start): Renamed from this...
43487 (grub_vbe_bios_set_display_start): ... to this.
43488 (grub_vbe_get_display_start): Renamed from this...
43489 (grub_vbe_bios_get_display_start): ... to this.
43490 (grub_vbe_set_palette_data): Renamed from this...
43491 (grub_vbe_bios_set_palette_data): ... to this.
43492 (grub_vbe_set_pixel_rgb): Removed.
43493 (grub_vbe_set_pixel_index): Likewise.
43494
43495 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43496 from this...
43497 (grub_vbe_bios_get_controller_info): ... to this.
43498 (grub_vbe_get_mode_info): Renamed from this...
43499 (grub_vbe_bios_get_mode_info): ... to this.
43500 (grub_vbe_set_mode): Renamed from this...
43501 (grub_vbe_bios_set_mode): ... to this.
43502 (grub_vbe_get_mode): Renamed from this...
43503 (grub_vbe_bios_get_mode): ... to this.
43504 (grub_vbe_set_memory_window): Renamed from this...
43505 (grub_vbe_bios_set_memory_window): ... to this.
43506 (grub_vbe_get_memory_window): Renamed from this...
43507 (grub_vbe_bios_get_memory_window): ... to this.
43508 (grub_vbe_set_scanline_length): Renamed from this...
43509 (grub_vbe_set_scanline_length): ... to this.
43510 (grub_vbe_get_scanline_length): Renamed from this...
43511 (grub_vbe_bios_get_scanline_length): ... to this.
43512 (grub_vbe_set_display_start): Renamed from this...
43513 (grub_vbe_bios_set_display_start): ... to this.
43514 (grub_vbe_get_display_start): Renamed from this...
43515 (grub_vbe_bios_get_display_start): ... to this.
43516 (grub_vbe_set_palette_data): Renamed from this...
43517 (grub_vbe_bios_set_palette_data): ... to this.
43518 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43519 getting corrupted after calling it. Added more pushes and pops.
43520 (grub_vbe_bios_set_mode): Likewise.
43521 (grub_vbe_bios_get_mode): Likewise.
43522 (grub_vbe_bios_get_memory_window): Likewise.
43523 (grub_vbe_bios_set_scanline_length): Likewise.
43524 (grub_vbe_bios_get_scanline_length): Likewise.
43525 (grub_vbe_bios_get_display_start): Likewise.
43526 (grub_vbe_bios_set_palette_data): Likewise.
43527
43528 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43529 (cl_insert): Likewise.
43530 (cl_delete): Likewise.
43531
43532 * term/gfxterm.c: New file.
43533
43534 * term/i386/pc/vesafb.c: Removed file.
43535
43536 * video/video.c: New file.
43537
43538 * video/i386/pc/vbe.c (real2pm): Added new function.
43539 (grub_video_vbe_draw_pixel): Likewise.
43540 (grub_video_vbe_get_video_ptr): Likewise.
43541 (grub_video_vbe_get_pixel): Likewise
43542 (grub_video_vbe_init): Likewise.
43543 (grub_video_vbe_fini): Likewise.
43544 (grub_video_vbe_setup): Likewise.
43545 (grub_video_vbe_get_info): Likewise.
43546 (grub_video_vbe_set_palette): Likewise.
43547 (grub_video_vbe_get_palette): Likewise.
43548 (grub_video_vbe_set_viewport): Likewise.
43549 (grub_video_vbe_get_viewport): Likewise.
43550 (grub_video_vbe_map_color): Likewise.
43551 (grub_video_vbe_map_rgb): Likewise.
43552 (grub_video_vbe_map_rgba): Likewise.
43553 (grub_video_vbe_unmap_color): Likewise.
43554 (grub_video_vbe_fill_rect): Likewise.
43555 (grub_video_vbe_blit_glyph): Likewise.
43556 (grub_video_vbe_blit_bitmap): Likewise.
43557 (grub_video_vbe_blit_render_target): Likewise.
43558 (grub_video_vbe_scroll): Likewise.
43559 (grub_video_vbe_swap_buffers): Likewise.
43560 (grub_video_vbe_create_render_target): Likewise.
43561 (grub_video_vbe_delete_render_target): Likewise.
43562 (grub_video_vbe_set_active_render_target): Likewise.
43563 (grub_vbe_set_pixel_rgb): Remove function.
43564 (grub_vbe_set_pixel_index): Likewise.
43565 (index_color_mode): Remove static variable.
43566 (active_mode): Likewise.
43567 (framebuffer): Likewise.
43568 (bytes_per_scan_line): Likewise.
43569 (grub_video_vbe_adapter): Added new static variable.
43570 (framebuffer): Likewise.
43571 (render_target): Likewise.
43572 (initial_mode): Likewise.
43573 (mode_in_use): Likewise.
43574 (mode_list): Likewise.
43575
43576 2006-03-10 Marco Gerards <marco@gnu.org>
43577
43578 * configure.ac (AC_INIT): Bumped to 1.93.
43579
43580 * DISTLIST: Added `include/grub/hfs.h'.
43581
43582 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43583
43584 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43585 18H, which might help the BIOS falling back to next boot media.
43586
43587 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43588
43589 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43590 Poe Chen <poe.poechen@gmail.com>.
43591
43592 2006-01-17 Marco Gerards <marco@gnu.org>
43593
43594 * include/grub/normal.h: Include <grub/script.h>.
43595 (grub_command_list): Removed struct.
43596 (grub_command_list_t): Removed type.
43597 (grub_menu_entry): Remove members `num' and `command_list'. Add
43598 members `commands' and `sourcecode'.
43599 * include/grub/script.h: Add inclusion guards.
43600 (grub_script_cmd_menuentry): New struct.
43601 (grub_script_execute_menuentry): New prototype.
43602 (grub_script_lexer_record_start): Likewise.
43603 (grub_script_lexer_record_stop): Likewise.
43604 * normal/execute.c (grub_script_execute_menuentry): New function.
43605 * normal/lexer.c (record, recording, recordpos, recordlen): New
43606 variables.
43607 (grub_script_lexer_record_start): New function.
43608 (grub_script_lexer_record_stop): Likewise.
43609 (recordchar): Likewise.
43610 (nextchar): Likewise.
43611 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43612 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43613 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43614 (current_menu): New variable.
43615 (free_menu): Mainly rewritten.
43616 (grub_normal_menu_addentry): New function.
43617 (read_config_file): Rewritten.
43618 * normal/menu.c (run_menu_entry): Mainly rewritten.
43619 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43620 the menu entry.
43621 (run): Mainly rewritten.
43622 * normal/parser.y (menu_entry): New variable.
43623 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43624 (menuentry): New rule.
43625 (command): Add `menuentry'.
43626 (if_statement): Allow additional returns before `fi'.
43627 * normal/script.c (grub_script_create_cmdmenu): New function.
43628
43629 2006-01-03 Marco Gerards <marco@gnu.org>
43630
43631 * INSTALL: GNU Bison is required.
43632 * configure.ac: Rewritten the test to detect Bison.
43633 * Makefile.in (YACC): New variable. Reported by Xun Sun
43634 <xun.sun.cn@gmail.com>.
43635
43636 2006-01-03 Marco Gerards <marco@gnu.org>
43637
43638 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43639 the HFS+ filesystem to filesystem blocks.
43640 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43641 GCC warning is silenced.
43642
43643 2006-01-03 Marco Gerards <marco@gnu.org>
43644
43645 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43646 read from disk from big endian to host byte order.
43647
43648 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43649
43650 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43651 documentation.
43652 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43653 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43654 embedded HFS+ filesystem.
43655 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43656 (grub_hfs_sblock): Move from here...
43657 * include/grub/hfs.h: To here... New file.
43658 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43659 documentation.
43660 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43661 New macros.
43662 (grub_hfsplus_volheader): Change type of member `magic' to
43663 `grub_uint16_t'.
43664 (grub_hfsplus_data): Add new member `embedded_offset'.
43665 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43666 returned block.
43667 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43668 Calculate the offset.
43669
43670 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43671
43672 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43673 Removed.
43674 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43675
43676 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43677
43678 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43679 ENV->NAME is NULL after allocating ENV->VALUE.
43680
43681 2005-12-25 Marco Gerards <marco@gnu.org>
43682
43683 * kern/env.c (grub_env_set): Rewritten the error handling code.
43684
43685 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43686
43687 * geninit.sh: Made more robust, and more portable.
43688
43689 2005-12-25 Marco Gerards <marco@gnu.org>
43690
43691 Add support for Apple HFS+ filesystems.
43692
43693 * fs/hfsplus.c: New file.
43694
43695 * DISTLIST: Added `fs/hfsplus.c'.
43696
43697 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43698 (hfsplus_mod_SOURCES): New variable.
43699 (hfsplus_mod_CFLAGS): Likewise.
43700 (hfsplus_mod_LDFLAGS): Likewise.
43701 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43702 (grub_setup_SOURCES): Likewise.
43703 (grub_mkdevicemap_SOURCES): Likewise.
43704 (grub_emu_SOURCES): Likewise.
43705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43706
43707 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43708
43709 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43710
43711 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43712
43713 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43714 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43715 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43716 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43717 normal/lexer.c, normal/parser.y, normal/script.c, and
43718 partmap/gpt.c.
43719 Removed kern/sparc64/cache.c.
43720
43721 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43722 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43723 grub_emu_init.c.
43724
43725 * configure.ac (AC_INIT): Bumped to 1.92.
43726
43727 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43728
43729 * kern/err.c (grub_error_push): Added new function to support error
43730 stacks.
43731 (grub_error_pop): Likewise.
43732 (grub_error_stack_items): New local variable to support error stacks.
43733 (grub_error_stack_pos): Likewise.
43734 (grub_error_stack_assert): Likewise.
43735 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43736 stack depth.
43737 (grub_print_error): Added support to print errors from error stack.
43738
43739 * include/grub/err.h (grub_error_push): Added function prototype.
43740 (grub_error_pop): Likewise.
43741
43742 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43743
43744 * configure.ac: Accept `powerpc64' as host_cpu.
43745 (amd64): Rename to `biarch32'.
43746
43747 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43748 non-cacheline-aligned addresses.
43749
43750 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43751 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43752 if `size' is non-zero.
43753
43754 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
43755
43756 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43757 and `cd' to make sure the filename is not prefixed with a
43758 directory name.
43759 (pkgdata_MODULES): Add `gpt.mod'.
43760 (gpt_mod_SOURCES): New variable.
43761 (gpt_mod_CFLAGS): Likewise.
43762 (gpt_mod_LDFLAGS): Likewise.
43763
43764 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43765
43766 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43767 New macro.
43768
43769 * partmap/gpt.c: New file.
43770
43771 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43772 GPT partition map is detected.
43773
43774 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43775
43776 * commands/i386/pc/play.c: New file.
43777 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43778 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43779 macros.
43780
43781 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
43782
43783 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43784 ((unused))' to silence gcc warning.
43785
43786 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43787
43788 * configure.ac: Correct `AC_PROG_YACC' test.
43789
43790 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43791
43792 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43793 check before installing files.
43794
43795 2005-11-22 Mike Small <smallm@panix.com>
43796
43797 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43798 number regex so multidigit numbers are recognized correctly.
43799
43800 2005-11-22 Mike Small <smallm@panix.com>
43801
43802 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43803 debugging message before attempting to claim memory.
43804 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43805 multiple addresses in case of failure.
43806
43807 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43808
43809 * term/tparm.c (get_space): Remove empty `if' statement.
43810
43811 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43812
43813 * kern/parser.c (check_varstate): Rename `state' to 's'.
43814
43815 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43816
43817 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43818 variable definitions to the beginning of each function. Sort stack
43819 variables by size.
43820 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43821 `buf' argument to `char *'.
43822
43823 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43824
43825 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43826 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43827 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43828 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43829 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43830 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43831 configfile.mod, search.mod, gzio.mod and test.mod.
43832 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43833 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43834 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43835 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43836 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43837 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43838 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43839 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43840 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43841 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43842 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43843 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43844 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43845 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43846 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43847 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43848 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43849 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43850 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43851 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43852 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43853 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43854 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43855
43856 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43857 `grep --include'.
43858 (pkgdata_MODULES): Add test.mod.
43859
43860 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43861
43862 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43863 appending to variables with "+=".
43864 (PModule): Use full pathname to generate *.lst filenames.
43865
43866 * Makefile.in: Fixed list rules moved from genmk.rb.
43867 (.DELETE_ON_ERROR): New special target.
43868 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43869
43870 * conf/i386-pc.rmk: Include conf/common.mk.
43871 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
43872 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
43873 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43874 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43875 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43876 configfile.mod, search.mod, gzio.mod and test.mod.
43877 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43878 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43879 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43880 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43881 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43882 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43883 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43884 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43885 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43886 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43887 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43888 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43889 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43890 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43891 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43892 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43893 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43894 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43895 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43896 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43897 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43898 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43899 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43900 here...
43901 * conf/common.rmk: ... to here. New file.
43902
43903 * conf/common.mk: New file.
43904
43905 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43906
43907 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43908 (grub_script.tab.c): ... here.
43909
43910 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43911 (grub_script.tab.c): ... here.
43912
43913 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43914 (grub_script.tab.c): ... here.
43915
43916 * normal/command.c (grub_command_find): Fixed a memory leak of
43917 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43918
43919 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43920
43921 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43922 "@" which marks the start of a comment on ARM.
43923 (VARIABLE): Likewise.
43924
43925 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43926
43927 Add support for Linux/ADFS partition tables.
43928
43929 * partmap/acorn.c: New file.
43930
43931 * include/grub/acorn_filecore.h: Likewise.
43932
43933 * DISTLIST: Added `partmap/acorn.c' and
43934 `include/grub/acorn_filecore.h'.
43935
43936 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43937 `partmap/acorn.c'.
43938 (pkgdata_MODULES): Add `acorn.mod'.
43939 (acorn_mod_SOURCES): New variable.
43940 (acorn_mod_CFLAGS): Likewise.
43941
43942 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43943 `partmap/acorn.c'.
43944 (pkgdata_MODULES): Add `acorn.mod'.
43945 (acorn_mod_SOURCES): New variable.
43946 (acorn_mod_CFLAGS): Likewise.
43947
43948 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43949 (pkgdata_MODULES): Add `acorn.mod'.
43950 (acorn_mod_SOURCES): New variable.
43951 (acorn_mod_CFLAGS): Likewise.
43952 (acorn_mod_LDFLAGS): Likewise.
43953
43954 * include/types.h (grub_disk_addr_t): New typedef.
43955
43956 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
43957
43958 * geninit.sh: New file.
43959
43960 * geninitheader.sh: Likewise.
43961
43962 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43963 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43964 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43965 * commands/configfile.c (grub_configfile_init)
43966 (grub_configfile_fini): Likewise.
43967 * commands/default.c (grub_default_init, grub_default_fini):
43968 Likewise.
43969 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43970 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43971 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43972 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43973 Likewise.
43974 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43975 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43976 Likewise.
43977 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
43978 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
43979 Likewise.
43980 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43981 Likewise.
43982 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
43983 Likewise.
43984 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43985 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43986 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43987 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43988 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43989 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43990 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43991 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43992 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43993 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43994 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43995 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43996 * partmap/amiga.c (grub_amiga_partition_map_init)
43997 (grub_amiga_partition_map_fini): Likewise.
43998 * partmap/apple.c (grub_apple_partition_map_init)
43999 (grub_apple_partition_map_fini): Likewise.
44000 * partmap/pc.c (grub_pc_partition_map_init)
44001 (grub_pc_partition_map_fini): Likewise.
44002 * partmap/sun.c (grub_sun_partition_map_init,
44003 grub_sun_partition_map_fini): Likewise.
44004 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44005 Likewise.
44006
44007 * util/grub-emu.c: Include <grub_modules_init.h>.
44008 (main): Don't initialize and de-initialize any modules directly,
44009 use `grub_init_all' and `grub_fini_all' instead.
44010
44011 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44012 `grub_vesafb_mod_init'.
44013 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44014 all users.
44015 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44016 `grub_vga_mod_init'. Updated all users.
44017 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44018
44019 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44020 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44021 rules.
44022
44023 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44024 Generate a function to initialize the module in utilities.
44025 Updated all callers.
44026 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44027 initialize the module in utilities. Updated all callers.
44028
44029 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44030
44031 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44032 escape sequence and a literal ^L to clear the screen.
44033
44034 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44035 when returning from Open Firmware.
44036
44037 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44038
44039 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44040 (grub_ofconsole_height): Likewise.
44041 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44042 manually insert a '\n'.
44043 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44044 `grub_ofconsole_height'. Return early if these are already set.
44045
44046 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44047
44048 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44049 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44050 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44051 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44052 and `normal/script.c'.
44053 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44054 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44055 (test_mod_SOURCES): New variable.
44056 (test_mod_CFLAGS): Likewise.
44057 (test_mod_LDFLAGS): Likewise.
44058 (pkgdata_MODULES): Add `test.mod'.
44059 (grub_script.tab.c): New rule.
44060 (grub_script.tab.h): Likewise.
44061
44062 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44063
44064 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44065 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44066 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44067 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44068 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44069 (test_mod_SOURCES): New variable.
44070 (test_mod_CFLAGS): Likewise.
44071 (pkgdata_MODULES): Add `test.mod'.
44072 (grub_script.tab.c): New rule.
44073 (grub_script.tab.h): Likewise.
44074
44075 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44076
44077 Add initial scripting support.
44078
44079 * commands/test.c: New file.
44080 * include/grub/script.h: Likewise.
44081 * normal/execute.c: Likewise.
44082 * normal/function.c: Likewise.
44083 * normal/lexer.c: Likewise.
44084 * normal/parser.y: Likewise.
44085 * normal/script.c: Likewise.
44086
44087 * configure.ac: Add `AC_PROG_YACC' test.
44088
44089 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44090 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44091 `normal/function.c' and `normal/script.c'.
44092 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44093 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44094 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44095 variables.
44096 (pkgdata_MODULES): Add `test.mod'.
44097 (grub_script.tab.c): New rule.
44098 (grub_script.tab.h): Likewise.
44099
44100 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44101
44102 * include/grub/normal.h (grub_test_init): New prototype.
44103 (grub_test_fini): Likewise.
44104
44105 * normal/command.c: Include <grub/script.h>.
44106 (grub_command_execute): Rewritten.
44107
44108 * util/grub-emu.c (main): Call `grub_test_init' and
44109 `grub_test_fini'.
44110
44111 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44112
44113 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44114 to 0.
44115 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44116 there are no pending characters.
44117
44118 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44119
44120 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44121 `grub_strndup' to drop device arguments. Replace unnecessary
44122 `grub_strndup' with `grub_strdup'.
44123
44124 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44125
44126 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44127 `debug' environment variable has been set.
44128
44129 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44130
44131 * Makefile.in (install-local): Use $(DATA).
44132 (uninstall): Likewise.
44133 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44134 (sbin_UTILITIES): ... to here.
44135 (sbin_SCRIPTS): New variable.
44136 (grub_install_SOURCES): New variable.
44137 * util/powerpc/ieee1275/grub-install.in: New file.
44138 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44139 variable.
44140 (add_segments): Call `grub_util_get_path'.
44141
44142 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44143
44144 From Timothy Baldwin:
44145 * commands/ls.c (grub_ls_list_files): Close FILE with
44146 grub_file_close.
44147 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44148
44149 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44150
44151 * include/grub/parser.h: New file.
44152
44153 * kern/parser.c: Likewise.
44154
44155 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44156 (grub_setup_SOURCES): Likewise.
44157 (grub_probefs_SOURCES): Likewise.
44158 (grub_emu_SOURCES): Likewise.
44159 (kernel_img_HEADERS): Add `parser.h'.
44160
44161 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44162 (grub_emu_SOURCES): Add `kern/parser.c'.
44163 (grubof_SOURCES): Likewise.
44164
44165 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44166 (grubof_SOURCES): Add `kern/parser.c'.
44167
44168 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44169
44170 * kern/misc.c (grub_split_cmdline): Removed function.
44171
44172 * kern/rescue.c: Include <grub/parser.h>.
44173 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44174 of `grub_split_cmdline'.
44175
44176 * normal/command.c: Include <grub/parser.h>.
44177 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44178 of `grub_split_cmdline'.
44179
44180 * normal/completion.c: Include <grub/parser.h>.
44181 (cmdline_state): New variable.
44182 (iterate_dir): End the filename with a quote depending on the
44183 command line state.
44184 (get_state): new function.
44185 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44186 split the arguments and determine the current argument. When the
44187 argument string is not quoted, escape all spaces.
44188
44189 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44190
44191 * normal/sparc64/setjmp.S: New file.
44192
44193 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44194
44195 * include/grub/sparc64/libgcc.h: New file.
44196 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44197 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44198 normal/sparc64/setjmp.c.
44199
44200 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44201
44202 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44203 * kern/sparc64/cache.S: New file.
44204 * kern/sparc64/cache.c: Removed.
44205 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44206 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44207 -mtune=ultrasparc.
44208 (COMMON_LDFLAGS): Add -melf64_sparc.
44209 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44210 (grubof_SOURCES): Use cache.S instead of cache.c.
44211 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44212 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44213 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44214 commented though.
44215 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44216 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44217 (linux_mod_CFLAGS): Commented out.
44218 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44219 out because module isn't built.
44220 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44221 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44222 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44223 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44224 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44225 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44226 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44227 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44228 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44229 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44230 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44231 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44232 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44233 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44234
44235 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44236
44237 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44238 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44239 longer, because HFS should not be used on PC.
44240
44241 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44242
44243 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44244 consistently within the loop.
44245
44246 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44247
44248 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44249 directory can not be read.
44250
44251 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44252
44253 * configure.ac (AC_INIT): Increase the version number to 1.91.
44254
44255 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44256 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44257 term/i386/pc/serial.c.
44258
44259 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44260
44261 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44262 file size must be permitted.
44263
44264 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44265 between %ah and %al.
44266
44267 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44268
44269 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44270 grub_uint64_t.
44271 Call the hook with a NUL-terminated filename.
44272 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44273 grub_cpu_to_be32.
44274
44275 * kern/term.c (cursor_state): New variable.
44276 (grub_term_set_current): Reset the cursor state on a new
44277 terminal.
44278 (grub_setcursor): Rewritten to use CURSOR_STATE.
44279 (grub_getcursor): New function.
44280
44281 * include/grub/term.h (grub_getcursor): New prototype.
44282
44283 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44284 integers on ARM. Reported by Timothy Baldwin
44285 <T.E.Baldwin99@members.leeds.ac.uk>.
44286
44287 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44288
44289 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44290 allocated.
44291 (grub_sfs_dir): Likewise.
44292
44293 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44294
44295 Add support for the SFS filesystem.
44296
44297 * fs/sfs.c: New file.
44298
44299 * DISTLIST: Added `fs/sfs.c'.
44300
44301 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44302 (grub_probefs_SOURCES): Likewise.
44303 (grub_emu_SOURCES): Likewise.
44304 (pkgdata_MODULES): Add `sfs.mod'.
44305 (sfs_mod_SOURCES): New variable.
44306 (sfs_mod_CFLAGS): Likewise.
44307 (sfs_mod_LDFLAGS): Likewise.
44308
44309 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44310 (pkgdata_MODULES): Add `sfs.mod'.
44311 (sfs_mod_SOURCES): New variable.
44312 (sfs_mod_CFLAGS): Likewise.
44313
44314 * util/grub-emu.c (main): Call `grub_sfs_init' and
44315 `grub_sfs_fini'.
44316
44317 * include/grub/fs.h (grub_sfs_init): New prototype.
44318 (grub_sfs_fini): Likewise.
44319
44320 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44321
44322 Add support for the AFFS filesystem.
44323
44324 * fs/affs.c: New file.
44325
44326 * DISTLIST: Added `fs/affs.c'.
44327
44328 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44329 (grub_probefs_SOURCES): Likewise.
44330 (grub_emu_SOURCES): Likewise.
44331 (pkgdata_MODULES): Add `affs.mod'.
44332 (affs_mod_SOURCES): New variable.
44333 (affs_mod_CFLAGS): Likewise.
44334 (affs_mod_LDFLAGS): Likewise.
44335
44336 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44337 (pkgdata_MODULES): Add `affs.mod'.
44338 (affs_mod_SOURCES): New variable.
44339 (affs_mod_CFLAGS): Likewise.
44340
44341 * util/grub-emu.c (main): Call `grub_affs_init' and
44342 `grub_affs_fini'.
44343
44344 * include/grub/fs.h (grub_affs_init): New prototype.
44345 (grub_affs_fini): Likewise.
44346
44347 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44348
44349 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44350
44351 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44352
44353 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44354 `-m32' to CFLAGS.
44355
44356 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44357 linking.
44358
44359 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44360 (COMMON_LDFLAGS): New variable.
44361 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44362 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44363 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44364 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44365 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44366 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44367 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44368 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44369 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44370 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44371 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44372 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44373 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44374 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44375 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44376 variables.
44377 (normal_mod_ASFLAGS): Add `-m32'.
44378
44379 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44380 (grub_host_size_t, grub_host_ssize_t): New types.
44381 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44382 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44383 `GRUB_HOST_SIZEOF_VOID_P'.
44384
44385 * include/grub/kernel.h (struct grub_module_header): Type of
44386 member offset changed to `grub_host_off_t'. Type of member size
44387 changed to `grub_host_size_t'.
44388 (struct grub_module_info): Type of member offset changed to
44389 `grub_host_off_t'. Type of member size changed to
44390 `grub_host_size_t'.
44391
44392 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44393
44394 Make GRUB's kernel compliant to Multiboot Specification.
44395
44396 * kern/i386/pc/startup.S (multiboot_header): New label.
44397 (multiboot_entry): Likewise.
44398 (multiboot_trampoline): Likewise.
44399
44400 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44401 Increased to 0x4A0.
44402
44403 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44404 put parentheses after a question mark.
44405 [!GRUB_UTIL] (my_mod): New variable.
44406
44407 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44408
44409 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44410
44411 Adds support for the XFS filesystem. Btrees are not supported
44412 yet.
44413
44414 * fs/xfs.c: New file.
44415
44416 * DISTLIST: Added `fs/xfs.c'.
44417
44418 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44419 (grub_probefs_SOURCES): Likewise.
44420 (grub_emu_SOURCES): Likewise.
44421 (pkgdata_MODULES): Add `xfs.mod'.
44422 (xfs_mod_SOURCES): New variable.
44423 (xfs_mod_CFLAGS): Likewise.
44424
44425 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44426 (pkgdata_MODULES): Add `xfs.mod'.
44427 (xfs_mod_SOURCES): New variable.
44428 (xfs_mod_CFLAGS): Likewise.
44429
44430 * util/grub-emu.c (main): Call `grub_xfs_init' and
44431 `grub_xfs_fini'.
44432
44433 * include/grub/fs.h (grub_xfs_init): New prototype.
44434 (grub_xfs_fini): Likewise.
44435
44436
44437 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44438
44439 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44440 color modes, allow greater than 16 colors to be configured as
44441 a default palette.
44442
44443 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44444
44445 * normal/completion.c (complete_arguments): Add the qualifier
44446 const into OPTIONS.
44447
44448 From Omniflux <omniflux+lists@omniflux.com>:
44449 * include/grub/terminfo.h: New file.
44450 * include/grub/tparm.h: Likewise.
44451 * include/grub/i386/pc/serial.h: Likewise.
44452 * term/terminfo.c: Likewise.
44453 * term/tparm.c: Likewise.
44454 * term/i386/pc/serial.c: Likewise.
44455 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44456 serial.mod.
44457 (terminfo_mod_SOURCES): New variable.
44458 (terminfo_mod_CFLAGS): Likewise.
44459 (serial_mod_SOURCES): Likewise.
44460 (serial_mod_CFLAGS): Likewise.
44461
44462 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44463
44464 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44465 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44466 and kern/powerpc/ieee1275/cmain.c, respectively.
44467
44468 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44469 * kern/powerpc/ieee1275/crt0.S: ... here.
44470
44471 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44472 * kern/powerpc/ieee1275/cmain.c: ... here.
44473
44474 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44475 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44476 instead of boot/powerpc/ieee1275/crt0.S and
44477 boot/powerpc/ieee1275/cmain.c, respectively.
44478
44479 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44480 sectors. It was not used anyway.
44481
44482 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44483
44484 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44485 `unused parameter' warning.
44486
44487 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44488
44489 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44490 function.
44491 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44492 getcharwidth.
44493
44494 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44495
44496 * include/grub/normal.h (enum grub_completion_type): Added
44497 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44498
44499 * normal/cmdline.c (print_completion): Handle
44500 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44501 * normal/menu_entry.c (store_completion): Likewise.
44502
44503 * normal/completion.c (complete_arguments): New function.
44504 (grub_normal_do_completion): Call `complete_arguments' when the
44505 current words start with a dash.
44506
44507 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44508
44509 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44510 `gzio.mod' instead of `io.mod').
44511
44512 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44513
44514 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44515 (DISTDIRS): Added io and video.
44516 Rewrite the search routine to make an output consistently.
44517
44518 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44519 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44520 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44521 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44522 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44523 util/powerpc/ieee1275/misc.c.
44524
44525 * include/grub/gzio.h: New file.
44526 * io/gzio.c: Likewise.
44527
44528 * kern/file.c (grub_file_close): Call grub_device_close only if
44529 FILE->DEVICE is not NULL.
44530
44531 * include/grub/mm.h [!NULL] (NULL): New macro.
44532
44533 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44534
44535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44536 (pkgdata_MODULES): Added gzio.mod.
44537 (gzio_mod_SOURCES): New variable.
44538 (gzio_mod_CFLAGS): Likewise.
44539
44540 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44541 (pkgdata_MODULES): Added gzio.mod.
44542 (gzio_mod_SOURCES): New variable.
44543 (gzio_mod_CFLAGS): Likewise.
44544
44545 * commands/cat.c: Include grub/gzio.h.
44546 (grub_cmd_cat): Use grub_gzfile_open instead of
44547 grub_file_open.
44548
44549 * commands/cmp.c: Include grub/gzio.h.
44550 (grub_cmd_cmp): Use grub_gzfile_open instead of
44551 grub_file_open.
44552
44553 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44554 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44555 grub_file_open.
44556 (grub_rescue_cmd_module): Likewise.
44557
44558 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44559
44560 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44561 kern/sparc64/ieee1275/init.c because it contains _start.
44562 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44563
44564 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44565
44566 * configure.ac: Add support for sparc64 host with ieee1275
44567 firmware.
44568 * configure: Generated from configure.ac.
44569 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44570 instead of int.
44571 (grub_ofdisk_read): Likewise.
44572 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44573 pointers as (void *) to remove a warning.
44574 (grub_ofdisk_close): Likewise.
44575 (grub_ofdisk_read): Likewise.
44576 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44577 returns, so make it return void to remove a warning.
44578 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44579 Corresponding prototype change.
44580 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44581 values, and cast the pointers as (void *) to remove a warning.
44582 (grub_mm_dump): Likewise.
44583 * conf/sparc64-ieee1275.mk: New file.
44584 * conf/sparc64-ieee1275.rmk: Likewise.
44585 * include/grub/sparc64/setjmp.h: Likewise.
44586 * include/grub/sparc64/types.h: Likewise.
44587 * include/grub/sparc64/ieee1275/console.h: Likewise.
44588 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44589 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44590 * include/grub/sparc64/ieee1275/time.h: Likewise.
44591 * kern/sparc64/cache.c: Likewise.
44592 * kern/sparc64/dl.c: Likewise.
44593 * kern/sparc64/ieee1275/init.c: Likewise.
44594 * kern/sparc64/ieee1275/openfw.c: Likewise.
44595
44596 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44597
44598 * util/console.c (grub_ncurses_putchar): If C is greater than
44599 0x7f, set C to a question mark.
44600 (grub_ncurses_getcharwidth): New function.
44601 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44602 getcharwidth.
44603
44604 * normal/menu.c (print_entry): Made aware of Unicode. First,
44605 convert TITLE to UCS-4, and predict the cursor position by
44606 grub_getcharwidth.
44607
44608 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44609 const to SRC.
44610 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44611
44612 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44613
44614 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44615 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44616 grub_strcat.
44617
44618 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44619 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44620 grub_strcpy and grub_strlen. Take it into account that a space
44621 character is inserted as a delimiter.
44622
44623 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44624
44625 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44626 invalid magic in the error.
44627
44628 * commands/search.c: New file.
44629
44630 * util/grub-emu.c (main): Call grub_search_init and
44631 grub_search_fini.
44632
44633 * kern/rescue.c (grub_rescue_print_disks): Removed.
44634 (grub_rescue_print_devices): New function.
44635 (grub_rescue_cmd_ls): Use grub_device_iterate with
44636 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44637 grub_rescue_print_disks.
44638
44639 * kern/partition.c (grub_partition_iterate): Return the result of
44640 PARTMAP->ITERATE instead of GRUB_ERRNO.
44641
44642 * kern/device.c: Include grub/partition.h.
44643 (grub_device_iterate): New function.
44644
44645 * include/grub/partition.h (grub_partition_iterate): Return int
44646 instead of grub_err_t.
44647
44648 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44649 prototype.
44650 [GRUB_UTIL] (grub_search_fini): Likewise.
44651
44652 * include/grub/device.h (grub_device_iterate): New prototype.
44653
44654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44655 commands/search.c.
44656 (pkgdata_MODULES): Added search.mod.
44657 (search_mod_SOURCES): New variable.
44658 (search_mod_CFLAGS): Likewise.
44659
44660 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44661 (pkgdata_MODULES): Added search.mod.
44662 (search_mod_SOURCES): New variable.
44663 (search_mod_CFLAGS): Likewise.
44664
44665 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44666 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44667 All callers changed.
44668
44669 * DISTLIST: Added commands/search.c.
44670
44671 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44672
44673 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44674 conversion.
44675 (grub_getcharwidth): New function.
44676
44677 * kern/misc.c (grub_utf8_to_ucs4): New function.
44678
44679 * include/grub/term.h (struct grub_term): Added a new member
44680 "getcharwidth".
44681 (grub_getcharwidth): New prototype.
44682
44683 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44684
44685 * term/i386/pc/console.c (map_char): New function. Segregated from
44686 grub_console_putchar.
44687 (grub_console_putchar): Use map_char.
44688 (grub_console_getcharwidth): New function.
44689 (grub_console_term): Specified grub_console_getcharwidth as
44690 getcharwidth.
44691
44692 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44693 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44694
44695 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44696 GRUB_ERRNO.
44697 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44698 on grub_strtoul completely.
44699 (write_char): Declare local variables in the beginning of the
44700 function.
44701 (grub_vesafb_getcharwidth): New function.
44702 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44703 getcharwidth.
44704
44705 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44706
44707 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44708 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44709 commands/i386/pc/vbetest.c.
44710
44711 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44712 call grub_vbe_get_controller_info again, because the returned
44713 information is volatile.
44714 (grub_vbe_set_video_mode): Mostly rewritten.
44715 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44716 grub_vbe_status_t correctly.
44717 (grub_vbe_get_video_mode_info): Likewise.
44718 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44719 several if statements.
44720
44721 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44722 * commands/i386/pc/vbeinfo.c: ... this.
44723
44724 * commands/i386/pc/vbe_test.c: Renamed to ...
44725 * commands/i386/pc/vbetest.c: ... this.
44726
44727 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44728 ...
44729 (grub_cmd_vbeinfo): ... this. Save video modes before
44730 iterating. Skip a video mode, if it is not available, not enough
44731 information is given or it is monochrome. Show the memory
44732 model. Leave the interpretation of MODEVAR to grub_strtoul
44733 completely.
44734 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44735 (GRUB_MOD_FINI): Likewise.
44736
44737 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44738 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44739 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44740 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44741 grub_strtoul completely.
44742 (real2pm): Removed.
44743 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44744 (GRUB_MOD_FINI): Likewise.
44745
44746 * normal/misc.c: Include grub/mm.h.
44747
44748 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44749 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44750 (vbe_list_modes_mod_SOURCES): Removed.
44751 (vbe_list_modes_mod_CFLAGS): Likewise.
44752 (vbe_test_mod_SOURCES): Likewise.
44753 (vbe_test_mod_CFLAGS): Likewise.
44754 (vbeinfo_mod_SOURCES): New variable.
44755 (vbeinfo_mod_CFLAGS): Likewise.
44756 (vbetest_mod_SOURCES): Likewise.
44757 (vbetest_mod_CFLAGS): Likewise.
44758
44759 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44760
44761 * normal/misc.c: New file.
44762
44763 * DISTLIST: Added normal/misc.c.
44764
44765 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44766 DISK to HOOK. Call HOOK with DISK.
44767 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44768 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44769 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44770
44771 * normal/menu_entry.c (struct screen): Added a new member
44772 "completion_shown".
44773 (completion_buffer): New global variable.
44774 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44775 (store_completion): New function.
44776 (complete): Likewise.
44777 (clear_completions): Likewise.
44778 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44779 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44780 a tab, call complete.
44781
44782 * normal/completion.c (disk_dev): Removed.
44783 (print_simple_completion): Likewise.
44784 (print_partition_completion): Likewise.
44785 (print_func): New global variable.
44786 (add_completion): Do not take the arguments WHAT or PRINT any
44787 longer. Added a new argument TYPE. Instead of printing directly,
44788 call PRINT_FUNC if not NULL.
44789 All callers changed.
44790 (complete_device): Use a local variable DEV instead of
44791 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44792 (grub_normal_do_completion): Take a new argument HOOK. Do not
44793 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44794 empty string, return NULL instead.
44795 All callers changed.
44796
44797 * normal/cmdline.c (print_completion): New function.
44798
44799 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44800 to HOOK.
44801 All callers changed.
44802
44803 * kern/disk.c (grub_print_partinfo): Removed.
44804
44805 * include/grub/partition.h (struct grub_partition_map): Add a new
44806 argument DISK into HOOK of ITERATE.
44807 (grub_partition_iterate): Add a new argument DISK to HOOK.
44808
44809 * include/grub/normal.h (enum grub_completion_type): New enum.
44810 (grub_completion_type_t): New type.
44811 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44812 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44813 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44814 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44815 (grub_normal_do_completion): Added a new argument HOOK.
44816 (grub_normal_print_device_info): New prototype.
44817
44818 * include/grub/disk.h (grub_print_partinfo): Removed.
44819
44820 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44821 (normal_mod_SOURCES): Likewise.
44822 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44823 (normal_mod_SOURCES): Likewise.
44824
44825 * commands/ls.c (grub_ls_list_disks): Use
44826 grub_normal_print_device_info instead of grub_print_partinfo. Free
44827 PNAME.
44828 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44829 duplicating the code.
44830
44831 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44832
44833 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
44834 follow GCS more precisely.
44835 * commands/i386/pc/vbe_test.c: Likewise.
44836 * include/grub/i386/pc/vbe.h: Likewise.
44837 * term/i386/pc/vesafb.c: Likewise.
44838 * video/i386/pc/vbe.c: Likewise.
44839
44840 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44841
44842 * DISTLIST: Added term/i386/pc/vesafb.c
44843 DISTLIST: Added video/i386/pc/vbe.c
44844 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44845 DISTLIST: Added commands/i386/pc/vbe_test.c.
44846 * commands/i386/pc/vbe_list_modes.c: New file.
44847 * commands/i386/pc/vbe_test.c: Likewise.
44848 * term/i386/pc/vesafb.c: Likewise.
44849 * video/i386/pc/vbe.c: Likewise.
44850 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44851 (grub_vbe_probe) Added prototype.
44852 (grub_vbe_set_video_mode) Likewise.
44853 (grub_vbe_get_video_mode) Likewise.
44854 (grub_vbe_get_video_mode_info) Likewise.
44855 (grub_vbe_set_pixel_rgb) Likewise.
44856 (grub_vbe_set_pixel_index) Likewise.
44857 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44858 (pkgdata_MODULES): Added vesafb.mod.
44859 (pkgdata_MODULES): Added vbe_list_modes.mod.
44860 (pkgdata_MODULES): Added vbe_test.mod.
44861 (vbe_mod_SOURCES): Added.
44862 (vbe_mod_CFLAGS): Likewise.
44863 (vesafb_mod_SOURCES): Likewise.
44864 (vesafb_mod_CFLAGS): Likewise.
44865 (vbe_list_modes_mod_SOURCES): Likewise.
44866 (vbe_list_modes_mod_CFLAGS): Likewise.
44867 (vbe_test_mod_SOURCES): Likewise.
44868 (vbe_test_mod_CFLAGS): Likewise.
44869
44870 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44871
44872 * normal/command.c (grub_command_execute): If INTERACTIVE is
44873 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44874 CMDLINE. Disable the pager if INTERACTIVE is true.
44875 All callers are changed.
44876
44877 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44878 before reading a config file.
44879 * normal/main.c (read_config_file): Even if a command is not
44880 found, register it if it is within an entry.
44881
44882 * util/grub-emu.c: Include sys/types.h and unistd.h.
44883 (options): Added --hold.
44884 (struct arguments): Added a new member "hold".
44885 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44886 missing.
44887 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44888 cleared by a debugger, if it is not zero.
44889
44890 * include/grub/normal.h (grub_command_execute): Add an argument
44891 INTERACTIVE.
44892
44893 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44894
44895 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44896
44897 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44898
44899 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44900 program with another one, because the old one didn't detect a bug
44901 in gcc-3.4. Always use regparm 2, because the new test is still
44902 not enough for gcc-4.0. Someone must investigate a simple test
44903 case which detects a bug in gcc-4.0.
44904
44905 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44906
44907 * DISTLIST: Added normal/completion.c.
44908
44909 * normal/completion.c: New file.
44910
44911 * term/i386/pc/console.c (grub_console_getwh): New function.
44912 (grub_console_term): Assign grub_console_getwh to getwh.
44913
44914 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44915 function is defined in normal/completion.c as
44916 grub_normal_do_completion.
44917 (grub_cmdline_get): Use grub_normal_do_completion instead of
44918 grub_tab_complete.
44919
44920 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44921 returns non-zero, otherwise return 0.
44922 (grub_partition_iterate): First, probe the partition map. Then,
44923 call ITERATE only for this partition map.
44924
44925 * kern/misc.c (grub_strncmp): Rewritten.
44926
44927 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44928 returns non-zero. Otherwise return 0.
44929
44930 * include/grub/partition.h (grub_partition_map_iterate): Return
44931 int instead of void.
44932
44933 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44934
44935 * include/grub/misc.h (grub_strncmp): Change the type of N to
44936 grub_size_t.
44937
44938 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44939 of void.
44940
44941 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
44942 unsigned explicitly before comparing it with I.
44943
44944 * kern/main.c (grub_env_write_root): Add the attribute unused into
44945 VAR.
44946
44947 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44948 normal/completion.c.
44949 (normal_mod_SOURCES): Likewise.
44950 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44951 (normal_mod_SOURCES): Likewise.
44952
44953 * normal/command.c (grub_iterate_commands): If ITERATE returns
44954 non-zero, return one immediately.
44955
44956 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44957
44958 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44959 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44960 descriptions.
44961 (grub_vbe_get_controller_info): New function.
44962 (grub_vbe_get_mode_info): Likewise.
44963 (grub_vbe_set_mode): Likewise.
44964 (grub_vbe_get_mode): Likewise.
44965 (grub_vbe_set_memory_window): Likewise.
44966 (grub_vbe_get_memory_window): Likewise.
44967 (grub_vbe_set_scanline_length): Likewise.
44968 (grub_vbe_get_scanline_length): Likewise.
44969 (grub_vbe_set_display_start): Likewise.
44970 (grub_vbe_get_display_start): Likewise.
44971 (grub_vbe_set_palette_data): Likewise.
44972 * include/grub/i386/pc/vbe.h: New file.
44973
44974 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44975
44976 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44977 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44978 * DISTLIST: Likewise.
44979 * kern/ieee1275/of.c: Moved to ...
44980 * kern/ieee1275/ieee1275.c: ... here.
44981
44982 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44983
44984 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44985 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44986 Pass 0 as `end' parameter to grub_strtoul().
44987
44988 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44989
44990 * include/grub/powerpc/ieee1275/console.h: Do not include
44991 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44992 ifdef.
44993 (grub_console_cur_color): Remove i386-specific prototype.
44994 (grub_console_real_putchar): Likewise.
44995 (grub_console_checkkey): Likewise.
44996 (grub_console_getkey): Likewise.
44997 (grub_console_getxy): Likewise.
44998 (grub_console_gotoxy): Likewise.
44999 (grub_console_cls): Likewise.
45000 (grub_console_setcursor): Likewise.
45001 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45002 Include <grub/machine/console.h>.
45003 * term/ieee1275/ofconsole.c: Likewise.
45004
45005 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45006
45007 * Makefile.in (LIBLZO): New variable.
45008
45009 * configure.ac: Check for LZO version 2.
45010
45011 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45012 lzo/lzo1x.h instead of lzo1x.h.
45013
45014 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45015 of -llzo.
45016
45017 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45018 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45019
45020 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45021 copying the data from PARTITION to P.
45022
45023 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45024
45025 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45026 negative, unload the module.
45027
45028 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45029 map is "pc_partition_map" but not "pc".
45030 (usage): Fix the description. The options are --boot-image and
45031 --core-image but not --boot-file or --core-file.
45032 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45033 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45034 DEFAULT_DIRECTORY.
45035
45036 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45037 --core-file. Specify INSTALL_DEVICE as an argument.
45038
45039 * util/console.c: Include config.h.
45040 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45041 [HAVE_NCURSES_H]: Include ncurses.h.
45042 [HAVE_CURSES_H]: Include curses.h.
45043 [!A_NORMAL] (A_NORMAL): Defined as zero.
45044 [!A_STANDOUT] (A_STANDOUT): Likewise.
45045
45046 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45047 -lncurses.
45048 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45049
45050 * configure.ac: Check for curses libraries and headers.
45051
45052 * Makefile.in (LIBCURSES): New variable.
45053
45054 * genmk.rb (Script::rule): Set the executable bits.
45055
45056 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45057 name of the PC partition map is "pc_partition_map" but not "pc".
45058
45059 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45060
45061 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45062 (modules): Likewise.
45063 (usage): Added descriptions for --modules and --grub-probefs.
45064 Handle --modules and --grub-probefs. Save the arguments in MODULES
45065 and GRUB_PROBEFS, respectively.
45066 Auto-detect a filesystem module against GRUBDIR. If the result is
45067 empty and modules are not specified explicitly, abort the
45068 installation. Add the result to MODULES.
45069
45070 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45071 disk/powerpc/ieee1275/ofdisk.c,
45072 include/grub/powerpc/ieee1275/init.h and
45073 term/powerpc/ieee1275/ofconsole.c.
45074 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45075 term/ieee1275/ofconsole.c.
45076
45077 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45078
45079 * COPYING: Upgraded to the latest version. Only the address of the
45080 FSF office has changed.
45081
45082 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45083
45084 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45085 kern/ieee1275.c with kern/ieee1275/of.c.
45086
45087 * kern/ieee1275.c: Moved to ...
45088 * kern/ieee1275/of.c: ... here.
45089
45090 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45091
45092 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45093 readability.
45094
45095 * config.guess: Updated to the latest version from gnulib.
45096 * config.sub: Likewise.
45097 * install.sh: Likewise.
45098 * mkinstalldirs: Likewise.
45099
45100 * include/grub/console.h: Removed. This file is arch-specific. Do
45101 not put this in include/grub.
45102
45103 * include/grub/i386/pc/console.h: Resurrected.
45104
45105 * util/console.c: Include grub/machine/console.h instead of
45106 grub/console.h.
45107 * util/grub-emu.c: Likewise.
45108
45109 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45110
45111 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45112 hardcoded value.
45113
45114 From Vincent Pelletier <subdino2004@yahoo.fr>
45115 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45116 Redefined to use grub_getwh.
45117 (grub_term): New member named getwh.
45118 (grub_getwh): New prototype.
45119 * kern/term.c (grub_getwh): New function.
45120 * term/i386/pc/console.c (grub_console_getwh): New function.
45121 (grub_console_term): New member `getwh'.
45122 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45123 (grub_vga_term): New member `getwh'.
45124 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45125 grub_ssize_t.
45126 (grub_ofconsole_getw): New function.
45127 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45128 (grub_ofconsole_term): New field named getwh and new initial
45129 value.
45130
45131 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45132
45133 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45134 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45135 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45136 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45137 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45138 of <grub/machine/ieee1275.h>.
45139 * commands/ieee1275/reboot.c: Likewise.
45140 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45141 * kern/ieee1275.c: ... to here. All users updated. Change all
45142 parameter structs to use new type `grub_ieee1275_cell_t'.
45143 * term/powerpc/ieee1275/ofconsole.c: Move ...
45144 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45145 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45146 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45147 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45148 to return int.
45149 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45150 Remove unused prototypes. All users updated.
45151 * include/grub/powerpc/ieee1275/console.h: Removed.
45152 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45153 `grub_ieee1275_cell_t'.
45154 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45155 Cast comparisons with -1 to the correct type.
45156 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45157 type to match `grub_ieee1275_entry_fn'.
45158
45159 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45160
45161 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45162
45163 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45164 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45165 partmap/sun.c.
45166 (grub_probefs_SOURCES): New variable.
45167
45168 * util/i386/pc/grub-probefs.c: New file.
45169
45170 * util/i386/pc/grub-setup.c (main): Call
45171 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45172 grub_hfs_init and grub_jfs_init to initialize the system. Call
45173 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45174 grub_pc_partition_map_fini to finish the system.
45175
45176 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45177
45178 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45179 function.
45180 (grub_multiboot_load_elf32): Likewise.
45181 (grub_multiboot_is_elf64): Likewise.
45182 (grub_multiboot_load_elf64): Likewise.
45183 (grub_multiboot_load_elf): Likewise.
45184 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45185 an ELF32 or ELF64 file.
45186 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45187
45188 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45189 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45190 NULL before calling FS->LABEL.
45191 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45192 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45193 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45194 before calling FS->LABEL.
45195
45196 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45197
45198 * util/i386/pc/grub-install.in (datadir): New variable.
45199 (libdir): Removed.
45200 (pkgdatadir): New variable.
45201 (pkglibdir): Removed.
45202
45203 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45204
45205 * DISTLIST: Added util/i386/pc/grub-install.in.
45206
45207 * util/i386/pc/grub-install.in: New file.
45208
45209 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45210 (grub_install_SOURCES): Likewise.
45211
45212 * genmk.rb: Added support for scripts.
45213 (Script): New class.
45214 (scripts): New variable.
45215
45216 * Makefile.in (install-local): Install sbin_SCRIPTS by
45217 INSTALL_SCRIPT.
45218 (uninstall): Remove sbin_SCRIPTS.
45219
45220 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45221 device, try to get a GRUB device by
45222 grub_util_biosdisk_get_grub_dev.
45223 Free DEST_DEV.
45224
45225 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45226 description for --device-map.
45227
45228 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45229
45230 Change the semantics of variable hooks. They now return strings
45231 instead of error values.
45232
45233 * util/i386/pc/grub-setup.c: Include grub/env.h.
45234 (setup): Use grub_device_set_root instead of grub_env_set.
45235
45236 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45237 grub_env_get instead of grub_device_set_root and
45238 grub_device_get_root, respectively.
45239
45240 * kern/main.c (grub_env_write_root): New function.
45241 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45242 grub_env_set instead of grub_device_set_root.
45243
45244 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45245 many variables.
45246 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45247 rather than calling ENV->WRITE_HOOK afterwards.
45248 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45249 passing a pointer of a pointer.
45250 (grub_register_variable_hook): Change the types of "read_hook" and
45251 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45252 respectively.
45253 Allocate the default empty string on the heap, because this string
45254 may be freed later.
45255
45256 * kern/device.c: Include grub/env.h.
45257 (grub_device_set_root): Removed.
45258 (grub_device_get_root): Likewise.
45259 (grub_device_open): Use grub_env_get instead of
45260 grub_device_get_root.
45261
45262 * include/grub/env.h (grub_env_read_hook_t): New type.
45263 (grub_env_write_hook_t): Likewise.
45264 (grub_env_var): Change the types of "read_hook" and "write_hook"
45265 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45266 (grub_register_variable_hook): Likewise.
45267
45268 * include/grub/device.h (grub_device_set_root): Removed.
45269 (grub_device_set_root): Likewise.
45270
45271 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45272 make sure that DIRNAME terminates with '/', so that
45273 grub_fat_find_dir will fail if PATH is not a directory.
45274
45275 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45276 from DIRNAME.
45277 Use the qualifier auto for print_files and print_files_long.
45278 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45279 as a regular file.
45280 Put a newline only if there is no error.
45281 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45282 used.
45283
45284 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45285
45286 * kern/partition.c (grub_partition_probe): Initialize PART to
45287 NULL. Otherwise, when no partition map is registered, this returns
45288 a garbage.
45289
45290 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45291
45292 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45293 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45294 valid.
45295
45296 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45297
45298 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45299 information on each device, if it does not have partitions. Print
45300 "Device" instead of "Disk", because this function is not specific
45301 to disk devices.
45302
45303 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45304 static to ensure that it is put on the memory rather than a
45305 register.
45306
45307 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45308
45309 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45310 (grub_cat_init): Likewise.
45311 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45312 (options): Likewise.
45313 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45314 (grub_configfile_init): Likewise.
45315 * font/manager.c (GRUB_MOD_INIT): Likewise.
45316 * commands/help.c (GRUB_MOD_INIT): Likewise.
45317 (grub_help_init): Likewise.
45318 * normal/command.c (grub_command_init): Likewise.
45319 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45320 * disk/loopback.c (grub_loop_init): Likewise.
45321 (GRUB_MOD_INIT): Likewise.
45322 * commands/ls.c (grub_ls_init): Likewise.
45323 (GRUB_MOD_INIT): Likewise.
45324 (options): Likewise.
45325 * commands/boot.c (grub_boot_init): Likewise.
45326 (GRUB_MOD_INIT): Likewise.
45327 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45328 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45329 (GRUB_MOD_INIT): Likewise.
45330 * commands/cmp.c (grub_cmp_init): Likewise.
45331 (GRUB_MOD_INIT): Likewise.
45332
45333 * normal/arg.c: Use <> instead of "" to include header files.
45334 (SHORT_ARG_HELP): New macro.
45335 (SHORT_ARG_USAGE): Likewise.
45336 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45337 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45338 descriptions.
45339 (find_short): Check if C is 'h' or 'u' explicitly.
45340 (grub_arg_show_help): Use space characters instead of tabs. Treat
45341 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45342 are shown with --help and --usage only if they are not used for
45343 the command itself.
45344 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45345 'h' and 'u'.
45346
45347 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45348 const into "longarg". Change the type of "shortarg" to int.
45349
45350 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45351
45352 * boot/i386/pc/boot.S (boot_drive_check): New label.
45353
45354 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45355 macro.
45356
45357 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45358 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45359
45360 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45361
45362 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45363 When turning off Gate A20, skip the check and return immediately,
45364 because this is not fatal usually.
45365
45366 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45367
45368 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45369 be 0x7C00 instead of 0x8000.
45370
45371 * boot/i386/pc/pxeboot.S: Rewritten.
45372
45373 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45374 EXT_C.
45375 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45376 result.
45377
45378 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45379
45380 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45381 robustness. This routine now supports a BIOS call and System
45382 Control Port A to modify the gate A20.
45383
45384 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45385 Increased to 0x440.
45386
45387 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45388
45389 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45390 device path and resulting ihandle.
45391 (grub_ofdisk_close): dprintf the ihandle being closed.
45392 (grub_ofdisk_read): dprintf function parameters.
45393 * kern/mm.c (grub_mm_init_region): Likewise.
45394 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45395 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45396 size, and boot arguments.
45397 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45398 before loading into memory.
45399 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45400 before loading into memory.
45401
45402 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45403
45404 * kern/mm.c: Added much documentation.
45405 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45406 8, set to 5 instead of 8.
45407
45408 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45409
45410 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45411
45412 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45413 (grub_mkdevicemap_SOURCES): New variable.
45414
45415 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45416 lib/device.c of GRUB Legacy.
45417
45418 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45419
45420 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45421 instead of PATH is NULL.
45422
45423 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45424
45425 * commands/cmp.c (BUFFER_SIZE): New macro.
45426 (grub_cmd_cmp): Close the right file at the right time. Compare
45427 only data just read. Don't report files of different size as
45428 identical. Dynamically allocate buffers. Move variable
45429 declarations at the beginning of function.
45430
45431 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45432
45433 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45434 reverse.
45435
45436 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45437
45438 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45439 when backspace is pressed at beginning of line.
45440
45441 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45442
45443 * DISTLIST: Added genfslist.sh.
45444
45445 * normal/main.c (fs_module_list): New variable.
45446 (autoload_fs_module): New function.
45447 (read_fs_list): Likewise.
45448 (grub_normal_execute): Call read_fs_list.
45449
45450 * kern/fs.c (grub_fs_autoload_hook): New variable.
45451 (grub_fs_probe): Added support for auto-loading.
45452
45453 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45454 (grub_fs_module_list_t): New type.
45455
45456 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45457 (grub_fs_autoload_hook): New prototype.
45458
45459 * genfslist.sh: New file.
45460
45461 * genmk.rb: Added a rule to generate a filesystem list.
45462
45463 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45464
45465 * configure.ac: Fix the test for cross-compiling.
45466
45467 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45468 define GRUB_UTIL anymore.
45469
45470 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45471 so this function works on other systems than just big endian.
45472 (load_modules): Likewise.
45473 (add_segments): Likewise.
45474
45475 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45476
45477 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45478 contains `l' modifier, get a long from va_arg().
45479
45480 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45481
45482 * kern/mm.c (grub_free): If the next free block which is being
45483 merged is the first free block, set the first block to the block
45484 being freed.
45485 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45486
45487 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45488
45489 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45490 `grub_ieee1275_chosen'.
45491
45492 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45493
45494 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45495 (grub_ieee1275_chosen): New variable.
45496 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45497 `chosen'.
45498 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45499 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45500 Rename first argument to `phandle' for consistency.
45501 (grub_ieee1275_get_property_length): Likewise.
45502 (grub_ieee1275_next_property): Likewise. Change type of first argument
45503 to grub_ieee1275_phandle_t.
45504 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45505 Move export next to declaration.
45506 (grub_ieee1275_chosen): New variable.
45507 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45508 Correct cosmetic typo.
45509 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45510 `grub_ieee1275_chosen'.
45511 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45512 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45513 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45514 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45515 `grub_ieee1275_chosen'.
45516
45517 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45518
45519 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45520 /chosen/bootargs.
45521 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45522 /chosen/bootargs as "variable=value" pairs.
45523
45524 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45525
45526 * include/grub/misc.h (grub_dprintf): New macro.
45527 (grub_real_dprintf): New prototype.
45528 (grub_strword): Likewise.
45529 (grub_iswordseparator): Likewise.
45530 * kern/misc.c (grub_real_dprintf): New function.
45531 (grub_strword): Likewise.
45532 (grub_iswordseparator): Likewise.
45533
45534 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45535
45536 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45537 (roundup): Remove macro.
45538 (grub_ieee1275_flags): Make static.
45539 (grub_ieee1275_realmode): Remove.
45540 (grub_ieee1275_test_flag): New function.
45541 (grub_ieee1275_set_flag): Likewise.
45542 (find_options): Rename to `grub_ieee1275_find_options'; update
45543 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45544 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45545 (cmain): New prototype.
45546 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45547 `grub_ieee1275_flags' directly.
45548 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45549 machine/biosdisk.h.
45550 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45551 Don't include grub/machine/init.h.
45552 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45553 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45554 Remove prototype.
45555 (grub_ieee1275_realmode): Likewise.
45556 (grub_ieee1275_flag): New enum.
45557 (grub_ieee1275_test_flag): New prototype.
45558 (grub_ieee1275_set_flag): New prototype.
45559 * include/grub/powerpc/ieee1275/init.h: Remove file.
45560 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45561 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45562 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45563 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45564 comment.
45565 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45566 `grub_ieee1275_test_flag'.
45567 (grub_ieee1275_encode_devname): Likewise.
45568
45569 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45570
45571 * include/grub/powerpc/ieee1275/ieee1275.h
45572 (grub_ieee1275_encode_devname): New prototype.
45573 (grub_ieee1275_get_filename): Likewise.
45574 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45575 function.
45576 (grub_set_prefix): Likewise.
45577 (grub_machine_init): Call grub_set_prefix.
45578 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45579 (grub_parse_type): New enum.
45580 (grub_ieee1275_get_devargs): New function.
45581 (grub_ieee1275_get_devname): Likewise.
45582 (grub_ieee1275_parse_args): Likewise.
45583 (grub_ieee1275_get_filename): Likewise.
45584 (grub_ieee1275_encode_devname): Likewise.
45585
45586 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45587
45588 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45589 `grub_loader_unset'.
45590
45591 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45592
45593 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45594 instead of grub_ieee1275_interpret.
45595 (grub_halt_init): New function.
45596 (grub_halt_fini): Likewise.
45597 (GRUB_MOD_INIT): Correct message grammar.
45598 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45599 instead of grub_ieee1275_interpret.
45600 (grub_reboot_init): New function.
45601 (grub_reboot_fini): Likewise.
45602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45603 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45604 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45605 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45606 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45607 function.
45608 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45609 Add prototype.
45610 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45611 prototype.
45612 (grub_halt): Likewise.
45613 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45614 (cmain): Remove __attribute__((unused)).
45615 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45616 (grub_heap_len): Likewise.
45617 (grub_machine_fini): New function.
45618 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45619 (grub_halt): Likewise.
45620 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45621 function.
45622 * util/powerpc/ieee1275/misc.c: New file.
45623
45624 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45625
45626 * DISTLIST: New file.
45627 * gendistlist.sh: Likewise.
45628
45629 * Makefile.in (COMMON_DISTFILES): Removed.
45630 (BOOT_DISTFILES): Likewise.
45631 (CONF_DISTFILES): Likewise.
45632 (DISK_DISTFILES): Likewise.
45633 (FS_DISTFILES): Likewise.
45634 (INCLUDE_DISTFILES): Likewise.
45635 (KERN_DISTFILES): Likewise.
45636 (LOADER_DISTFILES): Likewise.
45637 (TERM_DISTFILES): Likewise.
45638 (UTIL_DISTFILES): Likewise.
45639 (DISTFILES): Likewise.
45640 (uninstall): Uninstall files in $(pkgdata_DATA).
45641 (DISTLIST): New target.
45642 (distdir): Use the contents of the file DISTLIST to get a list of
45643 distributed files.
45644
45645 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45646
45647 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45648 descriptor. This is ported from GRUB Legacy.
45649
45650 * gencmdlist.sh: Added an extra semicolon to make it work with
45651 old sed versions. Reported by Robert Bihlmeyer
45652 <robbe@orcus.priv.at>.
45653
45654 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45655
45656 Automatic loading of commands is supported.
45657
45658 * normal/main.c (read_command_list): New function.
45659 (grub_normal_execute): Call read_command_list.
45660
45661 * normal/command.c (grub_register_command): Return zero or CMD.
45662 Allocate CMD->NAME from the heap.
45663 Initialize CMD->MODULE_NAME to zero.
45664 Find the same name as well. If the same command is found and it is
45665 a dummy command, overwrite members. If it is not a dummy command,
45666 return zero.
45667 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45668 (grub_command_find): If a dummy command is found, load a module
45669 and retry to find a command only once.
45670
45671 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45672 make sure that each command is loaded.
45673
45674 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45675 macro.
45676 (struct grub_command): Remove const from the member `name'.
45677 Add a new member `module_name'.
45678 (grub_register_command): Return grub_command_t.
45679
45680 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45681 sure that each command is loaded.
45682
45683 * genmk.rb (PModule::rule): Specify a module name without the
45684 suffix ".mod" to gencmdlist.sh.
45685
45686 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45687
45688 * gencmdlist.sh: New file.
45689
45690 * genmk.rb (PModule::rule): Generate a rule for a command list.
45691 Clean command.lst.
45692 Generate command.lst from $(COMMANDFILES).
45693
45694 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45695 (DATA): Added $(pkgdata_DATA).
45696 (install-local): Install files in $(pkgdata_DATA).
45697
45698 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45699
45700 * term/i386/pc/vga.c (debug_command): Removed.
45701 (GRUB_MOD_INIT): Do not register the command "debug".
45702
45703 From Hollis Blanchard:
45704 * commands/configfile.c: New file.
45705 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45706 commands/configfile.c.
45707 (pkgdata_MODULES): Added configfile.mod.
45708 (configfile_mod_SOURCES): New variable.
45709 (configfile_mod_CFLAGS): Likewise.
45710 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45711 commands/configfile.c.
45712 (pkgdata_MODULES): Added configfile.mod.
45713 (configfile_mod_SOURCES): New variable.
45714 (configfile_mod_CFLAGS): Likewise.
45715 * util/grub-emu.c (main): Call grub_configfile_init and
45716 grub_configfile_fini.
45717 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45718 prototype.
45719 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45720
45721 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45722
45723 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45724 address.
45725
45726 * commands/help.c (grub_cmd_help): Do not print newlines after
45727 the last command in print_command_help.
45728
45729 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45730
45731 * commands/default.h: New file.
45732 * commands/timeout.h: Likewise.
45733 * normal/context.c: Likewise.
45734
45735 * util/misc.c: Do not include sys/times.h.
45736 Include sys/time.h and grub/machine/time.h.
45737 (grub_get_rtc): Rewritten with gettimeofday.
45738
45739 * util/grub-emu.c (main): Call grub_default_init and
45740 grub_timeout_init before grub_normal_init, and call
45741 grub_timeout_fini and grub_default_fini after grub_main.
45742
45743 * util/console.c (grub_ncurses_checkkey): Return the read
45744 character or -1.
45745
45746 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45747 timeouts.
45748
45749 * normal/main.c (read_config_file): Push MENU. If this fails,
45750 print an error and wait for a user input.
45751 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45752 If a menu is empty or an error occurs, pop MENU.
45753 (grub_normal_execute): Pop and free MENU after grub_menu_run
45754 returns.
45755
45756 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45757
45758 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45759 include time.h.
45760 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45761 without GRUB_UTIL.
45762 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45763 time.h.
45764 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45765 without GRUB_UTIL.
45766
45767 * include/grub/normal.h (struct grub_menu_list): New struct.
45768 (grub_menu_list_t): New type.
45769 (struct grub_context): New struct.
45770 (grub_context_t): New type.
45771 (grub_register_command): Got rid of EXPORT_FUNC.
45772 (grub_unregister_command): Likewise.
45773 (grub_context_get): New prototype.
45774 (grub_context_get_current_menu): Likewise.
45775 (grub_context_push_menu): Likewise.
45776 (grub_context_pop_menu): Likewise.
45777 [GRUB_UTIL] (grub_default_init): Likewise.
45778 [GRUB_UTIL] (grub_default_fini): Likewise.
45779 [GRUB_UTIL] (grub_timeout_init): Likewise.
45780 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45781
45782 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45783 commands/timeout.c and normal/context.c.
45784 (pkgdata_MODULES): Added default.mod and timeout.mod.
45785 (normal_mod_SOURCES): Added normal/context.c.
45786 (default_mod_SOURCES): New variable.
45787 (default_mod_CFLAGS): Likewise.
45788 (timeout_mod_SOURCES): Likewise.
45789 (timeout_mod_CFLAGS): Likewise.
45790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45791 conf/i386-pc.rmk.
45792 (pkgdata_MODULES): Added default.mod and timeout.mod.
45793 (normal_mod_SOURCES): Added normal/context.c.
45794 (default_mod_SOURCES): New variable.
45795 (default_mod_CFLAGS): Likewise.
45796 (timeout_mod_SOURCES): Likewise.
45797 (timeout_mod_CFLAGS): Likewise.
45798
45799 * Makefile.in (all-local): Added $(MKFILES).
45800
45801 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45802
45803 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45804 (grub_emu_SOURCES): Likewise.
45805 (pkgdata_MODULES): Add `sun.mod'.
45806 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45808 `partmap/sun.c'.
45809 (pkgdata_MODULES): Add `sun.mod'.
45810 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45811 * include/grub/partition.h (grub_sun_partition_map_init): New
45812 prototype.
45813 (grub_sun_partition_map_fini): Likewise.
45814 * partmap/sun.c: New file.
45815 * util/grub-emu.c (main): Initialize and de-initialize the sun
45816 partitionmap support.
45817
45818 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45819
45820 This implements an Emacs-like menu entry editor.
45821
45822 * normal/menu_entry.c: New file.
45823
45824 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45825 characters to ASCII.
45826 (saved_char): New variable.
45827 (grub_ncurses_checkkey): Rewritten completely.
45828 (grub_ncurses_getkey): Likewise.
45829 (grub_ncurses_init): Call raw instead of cbreak.
45830
45831 * normal/menu.c (print_entry): Do not put a space.
45832 (init_page): Renamed to ...
45833 (grub_menu_init_page): ... this. All callers changed.
45834 (edit_menu_entry): Removed.
45835 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45836
45837 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45838
45839 * kern/misc.c (grub_vprintf): Call grub_refresh.
45840
45841 * normal/menu.c (DISP_LEFT): Renamed to ...
45842 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45843 * normal/menu.c (DISP_UP): Renamed to ...
45844 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45845 * normal/menu.c (DISP_RIGHT): Renamed to ...
45846 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45847 * normal/menu.c (DISP_DOWN): Renamed to ...
45848 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45849 * normal/menu.c (DISP_HLINE): Renamed to ...
45850 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45851 * normal/menu.c (DISP_VLINE): Renamed to ...
45852 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45853 * normal/menu.c (DISP_UL): Renamed to ...
45854 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45855 * normal/menu.c (DISP_UR): Renamed to ...
45856 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45857 * normal/menu.c (DISP_LL): Renamed to ...
45858 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45859 * normal/menu.c (DISP_LR): Renamed to ...
45860 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45861 * normal/menu.c (TERM_WIDTH): Renamed to ...
45862 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45863 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45864 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45865 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45866 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45867 * normal/menu.c (TERM_MARGIN): Renamed to ...
45868 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45869 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45870 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45871 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45872 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45873 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45874 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45875 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45876 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45877 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45878 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45879 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45880 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45881 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45882 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45883 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45884 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45885 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45886 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45887 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45888 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45889 All callers changed.
45890
45891 * include/grub/normal.h: New prototype.
45892
45893 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45894 normal/menu_entry.c.
45895 (normal_mod_SOURCES): Likewise.
45896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45897 (normal_mod_SOURCES): Likewise.
45898
45899 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45900
45901 * include/grub/normal.h (grub_halt_init): New prototype.
45902 (grub_halt_fini): Likewise.
45903 (grub_reboot_init): Likewise.
45904 (grub_reboot_fini): Likewise.
45905
45906 * util/grub-emu.c: Include signal.h.
45907 (main_env): New global variable.
45908 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45909 catch C-c.
45910 (grub_machine_fini): New function.
45911 (main): Call grub_halt_init and grub_reboot_init before
45912 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45913 Call setjmp with MAIN_ENV to go back afterwards.
45914 Call grub_machine_fini right before return.
45915
45916 * include/grub/util/misc.h: Include setjmp.h.
45917 (main_env): New prototype.
45918
45919 * include/grub/kernel.h (grub_machine_fini): New prototype.
45920 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45921 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45922
45923 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45924 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45925 * term/i386/pc/console.c (grub_console_fini): Likewise.
45926
45927 * util/i386/pc/misc.c: New file.
45928
45929 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45930 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45931 commands/i386/pc/reboot.c.
45932
45933 2005-02-14 Guillem Jover <guillem@hadrons.org>
45934
45935 * include/grub/dl.h (grub_dl_check_header): New prototype.
45936 (grub_arch_dl_check_header): Change return type to grub_err_t,
45937 remove size parameter and export function. Update all callers.
45938 * kern/dl.c (grub_dl_check_header): New function.
45939 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45940 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45941 are inside the core.
45942 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45943 independent ELF header checks.
45944 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45945 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45946 `grub_dl_check_header' instead of explicit checks. Check for the
45947 ELF type.
45948 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45949 `grub_dl_check_header' instead of explicit checks. Remove arch
45950 specific ELF header checks.
45951
45952 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45953 argument SIZE.
45954
45955 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45956
45957 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45958 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45959
45960 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45961
45962 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
45963 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
45964 (part_map_iterate): Clear `grub_errno' and return 0 if
45965 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
45966 * partmap/amiga.c (amiga_partition_map_iterate): Return
45967 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45968 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45969
45970 2005-02-01 Guillem Jover <guillem@hadrons.org>
45971
45972 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45973 help info.
45974
45975 2005-01-31 Marco Gerards <metgerards@student.han.nl>
45976
45977 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45978 Removed prototype.
45979 (grub_rescue_cmd_linux): New prototype.
45980 (grub_rescue_cmd_initrd): Likewise.
45981 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45982 `bi_rec'.
45983 (grub_linux_release_mem): Release the memory for the initrd.
45984 (grub_load_linux): Renamed from this...
45985 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45986 Changed `entry' not to be static. Loop over memory regions to
45987 find another one when the default fails.
45988 (grub_rescue_cmd_initrd): New function.
45989 (grub_linux_init): Remove function.
45990 (grub_linux_fini): Likewise.
45991 (GRUB_MOD_INIT): Register `initrd'.
45992 (GRUB_MOD_FINI): Unregister `initrd'.
45993 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45994 Function removed.
45995 (grub_linux_normal_fini): Likewise.
45996 (GRUB_MOD_INIT): Register `initrd'.
45997 (GRUB_MOD_FINI): Unregister `initrd'.
45998
45999 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46000
46001 * commands/help.c: New file.
46002 * normal/arg.c (show_help): Renamed to...
46003 (grub_arg_show_help): ... this.
46004 * commands/i386/pc/halt.c: New file.
46005 * commands/i386/pc/reboot.c: Likewise.
46006 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46007 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46008 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46009 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46010 variables.
46011 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46012 `commands/help.c'.
46013 (pkgdata_MODULES): Add `help.mod'.
46014 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46015 * grub/i386/pc/init.h (grub_reboot): New prototype.
46016 (grub_halt): Likewise.
46017 * include/grub/normal.h (grub_arg_show_help): New prototype.
46018 (grub_help_init): Likewise.
46019 (grub_help_fini): Likewise.
46020 * util/grub-emu.c (main): Initialize and deinitialize the help
46021 command.
46022
46023 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46024
46025 * normal/command.c (grub_command_init): Fixed the description of
46026 the `set' and `unset' commands.
46027
46028 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46029
46030 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46031 function.
46032 * commands/ieee1275/halt.c: New file.
46033 * commands/ieee1275/reboot.c: Likewise.
46034 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46035 `__attribute__ ((unused))'. Some GCS related fixed.
46036 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46037 (grub_suspend_fini): Likewise.
46038 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46039 and `halt.mod'.
46040 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46041 (halt_mod_CFLAGS): New variables.
46042 * include/grub/powerpc/ieee1275/ieee1275.h
46043 (grub_ieee1275_interpret): New prototype.
46044
46045 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46046
46047 * include/grub/misc.h (memmove): New prototype.
46048 (memcpy): Likewise.
46049
46050 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46051
46052 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46053 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46054
46055 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46056
46057 * kern/misc.c (grub_strndup): Function rewritten.
46058
46059 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46060
46061 * normal/menu.c (TERM_WIDTH): Macro redefined.
46062 (TERM_TOP_BORDER_Y): Likewise.
46063 (draw_border): Replaced while-loop by a for-loop. Make the number
46064 of lines consistent with the number of lines displayed in
46065 print_entries. Added a margin below the rectangle.
46066 (print_entry): Make the entry fit in the rectangle.
46067 (print_entries): Display the scroll arrows next to the right
46068 border.
46069
46070 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46071
46072 * fs/minix.c (grub_minix_find_file): Reserve more space for
46073 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46074 `grub_strncpy' to copy `path' into it.
46075
46076 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46077
46078 Add the loopback device, a device via which files can be accessed
46079 as devices.
46080
46081 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46082 (pkgdata_MODULES): Add loopback.mod.
46083 (loopback_mod_SOURCES): New variable.
46084 (loopback_mod_CFLAGS): Likewise.
46085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46086 `disk/loopback.c'.
46087 (pkgdata_MODULES): Add loopback.mod.
46088 (loopback_mod_SOURCES): New variable.
46089 (loopback_mod_CFLAGS): Likewise.
46090 * disk/loopback.c: new file.
46091 * include/grub/normal.h (grub_loop_init): New prototype.
46092 (grub_loop_fini): New prototype.
46093 * util/grub-emu.c (main): Initialize and de-initialize loopback
46094 support.
46095 * include/grub/disk.h (grub_disk_dev_id): Add
46096 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46097
46098 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46099
46100 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46101 function.
46102 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46103 (suspend_mod_SOURCES): New variable.
46104 (suspend_mod_CFLAGS): Likewise.
46105 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46106 New prototype.
46107 * commands/ieee1275/suspend.c: New file.
46108
46109 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46110
46111 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46112 ((unused))' to `__attribute__ ((used))'.
46113 (GRUB_MOD_FINI): Likewise.
46114 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46115 * genmk.rb (PModule): Assign space to common symbols when linking
46116 modules.
46117
46118 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46119
46120 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46121 `unsigned' arguments to `grub_size_t'.
46122 (grub_malloc): Likewise.
46123 (grub_realloc): Likewise.
46124 (grub_memalign): Likewise.
46125 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46126 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46127 * util/misc.c (grub_malloc): Likewise.
46128 (grub_realloc): Likewise.
46129 * kern/mm.c (get_header_from_pointer): Change the casts to
46130 `unsigned' into a cast to `grub_size_t'.
46131
46132 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46133 point to `currnode' when `currnode' is changed.
46134
46135 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46136 Schottelius <nico-linux@schottelius.org>.
46137
46138 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46139
46140 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46141 (note_path): Remove variable.
46142 (GRUB_IEEE1275_NOTE_NAME): New macro.
46143 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46144 (grub_ieee1275_note_hdr): New structure.
46145 (grub_ieee1275_note_desc): Likewise.
46146 (grub_ieee1275_note): Likewise.
46147 (load_note): Remove `dir' argument. All callers updated. Remove
46148 `note_img' and `path'. Do not load a file from `note_path'.
46149 Initialize a struct grub_ieee1275_note and write that to `out'.
46150 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46151
46152 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46153
46154 * util/misc.c (grub_util_read_image): Revert last change. It
46155 called `grub_util_read_at', which seeks from the beginning of the
46156 file.
46157
46158 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46159
46160 * TODO: Add note about endianness in grub-mkimage.
46161 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46162 section.
46163 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46164 (grub_mkimage_SOURCES): New target.
46165 * include/grub/kernel.h (grub_start_addr): Remove variable.
46166 (grub_end_addr): Likewise.
46167 (grub_total_module_size): Likewise.
46168 (grub_kernel_image_size): Likewise.
46169 (GRUB_MODULE_MAGIC): New constant.
46170 (grub_module_info): New structure.
46171 (grub_arch_modules_addr): New prototype.
46172 (grub_get_end_addr): Remove prototype.
46173 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46174 * include/grub/powerpc/ieee1275/kernel.h: New file.
46175 * include/grub/util/misc.h (grub_util_get_fp_size): New
46176 prototype.
46177 (grub_util_read_at): Likewise.
46178 (grub_util_write_image_at): Likewise.
46179 * kern/main.c (grub_get_end_addr): Remove function.
46180 (grub_load_modules): Call grub_arch_modules_addr instead of using
46181 grub_end_addr. Look for a grub_module_info struct in memory. Use
46182 the grub_module_info fields instead of calling grub_get_end_addr
46183 as loop conditions. Move grub_add_unused_region code here.
46184 (grub_add_unused_region): Remove function.
46185 * kern/i386/pc/init.c: Include grub/cache.h.
46186 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46187 one call to add_mem_region.
46188 (grub_arch_modules_addr): New function.
46189 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46190 (grub_total_module_size): Likewise.
46191 Include grub/machine/kernel.h.
46192 (grub_arch_modules_addr): New function.
46193 * util/grub-emu.c (grub_end_addr): Remove variable.
46194 (grub_total_module_size): Likewise.
46195 (grub_arch_modules_addr): New function.
46196 * util/misc.c: Include unistd.h.
46197 (grub_util_get_fp_size): New function.
46198 (grub_util_read_at): Likewise.
46199 (grub_util_write_image_at): Likewise.
46200 (grub_util_read_image): Call grub_util_read_at.
46201 (grub_util_write_image): Call grub_util_write_image_at.
46202 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46203 additional memory in kernel_img for a struct grub_module_info.
46204 Fill in that grub_module_info.
46205 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46206
46207 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46208
46209 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46210 New function.
46211 * include/grub/powerpc/ieee1275/ieee1275.h
46212 (grub_ieee1275_milliseconds): New prototype.
46213 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46214 Change to 1000.
46215 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46216 grub_ieee1275_milliseconds.
46217
46218 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46219
46220 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46221 variable.
46222 (find_options): New function.
46223 (cmain): Call find_options.
46224 * include/grub/powerpc/ieee1275/ieee1275.h
46225 (grub_ieee1275_realmode): New extern variable.
46226 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46227 grub_map if grub_ieee1275_realmode is false.
46228
46229 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46230
46231 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46232 lines are inserted and make it work like readline. Reported by
46233 Vincent Pelletier <subdino2004@yahoo.fr>.
46234
46235 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46236
46237 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46238
46239 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46240 `kern/powerpc/cache.S'.
46241
46242 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46243
46244 * genmk.rb: Handle the `Program' class in the main loop. Written
46245 by Johan Rydberg <jrydberg@gnu.org>.
46246 (Program): New class.
46247 (programs): New variable.
46248 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46249 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46250 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46251 (help_arch): Function removed.
46252 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46253 `powerpc/libgcc.h' and `loader.h'.
46254 (pkgdata_PROGRAMS): New variable.
46255 (sbin_UTILITIES): Variable removed.
46256 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46257 (grubof_SOURCES): Variable re-defined so it only includes the
46258 core functionality.
46259 (grubof_CFLAGS): Remove `-DGRUBOF'.
46260 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46261 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46262 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46263 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46264 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46265 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46266 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46267 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46268 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46269 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46270 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46271 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46272 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46273 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46274 (pc_mod_CFLAGS): New variables.
46275 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46276 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46277 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46278 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46279 Moved from here...
46280 * include/grub/i386/pc/init.h (grub_os_area_addr)
46281 (rub_os_area_size): ... to here.
46282 * include/grub/powerpc/ieee1275/ieee1275.h
46283 (grub_ieee1275_entry_fn): Export symbol.
46284 * include/grub/powerpc/ieee1275/init.h: New file.
46285 * include/grub/powerpc/libgcc.h: Likewise.
46286 * include/grub/cache.h: Likewise.
46287 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46288 <hollis@penguinppc.org>.
46289 * kern/dl.c: Include <grub/cache.h>.
46290 (grub_dl_flush_cache): New function.
46291 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46292 for this module.
46293 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46294 (grub_console_init): Removed prototypes.
46295 (grub_machine_init): Don't initialize the modules anymore.
46296 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46297 static.
46298 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46299 Macro undef removed.
46300 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46301 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46302 relocation `R_PPC_REL32'. Return an error when the relocation is
46303 unknown.
46304 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46305 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46306 * util/misc.c (grub_arch_sync_caches): Likewise.
46307
46308 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46309
46310 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46311 `symlist.c', add `grubof_symlist.c'.
46312 (symlist.c): Variable removed.
46313 (grubof_HEADERS): Variable added.
46314 (grubof_symlist.c): New target.
46315 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46316 `kernel_img_HEADERS'.
46317 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46318 * kern/powerpc/dl.c: New file.
46319 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46320 Function removed.
46321 (grub_arch_dl_relocate_symbols): Likewise.
46322 (grub_register_exported_symbols): Likewise.
46323
46324 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46325
46326 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46327 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46328 to fail instead. Reported by Vincent Pelletier
46329 <subdino2004@yahoo.fr>.
46330
46331 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46332 it is not allocated. Reported by Vincent Pelletier
46333 <subdino2004@yahoo.fr>.
46334
46335 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46336 output so the output looks better.
46337
46338 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46339
46340 Modulize the partition map support and add support for the amiga
46341 partition map.
46342
46343 * commands/ls.c: Include <grub/partition.h> instead of
46344 <grub/machine/partition.h>.
46345 * kern/disk.c: Likewise.
46346 * kern/rescue.c: Likewise.
46347 * loader/i386/pc/chainloader.c: Likewise.
46348 * normal/cmdline.c: Likewise.
46349 * kern/powerpc/ieee1275/init.c: Likewise.
46350 (grub_machine_init): Call `grub_pc_partition_map_init',
46351 `grub_amiga_partition_map_init' and
46352 `grub_apple_partition_map_init'.
46353 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46354 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46355 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46356 `partition.h' and `pc_partition.h'.
46357 (grub_setup_SOURCES): Remove
46358 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46359 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46360 (grub_emu_SOURCES): Likewise.
46361 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46362 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46363 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46364 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46365 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46366 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46367 (grubof_SOURCES): Likewise.
46368 * disk/i386/pc/partition.c: File removed.
46369 * disk/powerpc/ieee1275/partition.c: Likewise.
46370 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46371 * include/grub/i386/pc/partition.h: Likewise.
46372 * kern/partition.c: New file.
46373 * partmap/amiga.c: Likewise.
46374 * partmap/apple.c: Likewise.
46375 * partmap/pc.c: Likewise.
46376 * include/grub/partition.h: Likewise..
46377 * include/grub/pc_partition.h: Likewise.
46378 * util/grub-emu.c: Include <grub/partition.h> instead of
46379 <grub/machine/partition.h>.
46380 (main): Call `grub_pc_partition_map_init',
46381 `grub_amiga_partition_map_init' and
46382 `grub_apple_partition_map_init' and deinitialize afterwards.
46383 * util/i386/pc/biosdisk.c: Include `#include
46384 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46385 `<grub/machine/partition.h>'.
46386 * util/i386/pc/grub-setup.c: Likewise.
46387 * util/i386/pc/biosdisk.c: Likewise.
46388 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46389 partition information in case of a PC partition.
46390 * util/i386/pc/grub-setup.c: Include `#include
46391 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46392 `<grub/machine/partition.h>'.
46393 (setup): Only access the PC specific partition information in case
46394 of a PC partition.
46395
46396 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46397
46398 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46399 (grub_longjmp): Likewise.
46400 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46401 20.
46402 * normal/powerpc/setjmp.S: New file.
46403 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46404 `normal/powerpc/setjmp.S'.
46405 (grubof_CFLAGS): Add `-DGRUBOF'.
46406 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46407 [GRUB_UTIL && !GRUBOF].
46408
46409 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46410
46411 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46412 property named `name'. Correctly handle the error returned by
46413 `grub_ieee1275_finddevice' if a device can not be opened.
46414
46415 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46416
46417 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46418 `actual' for negativity.
46419 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46420 kern/fshelp.c.
46421
46422 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46423
46424 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46425 (PAGE_OFFSET): New macro.
46426 (CRTC_ADDR_PORT): Likewise.
46427 (CRTC_DATA_PORT): Likewise.
46428 (START_ADDR_HIGH_REGISTER): Likewise.
46429 (START_ADDR_LOW_REGISTER): Likewise.
46430 (GRAPHICS_ADDR_PORT): Likewise.
46431 (GRAPHICS_DATA_PORT): Likewise.
46432 (READ_MAP_REGISTER): Likewise.
46433 (INPUT_STATUS1_REGISTER): Likewise.
46434 (INPUT_STATUS1_VERTR_BIT): Likewise.
46435 (page): New variable.
46436 (wait_vretrace): New function.
46437 (set_read_map): Likewise.
46438 (set_start_address): Likewise.
46439 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46440 the right page.
46441 (check_vga_mem): Take the page into account.
46442 (write_char): Likewise.
46443 (write_cursor): Likewise.
46444 (scroll_up): Likewise. Copy the page to the page that is not
46445 shown and switch between both pages.
46446 (grub_vga_putchar): Fix off by one error.
46447 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46448 account.
46449
46450 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46451
46452 Add support for iso9660 (including rockridge).
46453
46454 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46455 (iso9660_mod_SOURCES): New variable.
46456 (iso9660_mod_CFLAGS): Likewise.
46457 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46458 * include/grub/fs.h (grub_iso9660_init): New prototype.
46459 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46460 * fs/iso9660.c: New file.
46461
46462 * include/grub/misc.h (grub_strncat): New prototype.
46463 * kern/misc.c (grub_strncat): New function.
46464
46465 * fs/hfs.c (grub_hfs_mount): Translate the error
46466 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46467 * fs/jfs.c (grub_jfs_mount): Likewise.
46468 * fs/ufs.c (grub_ufs_mount): Likewise.
46469
46470 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46471
46472 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46473 which initialized BAT registers.
46474 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46475 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46476 Move from here...
46477 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46478 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46479 ... to here.
46480 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46481 (grub_mapclaim): Likewise.
46482 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46483 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46484 hand.
46485
46486 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46487
46488 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46489 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46490 -ffreestanding and -msoft-float.
46491
46492 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46493
46494 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46495 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46496 set in grub_ieee1275_flags.
46497
46498 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46499
46500 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46501 prototype.
46502 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46503 grub_console_init first.
46504 Change the memory range used for grub_ieee1275_claim and
46505 grub_mm_init_region.
46506 Print an error message if the claim fails.
46507 Include <grub/misc.h>.
46508
46509 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46510
46511 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46512 Call grub_children_iterate for device nodes of type `scsi',
46513 `ide', or `ata'.
46514 (grub_ofdisk_open): Remove manual device alias resolution.
46515 Fix memory leak when device cannot be opened.
46516 * include/grub/powerpc/ieee1275/ieee1275.h
46517 (grub_children_iterate): New prototype.
46518 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46519 New function.
46520 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46521 Return -1 if args.size was -1.
46522
46523 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46524
46525 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46526 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46527 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46528 Open Firmware's memory for it; claim memory from _start to _end.
46529 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46530 (_end): New extern.
46531 (_start): Zero BSS from __bss_start to _end.
46532 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46533 New extern.
46534 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46535
46536 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46537
46538 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46539 -1 if args.base was -1.
46540
46541 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46542
46543 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46544 escape sequence instead of a literal ^L. Also call
46545 grub_ofconsole_gotoxy.
46546
46547 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46548
46549 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46550 void * arguments to grub_addr_t. All callers updated. Also make
46551 the `result' argument optional.
46552 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46553 All callers updated.
46554
46555 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46556
46557 * commands/ls.c (grub_ls_list_files): Use the string following the
46558 initial ')', if present, as the filesystem path.
46559 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46560
46561 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46562
46563 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46564
46565 Make the source code of the menu interface more readable.
46566
46567 * normal/menu.c: Include grub/mm.h.
46568 (TERM_WIDTH): New macro.
46569 (TERM_HEIGHT): Likewise.
46570 (TERM_INFO_HEIGHT): Likewise.
46571 (TERM_MARGIN): Likewise.
46572 (TERM_SCROLL_WIDTH): Likewise.
46573 (TERM_TOP_BORDER_Y): Likewise.
46574 (TERM_LEFT_BORDER_X): Likewise.
46575 (TERM_BORDER_WIDTH): Likewise.
46576 (TERM_MESSAGE_HEIGHT): Likewise.
46577 (TERM_BORDER_HEIGHT): Likewise.
46578 (TERM_NUM_ENTRIES): Likewise.
46579 (TERM_FIRST_ENTRY_Y): Likewise.
46580 (TERM_ENTRY_WIDTH): Likewise.
46581 (TERM_CURSOR_X): Likewise.
46582 (draw_border): Use macros instead of magic numbers.
46583 (print_entry): Likewise.
46584 (print_entries): Likewise.
46585 (run_menu): Likewise. Also, handle the key 'e'.
46586 (run_menu_entry): Ignore empty command lines.
46587 (print_message): Added a new argument EDIT. If EDIT is true,
46588 print a different message.
46589 (init_page): Likewise.
46590 (edit_menu_entry): New function. Not implemented yet.
46591
46592 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46593
46594 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46595 can be loaded from normal mode.
46596
46597 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46598 `multiboot.mod'.
46599 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46600 (multiboot_mod_CFLAGS): New variables.
46601 * loader/i386/pc/linux_normal.c: New file.
46602 * loader/i386/pc/multiboot_normal.c: Likewise.
46603
46604 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46605 attribute `unused'.
46606
46607 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46608 `fdiro' to read the mode information from instead of `diro'.
46609
46610 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46611 looking up a symlink.
46612
46613 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46614 macro.
46615 * normal/command.c (grub_command_execute): Don't parse the
46616 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46617 flags of the command.
46618
46619 * normal/menu.c (grub_menu_run): Fix typo.
46620
46621 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46622
46623 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46624
46625 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46626 `y + 1' instead of `y - 1'.
46627
46628 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46629
46630 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46631
46632 From Hollis Blanchard <hollis@penguinppc.org>:
46633 * kern/misc.c (memmove): New alias for grub_memmove.
46634 (memcmp): New alias for grub_memcmp.
46635 (memset): New alias for grub_memset.
46636 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46637 Change "int handle" to "grub_ieee1275_phandle_t handle".
46638 * include/grub/powerpc/ieee1275/ieee1275.h
46639 (grub_ieee1275_get_property): Likewise.
46640
46641 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46642
46643 Added normal mode command `chainloader' as module chain.mod, which
46644 depends on normal.mod and _chain.mod.
46645
46646 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46647 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46648 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46649 Deleted prototype.
46650 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46651 but arguments parsing moved to ...
46652 (grub_chainloader_cmd): ... here. New function.
46653 * include/grub/i386/pc/chainloader.h: New file.
46654 * loader/i386/pc/chainloader_normal.c: Likewise.
46655
46656 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46657
46658 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46659 (grub_mkimage_LDFLAGS): Likewise.
46660 (grub_emu_SOURCES): Likewise.
46661 (kernel_img_HEADERS): Added fshelp.h.
46662 * fs/ext2.c: Include <grub/fshelp.h>.
46663 (FILETYPE_REG): New macro.
46664 (FILETYPE_INO_REG): Likewise.
46665 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46666 Changed all users.
46667 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46668 all users.
46669 (grub_fshelp_node): New struct.
46670 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46671 to a pointer.
46672 (grub_ext2_get_file_block): Removed function.
46673 (grub_ext2_read_block): New function.
46674 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46675 This function was written.
46676 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46677 (grub_ext2_find_file): Removed function.
46678 (grub_ext2_read_symlink): New function.
46679 (grub_ext2_iterate_dir): Likewise.
46680 (grub_ext2_open): Rewritten.
46681 (grub_ext2_dir): Rewritten.
46682 * include/grub/fshelp.h: New file.
46683 * fs/fshelp.c: Likewise.
46684
46685 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46686
46687 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46688 (print_message): Add a missing newline.
46689 (run_menu): Added timeout support.
46690 (run_menu_entry): New local function.
46691 (grub_menu_run): Added support for booting.
46692
46693 * kern/loader.c (grub_loader_is_loaded): New function.
46694
46695 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46696 (grub_get_rtc): Exported.
46697
46698 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46699 (grub_get_rtc): Exported.
46700
46701 * include/grub/normal.h (struct grub_command_list): Remove
46702 constant from the member `command'.
46703
46704 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46705
46706 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46707
46708 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46709
46710 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46711
46712 Add support for the JFS filesystem.
46713
46714 * fs/jfs.c: New file.
46715 * include/grub/fs.h (grub_jfs_init): New prototype.
46716 (grub_jfs_fini): New prototype.
46717 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46718 (grub_emu_SOURCES): Likewise.
46719 (pkgdata_MODULES): Add jfs.mod.
46720 (jfs_mod_SOURCES): New variable.
46721 (jfs_mod_CFLAGS): Likewise.
46722 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46723 (grubof_SOURCES): Likewise.
46724 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46725
46726 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46727 endian to the host endian.
46728 (grub_fat_utf16_to_utf8): Move function from there...
46729 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46730 the endianness of the source string anymore.
46731 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46732
46733 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46734
46735 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46736 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46737 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46738 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46739
46740 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46741 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46742 for `node_found' and `it_dir'.
46743 (grub_hfs_dir): Add prototype for `dir_hook'.
46744
46745 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46746 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46747 and `indir32' to silence a gcc warning.
46748
46749 * include/grub/fs.h (grub_hfs_init): New prototype.
46750 (grub_hfs_fini): Likewise.
46751
46752
46753 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46754
46755 Each disk device has its own id now. This is useful to make use
46756 of multiple disk devices.
46757
46758 * include/grub/disk.h (grub_disk_dev_id): New enum.
46759 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46760 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46761
46762 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46763 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46764
46765 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46766 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46767
46768 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46769 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46770
46771 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46772 "id" which is used by the cache manager.
46773
46774 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46775 of just "GRUB".
46776
46777 2004-08-18 Marco Gerards <metgerards@student.han.nl>
46778
46779 * fs/hfs.c: New file.
46780 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46781 (grub_emu_SOURCES): Likewise.
46782 (pkgdata_MODULES): Add hfs.mod.
46783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46784 (grubof_SOURCES): Likewise.
46785 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46786
46787 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46788 * kern/misc.c (grub_strncasecmp): Add function.
46789
46790 2004-08-14 Marco Gerards <metgerards@student.han.nl>
46791
46792 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46793 with parentheses.
46794
46795 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46796 (grub_ext2_dir): In case the directory entry type is unknown, read
46797 it from the inode.
46798
46799 2004-08-02 Peter Bruin <pjbruin@dds.nl>
46800
46801 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46802 grub_load_linux instead of grub_rescue_cmd_linux as second
46803 argument of grub_rescue_register_command.
46804
46805 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46806
46807 2004-07-27 Marco Gerards <metgerards@student.han.nl>
46808
46809 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46810 function.
46811 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46812 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46813 `loader/powerpc/ieee1275/linux.c',
46814 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46815 * include/grub/powerpc/ieee1275/ieee1275.h
46816 (grub_ieee1275_release): New prototype.
46817 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46818 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46819 normal, boot, linux and linux_normal.
46820 * loader/powerpc/ieee1275/linux.c: New file.
46821 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46822
46823 2004-07-12 Marco Gerards <metgerards@student.han.nl>
46824
46825 * normal/arg.c (grub_arg_parse): Correct error handling after
46826 reallocating the argumentlist (check if `argl' is not null instead
46827 of checking if `args' is not null).
46828 * kern/mm.c (grub_realloc): Return the same pointer when using the
46829 same region, instead of returning the header address.
46830
46831 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46832
46833 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46834 one block instead of two when looking for the initial partition.
46835 (grub_partition_probe): Initialize the local variable `p' with 0.
46836 Use base 10 for the grub_strtoul call.
46837 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46838 need for one local variable.
46839 (grub_strtoul): Don't add the new value to `num', instead of that
46840 just assign it.
46841
46842 2004-07-11 Marco Gerards <metgerards@student.han.nl>
46843
46844 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46845 (pxeboot_img_SOURCES): New variable.
46846 (pxeboot_img_ASFLAGS): Likewise.
46847 (pxeboot_img_LDFLAGS): Likewise.
46848 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46849 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46850 <lode_leroy@hotmail.com>.
46851
46852 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46853
46854 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46855 there was no input.
46856
46857 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46858
46859 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46860 the history buffer logic.
46861
46862 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46863
46864 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46865 (FILETYPE_INO_SYMLINK): New macros.
46866 (grub_ext2_find_file): Check if the node is a directory using the
46867 inode stat information instead of using the filetype in the
46868 dirent. Exclude the first character of an absolute symlink.
46869 (grub_ext2_dir): Mask out the filetype part of the mode member of
46870 the inode.
46871
46872 2004-05-24 Marco Gerards <metgerards@student.han.nl>
46873
46874 Add support for UFS version 1 and 2. Add support for the minix
46875 filesystem version 1 and 2, both the variants with 14 and 30 long
46876 filenames.
46877
46878 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46879 fs/minix.c.
46880 (grub_emu_SOURCES): Likewise.
46881 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46882 (ufs_mod_SOURCES): New variable.
46883 (ufs_mod_CFLAGS): Likewise.
46884 (minix_mod_SOURCES): Likewise.
46885 (minix_mod_CFLAGS): Likewise.
46886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46887 fs/minix.c.
46888 (grubof_SOURCES): Likewise.
46889 * fs/ufs.c: New file.
46890 * fs/minix.c: New file.
46891 * include/grub/fs.h (grub_ufs_init): New prototype.
46892 (grub_ufs_fini): Likewise.
46893 (grub_minix_init): Likewise.
46894 (grub_minix_fini): Likewise.
46895 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46896 minix fs.
46897
46898 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46899
46900 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46901 commands/ls.c, commands/terminal.c, commands/boot.c,
46902 commands/cmp.c and commands/cat.c.
46903 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46904
46905 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46906 "env.h"
46907
46908 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46909
46910 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46911 and grub_, respectively. Because the conversion is trivial and
46912 mechanical, I omit the details here. Please refer to the CVS
46913 if you need more information.
46914
46915 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46916
46917 * include/pupa: Renamed to ...
46918 * include/grub: ... this.
46919 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46920 * util/i386/pc/grub-mkimage.c: ... this.
46921 * util/i386/pc/pupa-setup.c: Renamed to ...
46922 * util/i386/pc/grub-setup.c: ... this.
46923 * util/pupa-emu.c: Renamed to ...
46924 * util/grub-emu.c: ... this.
46925
46926 2004-03-29 Marco Gerards <metgerards@student.han.nl>
46927
46928 Add support for the newworld apple macintosh (PPC). This has been
46929 tested on the powerbook 2000 only. It only adds support for
46930 generic ieee1275 functions, console and disk support. This should
46931 be easy to port to other architectures with support for Open
46932 Firmware.
46933
46934 * configure.ac: Accept the powerpc as host_cpu. In the case of
46935 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46936 specific tests are only executed while building for the i386.
46937 Inverse test for crosscompile.
46938 * genmk.rb (Utility): Allow assembler files.
46939 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46940 * conf/powerpc-ieee1275.rmk: New file.
46941 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46942 * disk/powerpc/ieee1275/partition.c: Likewise.
46943 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46944 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46945 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46946 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46947 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46948 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46949 * include/pupa/powerpc/ieee1275/loader.h
46950 * include/pupa/powerpc/setjmp.h: Likewise.
46951 * include/pupa/powerpc/types.h: Likewise.
46952 * kern/powerpc/ieee1275/init.c: Likewise.
46953 * kern/powerpc/ieee1275/openfw.c: Likewise.
46954 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46955
46956 These files were written by Johan Rydberg
46957 (jrydberg@night.trouble.net) and I only modified them slightly.
46958
46959 * boot/powerpc/ieee1275/cmain.c: New file.
46960 * boot/powerpc/ieee1275/crt0.S: Likewise.
46961 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46962 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46963
46964 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46965
46966 * Makefile.in: Update copyright.
46967 * genmodsrc.sh: Likewise.
46968 * gensymlist.sh: Likewise.
46969 * term/i386/pc/vga.c: Indent correctly.
46970
46971 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46972 bugreporting address.
46973 * util/i386/pc/pupa-setup.c (usage): Likewise,
46974 (main): Call pupa_ext2_init and pupa_ext2_fini.
46975
46976 * fs/fat.c (log2): Renamed to ...
46977 (fat_log2): ... this.
46978 All callers changed.
46979 * kern/misc.c (memcpy): Alias to pupa_memmove.
46980 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46981 lvalue cast.
46982 * util/console.c (pupa_ncurses_fini): Return 0.
46983
46984 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46985 Move fail label here.
46986 [__GNU__]: Don't warn when using stat.
46987 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46988 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46989 long int. Use strtol instead of strtoul.
46990
46991 2004-03-14 Marco Gerards <metgerards@student.han.nl>
46992
46993 * commands/boot.c: New file.
46994 * commands/cat.c: Likewise.
46995 * commands/cmp.c: Likewise.
46996 * commands/ls.c: Likewise.
46997 * commands/terminal.c: Likewise.
46998 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46999 (pupa_register_command): Changed interface to match the new
47000 argument parser.
47001 (pupa_command_execute): Changed (almost rewritten) so it uses
47002 pupa_split_command. Added support for setting variables using the
47003 syntax `foo=bar'.
47004 (rescue_command): Changed to work with the new argument parser.
47005 (terminal_command): Moved from here to commands/terminal.c.
47006 (set_command): New function.
47007 (unset_command): New function.
47008 (insmod_command): New function.
47009 (rmmod_command): New function.
47010 (lsmod_command): New function.
47011 (pupa_command_init): Don't initialize the command terminal
47012 anymore. Initialize the commands set, unset, insmod, rmmod and
47013 lsmod.
47014 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47015 (kernel_img_HEADERS): Add arg.h and env.h.
47016 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47017 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47018 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47019 normal/arg.c.
47020 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47021 terminal.mod.
47022 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47023 (boot_mod_SOURCES): New variable.
47024 (terminal_mod_SOURCES): Likewise.
47025 (ls_mod_SOURCES): Likewise.
47026 (cmp_mod_SOURCES): Likewise.
47027 (cat_mod_SOURCES): Likewise.
47028
47029 * normal/arg.c: New file.
47030 * kern/env.c: Likewise.
47031 * include/pupa/arg.h: Likewise.
47032 * include/pupa/env.h: Likewise.
47033 * font/manager.c (font_command): Changed to match argument parsing
47034 interface changes.
47035 (PUPA_MOD_INIT): Likewise.
47036 * hello/hello.c (pupa_cmd_hello): Likewise.
47037 (PUPA_MOD_INIT): Likewise.
47038 * include/pupa/disk.h: Include <pupa/device.h>.
47039 (pupa_print_partinfo): New prototype.
47040 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47041 (pupa_dl_get_prefix): Likewise.
47042 * include/pupa/misc.h: Include <pupa/err.h>.
47043 (pupa_isgraph): New prototype.
47044 (pupa_isdigit): Likewise.
47045 (pupa_split_cmdline): Likewise.
47046 * include/pupa/normal.h: Include <pupa/arg.h>.
47047 (pupa_command): Changed the prototype of the member `func' to
47048 match the argument parsing interface. Added member `options'.
47049 (pupa_register_command): Updated to match function.
47050 (pupa_arg_parse): New prototype.
47051 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47052 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47053 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47054 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47055 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47056 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47057 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47058 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47059 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47060 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47061 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47062 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47063 * kern/disk.c: Include <pupa/file.h>.
47064 (pupa_print_partinfo): New function.
47065 * kern/dl.c: Include <pupa/env.h>.
47066 (pupa_dl_dir): Variable removed.
47067 (pupa_dl_load): Use the environment variable `prefix' instead of
47068 the variable pupa_dl_dir.
47069 (pupa_dl_set_prefix): Function removed.
47070 (pupa_dl_get_prefix): Likewise.
47071 * kern/i386/pc/init.c: Include <pupa/env.h>.
47072 (pupa_machine_init): Use the environment variable `prefix' instead of
47073 using pupa_dl_set_prefix to set the prefix.
47074 * kern/main.c: Include <pupa/env.h>.
47075 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47076 using pupa_dl_get_prefix to get the prefix.
47077 * kern/misc.c: Include <pupa/env.h>.
47078 (pupa_isdigit): New function.
47079 (pupa_isgraph): Likewise.
47080 (pupa_ftoa): Likewise.
47081 (pupa_vsprintf): Added support for printing values of the type
47082 `double'. Make it possible to format variable output when using
47083 formatting like `%1.2%f'.
47084 (pupa_split_cmdline): New function.
47085 * kern/rescue.c: Include <pupa/env.h>.
47086 (next_word): Removed function.
47087 (pupa_rescue_cmd_prefix): Likewise.
47088 (pupa_rescue_cmd_set): New function.
47089 (pupa_rescue_cmd_unset): New function.
47090 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47091 split the command line instead of splitting it here. Added
47092 support for setting variables using the syntax `foo=bar'. Don't
47093 initialize the prefix command anymore. Initialized the set and
47094 unset commands.
47095 * normal/cmdline.c: Include <pupa/env.h>.
47096 (pupa_tab_complete): Added prototypes for print_simple_completion,
47097 print_partition_completion, add_completion, iterate_commands,
47098 iterate_dev, iterate_part and iterate_dir. Moved code to print
47099 partition information from here to kern/disk.c.
47100 (pupa_cmdline_run): Don't check if the function exists anymore.
47101 * normal/main.c: Include <pupa/env.h>.
47102 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47103 instead of using pupa_dl_get_prefix to get the prefix.
47104 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47105 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47106 warning.
47107 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47108 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47109 ((unused))' to silence a gcc warning.
47110 (pupa_vga_setcolor): Likewise.
47111 (debug_command): Changed to match argument parsing
47112 interface changes.
47113 * util/pupa-emu.c: Include <pupa/env.h>.
47114 (options): Added 0's for unused fields to silence a gcc warning.
47115 (argp): Likewise.
47116 (main): Use the environment variable `prefix' instead of using
47117 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47118 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47119 and terminal.
47120
47121 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47122 * util/misc.c: Include <malloc.h>.
47123 (pupa_malloc): Rewritten so errors are correctly reported.
47124 (pupa_realloc): Likewise.
47125 (pupa_memalign): Likewise.
47126 (pupa_mm_init_region): Declare unused variables with
47127 `__attribute__ ((unused))' to silence a gcc warning.
47128 * normal/i386/setjmp.S: Remove tab at the end of the file to
47129 silence a gcc warning.
47130 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47131 variables with `__attribute__ ((unused))' to silence a gcc
47132 warning.
47133 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47134 local variable i unsigned to silence a gcc warning.
47135
47136 * kern/term.c: Include <pupa/misc.h>.
47137 (pupa_more_lines): New variable.
47138 (pupa_more): Likewise.
47139 (pupa_putcode): When the pager is active pause at the end of every
47140 screen.
47141 (pupa_set_more): New function.
47142 * include/pupa/term.h (pupa_set_more): New prototype.
47143
47144
47145 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47146
47147 Now this project is GRUB 2 rather than PUPA. The location of
47148 the CVS repository was moved to GRUB's.
47149
47150 * configure.ac: Use bug-grub as the reporting address.
47151 Use GRUB instead of PUPA.
47152 Change the version number to 1.90.
47153
47154 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47155
47156 * genkernsyms.sh: Updated copyright information.
47157 * genmk.rb: Likewise.
47158 * genmodsrc.sh: Likewise.
47159 * gensymlist.sh: Likewise.
47160 * boot/i386/pc/boot.S: Likewise.
47161 * boot/i386/pc/diskboot.S: Likewise.
47162 * disk/i386/pc/biosdisk.c: Likewise.
47163 * disk/i386/pc/partition.c: Likewise.
47164 * font/manager.c: Likewise.
47165 * fs/ext2.c: Likewise.
47166 * fs/fat.c: Likewise.
47167 * include/pupa/boot.h: Likewise.
47168 * include/pupa/device.h: Likewise.
47169 * include/pupa/disk.h: Likewise.
47170 * include/pupa/dl.h: Likewise.
47171 * include/pupa/elf.h: Likewise.
47172 * include/pupa/err.h: Likewise.
47173 * include/pupa/file.h: Likewise.
47174 * include/pupa/font.h: Likewise.
47175 * include/pupa/fs.h: Likewise.
47176 * include/pupa/kernel.h: Likewise.
47177 * include/pupa/loader.h: Likewise.
47178 * include/pupa/misc.h: Likewise.
47179 * include/pupa/mm.h: Likewise.
47180 * include/pupa/net.h: Likewise.
47181 * include/pupa/normal.h: Likewise.
47182 * include/pupa/rescue.h: Likewise.
47183 * include/pupa/setjmp.h: Likewise.
47184 * include/pupa/symbol.h: Likewise.
47185 * include/pupa/term.h: Likewise.
47186 * include/pupa/types.h: Likewise.
47187 * include/pupa/i386/setjmp.h: Likewise.
47188 * include/pupa/i386/types.h: Likewise.
47189 * include/pupa/i386/pc/biosdisk.h: Likewise.
47190 * include/pupa/i386/pc/boot.h: Likewise.
47191 * include/pupa/i386/pc/console.h: Likewise.
47192 * include/pupa/i386/pc/init.h: Likewise.
47193 * include/pupa/i386/pc/kernel.h: Likewise.
47194 * include/pupa/i386/pc/linux.h: Likewise.
47195 * include/pupa/i386/pc/loader.h: Likewise.
47196 * include/pupa/i386/pc/memory.h: Likewise.
47197 * include/pupa/i386/pc/multiboot.h: Likewise.
47198 * include/pupa/i386/pc/partition.h: Likewise.
47199 * include/pupa/i386/pc/time.h: Likewise.
47200 * include/pupa/i386/pc/vga.h: Likewise.
47201 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47202 * include/pupa/util/getroot.h: Likewise.
47203 * include/pupa/util/misc.h: Likewise.
47204 * include/pupa/util/resolve.h: Likewise.
47205 * kern/device.c: Likewise.
47206 * kern/disk.c: Likewise.
47207 * kern/dl.c: Likewise.
47208 * kern/err.c: Likewise.
47209 * kern/file.c: Likewise.
47210 * kern/fs.c: Likewise.
47211 * kern/loader.c: Likewise.
47212 * kern/main.c: Likewise.
47213 * kern/misc.c: Likewise.
47214 * kern/mm.c: Likewise.
47215 * kern/rescue.c: Likewise.
47216 * kern/term.c: Likewise.
47217 * kern/i386/dl.c: Likewise.
47218 * kern/i386/pc/init.c: Likewise.
47219 * kern/i386/pc/lzo1x.S: Likewise.
47220 * kern/i386/pc/startup.S: Likewise.
47221 * loader/i386/pc/chainloader.c: Likewise.
47222 * loader/i386/pc/linux.c: Likewise.
47223 * loader/i386/pc/multiboot.c: Likewise.
47224 * normal/cmdline.c: Likewise.
47225 * normal/command.c: Likewise.
47226 * normal/main.c: Likewise.
47227 * normal/menu.c: Likewise.
47228 * normal/i386/setjmp.S: Likewise.
47229 * term/i386/pc/console.c: Likewise.
47230 * term/i386/pc/vga.c: Likewise.
47231 * util/console.c: Likewise.
47232 * util/genmoddep.c: Likewise.
47233 * util/misc.c: Likewise.
47234 * util/pupa-emu.c: Likewise.
47235 * util/resolve.c: Likewise.
47236 * util/unifont2pff.rb: Likewise.
47237 * util/i386/pc/biosdisk.c: Likewise.
47238 * util/i386/pc/getroot.c: Likewise.
47239 * util/i386/pc/pupa-mkimage.c: Likewise.
47240 * util/i386/pc/pupa-setup.c: Likewise.
47241
47242 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47243
47244 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47245 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47246 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47247 reading and reset it after reading.
47248 (pupa_ext2_close): Return PUPA_ERR_NONE.
47249
47250 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47251 Correct value.
47252 (struct linux_kernel_header): Add kernel_version and
47253 initrd_addr_max.
47254 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47255 pupa_file_read succeeds.
47256 (pupa_rescue_cmd_initrd): Implement.
47257
47258 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47259
47260 * fs/ext2.c (pupa_ext2_label): New function.
47261 (pupa_ext2_fs): Added label.
47262 * fs/fat.c (pupa_fat_label): New function.
47263 (pupa_fat_fs): Added label.
47264 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47265
47266 * kern/misc.c (pupa_strndup): New function.
47267 * include/pupa/misc.h (pupa_strndup): New prototype.
47268
47269 * include/pupa/normal.h: Include <pupa/err.h>.
47270 (pupa_set_history): New prototype.
47271 (pupa_iterate_commands): New prototype.
47272 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47273 <pupa/disk.h>, <pupa/file.h>.
47274 (hist_size): New variable.
47275 (hist_lines): Likewise.
47276 (hist_end): Likewise.
47277 (hist_used): Likewise.
47278 (pupa_set_history): New function.
47279 (pupa_history_get): Likewise.
47280 (pupa_history_add): Likewise.
47281 (pupa_history_replace): Likewise.
47282 (pupa_tab_complete): Likewise.
47283 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47284 completion shows partitionnames while completing partitions, this
47285 feature was suggested by Jeff Bailey.
47286 * normal/command.c (pupa_iterate_commands): New function.
47287 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47288 (pupa_normal_init): Initialize history buffer.
47289 (PUPA_MOD_INIT): Likewise.
47290 (pupa_normal_fini): Free the history buffer.
47291 (PUPA_MOD_FINI): Likewise.
47292
47293 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47294 key.
47295
47296 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47297 * configure.ac [i386]: Check for regparam bug.
47298 (NESTED_FUNC_ATTR) [! i386]: Defined.
47299
47300 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47301
47302 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47303 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47304 (pupa_emu_SOURCES): New variable.
47305 (pupa_emu_LDFLAGS): Likewise.
47306 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47307 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47308 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47309 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47310 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47311 (pupa_jmp_buf): New typedef.
47312 (pupa_setjmp) [PUPA_UTIL]: New macro.
47313 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47314 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47315 (pupa_refresh): New prototype.
47316 * include/pupa/util/getroot.h: New file.
47317 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47318 it.
47319 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47320 (pupa_rescue_cmd_cat): Likewise.
47321 (pupa_rescue_cmd_ls): Likewise.
47322 (pupa_rescue_cmd_testload): Likewise.
47323 (pupa_rescue_cmd_lsmod): Likewise.
47324 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47325 * normal/menu.c (run_menu): Likewise.
47326 * kern/term.c (pupa_cls): Likewise.
47327 (pupa_refresh): New function.
47328 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47329 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47330 * util/console.c: New file.
47331
47332 * util/i386/pc/getroot.c: New file.
47333 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47334 (pupa_putchar): New function.
47335 (pupa_refresh): Likewise.
47336 (xgetcwd): Function moved to ...
47337 (strip_extra_slashes): Likewise.
47338 (get_prefix): Likewise.
47339 * util/i386/pc/getroot.c: ... here.
47340 (find_root_device): Function moved and renamed to...
47341 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47342 Changed all callers.
47343 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47344 and renamed to...
47345 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47346 Changed all callers.
47347 * util/misc.c (pupa_memalign): New function.
47348 (pupa_mm_init_region): Likewise.
47349 (pupa_register_exported_symbols): Likewise.
47350 (pupa_putchar): Function removed.
47351 * util/pupa-emu.c: New file.
47352
47353 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47354
47355 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47356 (_multiboot_mod_SOURCES): New variable.
47357 (_multiboot_mod_CFLAGS): Likewise.
47358 * loader/i386/pc/multiboot.c: New file.
47359 * include/pupa/i386/pc/multiboot.h: Likewise.
47360 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47361 (pupa_multiboot_real_boot): New function.
47362 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47363 (pupa_multiboot_real_boot): New prototype.
47364 (pupa_rescue_cmd_multiboot): Likewise
47365 (pupa_rescue_cmd_module): Likewise.
47366
47367 * kern/loader.c (pupa_loader_set): Continue when
47368 pupa_loader_unload_func() fails.
47369 (pupa_loader_unset): New function.
47370 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47371
47372 * kern/misc.c (pupa_stpcpy): New function.
47373 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47374
47375 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47376
47377 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47378 for available extensions.
47379
47380 * include/pupa/i386/pc/time.h: New file.
47381 * kern/disk.c: Include <pupa/machine/time.h>.
47382 (PUPA_CACHE_TIMEOUT): New macro.
47383 (pupa_last_time): New variable.
47384 (pupa_disk_open): Flush the cache when there was a timeout.
47385 (pupa_disk_close): Reset the timer.
47386 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47387 pupa_currticks.
47388 * util/misc.c: Include <sys/times.h>
47389 (pupa_get_rtc): New function.
47390
47391 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47392
47393 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47394 as blocks.
47395 (pupa_ext2_get_file_block): Use blocks member.
47396
47397 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47398 first block. Return -1 instead of pupa_errno on error.
47399
47400 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47401
47402 * README: In the pupa-mkimage example use _chain instead of chain
47403 and ext2 instead of fat.
47404 * TODO: Replace ext2fs with jfs as an example. Add an item for
47405 adding journal playback for ext2fs.
47406 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47407 (pkgdata_MODULES): Added ext2.mod.
47408 (ext2_mod_SOURCES): New variable.
47409 (ext2_mod_CFLAGS): Likewise.
47410 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47411 * include/pupa/misc.h (pupa_strncpy): New prototype.
47412 (pupa_strcat): Likewise.
47413 (pupa_strncmp): Likewise.
47414 * kern/misc.c (pupa_strcat): Enable function.
47415 (pupa_strncpy): New function.
47416 (pupa_strncmp): Likewise.
47417 * fs/ext2.c: New file.
47418
47419 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47420 when the read failed before retrying.
47421 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47422 (_FILE_OFFSET_BITS): Likewise.
47423 * configure.ac: Added AC_SYS_LARGEFILE.
47424
47425 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47426
47427 * genmk.rb (PModule#rule): Make sure to get only symbol names
47428 from the output of nm.
47429 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47430
47431 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47432
47433 I forgot to check in these changes for a long time. This adds
47434 incomplete support for VGA console, and this is still very
47435 buggy. Also, a lot of consideration is required for I18N,
47436 UNICODE, and VGA font issues. Therefore, assume that this is
47437 such that "better than nothing".
47438
47439 * font/manager.c: New file.
47440 * include/pupa/font.h: Likewise.
47441 * include/pupa/i386/pc/vga.h: Likewise.
47442 * term/i386/pc/vga.c: Likewise.
47443 * util/unifont2pff.rb: Likewise.
47444
47445 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47446 (pkgdata_MODULES): Added vga.mod and font.mod.
47447 (vga_mod_SOURCES): New variables.
47448 (vga_mod_CFLAGS): Likewise.
47449 (font_mod_SOURCES): Likewise.
47450 (font_mod_CFLAGS): Likewise.
47451
47452 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47453
47454 * include/pupa/term.h: Include pupa/err.h.
47455 (struct pupa_term): Added init and fini.
47456 Changed the argument of putchar to pupa_uint32_t.
47457
47458 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47459 (pupa_console_real_putchar): New prototype.
47460 (pupa_console_putchar): Removed.
47461 (pupa_console_checkkey): Exported.
47462 (pupa_console_getkey): Likewise.
47463
47464 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47465 characters.
47466
47467 * kern/term.c (pupa_term_set_current): Rewritten.
47468 (pupa_putchar): Likewise.
47469 (pupa_putcode): New function.
47470
47471 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47472 (pupa_console_real_putchar): ... this.
47473 (pupa_vga_set_mode): New function.
47474 (pupa_vga_get_font): Likewise.
47475
47476 * normal/command.c: Include pupa/term.h.
47477 (terminal_command): New function.
47478 (pupa_command_init): Register the command "terminal".
47479
47480 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47481 (DISP_UP): Likewise.
47482 (DISP_RIGHT): Likewise.
47483 (DISP_DOWN): Likewise.
47484 (DISP_HLINE): Likewise.
47485 (DISP_VLINE): Likewise.
47486 (DISP_UL): Likewise.
47487 (DISP_UR): Likewise.
47488 (DISP_LL): Likewise.
47489 (DISP_LR): Likewise.
47490
47491 * term/i386/pc/console.c (pupa_console_putchar): New function.
47492
47493 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47494
47495 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47496 FIX. Reverse the path_list.
47497
47498 * include/pupa/normal.h: Export pupa_register_command and
47499 pupa_unregister_command.
47500
47501 * hello/hello.c (pupa_cmd_hello): New module.
47502 * conf/i386-pc.rmk: Added hello.mod.
47503
47504 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47505
47506 * kern/i386/pc/lzo1x.S: New file.
47507
47508 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47509 (compress_kernel): New variable.
47510 (generate_image): Heavily modified to support compressing a
47511 large part of the core image.
47512
47513 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47514 leak.
47515 (pupa_util_load_image): New function.
47516
47517 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47518 (pupa_compressed_size): New variable.
47519 (codestart): Enable Gate A20 here.
47520 Decompress the compressed part of the core image.
47521 Rearrange the code to put functions and variables which are
47522 required for initialization in the non-compressed part.
47523 Include lzo1x.S.
47524
47525 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47526 here.
47527
47528 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47529
47530 * include/pupa/i386/pc/kernel.h
47531 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47532 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47533 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47534 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47535 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47536
47537 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47538
47539 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47540 (Utility#rule): Likewise.
47541
47542 * configure.ac: Check if LZO is available.
47543
47544 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47545
47546 * include/pupa/normal.h: New file.
47547 * include/pupa/setjmp.h: Likewise.
47548 * include/pupa/i386/setjmp.h: Likewise.
47549 * normal/cmdline.c: Likewise.
47550 * normal/command.c: Likewise.
47551 * normal/main.c: Likewise.
47552 * normal/menu.c: Likewise.
47553 * normal/i386/setjmp.S: Likewise.
47554
47555 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47556 (pupa_rescue_cmd_initrd): Likewise.
47557
47558 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47559 Likewise.
47560
47561 * kern/i386/pc/startup.S (translation_table): New variable.
47562 (translate_keycode): New function.
47563 (pupa_console_getkey): Call translate_keycode.
47564
47565 * kern/rescue.c (attempt_normal_mode): New function.
47566 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47567 it failed, print a message.
47568
47569 * kern/mm.c (pupa_real_malloc): Print more information when a
47570 free magic is broken.
47571 (pupa_free): If the first free header is not free actually, set
47572 it to P.
47573
47574 * kern/main.c (pupa_load_normal_mode): Just load the module
47575 "normal".
47576 (pupa_main): Don't print the message
47577 "Entering into rescue mode..." here.
47578
47579 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47580 Declared.
47581 (pupa_rescue_cmd_initrd): Likewise.
47582 (pupa_rescue_cmd_initrd): Likewise.
47583
47584 * include/pupa/symbol.h (FUNCTION): Specify the type.
47585 (VARIABLE): Likewise.
47586
47587 * include/pupa/err.h (pupa_err_t): Added
47588 PUPA_ERR_UNKNOWN_COMMAND.
47589
47590 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47591 (pupa_dl_get_prefix): Likewise.
47592
47593 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47594 Added _chain.mod and _linux.mod instead of chain.mod and
47595 linux.mod.
47596 (chain_mod_SOURCES): Renamed to ...
47597 (_chain_mod_SOURCES): ... this.
47598 (chain_mod_CFLAGS): Renamed to ...
47599 (_chain_mod_CFLAGS): ... this.
47600 (linux_mod_SOURCES): Renamed to ...
47601 (_linux_mod_SOURCES): ... this.
47602 (linux_mod_CFLAGS): Renamed to ...
47603 (_linux_mod_CFLAGS): ... this.
47604 (normal_mod_SOURCES): New variable.
47605 (normal_mod_CFLAGS): Likewise.
47606 (normal_mod_ASFLAGS): Likewise.
47607
47608 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47609
47610 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47611 possible.
47612
47613 * kern/dl.c (pupa_dl_ref): Refer depending modules
47614 recursively.
47615 (pupa_dl_unref): Unrefer depending modules recursively.
47616 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47617 a module is unloaded before one depending on that module is
47618 unloaded.
47619 (pupa_dl_unload): Unload depending modules explicitly,
47620 if possible.
47621
47622 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47623
47624 * include/pupa/i386/pc/linux.h: New file.
47625 * loader/i386/pc/linux.c: Likewise.
47626
47627 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47628 Removed.
47629 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47630 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47631 of PUPA_CHAINLOADER_BOOT_SECTOR.
47632
47633 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47634 (pupa_linux_prot_size): New variable.
47635 (pupa_linux_tmp_addr): Likewise.
47636 (pupa_linux_real_addr): Likewise.
47637 (pupa_linux_boot_zimage): New function.
47638 (pupa_linux_boot_bzimage): Likewise.
47639
47640 * kern/i386/pc/init.c (struct mem_region): New structure.
47641 (MAX_REGIONS): New macro.
47642 (mem_regions): New variable.
47643 (num_regions): Likewise.
47644 (pupa_os_area_addr): Likewise.
47645 (pupa_os_area_size): Likewise.
47646 (pupa_lower_mem): Likewise.
47647 (pupa_upper_mem): Likewise.
47648 (add_mem_region): New function.
47649 (compact_mem_regions): Likewise.
47650 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47651 the size of the conventional memory and that of so-called upper
47652 memory (before the first memory hole).
47653 Instead of adding each found region to free memory, use
47654 add_mem_region and add them after removing overlaps.
47655 Also, add only 1/4 of the upper memory to free memory. The rest
47656 is used for loading OS images. Maybe this is ad hoc, but this
47657 makes it much easier to relocate OS images when booting.
47658
47659 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47660 (pupa_enter_rescue_mode): Don't register initrd and module.
47661
47662 * kern/mm.c: Include pupa/dl.h.
47663
47664 * kern/main.c: Include pupa/file.h and pupa/device.h.
47665
47666 * kern/loader.c (pupa_loader_load_module_func): Removed.
47667 (pupa_loader_load_module): Likewise.
47668
47669 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47670 ``.o''.
47671
47672 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47673 (pupa_linux_tmp_addr): Likewise.
47674 (pupa_linux_real_addr): Likewise.
47675 (pupa_linux_boot_zimage): Likewise.
47676 (pupa_linux_boot_bzimage): Likewise.
47677
47678 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47679 (pupa_upper_mem): Likewise.
47680 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47681 module is too dangerous.
47682
47683 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47684 (pupa_os_area_size): Likewise.
47685 (pupa_loader_set): Remove the first argument. Loader doesn't
47686 manage modules or initrd any longer.
47687 (pupa_loader_load_module): Removed.
47688
47689 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47690 (linux_mod_SOURCES): New variable.
47691 (linux_mod_CFLAGS): Likewise.
47692
47693 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47694
47695 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47696 the length of a blocklist correctly.
47697
47698 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47699 Use ioctl only if the OS file is a block device.
47700 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47701 not very useful for normal files.
47702
47703 * kern/main.c (pupa_set_root_dev): New function.
47704 (pupa_load_normal_mode): Likewise.
47705 (pupa_main): Call those above.
47706
47707 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47708 pupa_uint16_t.
47709
47710 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47711
47712 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47713
47714 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47715 (setup): Configure the installed partition information and the
47716 dl prefix.
47717
47718 * loader/i386/pc/chainloader.c (my_mod): New variable.
47719 (pupa_chainloader_unload): New function.
47720 (pupa_rescue_cmd_chainloader): Refer itself.
47721 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47722
47723 * kern/i386/pc/startup.S (install_partition): Removed.
47724 (version_string): Likewise.
47725 (config_file): Likewise.
47726 (pupa_install_dos_part): New variable.
47727 (pupa_install_bsd_part): Likewise.
47728 (pupa_prefix): Likewise.
47729 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47730
47731 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47732 and pupa/misc.h.
47733 (make_install_device): New function.
47734 (pupa_machine_init): Set the dl prefix.
47735
47736 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47737 (buf): Renamed to ...
47738 (linebuf): ... this.
47739 (pupa_rescue_cmd_prefix): New function.
47740 (pupa_rescue_cmd_insmod): Likewise.
47741 (pupa_rescue_cmd_rmmod): Likewise.
47742 (pupa_rescue_cmd_lsmod): Likewise.
47743 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47744 rmmod and lsmod.
47745
47746 * kern/mm.c (pupa_memalign): If failed even after invalidating
47747 disk caches, unload unneeded modules and retry.
47748
47749 * kern/misc.c (pupa_memmove): New function.
47750 (pupa_memcpy): Removed.
47751 (pupa_strcpy): New function.
47752 (pupa_itoa): Made static.
47753
47754 * kern/dl.c (pupa_dl_iterate): New function.
47755 (pupa_dl_ref): Likewise.
47756 (pupa_dl_unref): Likewise.
47757 (pupa_dl_unload): Return if succeeded or not.
47758 (pupa_dl_unload_unneeded): New function.
47759 (pupa_dl_unload_all): Likewise.
47760 (pupa_dl_init): Renamed to ...
47761 (pupa_dl_set_prefix): ... this.
47762 (pupa_dl_get_prefix): New function.
47763
47764 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47765 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47766 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47767 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47768 (pupa_install_dos_part): Declared.
47769 (pupa_install_bsd_part): Likewise.
47770 (pupa_prefix): Likewise.
47771 (pupa_boot_drive): Likewise.
47772
47773 * include/pupa/types.h: Fix a typo.
47774
47775 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47776 pupa_memmove.
47777 (pupa_memmove): Declared.
47778 (pupa_strcpy): Likewise.
47779
47780 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47781 pupa_mod_init takes one argument, its own module.
47782 (pupa_dl_unload_unneeded): Declared.
47783 (pupa_dl_unload_all): Likewise.
47784 (pupa_dl_ref): Likewise.
47785 (pupa_dl_unref): Likewise.
47786 (pupa_dl_iterate): Likewise.
47787 (pupa_dl_init): Renamed to ...
47788 (pupa_dl_set_prefix): ... this.
47789 (pupa_dl_get_prefix): Declared.
47790
47791 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
47792 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
47793 unloaded.
47794 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47795 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47796
47797 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47798 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47799
47800 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47801
47802 * util/i386/pc/pupa-setup.c (setup): Define the internal
47803 function find_first_partition_start at the top level, because GCC
47804 3.0.x cannot compile internal functions in deeper scopes
47805 correctly.
47806 (find_root_device): Use lstat instead of stat.
47807 Don't follow symbolic links.
47808 Fix the path-constructing code.
47809
47810 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47811 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47812 by a BLKGETSIZE ioctl first, because block devices don't fill
47813 the member st_mode of the structure stat on Linux.
47814 [__linux__] (linux_find_partition): Use a temporary buffer
47815 REAL_DEV for the working space. Copy it to DEV before returning.
47816 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47817 buffer cache consistent.
47818 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47819 strncmp. The previous value was merely wrong.
47820 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47821
47822 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47823 FAT size is 12. The previous value was merely wrong.
47824
47825 * kern/main.c (pupa_main): Don't split the starting message from
47826 newlines.
47827
47828 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47829 LF, because BIOS goes crazy about character attributes in this
47830 case.
47831
47832 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47833
47834 * include/i386/pc/util/biosdisk.h: New file.
47835 * util/i386/pc/biosdisk.c: Likewise.
47836 * util/i386/pc/pupa-setup.c: Likewise.
47837
47838 * Makefile.in (INCLUDE_DISTFILES): Added
47839 include/pupa/i386/pc/util/biosdisk.h.
47840 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47841 directory util/i386/pc.
47842 (install-local): Added a rule for sbin_UTILITIES.
47843 (uninstall): Likewise.
47844
47845 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47846
47847 * util/misc.c (xrealloc): New function.
47848 (pupa_malloc): Likewise.
47849 (pupa_free): Likewise.
47850 (pupa_realloc): Likewise.
47851 (pupa_stop): Likewise.
47852 (pupa_putchar): Likewise.
47853
47854 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47855
47856 * include/pupa/util/misc.h (xrealloc): Declared.
47857
47858 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47859 macro.
47860 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47861 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47862
47863 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47864 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47865
47866 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47867 way should be implemented.
47868 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47869
47870 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47871 the size of NAME for safety.
47872 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47873 0x88.
47874
47875 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47876 (pupa_setup_SOURCES): Likewise.
47877
47878 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47879
47880 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47881
47882 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47883 bunch of pushl's from pusha, because this destroys the return
47884 value.
47885
47886 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47887
47888 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47889 This means that any missing prototypes could be fatal. Also, you
47890 must take care when writing assembly code. See the comments at
47891 the beginning of startup.S, for more details.
47892
47893 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47894 compilation mechanism.
47895 (pupa_chainloader_real_boot): Likewise.
47896 (pupa_biosdisk_rw_int13_extensions): Likewise.
47897 (pupa_biosdisk_rw_standard): Likewise.
47898 (pupa_biosdisk_check_int13_extensions): Likewise.
47899 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47900 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47901 (pupa_get_memsize): Likewise.
47902 (pupa_get_mmap_entry): Likewise.
47903 (pupa_console_putchar): Likewise.
47904 (pupa_console_setcursor): Likewise.
47905 (pupa_getrtsecs): Use pushl instead of push.
47906
47907 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47908 memory instead of the stack for a mmap entry, because some
47909 BIOSes may ignore the maximum size and overflow.
47910
47911 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47912
47913 * genmk.rb (PModule#rule): Compile automatically generated
47914 sources with module-specific CFLAGS as well as other sources.
47915
47916 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47917
47918 * configure.ac: Check ld.
47919 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47920 respectively, before checking endianness and sizes.
47921
47922 * Makefile.in (LD): New variable.
47923
47924 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47925
47926 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47927
47928 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47929
47930 * Changelog: New file.
47931