]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Remove all trampoline support. Add -Wtrampolines when
[grub2.git] / ChangeLog
CommitLineData
19ce697d
VS
12013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
2
3 Remove all trampoline support. Add -Wtrampolines when
4 present. Remove symbols used for trampolines to make
5 link fail if trampolines are present.
6
73b5d90f
VS
72013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8
9 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
10 append out of its parent.
11
cb758e96
VS
122013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
13
14 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
15 parent.
16
3188131f
VS
172013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
18
19 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
20 all vars to a macro. All users updated.
21
e42b2514
VS
222013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * grub-core/disk/ieee1275/nand.c: Fix compilation on
25 i386-ieee1275.
26
83e1a1a1
VS
272013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
28
29 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
30
1d5a880f
VS
312013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
34
6e4146c4
VS
352013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
36
37 Move to more hookless approach in IEEE1275 devices handling.
38
99fcda8a
VS
392013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
40
41 * grub-core/kern/term.c (grub_term_normal_color),
42 (grub_term_highlight_color): Add back lost defaults.
43
73bf57e2
VS
442013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
45
46 Make elfload not use hooks. Opt for flags and iterators instead.
47
7f8c105f
VS
482013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
49
50 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
51 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
52
396d4091
VS
532013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
54
55 * grub-core/script/execute.c (gettext_append): Remove nested functions.
56
572013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
60 hook pass-through parameter. All users updated and unnested.
61
74a27421
VS
622013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
63
64 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
65 out of its parent.
66
b46d4213
VS
672013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
68
69 * grub-core/fs/hfs.c: Remove nested functions.
70
e114c3cc
VS
712013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
74 the context through.
75 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
76
f9b7d780
VS
772013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
78
79 * util/grub-editenv.c (list_variables): Move print_var out of its
80 parent.
81
ca9c2608
VS
822013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
83
84 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
85 function.
86
5d983f5f
VS
872013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
88
89 * grub-core/gentrigtables.c: Make tables const.
90
3056d3e7
VS
912013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
92
93 Remove nested functions from videoinfo iterators.
94
e2303774
VS
952013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
96
97 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
98 for 64-bit platforms.
99
f42e3a2f
VS
1002013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
103 a FOR_CHILDREN macro.
104
be174e5e
VS
1052013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
106
107 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
108 platform from firmware path.
109
0789b672
VS
1102013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
111
112 Enable linux16 on non-BIOS systems for i.a. memtest.
113
114 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
115 correctly.
116 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
117
005a9c32
VS
1182013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
119
120 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
121 Fix end of table condition.
122
ff2b3cd9
VS
1232013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
126 out of its parent.
127
4fc40ff8
VS
1282013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
129
130 * grub-core/fs/jfs.c: Remove nested functions.
131
be42d97a
VS
1322013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
133
134 * grub-core/fs/minix.c: Remove nested functions.
135
99373ce4
VS
1362013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * grub-core/fs/iso9660.c: Remove nested functions.
139
5aec2afe
VS
1402013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
141
142 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
143 of parent function.
144
6c69e691
VS
1452013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
146
147 * util/grub-fstest.c: Remove nested functions.
148
43c91882
VS
1492013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
150
151 * grub-core/loader/machoXX.c: Remove nested functions.
152
4eb8b756
CW
1532013-02-27 Colin Watson <cjwatson@ubuntu.com>
154
155 Remove nested functions from disk and file read hooks.
156
157 * include/grub/disk.h (grub_disk_read_hook_t): New type.
158 (struct grub_disk): Add read_hook_data member.
159 * include/grub/file.h (struct grub_file): Likewise.
160 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
161 argument.
162
163 Update all callers.
164
df6da5a5
AB
1652012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
166
167 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
168 Fix off by one error in enumerating extended partitions.
169
21aecde5
AB
1702013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
171
172 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
173 memory leak if device name is not found.
174
f1a19118
AB
1752013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
176
177 * grub-core/normal/menu_entry.c (update_screen): remove
178 unused variable `off' which caused scroll down arrow to be always shown.
179
958bfd20
AB
1802013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
181
182 * grub-core/normal/menu_entry.c (insert_string): fix off by one
183 access to unallocated memory.
184
b7b78edb
AB
1852013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
186
187 * Makefile.util.def: Add partmap/msdos.c to common library.
188 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
189 * grub-core/disk/ldm.c: Check for existence of
190 GRUB_PC_PARTITION_TYPE_LDM.
191
28d468d6
VS
1922013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
193
194 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
195 sizes and display sector size.
196
d55ffb02
VS
1972013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
198
199 Implement new command cmosdump.
200
b5ea6ce0
VS
2012013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
202
203 Support Openfirmware disks with non-512B sectors.
204
205 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
206 size of the disk.
207 * (grub_ofdisk_get_block_size): New function.
208 * (grub_ofdisk_prepare): Use the correct block size.
209 * (grub_ofdisk_read): Likewise.
210 * (grub_ofdisk_write): Likewise.
211 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
212 New proto.
213
cc0e476f
VS
2142013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
215
216 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
217
c5dbdc33
VS
2182013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
219
220 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
221 on first error.
222
3f078c0f
VS
2232013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
224
225 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
226 freeing it.
227
66a93674
VS
2282013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
229
230 Implement USBDebug (full USB stack variant).
231
c9f0c134
VS
2322013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
233
234 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
235 unless they have unexpected values.
236
cfe1288b
VS
2372013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
238
239 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
240 grub_print_error.
241
e42b9969
VS
2422013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
243
244 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
245 zero-out of port structure.
246
cf94fd62
VS
2472013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
248
249 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
250 of extended attributes.
251
f81ef4b5
AB
2522013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
253
254 * util/grub-install.in: change misleading comment about
255 device.map creation
256
af18fdb4
VS
2572013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
258
259 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
260 when menu highlight color isn't set.
261
08bcec50
M
2622013-01-27 C. Masloch <pushbx@38.de>
263
264 Improve FreeDOS direct loading support compatibility.
265
266 * include/grub/i386/relocator.h (grub_relocator16_state):
267 New member ebp.
268 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
269 variable.
270 (grub_relocator16_boot): Handle %ebp.
271 * grub-core/lib/i386/relocator16.S: Likewise.
272 * grub-core/loader/i386/pc/freedos.c:
273 Load BPB to pass kernel which partition to load from.
274 Check that kernel file is not too large.
275 Set register dl to BIOS unit number as well.
276
7782b8a6
CW
2772013-01-22 Colin Watson <cjwatson@ubuntu.com>
278
279 * util/grub-reboot.in (usage): Document the need for
280 GRUB_DEFAULT=saved.
281 * util/grub-set-default.in (usage): Likewise.
282 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
283
e661c180
VS
2842013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
285
286 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
287 than defining WORDS_BIGENDIAN manually.
288
1c22ca9a
VS
2892013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
290
291 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
292 invariants.
293
d44892fe
CW
2942013-01-21 Colin Watson <cjwatson@ubuntu.com>
295
296 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
297 nested.
298 (blit_comb: add_device_width): Likewise.
299
5fdbaed1
CW
3002013-01-21 Colin Watson <cjwatson@ubuntu.com>
301
302 Remove nested functions from USB iterators.
303
304 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
305 (grub_usb_controller_iterate_hook_t): Likewise.
306 (grub_usb_iterate): Add hook_data argument.
307 (grub_usb_controller_iterate): Likewise.
308 (struct grub_usb_controller_dev.iterate): Likewise.
309
310 Update all implementations and callers.
311
4250985a
VS
3122013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
313
314 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
315 margin when not needed.
316
7d8848f3
VS
3172013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
318
bc136973 319 Make color variables global instead of it being per-terminal.
7d8848f3
VS
320
3212013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
322
bc136973
VS
323 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
324 asterisk.
7d8848f3 325
ed12a003
CW
3262013-01-21 Colin Watson <cjwatson@ubuntu.com>
327
328 Fix powerpc and sparc64 build failures caused by un-nesting memory
329 map iterators.
330
6a0db449
CW
3312013-01-21 Colin Watson <cjwatson@ubuntu.com>
332
333 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
334 parameter declarations.
335
ccd86b21
VS
3362013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
339
822b726b
VS
3402013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
341
342 Improve spkmomdem reliability by adding a separator between bytes.
343
115c2cc1
CW
3442013-01-21 Colin Watson <cjwatson@ubuntu.com>
345
346 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
347 an Acer registration utility with several sightings in the wild.
348 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
349
fc524edf
CW
3502013-01-21 Colin Watson <cjwatson@ubuntu.com>
351
352 Remove nested functions from filesystem directory iterators.
353
354 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
355 (struct grub_fs.dir): Add hook_data argument.
356
357 Update all implementations and callers.
358
53d3e4e3
CW
3592013-01-21 Colin Watson <cjwatson@ubuntu.com>
360
361 * docs/grub.texi (Multi-boot manual config): Fix typo for
362 "recommended".
363
c821711f
LL
3642013-01-20 Leif Lindholm <leif.lindholm@arm.com>
365
366 * util/grub-mkimage.c (main): Postpone freeing arguments.output
367 until after its use in generate_image.
368
6a0debbd
CW
3692013-01-20 Colin Watson <cjwatson@ubuntu.com>
370
371 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
372 initrd size to addr_min, since the initrd will be allocated after
373 this address.
374
f41e08db
AB
3752013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
376
377 * conf/Makefile.common: Fix autogen rules to pass definition
378 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
379
77529e0f
LL
3802013-01-20 Leif Lindholm <leif.lindholm@arm.com>
381
382 * include/grub/elf.h: Update ARM definitions based on binutils.
383
b879aa7b
VS
3842013-01-20 Aleš Nesrsta <starous@volny.cz>
385
386 Split long USB transfers into short ones.
387
8eb8284d
AB
3882013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
389
390 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
391 is interrupted by ESC.
392
08dad2dc
VS
3932013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
394
395 * util/grub-script-check.c (main): Uniform the error message.
396
6c724b85
CW
3972013-01-20 Colin Watson <cjwatson@ubuntu.com>
398
399 Remove nested functions from ELF iterators.
400
25239370
CW
4012013-01-20 Colin Watson <cjwatson@ubuntu.com>
402
403 Remove nested functions from device iterators.
404
405 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
406 (grub_arc_iterate_devs): Add hook_data argument.
407 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
408 (struct grub_ata_dev.iterate): Add hook_data argument.
409 * include/grub/device.h (grub_device_iterate_hook_t): New type.
410 (grub_device_iterate): Add hook_data argument.
411 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
412 (struct grub_disk_dev.iterate): Add hook_data argument.
413 (grub_disk_dev_iterate): Likewise.
414 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
415 Likewise.
416 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
417 Likewise.
418 * include/grub/partition.h (grub_partition_iterate_hook_t): New
419 type.
420 (struct grub_partition_map.iterate): Add hook_data argument.
421 (grub_partition_iterate): Likewise.
422 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
423 (struct grub_scsi_dev.iterate): Add hook_data argument.
424
425 Update all callers.
426
6c0314d6
CW
4272013-01-20 Colin Watson <cjwatson@ubuntu.com>
428
429 Fix typos for "developer" and "development".
430
600dc5f1
VS
4312013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
432
433 Add license header to spkmodem-recv.c.
434
17334a6b
VS
4352013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
436
437 Rewrite spkmodem to use PIT for timing. Double the speed.
438
7d462559
VS
4392013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
440
441 Add new command pcidump.
442
b78d6c32
VS
4432013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
444
445 New terminal outputs using serial: morse and spkmodem.
446
34f71cb8
VS
4472013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
448
449 Improve bidi handling in entry editor.
450
4542e71b
VS
4512013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
454 argument to prevent name collision.
455
09fd6d82
CW
4562013-01-15 Colin Watson <cjwatson@ubuntu.com>
457
458 Remove nested functions from script reading and parsing.
459
460 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
461 getline_data argument, passed to getline.
462 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
463 getline_data argument, passed to grub_parser_split_cmdline.
464 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
465 lexerstate->getline_data to lexerstate->getline.
466 (grub_script_lexer_init): Add getline_data argument, saved in
467 lexerstate->getline_data.
468 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
469 argument, passed to grub_script_parse.
470 * grub-core/script/script.c (grub_script_parse): Add getline_data
471 argument, passed to grub_script_lexer_init.
472 * include/grub/parser.h (grub_parser_split_cmdline): Update
473 prototype. Update all callers to pass appropriate getline data.
474 (struct grub_parser.parse_line): Likewise.
475 (grub_rescue_parse_line): Likewise.
476 * include/grub/reader.h (grub_reader_getline_t): Add void *
477 argument.
478 * include/grub/script_sh.h (struct grub_lexer_param): Add
479 getline_data member.
480 (grub_script_parse): Update prototype. Update all callers to pass
481 appropriate getline data.
482 (grub_script_lexer_init): Likewise.
483 (grub_normal_parse_line): Likewise.
484
485 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
486 data argument.
487 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
488 static instead of nested. Rename to ...
489 (grub_parser_execute_getline): ... this.
490 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
491 data argument.
492 * grub-core/normal/main.c (read_config_file: getline): Make static
493 instead of nested. Rename to ...
494 (read_config_file_getline): ... this.
495 (grub_normal_read_line): Add unused data argument.
496 * grub-core/script/execute.c (grub_script_execute_sourcecode:
497 getline): Make static instead of nested. Rename to ...
498 (grub_script_execute_sourcecode_getline): ... this.
499 * util/grub-script-check.c (main: get_config_line): Make static
500 instead of nested.
501
d0d4b8a0
CW
5022013-01-15 Colin Watson <cjwatson@ubuntu.com>
503
504 Remove nested functions from memory map iterators.
505
506 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
507 argument, passed to hook.
508 * grub-core/kern/i386/coreboot/mmap.c
509 (grub_linuxbios_table_iterate): Likewise.
510 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
511 instead of nested.
512 (grub_machine_mmap_iterate): Add hook_data argument.
513 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
514 Add hook_data argument, passed to hook.
515 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
516 Likewise.
517 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
518 Likewise.
519 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
520 Likewise.
521 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
522 Likewise.
523 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
524 Likewise.
525 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
526 Likewise.
527 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
528 (grub_machine_mmap_iterate): Likewise.
529 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
530 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
531 prototype.
532 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
533 Remove NESTED_FUNC_ATTR from here and from all users.
534 (grub_mmap_iterate): Update prototype.
535 (grub_efi_mmap_iterate): Update prototype. Update all callers to
536 pass appropriate hook data.
537 (grub_machine_mmap_iterate): Likewise.
538
539 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
540 static instead of nested.
541 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
542 Rename to ...
543 (lsmmap_hook): ... this.
544 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
545 Likewise.
546 (grub_efiemu_mmap_fill: fill_hook): Likewise.
547 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
548 heap_init): Likewise.
549 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
550 Rename to ...
551 (mmap_iterate_hook): ... this.
552 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
553 Likewise.
554 * grub-core/lib/ieee1275/relocator.c
555 (grub_relocator_firmware_get_max_events: count): Likewise.
556 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
557 to ...
558 (grub_relocator_firmware_fill_events_iter): ... this.
559 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
560 hook): Likewise. Rename to ...
561 (grub_relocator_alloc_chunk_align_iter): ... this.
562 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
563 Rename to ...
564 (generate_e820_mmap_iter): ... this.
565 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
566 Rename to ...
567 (count_hook): ... this.
568 (grub_linux_boot: hook): Likewise. Rename to ...
569 (grub_linux_boot_mmap_find): ... this.
570 (grub_linux_boot: hook_fill): Likewise. Rename to ...
571 (grub_linux_boot_mmap_fill): ... this.
572 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
573 hook): Likewise. Rename to ...
574 (grub_fill_multiboot_mmap_iter): ... this.
575 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
576 hook): Likewise. Rename to ...
577 (count_hook): ... this.
578 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
579 hook): Likewise. Rename to ...
580 (grub_fill_multiboot_mmap_iter): ... this.
581 * grub-core/loader/powerpc/ieee1275/linux.c
582 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
583 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
584 Likewise. Rename to ...
585 (alloc_phys_choose): ... this.
586 (determine_phys_base: get_physbase): Likewise.
587 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
588 find_hook): Likewise.
589 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
590 (malloc_hook: count_hook): Likewise.
591 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
592 Likewise. Rename to ...
593 (lower_hook): ... this.
594 (grub_mmap_get_upper: hook): Likewise. Rename to ...
595 (upper_hook): ... this.
596 (grub_mmap_get_post64: hook): Likewise. Rename to ...
597 (post64_hook): ... this.
598 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
599 Likewise. Rename to ...
600 (lower_hook): ... this.
601 (grub_mmap_get_upper: hook): Likewise. Rename to ...
602 (upper_hook): ... this.
603 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
604 (grub_mmap_iterate: fill_hook): Likewise.
605 (fill_mask): Pass addr and mask within a single struct.
606 (grub_cmd_badram: hook): Make static instead of nested. Rename
607 to ...
608 (badram_iter): ... this.
609 (grub_cmd_cutmem: hook): Likewise. Rename to ...
610 (cutmem_iter): ... this.
611
22099030
VS
6122013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
613
614 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
615 delimit path in strings using quotes.
616 * util/getroot.c (grub_guess_root_devices): Likewise.
617 (grub_make_system_path_relative_to_its_root): Likewise.
618 * util/grub-probe.c (probe): Likewise.
619 * util/ieee1275/ofpath.c (find_obppath): Likewise.
620 (xrealpath): Likewise.
621
4a9950ec
VS
6222013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
623
624 Fix compilation with older compilers.
625
626 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
627 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
628 declarations.
629 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
630 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
631 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
632 identifier with b.
633 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
634 * include/grub/crypto.h: Add type defines.
635 * util/import_gcrypth.sed: Remove duplicate type defines.
636
adcc6020
VS
6372013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
638
639 New command list_trusted.
640
641 * grub-core/commands/verify.c (grub_cmd_list): New function.
642
a4528937
CW
6432013-01-13 Colin Watson <cjwatson@ubuntu.com>
644
645 * util/grub-mkimage.c (generate_image): Fix "size of public key"
646 info message.
647
ca3a7446
CW
6482013-01-13 Colin Watson <cjwatson@ubuntu.com>
649
650 Remove nested functions from PCI iterators.
651
652 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
653 passed to hook. Update all callers to pass appropriate hook data.
654 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
655 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
656 Remove NESTED_FUNC_ATTR from here and from all users.
657 (grub_pci_iterate): Update prototype.
658 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
659 instead of nested. Rename to ...
660 (grub_cs5536_find_iter): ... this.
661 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
662 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
663 Likewise.
664 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
665 Likewise.
666 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
667 Likewise.
668 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
669 Likewise.
670 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
671 * grub-core/video/radeon_fuloong2e.c
672 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
673 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
674 find_card): Likewise.
675 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
676 Likewise.
677
f8e98fee
VS
6782013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * grub-core/commands/verify.c: Mark messages for translating.
681
055b36b6
VS
6822013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
683
684 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
685 fatal.
686
f7ff879b
VS
6872013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
688
689 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
690 fatal.
691
6922013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
693
694 * autogen.sh: Do not try to delete nonexistant files.
695 * util/import_gcrypth.sed: Add some missing header removals.
696
01323d49
CW
6972013-01-12 Colin Watson <cjwatson@ubuntu.com>
698
699 Clean up dangling references to grub-setup.
700 Fixes Ubuntu bug #1082045.
701
702 * docs/grub.texi (Images): Refer generally to grub-install rather
703 than directly to grub-setup.
704 (Installing GRUB using grub-install): Remove direct reference to
705 grub-setup.
706 (Device map) Likewise.
707 (Invoking grub-install): Likewise.
708 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
709 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
710 * util/grub-install.in (usage): Likewise.
711
712 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
713 Apply to grub-bios-setup and grub-sparc64-setup rather than to
714 grub-setup.
715 * configure.ac: Remove grub_setup output variable.
716
717 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
718 to grub-bios-setup.
719 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
720 grub-setup to grub-sparc64-setup.
721
5e3b8dcb
VS
7222013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
723
724 Import gcrypt public-key cryptography and implement signature checking.
725
535714bd
VS
7262013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * grub-core/fs/ntfs.c: Ue more appropriate types.
729 * grub-core/fs/ntfscomp.c: Likewise.
730 * include/grub/ntfs.h: Likewise.
731
3e4f3566
VS
7322013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
733
734 Support Apple FAT binaries on non-Apple platforms.
735
736 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
737 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
738 Likewise.
739 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
740 Apple FAT binaries.
741
4dedb13f
VS
7422013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
743
744 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
745 sector devices.
746
f8861eaf
CW
7472013-01-07 Colin Watson <cjwatson@ubuntu.com>
748
749 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
750 explicitly zeroing elements.
751 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
752 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
753 of elements in a structure already allocated using grub_zalloc.
754 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
755
86065b0a
CW
7562013-01-07 Colin Watson <cjwatson@ubuntu.com>
757
758 * docs/grub.texi (grub_cpu): New subsection.
759 (grub_platform): Likewise.
760
c6f1e92f
VS
7612013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
764
f797ec85
VS
7652013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
766
767 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
768 divisions.
769
033d0b4b
VS
7702013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
771
772 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
773 * grub-core/fs/ntfscomp.c: Likewise.
774 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
775 (grub_ntfs_comp): Likewise.
776
21d1b9a0
VS
7772013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
778
779 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
780 Rename to ...
781 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
782 of groups_per_block. All users updated.
783
10ca8645
VS
7842013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
787 grub_error properly.
788 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
789 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
790
a4c3ed4c
VS
7912013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
794 always in /boot/zfs.
795 Reported by: Yuta Satoh.
796
0b716507
YS
7972013-01-03 Yuta Satoh <nigoro>
798
799 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
800 ${grub_probe}
801
00c05e22
VS
8022013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * configure.ac: Extend -Wno-trampolines to host.
805
dadddb76
VS
8062013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
807
808 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
809 entry->len = 0.
810
54ce53ca
CW
8112013-01-03 Colin Watson <cjwatson@ubuntu.com>
812
813 * docs/grub.texi (Invoking grub-mkrelpath): New section.
814 (Invoking grub-script-check): Likewise.
815
8912efca
CW
8162013-01-03 Colin Watson <cjwatson@ubuntu.com>
817
818 * docs/grub.texi (Invoking grub-mount): New section.
819 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
820
c3fc8394
CW
8212013-01-02 Colin Watson <cjwatson@ubuntu.com>
822
823 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
824 test failures, so that a failing unit test correctly causes 'make
825 check' to fail.
826
45d26abb
CW
8272013-01-02 Colin Watson <cjwatson@ubuntu.com>
828
829 Fix failing printf test.
830
831 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
832 '$' in the correct order when collecting type information.
833
971dd2c6
CW
8342013-01-02 Colin Watson <cjwatson@ubuntu.com>
835
836 * docs/grub.texi (configfile): Explain environment variable
837 handling.
838 (source): New section.
839 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
840
5c67ea6c
CW
8412012-12-31 Colin Watson <cjwatson@ubuntu.com>
842
843 Remove several trivially-unnecessary uses of nested functions.
844
845 * grub-core/commands/i386/pc/sendkey.c
846 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
847 instead of nested.
848 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
849 Rename to ...
850 (legacy_file_getline): ... this.
851 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
852 Likewise.
853 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
854 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
855 to ...
856 (probe_dummy_iter): ... this.
857 * grub-core/kern/i386/coreboot/mmap.c
858 (grub_linuxbios_table_iterate: check_signature): Likewise.
859 * grub-core/kern/parser.c (grub_parser_split_cmdline:
860 check_varstate): Likewise. Mark inline.
861 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
862 an additional parameter.
863 (find_long: fnd_long): Likewise. Pass two additional parameters.
864 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
865 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
866 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
867 Likewise. Rename to ...
868 (grub_cmos_find_port_iter): ... this.
869 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
870 Rename to ...
871 (find_rtc_iter): ... this.
872
873 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
874 function directly into the function body, since it is only called
875 once.
876
33a68ac6
CW
8772012-12-30 Colin Watson <cjwatson@ubuntu.com>
878
879 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
880 __attribute__ ((unused)).
881 * grub-core/video/bochs.c (find_card): Likewise.
882 * grub-core/video/cirrus.c (find_card): Likewise.
883 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
884 * grub-core/video/sis315pro.c (find_card): Likewise.
885 * grub-core/video/sm712.c (find_card): Likewise.
886
608b647a
CW
8872012-12-28 Colin Watson <cjwatson@ubuntu.com>
888
889 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
890 Fixes Savannah bug #37821.
891
fd49ceb3
CW
8922012-12-28 Colin Watson <cjwatson@ubuntu.com>
893
894 Apply program name transformations at build-time rather than at
895 run-time. Fixes Debian bug #696465.
896
897 * acinclude.m4 (grub_TRANSFORM): New macro.
898 * configure.ac: Create output variables with transformed names for
899 most programs.
900 * util/bash-completion.d/grub-completion.bash.in: Use
901 pre-transformed variables for program names.
902 * util/grub-install.in: Likewise.
903 * util/grub-kbdcomp.in: Likewise.
904 * util/grub-mkconfig.in: Likewise.
905 * util/grub-mkconfig_lib.in: Likewise.
906 * util/grub-mknetdir.in: Likewise.
907 * util/grub-mkrescue.in: Likewise.
908 * util/grub-mkstandalone.in: Likewise.
909 * util/grub-reboot.in: Likewise.
910 * util/grub-set-default.in: Likewise.
911 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
912 * tests/util/grub-shell-tester.in: Remove unused assignment.
913 * tests/util/grub-shell.in: Likewise.
914 * util/grub.d/00_header.in: Likewise.
915
7024b3c0
CW
9162012-12-28 Colin Watson <cjwatson@ubuntu.com>
917
918 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
919
920 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
921 HAVE_RAW_DECL_GETS.
922 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
923
e3501b13
VS
9242012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
925
926 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
927 Reported by: Eriks Latosheks <foresterlv>.
928
b40c88a9
VS
9292012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * docs/grub.texi (Network): Update instructions on generating netboot
932 image.
933
ce96d01c
VS
9342012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
937 around device name if necessarry.
938
0f596201
PFS
9392012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
940
941 * util/grub-install.in: Follow the symbolic link parameter added
942 to the file command.
943
600d5bdb
AB
9442012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
945
946 * util/grub-install.in: Remove stale TODO.
947
64ebd2f4
PFS
9482012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
949
950 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
951 dynamic allocation for the bootpath buffer.
952
74b2fe3e
DTB
9532012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
954
955 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
956 window too small.
957
969b804f
VS
9582012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
959
960 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
961 argument rather than font name. All users updated.
962 (grub_gfxterm_set_window): Likewise.
963
b9f5ebd6
VT
9642012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
965
966 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
967 from working.
968
258f43b7
VS
9692012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * util/getroot.c (convert_system_partition_to_system_disk): Support
972 nbd disks.
973
cc1ce5f9
VS
9742012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
975
976 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
977 infinite loop on corrupted FS.
978
e77a16ca
VS
9792012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
980
981 Fix big-endian mtime.
982
983 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
984 together sec and usec.
985 (grub_ufs_dir): Use correct byteswapping for UFS time.
986
d9c48c7b
VS
9872012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
988
989 Support big-endian UFS1.
990
991 * Makefile.util.def (libgrubmods): Add ufs_be.c
992 * grub-core/Makefile.core.def (ufs1_be): New module.
993 * grub-core/fs/ufs_be.c: New file.
994 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
995 the file.
996
2f9f40ba
LL
9972012-11-28 Leif Lindholm <leif.lindholm@arm.com>
998
999 * include/grub/types.h: Fix functionality unaffecting typo in
1000 GRUB_TARGET_WORDSIZE conditional macro.
1001
48ff0889
PFS
10022012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1003
1004 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1005
03711240
GS
10062012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1007
1008 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1009 that /netbsd appears first (when it exists).
1010
a31b11bd
CJ
10112012-10-12 Christoph Junghans <ottxor@gentoo.org>
1012
1013 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1014 Fixes Savannah bug #37558.
1015
e8a5d5d4
CW
10162012-10-12 Colin Watson <cjwatson@ubuntu.com>
1017
1018 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1019 description of extract_entries_configfile.
1020
10212012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
1022
1023 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1024 preferred_address.
1025 (grub_cmd_linux): Likewise.
1026 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1027 preferred_lifetime. Update all users.
1028
288c757d
CW
10292012-09-26 Colin Watson <cjwatson@ubuntu.com>
1030
1031 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1032 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1033
0d35da3f
CW
10342012-09-26 Colin Watson <cjwatson@ubuntu.com>
1035
1036 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1037 errors from grub-probe to /dev/null, not stdout.
1038
b78c3127
VS
10392012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1040
1041 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1042 sector 1.
1043
473959f0
CW
10442012-09-24 Colin Watson <cjwatson@ubuntu.com>
1045
1046 * util/grub-install.in: Make the error message if $source_dir
1047 doesn't exist more useful.
1048
794c8c33
CW
10492012-09-22 Colin Watson <cjwatson@ubuntu.com>
1050
1051 Fix grub-emu build on FreeBSD.
1052
1053 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1054 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1055 headers on Linux.
1056 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1057 implementation is currently Linux-specific.
1058 * util/getroot.c (exec_pipe): Define only on Linux or when either
1059 libzfs or libnvpair is unavailable.
1060 (find_root_devices_from_poolname): Remove unused path variable.
1061
86d08fdb
CW
10622012-09-19 Colin Watson <cjwatson@ubuntu.com>
1063
1064 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1065 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1066 should fit before end == 63.
1067
735abf54
CW
10682012-09-19 Colin Watson <cjwatson@ubuntu.com>
1069
1070 * util/grub-setup.c (write_rootdev): Remove unused core_img
1071 parameter. Update all callers.
1072 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1073 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1074 GRUB_SETUP_BIOS.
1075
140acd3c
VS
10762012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1079 (grub_add_tab): New function.
1080 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1081 * util/grub.d/10_illumos.in: Likewise.
1082 * util/grub.d/10_kfreebsd.in: Likewise.
1083 * util/grub.d/10_linux.in: Likewise.
1084 * util/grub.d/10_netbsd.in: Likewise.
1085 * util/grub.d/10_windows.in: Likewise.
1086 * util/grub.d/10_xnu.in: Likewise.
1087 * util/grub.d/20_linux_xen.in: Likewise.
1088 * util/grub.d/30_os-prober.in: Likewise.
1089
7ddffdad
VS
10902012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1093 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1094 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1095 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1096 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1097 ieee1275-nocursor.
1098 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1099 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1100
4e092454
VS
11012012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1104 le-conversion.
1105 Reported by: BURETTE, Bernard.
1106
735abf54 11072012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
1108
1109 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1110 from comment.
1111
dfd39dbd
CW
11122012-09-14 Colin Watson <cjwatson@ubuntu.com>
1113
1114 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1115 IEEE1275 machines. Fixes powerpc-emu compilation.
1116 * include/grub/terminfo.h: Likewise.
1117
3bfa763c
VS
11182012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1119
1120 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1121 a const pointer.
1122 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1123 const pointer.
1124 (efiemu_set_variable): Make vendor_guid a const pointer.
1125
250e475b
VS
11262012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 Don't require grub-mkconfig_lib to generate manpages for programs.
1129
1130 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1131 dependencies, don't add grub-mkconfig_lib.
1132 (program): Pass empty adddeps.
1133 (script): Pass grub-mkconfig_lib as adddeps.
1134
592fd0e4
VS
11352012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1136
1137 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1138 * util/getroot.c (grub_find_device): Likewise.
1139 (get_mdadm_uuid): Likewise.
1140 (grub_util_is_imsm): Likewise.
1141 (grub_util_pull_device): Likewise.
1142 * util/grub-probe.c (probe): Likewise.
1143
801a3027
BG
11442012-09-10 Benoit Gschwind <gschwind>
1145
1146 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1147 (devs): Add devpath_8.
1148
c5052c81
PJ
11492012-09-08 Peter Jones <pjones@redhat.com>
1150
1151 * grub-core/Makefile.core.def (efifwsetup): New module.
1152 * grub-core/commands/efi/efifwsetup.c: New file.
1153 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1154 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1155 New define.
1156 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1157
8e832f71
JS
11582012-09-05 Jiri Slaby <jslaby@suse.cz>
1159
1160 * configure.ac: Add SuSe path.
1161
f0f55752
CW
11622012-09-05 Colin Watson <cjwatson@ubuntu.com>
1163
1164 * NEWS: Fix typo.
1165
ecadc4c2
CW
11662012-09-05 Colin Watson <cjwatson@ubuntu.com>
1167
1168 * util/import_gcry.py: Sort cipher_files, to make build system
1169 generation more deterministic.
1170
64498f25
VS
11712012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1172
1173 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1174 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1175 (grub_set_datetime): Likewise.
1176
9cc836a2
VS
11772012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1178
1179 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1180 warnings.
1181
bcfcea01
VS
11822012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1183
1184 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1185
a4099485
VS
11862012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1187
1188 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1189
265c162a
CW
11902012-09-04 Colin Watson <cjwatson@ubuntu.com>
1191
1192 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1193 required for checkouts from bzr, but it may be useful for users or
1194 distributors wishing to update translations against a tarball
1195 distribution, and it can be helpful for the tarball to be a superset
1196 of what's in bzr.
1197
3d171e95
CW
11982012-09-04 Colin Watson <cjwatson@ubuntu.com>
1199
1200 * Makefile.am (EXTRA_DIST): Add
1201 grub-core/tests/boot/linux.init-mips.S,
1202 grub-core/tests/boot/linux.init-ppc.S, and
1203 grub-core/tests/boot/linux-ppc.cfg.
1204
f2c2503e
CW
12052012-09-04 Colin Watson <cjwatson@ubuntu.com>
1206
1207 * grub-core/mmap/mips/loongson: Remove empty directory.
1208
12092012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
1210
1211 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1212 gone.
1213
ab2163d5
CW
12142012-09-04 Colin Watson <cjwatson@ubuntu.com>
1215
1216 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1217 grub-sparc64-setup.
1218
ce938140
GS
12192012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1220
1221 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1222
529f58a5
GS
12232012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1224
1225 * po/POTFILES.in: Regenerated.
1226
16cf79e9
GS
12272012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1228
1229 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1230 (NetBSD): New subsection.
1231
39b27f1e 12322012-07-22 Ales Nesrsta <starous@volny.cz>
1233
1234 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1235 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1236
a885261b
VS
12372012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1240 * util/grub.d/10_hurd.in: Add missing quoting.
1241 * util/grub.d/10_illumos.in: Likewise.
1242 * util/grub.d/10_kfreebsd.in: Likewise.
1243 * util/grub.d/10_linux.in: Likewise.
1244 * util/grub.d/20_linux_xen.in: Likewise.
1245
7bd29c01
VS
12462012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1247
1248 New command `lsefi'.
1249
1250 * grub-core/Makefile.core.def (lsefi): New module.
1251 * grub-core/commands/efi/lsefi.c: New file.
1252 * include/grub/efi/api.h: Add more GUIDs.
1253
ac625d8f
VS
12542012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1255
1256 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1257 (grub_bsd_elf32_hook): Likewise.
1258 (grub_bsd_elf64_size_hook): Likewise.
1259 (grub_bsd_elf64_hook): Likewise.
1260 (grub_bsd_load_elf): Likewise.
1261
e73bb801
VS
12622012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1263
1264 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1265 if hash function is unavailable.
1266 (dec_stream_header): Likewise.
1267
e81db8b5
VS
12682012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1271 filter state.
1272
d187a1c3
VS
12732012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 Fix coreboot compilation.
1276
1277 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1278 (grub_vga_text_init_real): ... this.
1279 (grub_vga_text_fini): Rename to ...
1280 (grub_vga_text_fini_real): ... this.
1281
91a05f64
VS
12822012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1285
6af96df7
VS
12862012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1287
1288 * grub-core/lib/legacy_parse.c: Support clear and testload.
1289
4d569e12
VS
12902012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1291
1292 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1293
073b57bb
VS
12942012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1295
1296 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1297
a706f4cc
VS
12982012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1299
1300 * grub-core/net/tftp.c (ack): Fix endianness problem.
1301 (tftp_receive): Likewise.
1302 Reported by: Michael Davidsaver.
1303
e7850aa9
VS
13042012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1307
13082012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1311 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1312 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1313
35692881
VS
13142012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1317 efi_mmap_size.
1318 Reported by: Stuart Hayes.
1319
c35fc5bd
VS
13202012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1323
1324 * grub-core/Makefile.core.def (mda_text): New module.
1325 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1326 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1327 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1328 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1329 here.
1330 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1331 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1332 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1333 here.
1334 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1335 to ..
1336 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1337 ... here
1338 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1339 here.
1340 * grub-core/term/i386/vga_common.c: Removed.
1341 * include/grub/i386/vga_common.h: Likewise.
1342 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1343 (grub_vga_cr_bw_read): Likewise.
1344 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1345 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1346 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1347 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1348 grub_vga_cr_read/grub_vga_cr_write.
1349 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1350
5f91f701
VS
13512012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * configure.ac: Bump version to 2.00.
1354 * grub-core/normal/main.c (features): Add feature_200_final.
1355
0c4f85f6
VS
13562012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
13572012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1358
1359 * NEWS: Fix unclarity and language mistakes.
1360
f923ad22
VS
13612012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1364 additional size to 3 pages.
1365 Reported by: Stuart Hayes.
1366
d22029ba
VS
13672012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1368
1369 * NEWS: Add 2.00 entry.
1370
58eee08f
VS
13712012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1372
1373 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1374 put explicit "/" for empty path.
1375 (wildcard_expand): Improve dprintf.
1376
c59bdff7
VS
13772012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1378
1379 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1380 it's equal to currnode. This can happen with "" symlink.
1381
5e6a440a
YB
13822012-06-27 Yves Blusseau <blusseau@zetam.org>
1383
1384 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1385 echo shell command by printf command.
1386
73a68bcb
VS
13872012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1388
1389 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1390 the value returned by firmware is the maximal position, not diumension.
1391 (grub_terminfo_output_state): Use a more sane fallback.
1392
392a603b
VS
13932012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1396
42d0867f
VS
13972012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1398
1399 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1400 frequency to 150 MHz.
1401
489509f4
VS
14022012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1403
1404 Apple fixes.
1405
1406 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1407 __APPLE_
1408 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1409 definition.
1410 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1411
9f3fc883
VS
14122012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1413
1414 Handle slash in HFS label.
1415
1416 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1417 (grub_hfs_dir): Tanslate slash.
1418 (grub_hfs_label): Don't translate slash.
1419
54853fd7
VS
14202012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1421
1422 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1423 network protocol listing since it introduces problematic dependency on
1424 net module.
1425
4dc02ddf
VS
14262012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1427
1428 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1429
c50c867d
VS
14302012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 Init video early on yeeloong to avoid being rebooted by watchdog.
1433
1434 * grub-core/Makefile.am (gensm712): New target.
1435 (sm712_start.S): Likewise.
1436 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1437 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1438 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1439 description.
1440 * include/grub/vga.h: Move registry definitions to...
1441 * include/grub/vgaregs.h: ... here.
1442
5f92c8a1
VS
14432012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1446 signedness.
1447
e9e6f111
VS
14482012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1451 platforms with firmware disk drivers in the core.
1452
754ad9eb
VS
14532012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1454
1455 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1456 informative verbose message.
1457 (read_lv): Handle 64-bit segment size.
1458
315654c2
VS
14592012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1462
fb022c79
VS
14632012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1464
1465 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1466 character but still remove trainling spaces.
1467 (grub_fat_label): Ignore archive flag.
1468
8645f72c
VS
14692012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1472 cast between linux_kernel_header and linux_kernel_params.
1473
36498496
VS
14742012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1477 type for size.
1478 (grub_raid6_recover_func_t): Likewise.
1479 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1480 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1481
0b5ea6b8
VS
14822012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1485
650cfcfe
GS
14862012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1487
1488 Fix overflow.
1489
1490 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1491 [__NetBSD__]: Add explicit cast before bitshift.
1492
8a4d6a44
VS
14932012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1494
1495 * configure.ac: Bump to 2.00~rc1.
1496
2fb97ed3
VS
14972012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1500 half of $a0.
1501
1fa097dc
VS
15022012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15032012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1504
1505 * docs/grub.texi: Fix search syntax.
1506 (Multi-boot manual config): Put msdos rather than GPT example.
1507 Grammar corrections.
1508
c890ba78
VS
15092012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1512
0f92dca7
VS
15132012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1514
1515 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1516
3988c4a0
VS
15172012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1520 message on double free. Put the value of magic in case of mismatch.
1521
9e86d4c5
VS
15222012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 Speed-up video on yeeloong.
1525
1526 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1527 add cached_ptr.
1528 (grub_video_sm712_video_fini): Unmap cached_ptr.
1529 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1530 (grub_video_sm712_set_active_render_target): Removed.
1531 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1532 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1533 sync caches.
1534
ed24c312
VS
15352012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1536
1537 Avoid flushing the same line multiple times on loongson.
1538
1539 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1540 Step in 32 bytes and not 1 byte.
1541 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1542 Likewise.
1543
d1718e7d
VS
15442012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1545
1546 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1547 subvolumes.
1548
982f1909
VS
15492012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 Implement flow control for http.
1552
1553 * grub-core/net/http.c (parse_line): Handle response 206.
1554 (http_receive): Stall if too many packets are in the queue.
1555 (http_establish): Fix range header.
1556 (http_seek): Fix double free.
1557 (http_close): Likewise.
1558 (http_packets_pulled): New function.
1559 (grub_http_protocol): Set http_seek
1560 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1561 (ack_real): Set window depending on i_stall.
1562 (grub_net_send_tcp_packet): Likewise.
1563 (grub_net_tcp_stall): New function.
1564 (grub_net_tcp_unstall): Likewise.
1565 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1566 (grub_net_tcp_unstall): Likewise.
1567
bd407d6e
VS
15682012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1569
1570 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1571
c7564b8e
VS
15722012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1573
1574 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1575
a3706162
VS
15762012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1577
1578 * tests/util/grub-shell.in: Fix a typo.
1579
b27069e0
VS
15802012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1581
1582 Implement flow control for tftp.
1583
1584 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1585 packets but stop only if stop condition is satisfied.
1586 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1587 `stall' instead of `eof' as stop condition.
1588 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1589 (http_err): Likewise.
1590 * grub-core/net/tftp.c (ack): Replace the first argument with data
1591 instead of socket.
1592 (tftp_receive): Stall if too many packets are in wait queue.
1593 (tftp_packets_pulled): New function.
1594 (grub_tftp_protocol): Set packets_pulled.
1595 * include/grub/net.h (grub_net_packets): New field count.
1596 (grub_net_put_packet): Increment count.
1597 (grub_net_remove_packet): Likewise.
1598 (grub_net_app_protocol): New field `packets_pulled'.
1599 (grub_net): New field `stall'.
1600
6b9cfac6
VS
16012012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1602
1603 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1604 sync part to handle them.
1605
f35abd81
VS
16062012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1607
1608 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1609 * grub-core/net/drivers/ieee1275/ofnet.c
1610 (grub_ieee1275_net_config_real): Likewise.
1611
0e7ec820
VS
16122012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1615 the direct route for server/gateway.
1616
9d611a31
VS
16172012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1618
1619 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1620 IP address to server name since we may not hame the DNS.
1621
418f45ab
VS
16222012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1625 freeing random buffer on failure.
1626 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1627
44a0efc1
VS
16282012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1631
531e2241
VS
16322012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1635 reserved bytes.
1636 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1637 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1638 Handle malloc error correctly.
1639
cde393c9
VS
16402012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1641
1642 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1643 blocks.
1644
538478d0
VS
16452012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1646
1647 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1648 increment.
1649
9b55efe0
VS
16502012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1653 none is explicitly specified.
1654
9eb832c3
VS
16552012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1658 while reallocating.
1659
d6b7c7c9
VS
16602012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1661
1662 Respect netmask from bootp/dhcp.
1663
1664 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
1665 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
1666 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
1667 into ...
1668 (grub_net_add_ipv4_local): ... this.
1669 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
1670 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
1671 (grub_net_add_ipv4_local): New proto.
1672
67caf9eb
VS
16732012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1674
1675 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
1676 determining EFI memory map size.
1677
43657558
VS
16782012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
1681
eb6d0dd3
VS
16822012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1683
1684 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
1685 when looking for partition separator.
1686
31230544
VS
16872012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
1690 Escape commas.
1691
918a2517
VS
16922012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1693
1694 Restructure FAT driver to avoid hook in label reading as it hits a
1695 GCC bug.
1696
1697 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
1698 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
1699 (grub_fat_iterate_dir): Split into ...
1700 (grub_fat_iterate_init): ... this, ...
1701 (grub_fat_iterate_fini): ... this, ...
1702 (grub_fat_iterate_dir_next): ... and this. All users updated.
1703
9f1d654e
VS
17042012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
1707 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
1708 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1709 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
1710 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
1711 New fields last_key and last_key_time.
1712 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
1713 extended key-esc into extended key-extended key.
1714
52f0f643
VS
17152012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 Avoid unnecessary memcpy of whole video buffer.
1718
1719 * grub-core/video/fb/video_fb.c (dirty): New struct.
1720 (framebuffer): Add members current_dirty and previous_dirty.
1721 (dirty): New function.
1722 (grub_video_fb_fill_rect): Update dirty.
1723 (common_blitter): Likewise.
1724 (grub_video_fb_scroll): Likewise.
1725 (doublebuf_blit_update_screen): Copy only dirty part.
1726 (doublebuf_pageflipping_update_screen): Likewise.
1727 (grub_video_fb_doublebuf_blit_init): Init dirty.
1728 (doublebuf_pageflipping_init): Likewise.
1729 (grub_video_fb_setup): Likewise.
1730
e169a180
VS
17312012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
1734 poll rate.
1735
48556879
VS
17362012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1737
1738 Fix wildcard regexp dot and other special characters handling.
1739 Reported by: Robert Mabee.
1740
1741 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
1742 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
1743 (split_path): Trigger expansion on '?'.
1744 (unescape): New function.
1745 (wildcard_expand): Unescape parts copied without globbing.
1746 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
1747 (grub_script_arglist_to_argv): Don't unescape expansions.
1748
0494408e
VS
17492012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1750
1751 * include/grub/net.h (grub_net_card): New member txbufsize.
1752 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
1753 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1754 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
1755 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
1756 txbufsize.
1757 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
1758 compatible property to check for macs. Set
1759 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
1760 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
1761 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
1762 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
1763 (send_card_buffer): Use txbuf.
1764 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
1765 nested function out of the parent while on it.
1766
cc35fe8f
VS
17672012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1768
1769 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
1770 presence check.
1771 (grub_ieee1275_net_config_real): Fix config pointer.
1772
970a0a09
VS
17732012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
1776 filename parsing to non-block devices.
1777
3e19bf87
VS
17782012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
1779
1780 * grub-core/kern/device.c (grub_device_open): Remove dead code.
1781
c62d1a0c
VS
17822012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
1785 All users updated.
1786
ef76bec3
VS
17872012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
1788
1789 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
1790 UUID search command even if hints probing failed.
1791
17922012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
1793
1794 * po/POTFILES.in: Regenerated.
1795
70aaf305
VS
17962012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
1797
1798 Speed-up video on fuloong.
1799
1800 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
1801 New function.
1802 (grub_pci_device_unmap_range): Handle non-cached address.
1803 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
1804 add direct_ptr.
1805 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
1806 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
1807 (grub_video_sis315pro_set_active_render_target): Removed.
1808 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
1809 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1810 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
1811 sync caches.
1812 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
1813 New proto.
1814
10400f0b
VS
18152012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
1816
1817 * docs/grub.texi (Multi-boot manual config): New section.
1818
ba67e2c6
VS
18192012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1820
1821 Avoid slow read-back from VRAM.
1822
1823 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
1824 Move from here ...
1825 * grub-core/video/fb/video_fb.c
1826 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
1827 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
1828 (front_target): Remove front_target. Add pages.
1829 (grub_video_fb_init): Skip setting front_pages.
1830 (grub_video_fb_fini): Likewise.
1831 (doublebuf_blit_update_screen): Use pages.
1832 (grub_video_fb_doublebuf_blit_init): Likewise.
1833 (doublebuf_pageflipping_init): Allocate offscreen buffer.
1834 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
1835 (grub_video_fb_setup): Prefer doublebuffing.
1836
377c98cb
VS
18372012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1838
1839 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
1840 gzio.
1841
eac49cff
VS
18422012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 Add loongson tests.
1845
1846 * tests/util/grub-shell.in: Handle loongson.
1847 * tests/partmap_test.in: Add loongson to the list of platform using ATA
1848 drivers.
1849 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
1850 Reboot instead of shutdown if REBOOT is defined.
1851
0321415e
VS
18522012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1853
1854 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
1855 sized ports since unlike on real hardware qemu supports only 32-bit
1856 regs.
1857
3f2bdd8f
VS
18582012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * Makefile.util.def (grub-mkrescue): Enable on loongson.
1861 * util/grub-mkrescue.in: Handle loongson.
1862
29a049c9
VS
18632012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
1864
1865 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
1866 Set is_part appropriately.
1867 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
1868 names. Canonicalize partition without full disk.
1869
4abde346
VS
18702012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 Revert usb-quiesce since it's wrong.
1873
1874 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
1875 (grub_ofdisk_init): Don't do quiesce.
1876
61f1d93b
VS
18772012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1878
1879 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
1880 PowerMac workaround to Xserves as well.
1881 Information supplied by: Benjamin Herrenschmidt.
1882
a09eb541
VS
18832012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 Don't assume that beginning address is also the entry point on ppc.
1886
1887 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
1888 (grub_linux_boot): Use linux_entry.
1889 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
1890 (grub_linux_load64): Likewise.
1891
505b3c9b
VS
18922012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1893
1894 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
1895
cbe0b4ef
VS
18962012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1897
1898 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
1899 needlessly lose the console.
1900
3006e981
VS
19012012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
1902
1903 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
1904 space.
1905
4e5a96b0
VS
19062012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1907
7da036bb
VS
1908 Remove non-functional EFI grub_get_rtc. Put a better fatal message
1909 than current grub_get_rtc() not implemented when booted with
1910 coreboot without TSC.
1911
1912 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
1913 Add machine/time.h to kernel headers on loongson.
1914 * grub-core/Makefile.core.def (kernel): Remove
1915 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
1916 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
1917 (grub_get_rtc): Likewise.
1918 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
1919 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
1920 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
1921 * grub-core/kern/i386/tsc.c (grub_tsc_init)
1922 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
1923 rather than installing known non-working time source.
1924 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
1925 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
1926 * include/grub/time.h: Don't include machine/time.h.
1927 * include/grub/efi/time.h: Removed.
1928 * include/grub/i386/efi/time.h: Likewise.
1929 * include/grub/i386/ieee1275/time.h: Likewise.
1930 * include/grub/powerpc/ieee1275/time.h: Likewise.
1931 * include/grub/sparc64/ieee1275/time.h: Likewise.
1932 * include/grub/x86_64/efi/time.h: Likewise.
1933
19342012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
1935
1936 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
1937
1938 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
1939 value.
1940 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
1941 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
1942 with dotless variants when any combining above is present.
1943
5561c22d
VS
19442012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
1947 text and not binary.
1948
96f7e60e
VS
19492012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1950
1951 Stop polling as soon as we have the packet we were waiting for.
1952
1953 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
1954 All users updated.
1955 * grub-core/net/arp.c (have_pending): New var.
1956 (pending_req): Likewise.
1957 (grub_net_arp_send_request): Fill pending_req and use have_pending as
1958 stop indicator.
1959 (grub_net_arp_receive): Set have_pending.
1960 * grub-core/net/dns.c (recv_data): New field stop.
1961 (recv_hook): Set stop.
1962 (grub_net_dns_lookup): Init stop and use as stop condition.
1963 * grub-core/net/http.c (http_establish): Use headers_recv as stop
1964 condition.
1965 * grub-core/net/net.c (grub_net_poll_cards): New argument
1966 stop_condition. Stop when it goes true.
1967 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
1968 indicator.
1969 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
1970
3e747239
VS
19712012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 Keep TX and RX buffers on EFI rather than always allocate new ones.
1974
1975 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
1976 card. All users updated.
1977 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
1978 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
1979 (get_card_packet): Likewise.
1980 (grub_efinet_findcards): Init new fields.
1981
f695e99a
VS
19822012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1983
1984 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
1985 compilation error on sparc64.
1986
9e5e66d1
VS
19872012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
1988
1989 Use ITC on IA64 rather than broken routine based on daytime.
1990
1991 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
1992 ia64.
1993 (grub_get_rtc) [__ia64__]: Likewise.
1994 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
1995 (get_itc): New function.
1996 (grub_rtc_get_time_ms): Likewise.
1997 (grub_machine_init): Calibrate ITC.
1998 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
1999 Keep only on non-ia64. Don't export since it's broken and used only
2000 if TSC is unavailable.
2001
a1767404
VS
20022012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2003
2004 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2005 even if it's used.
2006 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2007 Skip if parent is unused.
2008
34b2bced
VS
20092012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2012
5e619f40
VS
20132012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 Fix wildcard escaping.
2016
2017 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2018 * grub-core/script/execute.c (wildcard_escape): .. to here.
2019 Don't escape dot.
2020 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2021 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2022 Don't escape dot.
2023 * grub-core/script/execute.c (gettext_append): Always escape.
2024 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2025 * grub-core/script/yylex.l: Don't cut away the escaping.
2026 * tests/grub_script_echo1.in: Add tests with wildcard.
2027
c8ca5855
VS
20282012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2031 (ftdi_hw_configure): Likewise.
2032 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2033 define.
2034 (real_config): Handle 1.5 stop bits.
2035 (pl2303_hw_configure): Likewise.
2036
7183452c
VS
20372012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 * Makefile.am: Add ppc linux bootcheck.
2040 * grub-core/tests/boot/linux-ppc.cfg: New file.
2041 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2042
f57c84cd
VS
20432012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * tests/grub_script_expansion.in: Skip network protocols.
2046
ecfc6207
VS
20472012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2050
8d03d284
VS
20512012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2052
2053 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2054 --rom-directory.
2055 Add -graft-points.
2056
61c42af0
VS
20572012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2058
2059 ESCC serial driver for conducting sautomated tests in qemu.
2060 Not tested on real hardware.
2061
2062 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2063 * grub-core/term/ieee1275/escc.c: New file.
2064 * grub-core/Makefile.core.def (escc): New module.
2065
08fd1291
VS
20662012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2067
2068 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2069 invalid on error.
2070 (serial_hw_fetch): Don't read invalid handle.
2071 (serial_hw_put): Don't write into invalid handle.
2072
08dafeea
VS
20732012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2074
2075 Add a 1.5 stop bits value.
2076
2077 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2078 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2079 GRUB_SERIAL_STOP_BITS_1_5.
2080
9068fdcf
VS
20812012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2082
2083 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2084 value rather than let it uninited.
2085
f4d5820f
VS
20862012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2087
2088 * grub-core/commands/wildcard.c (+check_file): New function.
2089 (wildcard_expand): Don't expand to non-existing files, expand with
2090 suffix and not attempt to expand if not needed.
2091
3d2de9a7
VS
20922012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2095 out of partitions containing other partitions.
2096
c5c81ff9
VS
20972012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2100 on some qemu versions with GRUB.
2101
2102 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2103 define.
2104 (grub_openbsd_bootarg_pcibios): New struct.
2105 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2106 Add PCIINFO.
2107
08a14e0b
VS
21082012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2109
2110 * tests/util/grub-shell.in: Trim firmware output on EFI.
2111
cede3ca3
VS
21122012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2115 and coreboot since it's already in kernel.
2116
558d3a60
VS
21172012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2120 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2121 to here. New return value start. All users updated.
2122 Recursively scan linear mappings.
2123 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2124 proto.
2125 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2126 Use grub_util_get_dm_node_linear_info.
2127 * util/getroot.c (convert_system_partition_to_system_disk): Use
2128 grub_util_info rather than grub_dprintf.
2129 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2130
60fde14d
VS
21312012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2132
2133 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2134
2135 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2136 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2137
24bd8838
VS
21382012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2139
2140 * include/grub/types.h (grub_set_unaligned64): New function.
2141 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2142 (setup): Likewise.
2143
7bc06a49
VS
21442012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2147 (grub_ofdisk_fini): Quiesce USB devices.
2148
49cea015
VS
21492012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2152 caches.
2153
8dcbe03b
VS
21542012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2157
5b258735
VS
21582012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2159
2160 * grub-core/disk/pata.c (grub_pata_pio_read)
2161 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2162 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2163
37ba07eb
VS
21642012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2165
2166 Extend automated tests to qemu-mips.
2167
2168 * Makefile.am: reorganise tests and enable qemu-mips.
2169 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2170 * grub-core/tests/boot/linux.init-mips.S: New file.
2171 * tests/partmap_test.in: Handle ata0 disks.
2172 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2173 non-pc i386.
2174
070038f8
VS
21752012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2178 ia64.
2179 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2180 quotes while on it.
2181
004be2cd
VS
21822012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2183
2184 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2185 (grub_halt): Likewise.
2186 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2187
b1622487
VS
21882012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 * grub-core/term/serial.c (grub_serial_register)
2191 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2192 the behaviour in line with x86 platforms.
2193
b7b4ab33
VS
21942012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2197 (grub_ata_strncpy): Likewise.
2198 (grub_ata_identify): Add missing byteswaps.
2199
5e3535ae
VS
22002012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2201
2202 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2203 byte-swap.
2204 (screen_read_char): Likewise.
2205 (grub_vga_text_cls): Likewise.
2206
c21b17e6
VS
22072012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2210 filenames.
2211 (make_file_path): Likewise.
2212
bf293dec
VS
22132012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2216 machines.
2217 Tested by: Paulo Flabiano Smorigo.
2218 Crucial information about API supplied by: Coleen <Last name unknown>.
2219 Reviewed by: Coleen <Last name unknown>.
2220
81f6ef0e
VS
22212012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * util/grub-mkimage.c: Disable -Wcast-align.
2224
7284143a
VS
22252012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2226
2227 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2228 as they are fatal.
2229
b99f3e00
VS
22302012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2231
2232 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2233
944f752d
VS
22342012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2235
2236 * util/grub-probe.c (escape_of_path): Fix double free.
2237
6cce6f38
VS
22382012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2239
2240 * grub-core/commands/videoinfo.c (hook): Show pitch.
2241
1e1eb50e
VS
22422012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2243
2244 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2245
1c715b5a
VS
22462012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2249 (probe): Add ieee1275 to OFW devices.
2250
007ae52d
VS
22512012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2252
2253 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2254
4557a36d
VS
22552012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 Handle IBM OFW path.
2258
2259 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2260 available.
2261 (of_path_of_scsi): Handle vdevice.
2262
efbeefe9
VS
22632012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2266 Allocate in multiples of 16 to avoid adding a few bytes free region the
2267 windows bugs upon.
2268
15a940bb
VS
22692012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2270
2271 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2272 Allocate in multiples of 16 to avoid adding a few bytes free region the
2273 windows bugs upon.
2274 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2275
6e5efd60
VS
22762012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2277
2278 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2279 resolutions.
2280 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2281 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2282
0d3d137e
IS
22832012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2284
2285 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2286
45dbe300
VS
22872012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2290 resulted in \\ at the end of the line.
2291
6d8db947
VS
22922012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2295 (grub_parser_cmdline_state): Likewise.
2296 (grub_parser_split_cmdline): Likewise.
2297
de89d338
VS
22982012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2301 /dev/root and /dev/dm-*.
2302
00d41dee
VS
23032012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2304
2305 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2306 fix partially stale display.
2307
f95d1f11
VS
23082012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2311 substraction.
2312
6297e197
VS
23132012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2314
2315 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2316 Fix MBR remapping workaround.
2317 (grub_util_biosdisk_read) [__linux__]: Likewise.
2318
8a7ecad3
VS
23192012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2320
2321 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2322
2b34f944
VS
23232012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2324
2325 * configure.ac: Bump to beta6.
2326
684aef11
CW
23272012-05-31 Christer Weinigel <christer@weinigel.se>
2328
2329 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2330
05b0bb91
VS
23312012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2334 (grub_cmd_linux): Likewise.
2335
bda36bfa
CW
23362012-05-31 Christer Weinigel <christer@weinigel.se>
2337
2338 Fix EHCI low-speed.
2339
2340 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2341 (GRUB_EHCI_MULT_TWO): Likewise.
2342 (GRUB_EHCI_MULT_THREE): Likewise.
2343 (GRUB_EHCI_CMASK_MASK): New enum value.
2344 (GRUB_EHCI_SMASK_MASK): Likewise.
2345 (GRUB_EHCI_CMASK_OFF): Likewise.
2346 (GRUB_EHCI_SMASK_OFF): Likewise.
2347 (grub_ehci_pci_iter): Enable periodic schedule.
2348 (grub_ehci_parse_notrun): Likewise.
2349 (grub_ehci_restore_hw): Likewise.
2350 (grub_ehci_setup_qh): Set flags for low speed transfers.
2351 (grub_ehci_find_qh): Use periodic list for low speed.
2352 (grub_ehci_setup_transfer): Check periodic queue as well.
2353 (grub_ehci_check_transfer): Likewise.
2354 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2355
e12bcb1c
PFS
23562012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2357
2358 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2359 parameter is used.
2360
bcc75fb3
PJ
23612012-05-31 Peter Jones <pjones@redhat.com>
2362
2363 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2364 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2365 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2366
f19cb95e
VS
23672012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2368
2369 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2370 uninited variable. Allocate at least setup_sects.
2371
a4e5ca80
VS
23722012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2373
2374 Fix handling of EFI with big memory maps.
2375
2376 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2377 (real_mode_mem): Likewise.
2378 (real_mode_target): Likewise.
2379 (real_mode_pages): Likewise.
2380 (prot_mode_pages): Likewise.
2381 (linux_params): New var.
2382 (linux_cmdline): Likewise.
2383 (free_pages): Don't set real mode variables.
2384 (allocate_pages): Don't allocate real mode memory.
2385 (grub_e820_add_region): Remove the limit.
2386 (grub_linux_boot): Allocate and copy real mode memory.
2387 (grub_linux_unload): Free linux_cmdline.
2388 (grub_cmd_linux): Use temporary storage for parameters.
2389 (grub_cmd_initrd): Likewise.
2390 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2391 (linux_kernel_params): Make it 1K big.
2392
ddb73558
VS
23932012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2394
2395 * Makefile.util.def: Remove -Wno-format.
2396 * grub-core/Makefile.core.def: Likewise.
2397
1c4afb60
VS
23982012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 * tests/cmp_unit_test.c: Add missing failure message.
2401 * tests/example_unit_test.c: Likewise.
2402 * tests/printf_unit_test.c: Likewise.
2403
941e3a6d
VS
24042012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2407 relaxation of protective MBR requirements.
2408
b105df76
VS
24092012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2410
2411 * configure.ac: Add condition for COND_HOST_XNU.
2412 * Makefile.util.def (10_xnu): New script.
2413 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2414
84e1569e
VS
24152012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2416
2417 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2418 objconv bug.
2419
130c0f77
VS
24202012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2421
2422 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2423 Binary on other platforms stays identical.
2424
6fd0b143
VS
24252012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2426
2427 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2428 Apple.
2429
0af1751d
VS
24302012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2431
2432 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2433
176d5f7d
VS
24342012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2435
2436 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2437 rather than defining size_t ourselves to avoid conflict.
2438
7de5e20a
VS
24392012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2440
2441 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2442 initialisation to avoid __bzero reference.
2443
f7143efe
VS
24442012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2445
2446 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2447 version.
2448 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2449 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2450 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2451 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2452 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2453
e6ad0555
VS
24542012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2455
2456 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2457 * grub-core/kern/misc.c: Likewise.
2458 * grub-core/loader/i386/xnu.c: Likewise.
2459 * include/grub/i386/tsc.h: Likewise.
2460 * include/grub/symbol.h: Likewise.
2461
4a5a3c4a
VS
24622012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2465 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2466 on older compiler.
2467
037f6d90
VS
24682012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2469
2470 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2471 Implement Apple flavour.
2472 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2473
f7194551
VS
24742012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2477 (memmove) [__APPLE__]: Likewise.
2478 (memcpy) [__APPLE__]: Likewise.
2479 (memset) [__APPLE__]: Likewise.
2480 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2481 (memmove) [__APPLE__]: Likewise.
2482 (memcpy) [__APPLE__]: Likewise.
2483 (memset) [__APPLE__]: Likewise.
2484
85a730ca
VS
24852012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2488 dependency discard.
2489
40e80b94
VS
24902012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * grub-core/normal/main.c (read_config_file): Provide config_file and
2493 config_directory.
2494 * util/grub.d/41_custom.in: Use config_directoy when available.
2495
9da59c32
VS
24962012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2497
2498 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2499 (grub_bfs_dir): Likewise.
2500
2787ae53
PJ
25012012-05-27 Peter Jones <pjones@redhat.com>
2502
2503 The old code gives arguments to a printf function which can't work
2504 correctly, and the compiler complains.
2505
2506 * grub-core/tests/example_functional_test.c (example_test): Add
2507 missing text.
2508 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2509 * include/grub/test.h (grub_test_assert_helper): New declaration.
2510 (grub_test_assert): Use grub_test_assert_helper.
2511
526ef13d
VS
25122012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2515 (exfctest): ... this to avoid overlong filenames.
2516 All users updated.
2517
20dd511c
VS
25182012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 Handle "." and ".." on squashfs.
2521
2522 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2523 Make inode numbers into stack.
2524 (grub_squash_read_symlink): Use stack.
2525 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2526 (make_root_node): Fill stack.
2527 (grub_squash_open): Use stack.
2528
1d80c62a
VS
25292012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2530
2531 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2532 freeing.
2533
d336f652
VS
25342012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2537 stderr on test calls.
2538
8b43f587
VS
25392012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2542
80a3dc3f
VS
25432012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2544
2545 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2546
47e297d4
VS
25472012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2550 "..".
2551
df042ccb
VS
25522012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2553
2554 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2555 (grub_hfsplus_iterate_dir): Add "." and "..".
2556
fc977f48
VS
25572012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2558
2559 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2560 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2561
f3250e5f
VS
25622012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2563
2564 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2565 (find_path): Handle "." and "..".
2566
fd8ed4c5
VS
25672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2568
2569 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2570 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2571 (grub_affs_iterate_dir): Handle hardlinks.
2572
4ce776d2
MG
25732012-05-26 Matthew Garrett <mjg@redhat.com>
2574
2575 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2576 (grub_efi_console_fini): Likewise.
2577 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2578 (grub_video_gop_fill_mode_info): Rename to ...
2579 (grub_video_gop_fill_real_mode_info): ... this.
2580 (grub_video_gop_fill_mode_info): New function.
2581 (grub_video_gop_setup): Setup double framebuffer.
2582 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2583 Free offscreen.
2584 (grub_video_gop_swap_buffers): Copy framebuffer.
2585 (grub_video_gop_fini): Free offscreen buffer.
2586 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2587 New enum.
2588 (grub_efi_gop_blt_pixel): New struct.
2589
683031ba
VS
25902012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2591
2592 * gentpl.py: Remove error disabling for objconv.
2593
c2deb798
VS
25942012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2595
2596 * configure.ac: Remove -Wunitialized as it's not available on older
2597 compilers.
2598
25992012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
2600
2601 Fix extent overflow comparator.
2602
2603 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2604 (grub_hfsplus_read_block): Set type.
2605 (grub_hfsplus_cmp_extkey): Compare type.
2606
d6b1fd36
VS
26072012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2610
0a9aa0f6
VS
26112012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2614 than 0.
2615
8360e159
VS
26162012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2617
2618 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2619 (dejavu_bold_14.pf2): New target.
2620
501b9e4b
VS
26212012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2622
2623 * configure.ac: Fix djvu font detection.
2624
7026b0e2
VS
26252012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2626
2627 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2628 ext* instead of ext2.
2629
c2a51ade
VS
26302012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2631
2632 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2633 name with \0.
2634
8f803a5d
JU
26352012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2636
2637 * docs/grub-dev.texi: Remove dot from .png.
2638
13c6353f
VS
26392012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2642 protective entry in any slot.
2643 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2644 if protective entry is found in any slot.
2645
2646 Protective entry in non-first slot make no sense but is a widespread
2647 brain damage.
2648
4cf6be1b
VS
26492012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2650
2651 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2652
937d1c44
VS
26532012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2654
2655 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2656 with old reiserfs.
2657 (grub_reiserfs_open): Don't free root.
2658
021d90ec
VS
26592012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2660
2661 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2662 after freeing for safety.
2663
967b2b64
VS
26642012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
2667 Reported by: Jordan Uggla.
2668
34274d02
JU
26692012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
2670
967b2b64
VS
2671 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
2672 actual implementation. Specifically, clarify that the grub menu will
2673 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
2674 passed.
34274d02 2675
dcaaae9d
BH
26762012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
2677
2678 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
2679 of r0.
2680
7086ad52
VS
26812012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2682
2683 Remove unjustified hard dependency of normal.mod on gfxterm.
2684
2685 * include/grub/term.h (grub_term_output): New member fullscreen.
2686 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
2687 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
2688 (grub_gfxterm): Set .fullscreen.
2689 * grub-core/normal/menu.c (menu_init): Use fullscreen.
2690 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
2691
37ed2c9b
VS
26922012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
2695 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 2696 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 2697
a4469c88
VS
26982012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2699
2700 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
2701
4e461486
VS
27022012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2705 a bad FS.
2706
aa78f5c4
VS
27072012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
2708
2709 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
2710 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
2711
197626b5
VS
27122012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2713
2714 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
2715 (grub_jfs_mount): Fill caseins.
2716 (grub_jfs_find_file): Respect caseins.
2717
8ad3f28c
VS
27182012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2719
2720 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
2721 through UTF-16.
2722
0c6c324e
VS
27232012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
2724
2725 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
2726 New argument origpath. All users updated.
2727
c6666ba6
VS
27282012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2729
2730 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
2731 (read_attr): Ensure that we read start of possibly compressed block.
2732
e28e5fe5
VS
27332012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
2736 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
2737 All users updated.
2738
5fc23ab2
VS
27392012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
2742 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
2743 (dejavu.pf2): Replace with ...
2744 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
2745 this.
2746
79dbc21c
VS
27472012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2748
2749 * util/grub.d/20_linux_xen.in: Add missing line.
2750
d2fcfb0c
VS
27512012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
2752
2753 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
2754 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
2755 (grub_utf16_to_utf8): Likewise.
2756
5560e9d6
VS
27572012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
2760 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
2761 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2762 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
2763 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2764 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
2765
27662012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
2767
2768 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
2769 a bad FS.
2770
5560e9d6 27712012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
2772
2773 * grub-core/fs/udf.c (read_string): Bail out on size=0.
2774 (grub_udf_read_symlink): Handle read_string failure.
2775
5eae3175
VS
27762012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
2779 comment.
2780
c1ad82db
VS
27812012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2782
2783 Fix handling of UDF symlinks.
2784
2785 * grub-core/fs/udf.c (read_string): New argument outbuf.
2786 All users updated.
2787 (grub_ufs_read_symlink): Rename to ...
2788 (grub_udf_read_symlink): ... this. All users updated.
2789 Handle symlinks with more than one component.
2790
33eca6e0
VS
27912012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2792
2793 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
2794 symlinks. Replace leading colon with a slash.
2795
57f4a70b
VS
27962012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
2799 filename.
2800
38c8ee20
VS
28012012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
2804 match in inner node.
2805
2e57f28f
VS
28062012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
2807
2808 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
2809 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
2810 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
2811 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
2812 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
2813 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
2814 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
2815 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
2816 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
2817
fe8c2f11
VS
28182012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 Use grub-probe and not cmp to check that disk is empty.
2821
2822 * util/grub-install.in: Use grub-probe for zero-check.
2823 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
2824 (probe): Handle PRINT_ZERO_CHECK.
2825 (argp_parser): Handle -t zero_check.
2826
28272012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
2828
2829 Flush block cache on adding disk to device map.
2830
2831 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
2832 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
2833 adding.
2834 (read_device_map): Likewise.
2835 (open_device): Flush on opening.
2836
690434e8
VS
28372012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
2840 (handle_symlink): Fix off-by-one error.
2841 Canonicalize the target.
2842 (grub_cpio_dir): Canonicalize the name.
2843 Fix memory leak.
2844 Set directory.
2845 (grub_cpio_open): Canonicalize the name.
2846
742d2be6
VS
28472012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2848
2849 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
2850 handling.
2851
3244fe96
VS
28522012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
2855 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
2856
8aeb1837
VS
28572012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2858
2859 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
2860 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 2861 All users updated.
8aeb1837 2862
9133fd05
VS
28632012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
2866 counterpart.
2867
6d521c5b
VS
28682012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
2869
2870 Fix UFS1 big file support.
2871
2872 * grub-core/fs/ufs.c (INODE): Removed.
2873 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
2874 64-bit.
2875 (INODE_MODE): Simplify.
2876 (grub_ufs_inode): Use uint64_t for size and not int64_t.
2877 (grub_ufs_lookup_symlink): Don't use INODE.
2878
21b82e17
VS
28792012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2880
2881 Fix minixfs with non-power-of-two blocks since it's supported by minix.
2882
2883 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
2884 (grub_minix_data): Replace log_block_size with block_size.
2885 (grub_minix_read_file): Use block_size but avoid 64-bit division.
2886 (grub_minix_mount): Fill block_size.
2887
28882012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
2889
2890 * configure.ac: Bump to beta5.
2891
f417ed04
VS
28922012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 Fix wrapped HFS+ handling.
2895
2896 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
2897 blocks_start. All users updated.
2898 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
2899 wrapping offset.
2900 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
2901
607d282b
VS
29022012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 Fix long symlinks on reiserfs.
2905
2906 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
2907 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
2908 (grub_reiserfs_iterate_dir): Save size for non-directories.
2909 (grub_reiserfs_open): Don't reread stat block as we already know the
2910 size.
2911 (grub_reiserfs_read): Split into...
2912 (grub_reiserfs_read_real): ... and ...
2913 (grub_reiserfs_read): ...this.
2914
ae16024d
VS
29152012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2916
2917 Fix non-indexed JFS.
2918
2919 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
2920 (grub_jfs_data): New field namecomponentlen.
2921 (grub_jfs_mount): Fill namecomponentlen.
2922 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
2923
eea1e26e
VS
29242012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
2927 * tests/grub_script_echo1.in: Add tests.
2928
df760f77
VS
29292012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 * util/grub-install.in: Ignore empty devicetree directory.
2932
5efb817d
B
29332012-05-08 Bean <bean123ch@gmail.com>
2934
2935 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
2936 All users updated.
2937 (free_rsm): Free header as well.
2938 (free_old_fragments): Fix memory leak.
2939 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
2940 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
2941 (destroy_pq): Likewise.
2942 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
2943
668ea6d2
VS
29442012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2945
2946 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
2947 resulting hash as a precaution.
2948
1739b1fe
VS
29492012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2950
2951 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
2952 '_' in variable names.
2953 * grub-core/net/net.c (grub_net_network_level_interface_register):
2954 Likewise.
2955
6ae485aa
VS
29562012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 Fix AFFS with non-512B blocks.
2959
2960 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
2961 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
2962 (grub_affs_data): Replace blocksize with log_blocksize.
2963 (grub_affs_read_block): Fix non-512B blocks.
2964 (grub_affs_read_symlink): Likewise.
2965 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
2966 (grub_affs_read): Fix non-512B blocks.
2967 (grub_affs_label): Likewise.
2968 (grub_affs_mtime): Likewise.
2969 (grub_affs_mount): Fix block detection routine.
2970
d20fab84
VS
29712012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 Add filesystem mtime to AFFS.
2974
2975 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
2976 (aftime2ctime): New function.
2977 (grub_affs_dir): Use aftime2ctime.
2978 (grub_affs_label): Fix return value.
2979 (grub_affs_mtime): New function.
2980 (grub_affs_fs): Add mtime.
2981
e87b10f5
VS
29822012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2983
2984 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
2985 UTF-8.
2986
7dceec9b
VS
29872012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
2990 UTF-8.
2991
2f48221f
VS
29922012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
2995
dacd85cf
VS
29962012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
2999 flags.
3000 (FLAGS_CASE_SENSITIVE): New enum value.
3001 (cache_entry): New struct.
3002 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3003 cache_size and cache.
3004 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3005 Add log_blocksize and fshelp_flags.
3006 (grub_sfs_read_extent): Handle non-512 blocks.
3007 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3008 (grub_sfs_read_file): Handle non-512 blocks.
3009 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3010 fshelp_flags.
3011 (grub_sfs_read_symlink): Handle non-512 blocks.
3012 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3013 (grub_sfs_dir): Free cache.
3014 (grub_sfs_close): Likewise.
3015
24e9a854
VS
30162012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3017
3018 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3019 filesystems.
3020
62ace64d
VS
30212012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3022
3023 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3024
83b2e89c
VS
30252012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3026
3027 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3028
75ccaea3
VS
30292012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3030
3031 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3032 (grub_sfs_read_extent): Likewise.
3033 (grub_sfs_read_block): Likewise.
3034 (grub_sfs_mount): Likewise.
3035 (grub_sfs_iterate_dir): Likewise.
3036 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3037 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3038
1b8463f2
VS
30392012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 Fix errors on compressed NTFS with 512B clusters.
3042
3043 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3044 types.
3045 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3046 not 0.
3047 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3048 Relax check for inline extents.
3049 (ntfscomp): Return correct -1 on error and not 0.
3050
4f8e368f
VS
30512012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * util/grub-install.in: Fix handling of prefix containing spaces.
3054
6f5d5ee8
VS
30552012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3058 (grub_squash_read_data): Fix offset byte-swapping.
3059
ce41ab7a
VS
30602012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3061
3062 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3063 per common usage and preffered in several parts of code.
3064 (grub_memcmp): Likewise.
3065 (grub_strncmp): Likewise.
3066 * include/grub/misc.h (grub_strcasecmp): Likewise.
3067 (grub_strncasecmp): Likewise.
3068 * Makefile.util.def (cmp_test): New test.
3069 (grub_script_strcmp): Likewise.
3070 * tests/cmp_unit_test.c: New file.
3071 * tests/grub_script_strcmp.in: Likewise.
3072 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3073
49717bf4
VS
30742012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3075
3076 * include/grub/pci.h: Move enums into no-asm part.
3077
0a308f64
VS
30782012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3081
1796965f
ST
30822012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3083
3084 * util/getroot.c (find_hurd_root_device): Try to make error message
3085 and comments to translators clearer.
3086
4e9b2819
VS
30872012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3088
3089 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3090
076aeb50
VS
30912012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3094 btrfs.
3095
19424d94
VS
30962012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3097
3098 * docs/grub.cfg: Update.
3099
ebb73076
VS
31002012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3101
3102 * docs/grub.texi (PXE): Remove not present variables.
3103
9a1b669c
VS
31042012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3105
3106 * grub-core/net/net.c (defserver_set_env): New function.
3107 (defserver_get_env): Likewise.
3108 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3109
d38bf7d3
VS
31102012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3111
3112 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3113 entries.
3114
31152012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
3116
3117 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3118 * grub-core/kern/emu/hostdisk.c: Likewise.
3119
e5e4ca48
ST
31202012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3121
3122 Handle hurd userspace partitions.
3123
3124 * util/getroot.c (find_hurd_root_device): New function.
3125 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3126
56bb5dd5
VS
31272012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3128
3129 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3130 names.
3131 Reported by: Bastian Blank.
3132
9e8bc27a
VS
31332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3136 crossing page boundary.
3137
aa01499d
VS
31382012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 Fix B-tree search in BFS, especially in presence of non-ASCII
3141 characters.
3142
3143 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3144 (find_in_b_tree): Use standard bsearch + btree algorithm.
3145
57006035
VS
31462012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3149 and so on.
3150
9d34bb85
MG
31512012-05-03 Matthew Garrett <mjg@redhat.com>
31522012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3153
3154 Suspend broadcom cards in order to stop their DMA.
3155
3156 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3157 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3158 (pci): Don't build on x86 EFI.
3159 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3160 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3161 New function.
3162 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3163 stop_broadcom if running on EFI.
3164 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3165 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3166 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3167 (grub_pci_find_capability): New proto.
3168
01aab997
VS
31692012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 * docs/grub.texi: Remove dot from the extension as it apparently
3172 doesn't work with some makeinfo versions.
3173
fbd8dca6
VS
31742012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3175
3176 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3177 with GRUB expectance.
3178
dab797f4
VS
31792012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3182
1516bfb4
VS
31832012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3184
3185 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3186 zero after directory block since last entry may be not 0-terminated if
3187 it ends on block boundary. Use continue instead of if spanning whole
3188 loop.
3189
a3a0eace
VS
31902012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3191
3192 Support 4K sectors UDF inline files.
3193
3194 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3195 (grub_udf_extended_file_entry): Likewise.
3196 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3197 All users updated.
3198 (get_fshelp_size): New function.
3199 (grub_udf_read_icb): Read whole block.
3200 (grub_udf_iterate_dir): Likewise.
3201 (grub_udf_dir): Likewise.
3202 (grub_udf_open): Likewise.
3203
c82f16c1
VS
32042012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3205
3206 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3207
59fd2aac
VS
32082012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3209
3210 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3211 inline symlinks in addition to workaround.
3212
3b4afb4d
VS
32132012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3214
3215 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3216
f45c794a
VS
32172012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3218
3219 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3220
f25cecbd
VS
32212012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3224
bb9a34e8
VS
32252012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3226
3227 Fix reiserfs big seek times.
3228
3229 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3230 exact. All users updated.
3231 (grub_reiserfs_read): Use nearest btree search for seeking.
3232 Fix return value on error.
3233
dc478aea
VS
32342012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3235
3236 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3237 entries.
3238 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3239 * docs/grub.texi: Update menuentry description.
3240
8db10f47
VS
32412012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3242
3243 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3244 crash when embedding onto filesystem.
3245
bcb288ed
VS
32462012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3247
3248 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3249 name.
3250
a626fdd7
VS
32512012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3254
b2f68477
VS
32552012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3256
3257 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3258 commit.
3259
ba15b2af
B
32602012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
32612012-05-01 Bean <bean123ch@gmail.com>
3262
3263 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3264
a188012e
VS
32652012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3266
3267 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3268 Special behaviour for len = 0 to read whole file isn't used anywhere and
3269 can cause buffer ovewrflows in several places.
3270
f0a53ed2
VS
32712012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3274
5ed554f0
VS
32752012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3276
3277 Handle RAIDZ on non-512B sectors.
3278
3279 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3280 max_children_ashift.
3281 (fill_vdev_info_real): Fill max_children_ashift.
3282 (read_device): Use max_children_ashift.
3283
ddc58357
VS
32842012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3285
3286 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3287
e3282399
VS
32882012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3289
3290 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3291 disk names.
3292 * docs/grub.texi: Update device.map parts.
3293
ee618bd4
VS
32942012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 Don't scan into non-diskfilter devices having diskfilter names.
3297
3298 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3299 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3300 handling.
3301 (scan_disk_hook): New function.
3302
bdf88864
B
33032012-04-29 Bean <bean123ch@gmail.com>
3304
3305 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3306 allocation.
3307
32745f51
MK
33082012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3309
3310 * configure.ac: Detect starfield theme font path
3311 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3312
bc95c8c0
VS
33132012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3316 geometry on serial consoles.
3317
147fbcab
VS
33182012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3319
3320 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3321 because of network consoles.
3322
0f42c889
VS
33232012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3324
3325 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3326 handling.
3327
4a3594c9
VS
33282012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3331 falls on Q syndrom.
3332
5cb53879
VS
33332012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3334
3335 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3336 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3337
b282dfe5
VS
33382012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3339
3340 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3341 Allocate at lest 8192 for temporary buffer as required for lzo.
3342
daa59f47
VS
33432012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3346 to cluster_bits, since it's already added in.
3347 (grub_fat_read_data): Likewise.
3348
986748ce
VS
33492012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3350
3351 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3352 as long as cluster size is multiple of 512 bytes.
3353
a20f6ad0
VS
33542012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3355
3356 * util/grub-mkrescue.in: Fix locale directory.
3357
385f9abb
VS
33582012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/kern/emu/hostdisk.c (map): Make static.
3361
1c557d30
B
33622012-04-23 Bean <bean123ch@gmail.com>
3363
3364 * util/grub-fstest.c (fstest): Add missing break.
3365
524b5d3a
ST
33662012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3367
3368 Fix hurd build.
3369
3370 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3371 not define nr variable.
fe4824e9 3372 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3373 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3374 grub_find_device): Do not define.
524b5d3a 3375
9a06490c
VS
33762012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 Fix kfreebsd compile and behaviour.
3379
3380 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3381 format-security.
3382 * util/getroot.c: Fix wait.h include.
3383 (grub_guess_root_devices): Error if grub_find_device fails.
3384 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3385 (grub_util_get_dev_abstraction): Likewise.
3386 (grub_util_pull_device): Likewise.
3387 (grub_util_get_grub_dev): Likewise.
3388 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3389
48143d96
VS
33902012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3391
3392 Fix and unify wholedisk detection.
3393
3394 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3395 is_part. All users updated.
3396 (device_is_wholedisk): Removed.
3397 (grub_util_biosdisk_get_grub_dev): Use is_part.
3398
ebbd24f3
VS
33992012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3400
3401 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3402 mode.
3403
56f7aa1e
VS
34042012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 * configure.ac: Bump to beta4.
3407
9c815e01
VS
34082012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3411 --fs-uuid --set UUID syntax.
3412
59e2651a
VS
34132012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3416 disunification.
3417
54e03cfc
VS
34182012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3421
81092a75
MK
34222012-04-18 Mads Kiilerich <mads@kiilerich.com>
3423
3424 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3425
f8315e14
MG
34262012-04-18 Mike Gilbert <floppym@gentoo.org>
3427
3428 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3429
1501ac21
B
34302012-04-18 Bean <bean123ch@gmail.com>
3431
3432 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3433 place.
3434
cb7f944e
VS
34352012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3436
3437 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3438 users updated.
3439 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3440 corresponding to GRUB partitions.
3441 (grub_util_biosdisk_write): Likewise.
3442
b72d44a1
VS
34432012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 Scan mdraid before LVM.
3446
3447 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3448 (grub_diskfilter_register_front): ... this.
3449 (grub_diskfilter_register_back): New function.
3450 All users of grub_diskfilter_register updated.
3451
33d918b8
VS
34522012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3453
3454 * util/grub-install.in: Fix an automatic target detection bug.
3455
c6ca973d
VS
34562012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3457
3458 * util/grub-install.in: New option --efi-directory.
3459
b41be562
VS
34602012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3463 boot services if we have no other choice.
3464
34652012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3468 document it.
3469 * tests/util/grub-shell.in: Update to --directory.
3470
e0595a73
VS
34712012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3474
4ed80652
VS
34752012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3478 (grub_minix_read_file): Likewise.
3479 (grub_minix_read_inode): Likewise.
3480 (grub_minix_find_file): Likewise.
3481 (grub_minix_dir): Likewise.
3482
56008077
VS
34832012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * util/grub-setup.c (setup): Fix partition handling and blocklist
3486 check.
3487
ee520775
VS
34882012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3491 redundant buggy overlap check.
3492
16fc9293
VS
34932012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3494
3495 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3496 and grub-mknetdir.
3497
9bab65c4
VS
34982012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3499
3500 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3501 kh.loadflags on pre-2.00 kernels.
3502
3c491b47
VS
35032012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3504
3505 Terminate UNDI and PXE before launching the payload to avoid problems
3506 with DMA.
3507
3508 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3509 (grub_loader_flags): ... this. All users updated.
3510 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3511 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3512 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3513 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3514 function.
3515 (grub_pxe_restore): Likewise.
3516 (fini_hnd): New var.
3517 (GRUB_MOD_INIT): Register shutdown hook.
3518 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3519 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3520 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3521 (grub_loader_set): Rename second argument to flags.
3522
851ffada
VS
35232012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3526 written bytes.
3527 (grub_get_num_of_utf8_bytes): New function.
3528 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3529 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3530 executing it.
3531 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3532 (grub_ucs4_to_utf8): Change return type.
3533
491c57a8
VS
35342012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3537 warning.
851ffada
VS
3538 * grub-core/fs/bfs.c (hop_level): Likewise.
3539 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 3540
756773df
VS
35412012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3542
3543 * grub-core/lib/adler32.c: Recode due to license unclearness.
3544
fd556a96
VS
35452012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3546
3547 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3548 (test_header): Likewise.
3549
9f9d3f69
VS
35502012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3551
3552 Fix --help formatting.
3553
3554 * util/grub-mkconfig_lib.in (print_option_help): New function.
3555 (grub_fmt): Likewise.
3556 * util/grub-install.in: Use print_option_help and grub_fmt.
3557 * util/grub-kbdcomp.in: Likewise.
3558 * util/grub-mkconfig.in: Likewise.
3559 * util/grub-mknetdir.in: Likewise.
3560 * util/grub-mkrescue.in: Likewise.
3561 * util/grub-mkstandalone.in: Likewise.
3562 * util/grub-reboot.in: Likewise.
3563 * util/grub-set-default.in: Likewise.
3564 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3565
561ec77e
VS
35662012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * linguas.sh: Remove autogenerated *.po.
3569
7ec2b021
VS
35702012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * po/README: Move language fetcing to ...
3573 * linguas.sh: ... here.
3574 * po/README: Point to linguas.sh.
3575
a88f3270
VS
35762012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3577
3578 * po/README: Exclude ko.po due to disclaimer problems.
3579
d61357ce
VS
35802012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3581
3582 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3583 len = 0.
3584 (grub_gettext_translate_real): Handle 0th string.
3585 (grub_gettext_translate): Ensure that "" isn't translated.
3586
505e41dc
VS
35872012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3590 TRANSLATORS comment.
3591 (grub_diskfilter_print_partmap): Propagate changing of error into
3592 warning.
3593
e44092db
VS
35942012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3595
3596 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3597 to uint64_t to prevent overflow.
3598 (grub_diskfilter_lv): Increase start_extent and extent_count
3599 to uint64_t to prevent overflow.
3600
9b83956a
VS
36012012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3602
3603 * configure.ac: Increase version.
3604
da0d5b3f
VS
36052012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3606
3607 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3608
3609 * po/Rules-translit: New file.
3610 * po/arabic.sed: Likewise.
3611 * po/cyrillic.sed: Likewise.
3612 * po/greek.sed: Likewise.
3613 * po/hebrew.sed: Likewise.
3614 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3615 * po/Makefile.in.in: Add extra_dist4.
3616
ac66b453
VS
36172012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3618
3619 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3620
3621 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3622 modify names. Introduce MODE_BIGENDIAN.
3623 * grub-core/fs/minix_be.c: New file.
3624 * grub-core/fs/minix2_be.c: Likewise
3625 * grub-core/fs/minix3_be.c: Likewise.
3626 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3627 minix3_be.
3628 * grub-core/Makefile.core.def (minix_be): New module.
3629 (minix2_be): Likewise.
3630 (minix3_be): Likewise.
3631
36322012-04-01 Felix <email@hamburg.de>
3633
3634 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3635 (devs): Add MBP 2011.
3636
0a2d5a82
VS
36372012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3640
d1625889
VS
36412012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/normal/cmdline.c (print_completion): New field
3644 prompt_len.
3645 (grub_cmdline_get): Handle width properly.
3646
6d36a236
VS
36472012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3650
9576977e
VS
36512012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 3654 after 29th of February.
9576977e 3655
d73ff15d
VS
36562012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3657
3658 Fix exfat endianness handling.
3659
3660 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3661 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3662 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3663 Byte-swap utf16 when necessary.
3664 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
3665
bbb39a45
AB
36662012-03-31 Anton Blanchard <anton@samba.org>
36672012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3668
3669 Fix btrfs endianness handling.
3670
3671 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
3672 (lower_bound): Make root uint64_t. Use root in le.
3673 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
3674 (find_path): Fix template key init.
3675 (grub_btrfs_dir): Fix mtime byteswap.
3676 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
3677
354e0af7
VS
36782012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
3681 recursion_depth. Break infinite resursions. All users updated.
3682
4e75f21c
VS
36832012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3684
3685 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
3686 after free.
3687 Reported by: Peter Jones.
3688
25581802
AB
36892012-03-31 Anton Blanchard <anton@samba.org>
3690
3691 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
3692 8 bit values.
3693
08fbf92e
VS
36942012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * util/grub-install.in: Fix nvram call for PreP.
3697
5d1182a6
VS
36982012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
3701 the error when some elements are missing into a warning.
3702
3f8cdd90
VS
37032012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
3706
51006716
CW
37072012-03-28 Colin Watson <cjwatson@ubuntu.com>
3708
3709 * docs/grub.texi (Invoking grub-probe): New section.
3710 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
3711
e1bd676b
VS
37122012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
3713
3714 Fix tab and wide character handling in editor and menu.
3715
3716 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
3717 agglomerate control characters with combining marks.
3718 (bidi_line_wrap): Allow break on tab.
3719 (grub_unicode_get_comb_start): New function.
3720 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
3721 and tab correctly.
3722 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
3723 with a space.
3724 * grub-core/normal/term.c (print_ucs4_terminal): New argument
3725 fixed_tab_size. All users updated.
3726 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
3727 (grub_term_getcharwidth): Handle \t.
3728 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
3729 and copy.
3730
22e6a774
VS
37312012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 Handle big-endian mdraid.
3734
3735 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
3736 * grub-core/Makefile.core.def (mdraid09_be): New module.
3737 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
3738 rather than grub_le_to_cpu* and grub_cpu_to_le*.
3739 * grub-core/disk/mdraid_linux_be.c: New file.
3740
3c0eae66
VS
37412012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
3742
3743 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
3744
b6cf74c9
VS
37452012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
3748 missing quotes which caused confusion among translators.
3749
83c93b9c
VS
37502012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3751
3752 * util/grub-mkconfig_lib.in: Fix typo.
3753
ac6fd218
VS
37542012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
3757 spaces.
3758 * tests/grub_script_leading_whitespace.in: New file.
3759 * Makefile.util.def (grub_script_leading_whitespace): New test.
3760
ba287dd8
VS
37612012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
3764 to work.
3765
d2d58d0a
VS
37662012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
3769 starts with control character.
3770
0382d9bb
VS
37712012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3772
3773 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
3774 overflow.
3775 (grub_gdb_outbuf): Likewise.
3776
d83ff9f9
VS
37772012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
3780 zero terminator. Fixes a crash.
3781
2282da4a
VS
37822012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
3785 beyond 4 GiB.
3786 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
3787 images independently of preffered adderss field.
3788
0ae4f0bd
VS
37892012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3790
3791 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
3792 * grub-core/commands/regexp.c: Likewise.
3793 * grub-core/loader/i386/linux.c: Likewise.
3794 * grub-core/partmap/msdos.c: Likewise.
3795 * grub-core/script/execute.c: Likewise.
3796 * grub-core/term/gfxterm.c: Likewise.
3797
546fbe9b
VS
37982012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3799
3800 Add variable parsing in $"..." and fix several mismatches with bash.
3801
3802 * Makefile.util.def (grub_script_gettext): New test.
3803 * grub-core/script/execute.c (parse_string): New function.
3804 (gettext_append): Likewise.
3805 (grub_script_arglist_to_argv): Use gettext_append.
3806 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
3807 * tests/grub_script_gettext.in: New file.
3808
9fdb2d7b
VS
38092012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3810
3811 Fix handling of leading spaces in scripts.
3812
3813 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
3814 spaces.
3815 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
3816 other than skipping \r. All users updated.
3817 * tests/grub_script_echo1.in: Add space-related tests.
3818 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
3819
1a1ac4f6
VS
38202012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
3821
3822 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
3823
b63d89b6
VS
38242012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * configure.ac: Bump up the version to beta2.
3827
17f38c0f
VS
38282012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3829
3830 Fix gettext reload bugs (e.g. inability to disable gettext
3831 once enabled).
3832
3833 * grub-core/gettext/gettext.c: Encapsulate all static variables in
3834 main_context and secondary_context. All functions updated.
3835 (grub_gettext_translate): Rename to ...
3836 (grub_gettext_translate_real): ... this. Return NULL on failed
3837 translate.
3838 (grub_gettext_translate): Handle secondary context.
3839 (grub_gettext_delete_list): Close file and zero-out the context.
3840 (grub_mofile_open): Don't call grub_gettext_delete_list.
3841 Don't close file.
3842 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
3843 if locale="" to avoid pointless error message.
3844 (grub_gettext_env_write_lang): Update lang even if load fails.
3845 Handle secondary context.
3846 (grub_gettext_reread_prefix): New function.
3847 (read_main): Likewise.
3848 (read_secondary): Likewise.
3849 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
3850 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
3851 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
3852 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
3853
8e56f870
VS
38542012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3855
3856 * configure.ac: Decrease warning level to avoid spurious warnings and
3857 to be able to compile with GCC 4.2.
3858 * Makefile.util.def: Remove -Wno-error=logical-op.
3859
82f6d455
WB
38602012-03-10 William Bittner <william.bittner@gmail.com>
3861
3862 * util/import_unicode.py: Add missing brackets around string for
3863 python 3 support.
3864
1ecd61a4
VS
38652012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 Fix efi chainloader on network root.
3868
3869 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
3870 network devices.
3871 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
3872 New function.
3873
14361ee8
VS
38742012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
3877 unused show_text member.
3878 * docs/grub.texi: Document "text" property.
3879
922aabf3
VS
38802012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3881
3882 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
3883 in dprintf.
3884
ec316771
VS
38852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3886
3887 Fix IMSM handling on Fedora.
3888
3889 * util/getroot.c (grub_util_is_imsm): New function.
3890 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
3891
0f021838
VS
38922012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3893
3894 * Makefile.am: Strip gold section.
3895 * conf/Makefile.common: Likewise.
3896 * gentpl.py: Likewise.
3897 * grub-core/Makefile.core.def: Likewise.
3898 * grub-core/genmod.sh.in: Likewise.
3899
1039c8eb
VS
39002012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3901
3902 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
3903 * util/grub.d/20_linux_xen.in: Likewise.
3904 Based on Debian patch.
3905
6dd412cd
VS
39062012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * util/grub.d/10_linux.in: Fix syntax error resulting in
3909 Richard Laager's patch.
3910 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
3911
3fd8bae5
VS
39122012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
3915 dependencies.
3916
7eea1671
RL
39172012-03-10 Richard Laager <rlaager@wiktel.com>
3918
3919 * util/grub.d/10_linux.in: Fix ZFS root passing.
3920
e8e0566b
VS
39212012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
3924 * grub-core/commands/xnu_uuid.c: Likewise.
3925 * grub-core/loader/efi/appleloader.c: Likewise.
3926 * grub-core/script/execute.c: Likewise.
3927 * grub-core/script/main.c: Likewise.
3928 * util/grub-mkfont.c: Likewise.
3929
1acc5b1f
VS
39302012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 * util/grub-mkfont.c (options): Use more appropriate "select" that
3933 "set" for face index.
3934
35d70620
VS
39352012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * util/grub-editenv.c (options): Gettextize command summaries.
3938
c9eb96b5
VS
39392012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3940
3941 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
3942 "out of memory" error messagge.
3943
1f493136
VS
39442012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3945
3946 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
3947 of diskfilter for diskfilter on diskfilter support.
3948
6d790129
VS
39492012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
3952
005f46c9
VS
39532012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3954
3955 * util/grub-install.in: Check for themes/starfield/theme.txt and not
3956 themes/starfield.
3957
c8f778a0
VS
39582012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
3961
de1e64eb
VS
39622012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
3965
c6d54211
VS
39662012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
3969 of error message.
3970
dd390777
VS
39712012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
3974
5fd1c522
VS
39752012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
3978 message.
c6d54211 3979 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 3980
fae01f6c
VS
39812012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
3984 Gettextize.
3985 * util/grub-mount.c (options): Likewise.
3986
292fdaff
VS
39872012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3988
3989 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
3990 gettextize.
3991 * grub-core/commands/search_wrap.c (options): Likewise.
3992
ecdbae77
VS
39932012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3994
3995 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
3996
52bfedfa
VS
39972012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
3998
3999 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4000 size calculation.
4001 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4002 none is known.
4003
55b20e58
VS
40042012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4005
4006 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4007 "temporary" since it's used in identifier and is limited in space.
4008
fda9d101
VS
40092012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4010
4011 * po/POTFILES.in: Regenerate. Include *.h since they contain
4012 translatable strings as well.
4013
6a0295e2
VS
40142012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4017 byte-swap on big-endian.
4018 Reported by: Lennart Sorensen
4019
807fb77c
VS
40202012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4021
4022 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4023 (allocate_pages): Improve dprintf.
4024 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4025 code32_start. Fill code32_start and kernel_alignment in params.
4026 (grub_cmd_initrd): Use prot_init_space.
4027
61ac50ba
VS
40282012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4029
4030 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4031
abdd26dd
VS
40322012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4033
4034 * util/grub-install.in: Add missing dot at the end of sentence.
4035
6e69da9c
VS
40362012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4037
4038 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4039 * grub-core/commands/videotest.c: Likewise.
4040 * grub-core/loader/i386/linux.c: Likewise.
4041
4a929343
VS
40422012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4045 sentence.
4046 Reported by: Milo Casagrande.
4047
bb51c6c6
VS
40482012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4049
4050 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4051 * grub-core/commands/gptsync.c: Likewise.
4052 * grub-core/commands/hashsum.c: Likewise.
4053 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4054 * grub-core/commands/legacycfg.c: Likewise.
4055 * grub-core/io/gzio.c: Likewise.
4056 * grub-core/net/net.c: Likewise.
4057 * grub-core/term/gfxterm.c: Likewise.
4058 * grub-core/term/terminfo.c: Likewise.
4059 * grub-core/tests/test_blockarg.c: Likewise.
4060 * grub-core/video/video.c: Likewise.
4061 * util/grub-install.in: Likewise.
4062 * util/grub-mkfont.c: Likewise.
4063
b2b149cb
VS
40642012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4065
4066 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4067
c7c080ad
VS
40682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4069
4070 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 4071 Reported by: David Prévot.
c7c080ad 4072
f2e243c0
VS
40732012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4074
4075 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4076 description.
4077
09963c76
VS
40782012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * util/grub-script-check.c (main): Fix a syntax error message which was
4081 unclear.
4082
a50514a8
VS
40832012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4086
4650daec
VS
40872012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4090 messages.
4091
40922012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
4093
4094 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4095 without argument.
4096 * util/grub-mount.c (options): Likewise.
4097
bbc5a342
VS
40982012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4099
4100 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4101
ef292a87
VS
41022012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4103
4104 * grub-core/net/http.c: Add TRANSLATORS comments.
4105 * grub-core/normal/cmdline.c: Likewise.
4106 * grub-core/normal/misc.c: Likewise.
4107 * grub-core/partmap/msdos.c: Likewise.
4108 * grub-core/parttool/msdospart.c: Likewise.
4109 * grub-core/script/execute.c: Likewise.
4110 * grub-core/script/main.c: Likewise.
4111 * grub-core/term/terminfo.c: Likewise.
4112 * grub-core/video/bitmap.c: Likewise.
4113 * util/grub-install.in: Likewise.
4114 * util/grub-mkimage.c: Likewise.
4115 * util/grub-mklayout.c: Likewise.
4116 * util/grub-setup.c: Likewise.
4117
0fc19bd0
VS
41182012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4121 with similar messages in grub-fstest.
4122
d95862ef
VS
41232012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4124
4125 * util/grub-install.in: Unify "option requires an argument" message
4126 with similar messages in other files.
4127 * util/grub-mkconfig.in: Likewise.
4128
b7308f90
VS
41292012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4130
4131 * util/grub-set-default.in: Replace printf with gettext_printf (the
4132 string in in question is already translated from grub-reboot)
4133
559dc587
VS
41342012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4135
4136 * configure.ac: Bump up the version to beta1.
4137
1a11761f
VS
41382012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4139
4140 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4141 case when min_align = 0.
4142
24539abd
VS
41432012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4144
4145 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4146 and fix a case when line_start overflows.
4147
32bd735b
VS
41482012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4149
4150 * util/grub-reboot.in (usage): Mention id posibility.
4151 * util/grub-set-default.in (usage): Likewise.
4152
1a2fd1e6
VS
41532012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4156 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4157 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4158 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4159 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4160 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4161 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4162
90eeab76
VS
41632012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 * grub-core/commands/menuentry.c (options): Remove
4166 GRUB_ARG_OPTION_REPEATABLE.
4167 Reported by: Andreas Vogel
4168
5ad1be82
AV
41692012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4170
4171 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4172
cb055286
HE
41732012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4174
4175 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4176 error.
4177
93b1cd79
VS
41782012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4179
4180 Use sort -V by the idea of Georgi Georgiev.
4181
4182 * util/grub-mkconfig_lib.in (version_sort): New function.
4183 (version_test_numeric): Use version_sort.
4184
0cdc126c
VS
41852012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4186
4187 Use submenus in grub-mkconfig.
4188
4189 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4190 * util/grub-mkconfig_lib.in (grub_quote): New function.
4191 (gettext_printf): Use gettext and not gettext_quoted to fix several
4192 messages.
4193 * util/grub.d/10_hurd.in: Use submenus.
4194 * util/grub.d/10_kfreebsd.in: Likewise.
4195 * util/grub.d/10_linux.in: Likewise.
4196 * util/grub.d/10_netbsd.in: Likewise.
4197 * util/grub.d/20_linux_xen.in: Likewise.
4198 * util/grub.d/30_os-prober.in: Likewise.
4199 * util/grub.d/10_illumos.in: Add missing quoting.
4200 * util/grub.d/10_windows.in: Likewise.
4201
d9bef9bc
VS
42022012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 Fix menu title instability bug.
4205
4206 * grub-core/commands/menuentry.c (options): New option --id.
4207 (grub_normal_add_menu_entry): New argument id. All users updated.
4208 (grub_cmd_menuentry): Handle --id.
4209 (grub_menu_init): Accept unknown arguments.
4210 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4211 feature_menuentry_options.
4212 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4213 saved_entry.
4214 (get_entry_number): Match with id as well.
4215 * include/grub/menu.h (grub_menu_entry): New member id.
4216 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4217 * util/grub.d/00_header.in: Define menuentry_id_option.
4218 * util/grub.d/10_hurd.in: Define id.
4219 * util/grub.d/10_illumos.in: Likewise.
4220 * util/grub.d/10_kfreebsd.in: Likewise.
4221 * util/grub.d/10_linux.in: Likewise.
4222 * util/grub.d/10_netbsd.in: Likewise.
4223 * util/grub.d/10_windows.in: Likewise.
4224 * util/grub.d/20_linux_xen.in: Likewise.
4225 * util/grub.d/30_os-prober.in: Likewise.
4226
42272012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
4228
4229 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4230 "scope" with "body".
4231
7c8d0ce7
VS
42322012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4235 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4236 prot_size and prot_file_size.
4237
49de079b
VS
42382012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4241 All users updated. If easily=1 require raid-5/-6 to be full.
4242 (is_node_readable): Likewise.
4243 (scan_devices): Scan incomplete but readable LVs at the end.
4244 (grub_diskfilter_memberlist): Pull missing devices.
4245 (insert_array): Skip scanning until device is complete or scan is
4246 done otherwise.
4247 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4248 check.
4249 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4250 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4251
aff05d45
MG
42522012-03-03 Matthew Garrett <mjg@redhat.com>
42532012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4254
4255 Avoid EFI boot services when loading Linux.
4256
4257 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4258 avoid_efi_bootservices. All users updated.
4259 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4260 argument avoid_efi_bootservices. All users updated.
4261 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4262 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4263 align, min_align, relocatable, prefered_address. All users updated.
4264 Allocate avoiding boot services if kernel is relocatable.
4265 (grub_cmd_linux): Check if kernel is relocatable.
4266 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4267 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4268 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4269 avoid_efi_boot_services.
4270 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4271 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4272 (linux_kernel_params): Likewise.
4273
3935dde2
MG
42742012-03-03 Matthew Garrett <mjg@redhat.com>
42752012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 Use EDID on EFI.
4278
4279 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4280 datasize_out.
4281 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4282 modes. Set gop_handle.
4283 (grub_video_gop_get_edid): New function.
4284 (grub_gop_get_preferred_mode): Likewise.
4285 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4286 (grub_video_efi_gop_adapter): Set .get_edid.
4287 * include/grub/efi/edid.h: New file.
4288 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4289
32107ec0
VS
42902012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4291
4292 * util/grub-install.in: Load efivars unconditionally.
4293
e70a2c50
VS
42942012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * po/Rules-piglatin: Change suffix from .po-update-en to
4297 .po-update-en-piglatin.
4298
8f9cace1
VS
42992012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4300
4301 Add a pig farm.
4302
4303 * po/piglatin.sed: New file.
4304 * po/en@piglatin.header: Likewise.
4305 * po/Rules-piglatin: Likewise.
4306 * po/README: Add en@piglatin to autogenerated languages.
4307
8f95d002
VS
43082012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4309
4310 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4311 "Command for ...".
4312 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4313 "Check" since we don't check anything.
4314 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4315 is 64-bit one.
4316 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4317 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4318 (grub_md_sha512_real): Likewise.
4319
805a8dcc
VS
43202012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 * grub-core/commands/gptsync.c: Fix typographic quoting.
4323 * grub-core/commands/ieee1275/suspend.c: Likewise.
4324 * grub-core/commands/parttool.c: Likewise.
4325 * grub-core/commands/search_wrap.c: Likewise.
4326 * grub-core/commands/videoinfo.c: Likewise.
4327 * grub-core/gfxmenu/gui_label.c: Likewise.
4328 * grub-core/hello/hello.c: Likewise.
4329 * grub-core/kern/emu/main.c: Likewise.
4330 * grub-core/net/net.c: Likewise.
4331 * grub-core/normal/menu.c: Likewise.
4332 * grub-core/normal/menu_text.c: Likewise.
4333 * grub-core/normal/misc.c: Likewise.
4334 * util/grub-editenv.c: Likewise.
4335 * util/grub-install.in: Likewise.
4336 * util/grub-kbdcomp.in: Likewise.
4337 * util/grub-mkconfig.in: Likewise.
4338 * util/grub-mknetdir.in: Likewise.
4339 * util/grub-mkrescue.in: Likewise.
4340 * util/grub-mkstandalone.in: Likewise.
4341 * util/grub-reboot.in: Likewise.
4342 * util/grub-set-default.in: Likewise.
4343 * util/grub-setup.c: Likewise.
4344 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4345
40211ab8
VS
43462012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4347
4348 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4349 * grub-core/commands/keystatus.c: Likewise.
4350 * grub-core/commands/loadenv.c: Likewise.
4351 * grub-core/commands/probe.c: Likewise.
4352 * grub-core/commands/regexp.c: Likewise.
4353 * grub-core/commands/true.c: Likewise.
4354 * grub-core/commands/videoinfo.c: Likewise.
4355 * grub-core/disk/cryptodisk.c: Likewise.
4356 * grub-core/disk/ldm.c: Likewise.
4357 * grub-core/disk/loopback.c: Likewise.
4358 * grub-core/disk/luks.c: Likewise.
4359 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4360 * grub-core/kern/disk.c: Likewise.
4361 * grub-core/kern/emu/hostdisk.c: Likewise.
4362
0c7d99c7
VS
43632012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4366 * util/grub-install.in: Add missing quote in the comment.
4367
e7d2559b
VS
43682012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4371 * grub-core/commands/lsmmap.c: Likewise.
4372 * grub-core/commands/minicmd.c: Likewise.
4373 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4374 * grub-core/commands/regexp.c: Likewise.
4375 * grub-core/gdb/gdb.c: Likewise.
4376 * grub-core/term/gfxterm.c: Likewise.
4377 * util/grub-mkconfig.in: Likewise.
4378 * util/grub-mkfont.c: Likewise.
4379 * util/grub-mklayout.c: Likewise.
4380 * util/grub-mknetdir.in: Likewise.
4381 * util/grub-mkrescue.in: Likewise.
4382 * util/grub.d/30_os-prober.in: Likewise.
4383
49ce9e50
VS
43842012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4385
4386 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4387 with "Direct color" and "Packed" with "Packed pixel".
4388 (grub_cmd_videoinfo): Simplify legend.
4389
e4b791fa
VS
43902012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4393 absolutely unclear error message.
4394
fd1265cb
VS
43952012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4396
4397 * util/grub-mkstandalone.in: Remove confusing leftover print.
4398
8822a8a0
VS
43992012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4402 comments.
4403 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4404 (GRUB_MOD_INIT): Likewise.
4405 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4406 VGA mode.
4407 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4408 comments.
4409 * util/grub-install.in (usage): Likewise.
4410 Spell ID in whole letters.
4411 Add missing ending dot.
4412 Quote variables.
4413 * util/grub-reboot.in: Fix capitalisation.
4414 * util/grub-set-default.in: Likewise.
4415
937fd0cc
VS
44162012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4419 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4420 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4421 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4422 Disable -Werror for -Wdeprecated-declarations.
4423 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4424 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4425 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4426 (grub_util_get_grub_dev): Make luks handling dependent on
4427 HAVE_DEVICE_MAPPER and not __linux__.
4428 (get_win32_path): Fix format security.
4429 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4430 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4431 Don't try grub_find_zpool_from_dir.
4432 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4433 #ifdef-out paresdir.
4434
1bab1ae3
VS
44352012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4436
4437 * util/grub-pe2elf.c (usage): Add missing noreturn.
4438 (write_section_data): Rename name to shname to avoid shadowing.
4439 (write_symbol_table): Rename name to symname to avoid shadowing.
4440 Fix write_reloc_section call.
4441
ef023e42
VS
44422012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4443
4444 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4445 to ensure that it's after the last byte of .text.
4446
48afcb75
VS
44472012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4448
4449 * util/ieee1275/ofpath.c (my_isdigit): New function.
4450 (trailing_digits): Use my_isdigit.
4451 (strip_trailing_digits): Likewise.
4452
88d51eff
VS
44532012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4456 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4457
17edc2ba
VS
44582012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * grub-core/kern/i386/pc/startup.S: Define __start.
4461
ad5518d7
VS
44622012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4465 strip already transforms he format.
4466
9e95e1bf
VS
44672012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4470
9cc3ee5c
VS
44712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * util/grub-install.in: Add missing gettext init.
4474 * util/grub-kbdcomp.in: Likewise.
4475 * util/grub-mkconfig.in: Likewise.
4476 * util/grub-mknetdir.in: Likewise.
4477 * util/grub-mkrescue.in: Likewise.
4478 * util/grub-mkstandalone.in: Likewise.
4479 * util/grub-reboot.in: Likewise.
4480 * util/grub-set-default.in: Likewise.
4481 * util/grub.d/00_header.in: Likewise.
4482 * util/grub.d/10_hurd.in: Likewise.
4483 * util/grub.d/10_windows.in: Likewise.
4484 * util/grub.d/30_os-prober.in: Likewise.
4485 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4486
49e08a06
VS
44872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * po/Rules-swiss: Fix header comment.
4490
3809cb41
AV
44912012-02-29 Andreas Vogel <anvoit>
4492
4493 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4494 resulted in leak of arguments.
4495
fa6ec573
VS
44962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4497
4498 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4499 reed_solomon_size const definition instead of computing it since
4500 Apple assembler doesn't support the later.
4501
22899b9c
VS
45022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4503
4504 * gentpl.py (kernel): Rewrite Apple part.
4505
a132afc3
VS
45062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4507
4508 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4509
9d742bd4
VS
45102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4513 ELF section gap.
4514 (load_image): Likewise.
4515
f04a9a21
VS
45162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4517
4518 * configure.ac: Fix a typo in previous commit.
4519
46cf439c
VS
45202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Don't add -Wl,-N on Apple platform.
4523
4524 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4525 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4526
c4c48c54
VS
45272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 * grub-core/Makefile.core.def (lzma_decompress): Use
4530 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4531
31a12124
VS
45322012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4533
4534 * grub-core/genmod.sh.in: Rewrite the Apple part.
4535
4f3aa1af
VS
45362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4537
4538 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4539 comparison.
4540
7bd8b0c7
VS
45412012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4542
4543 * acinclude.m4 (grub_CHECK_PIC): New test.
4544 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4545
97304d7c
VS
45462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4549 to avoid the warning.
4550
fb883812
VS
45512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4552
4553 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4554 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4555 after. All users updated.
4556
a121c964
VS
45572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 Use the common size routine in hostfs so we can read disks as well.
4560
4561 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4562 (grub_util_get_fd_size): ... this. Return size in bytes.
4563 All users updated.
4564 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4565 grub_util_get_fd_size.
4566
c66d6410
VS
45672012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4568
4569 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4570 Add blocksize retrieval.
4571
dfc8aeb0
VS
45722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4573
4574 * configure.ac: Restore CFLAGS after efiemu check.
4575
403e25a5
VS
45762012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4577
4578 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4579 Apple bug.
4580
382775d1
VS
45812012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4582
4583 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4584
6fd4e6e4
VS
45852012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4586
4587 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4588 (grub_cmd_halt): Likewise.
4589
bea359d6
VS
45902012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4591
4592 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4593 for local arithmetics.
4594 Break %sp init into 2 instructions.
4595 Add 0 byte at the end.
4596
32eb6ee1
VS
45972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4600 before loops.
4601
e8377389
VS
46022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4605 for context.
4606
8cb17de7
VS
46072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 * grub-core/disk/ldm.c (make_vg): Init part.name.
4610 (grub_ldm_detect): Silence spurious warning.
4611 (grub_util_is_ldm): Likewise.
4612
595717e6
VS
46132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4616 sane value to avoid a spurious warning.
4617
c4b7e588
VS
46182012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4619
4620 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4621 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4622
59824957
VS
46232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4624
4625 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4626 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4627
70115b99
VS
46282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4631 hardcoding the relevant info.
4632
56733740
VS
46332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4636 missing const qualifiers.
4637 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4638
43481481
VS
46392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4640
4641 * util/getroot.c [__APPLE__]: Add missing includes.
4642 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4643
3cb38f01
VS
46442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4647
d9dbf11e
VS
46482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4649
4650 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4651 avoid conflicts.
4652
0c42a45d
VS
46532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4654
4655 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4656
46c34eb0
VS
46572012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4658
4659 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4660 and grub_file_close call.
4661
99ce1597
VS
46622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4663
4664 Add LZSS Mach-O support (needed for new xnu kernelcache).
4665
4666 * grub-core/Makefile.core.def (xnu): Add file lzss.c
4667 * grub-core/loader/lzss.c: New file.
4668 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
4669 on Mach-O open failure.
4670 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
4671 Don't free cmdsXX in uncompressedXX is set.
4672 (grub_macho_file): Init new fields.
4673 New argument is_64bit. All users updated.
4674 Handle compressed. Error out if no suitable architecture is found.
4675 Don't close file.
4676 (grub_macho_open): New argument is_64bit. All users updated.
4677 * grub-core/loader/macho32.c: Add defines for new fields.
4678 * grub-core/loader/macho64.c: Likewise.
4679 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
4680 (grub_macho_parse): Handle compressed.
4681 Defer actual processing if compressed.
4682 (grub_macho_cmds_iterate): Decompress if compressed. New argument
4683 "filename". All users updated.
4684 (grub_macho_size): New argument "filename". All users updated.
4685 (grub_macho_get_entry_point): Likewise.
4686 (grub_macho_load): Handle compressed.
4687 * include/grub/macho.h (grub_macho_lzss_header): New struct.
4688 (GRUB_MACHO_LZSS_OFFSET): New define.
4689 (grub_decompress_lzss): New proto.
4690 * include/grub/machoload.h (grub_macho_file): New fields to handle
4691 compressed.
4692 (grub_macho_contains_macho64): Remove proto.
4693 (grub_macho_contains_macho32): Likewise.
4694 * util/grub.d/30_os-prober.in: Use kernel cache if available.
4695
ebd17d6f
VS
46962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4697
4698 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
4699
2702b4e4
VS
47002012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4701
4702 Fix make dist.
4703
4704 * Makefile.am (starfield_theme_files): New var.
4705 (starfield_DATA): Use starfield_theme_files.
4706 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
4707 Add bootcheck-related files.
4708 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
4709 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
4710 and font_char_metrics.txt.
4711 * grub-core/Makefile.core.def (kernel): Update extra_dist.
4712 (setjmp): Add lib/ia64/longjmp.S.
4713 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
4714 * po/POTFILES.in: Regenerate.
4715 * po/Rules-swiss: use DISTFILES.common.extra2 and not
4716 DISTFILES.common.extra1.
4717 * util/devicemap.c: Removed.
4718 * grub-core/lib/i386/relocator_backward.S: Likewise.
4719 * util/import_gcry.py: Remove unused files. Add extra_dist for
4720 ChangeLog.
4721
cf1adfdf
VS
47222012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * grub-core/gettext/gettext.c (grub_mofile_open): Call
4725 grub_gettext_delete_list before changing grub_gettext_max to avoid
4726 running out of array bounds.
4727
47282012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
4729
4730 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
4731 grub_vga_text_init/grub_vga_text_fini.
4732
cf1adfdf 47332012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
4734
4735 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
4736
541d92e9
VS
47372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4738
4739 * configure.ac: Bump to 2.00~beta0.
4740
7931dddf
VS
47412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4742
4743 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
4744 missing initialisation.
4745
f1b16fa3
VS
47462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
4749
83ddae23
VS
47502012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 Support v2 xnu boot arguments.
4753
4754 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
4755 New argument fsbfreq_out.
4756 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
4757 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
4758 be used.
4759 * grub-core/loader/machoXX.c (grub_macho_load): New argument
4760 darwin_version.
4761 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
4762 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
4763 (grub_xnu_boot_params): Rename to ...
4764 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
4765 (grub_xnu_boot_params_v2): New struct.
4766
dc693fe6
VS
47672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4768
4769 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
4770 zeroing of CRC field before computing CRC.
4771
5a6e39c2
VS
47722012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4773
4774 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
4775 Change order of allocations to decrease fragmentation.
4776
6c21f5d7
VS
47772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4778
4779 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
4780
cfe456dc
CW
47812012-02-27 Colin Watson <cjwatson@ubuntu.com>
4782
4783 Use write-combining MTRR to speed up video with buggy BIOSes.
4784
4785 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
4786 (cpuid): New define.
4787 (rdmsr): Likewise.
4788 (wrmsr): Likewise.
4789 (mtrr_base): Likewise.
4790 (mtrr_mask): Likewise.
4791 (grub_vbe_enable_mtrr_entry): New function.
4792 (grub_vbe_enable_mtrr): Likewise.
4793 (grub_vbe_disable_mtrr): Likewise.
4794 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
4795 control off to BIOS.
4796 (grub_video_vbe_init): Fill mtrr.
4797 (grub_video_vbe_fini): Disable mtrr.
4798 (grub_video_vbe_get_info_and_fini): Likewise.
4799 (grub_video_vbe_setup): Enable mtrr.
4800
e3c78337
CW
48012012-02-27 Colin Watson <cjwatson@ubuntu.com>
4802
4803 * include/grub/partition.h (grub_partition_map): Change prototype of
4804 embed to take a maximum value for nsectors.
4805 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
4806 * include/grub/fs.h (grub_fs): Likewise.
4807 * grub-core/partmap/msdos.c (embed_signatures): New array.
4808 (pc_partition_map_embed): Check for and avoid sectors matching any
4809 of the signatures in embed_signatures, up to max_nsectors.
4810 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
4811 returned sector map to max_nsectors.
4812 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
4813 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
4814 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
4815 * util/grub-setup.c (setup): Allow for the embedding area being
4816 split into multiple blocklists. Tell dest_partmap->embed the
4817 maximum number of sectors we care about.
4818
48192012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4820
4821 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
4822 Specify blocklist_install and reserver_first_sector for all fs.
4823 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
4824 blocklists.
4825
984b973f
VS
48262012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4827
4828 * util/grub-install.in: Clarify strings.
4829 Fix source dir check.
4830
f122e0d6
RL
48312012-02-27 Richard Laager <rlaager@wiktel.com>
4832
4833 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
4834 "zfs" and "fuse.zfs" as synonyms.
4835
071114bb
VS
48362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4837
4838 * configure.ac: Put platform and target_cpu substitutions back since
4839 they are used for directories.
4840
817e6abc
RL
48412012-02-27 Richard Laager <rlaager@wiktel.com>
48422012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4843
4844 * util/grub.d/10_linux.in: Add ZFS-related arguments.
4845 * util/grub.d/20_linux_xen.in: Likewise.
4846
897b7419
RL
48472012-02-27 Richard Laager <rlaager@wiktel.com>
4848
4849 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
4850 with full paths.
4851
a414bd15
RL
48522012-02-27 Richard Laager <rlaager@wiktel.com>
4853
4854 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
4855 unescape.
4856
30ac48c4
VS
48572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 Don't use insecure popen in getroot.
4860
4861 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
4862 (exec_pipe): ... here.
4863 (find_root_devices_from_poolname): Use exec_pipe.
4864
53f13848
VS
48652012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4866
4867 Remove platform and target_cpu replacement.
4868
4869 * configure.ac: Remove platform and target_cpu substitutions.
4870 * tests/util/grub-shell.in: Use modinfo.
4871 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
4872 explicitly.
4873
90cb2803
VS
48742012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4875
4876 Autodetect platform in grub-install but allow override.
4877
4878 * util/grub-install.in: Autodetect platform. Support --target and
4879 --directory. Read platform from modinfo.sh.
4880
b9136427
VS
48812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4882
4883 Support btrfs multi-volume probe.
4884
4885 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
4886 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
4887 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
4888 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
4889 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
4890 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
4891 grub_find_root_devices_from_btrfs if on btrfs.
4892
c36e5cd1
VS
48932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4894
4895 Remove any awareness of *.c util files about target.
4896
4897 * Makefile.util.def (grub-setup): Split to ...
4898 (grub-bios-setup): ... and this.
4899 (grub-sparc64-setup): ... and this.
4900 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
4901 * docs/man/grub-setup.h2m: Split into ...
4902 * docs/man/grub-sparc64-setup.h2m: ... this.
4903 * docs/man/grub-bios-setup.h2m: ... and this.
4904 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
4905 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
4906 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
4907 (grub_target_addr_t): Remove.
4908 (grub_target_size_t): Remove.
4909 (grub_target_ssize_t): Remove.
4910 * util/grub-install.in: Use new grub-*-setup.
4911 * util/grub-mkimagexx.c (Elf_Word): New define.
4912 (Elf_Half): Likewise.
4913 (Elf_Section): Likewise.
4914 (ELF_ST_TYPE): Likewise.
4915 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
4916 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
4917
584b2f8a
VS
49182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 Replace grub_target_addr with more appropriate types.
4921
4922 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
4923 grub_target_addr with grub_addr.
4924 * grub-core/commands/iorw.c (grub_cmd_read): Replace
4925 grub_target_addr with grub_port.
4926 (grub_cmd_write): Likewise.
4927 * grub-core/commands/memrw.c (grub_cmd_read): Replace
4928 grub_target_addr with grub_addr.
4929 (grub_cmd_write): Likewise.
4930 * grub-core/video/efi_uga.c (find_line_len): Likewise.
4931
5a0dc6fb
VS
49322012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
4935 const qualifier for vendor_guid.
4936
786aff6e
VS
49372012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4938
4939 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
4940 const qualifier.
4941 (efiemu_memequal): Likewise.
4942 (find_variable): Likewise.
4943
49017b17
VS
49442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 Fix missing console prototype on qemu-mips.
4947
4948 * include/grub/mips/qemu_mips/console.h: New file.
4949
c5988629
MG
49502012-02-27 Matthew Garrett <mjg@redhat.com>
49512012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
4954 * include/grub/efi/efi.h: Likewise.
4955 * include/grub/efi/api.h: Add guid for EFI-specified variables.
4956 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
4957 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
4958 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
4959 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
4960 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
4961
e33f8d69
MG
49622012-02-27 Matthew Garrett <mjg@redhat.com>
4963
4964 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
4965
fb312cd9
VS
49662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
4969 error.
4970
7134247c
VS
49712012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4972
4973 * configure.ac: Remove inappropriate use of program_transform_name
4974 on grubdir and bootdir but allow explicit specification of those
4975 variables.
4976
6a313124
VS
49772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * util/grub-mknetdir.in (grub_prefix): Removed.
4980 (subdir): Use @bootdirname@ and @grubdirname@.
4981
2311c5ca
VS
49822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4983
4984 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
4985
7d5d60f7
VS
49862012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * po/POTFILES.in: Regenerated.
4989
8151bc82
VS
49902012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4991
4992 Remove improper use of program_transform_name on pkglibrootdir.
4993
4994 * configure.ac (pkglibrootdir): Removed.
4995 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
4996 * util/grub-mkimage.c: Likewise.
4997
b4a6a533
VS
49982012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4999
5000 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5001 warning.
5002
668f304f
VS
50032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5004
5005 * util/grub-install.in: Use file identifier if no UUID is available
5006 or user explicitly prompted for it.
5007
665f2341
NP
50082012-02-27 Navdeep Parhar <nparhar@gmail.com>
5009
5010 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5011 (freebsd_get_zfs): New function.
5012 (grub_freebsd_boot): Pass zfs UUID.
5013 (grub_cmd_freebsd): Set zfs UUID.
5014
8151bc82 50152012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
5016
5017 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5018 pkglibrootdir.
5019
e4c498a1
MG
50202012-02-27 Mike Gilbert <floppym@gentoo.org>
5021
5022 Add configure flag to control libzfs integration.
5023
5024 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5025
1e9a9a3f
VS
50262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5029 device.
5030 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5031 small devices.
5032
036985b8
VS
50332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5034
5035 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5036 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5037 be used on non-modules.
5038
5039 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5040 Rename to grub_boot_init.
5041 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5042 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5043 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5044 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5045 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5046 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5047 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5048 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5049 includes.
5050 (grub_machine_init): Remove empty inits.
5051 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5052 includes.
5053 (grub_machine_init): Remove empty inits.
5054 * grub-core/term/arc/console.c: Remove explicit proto.
5055 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5056 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5057 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5058 grub_at_keyboard_fini.
5059 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5060 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5061 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5062 grub_gfxterm_fini.
5063 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5064 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5065 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5066 grub_vgatext_fini.
5067 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5068 * grub-core/term/serial.c (GRUB_MOD_INIT)
5069 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5070 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5071 grub_serial_fini.
5072 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5073 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5074 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5075 grub_terminfo_fini.
5076 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5077 (GRUB_MOD_FINI): Likewise.
5078 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5079 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5080 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5081 grub_video_radeon_fuloong2e_fini.
5082 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5083 [LOONGSON]: Rename to grub_video_sis315pro_init.
5084 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5085 grub_video_sis315pro_fini.
5086 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5087 [LOONGSON]: Rename to grub_video_sm712_init.
5088 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5089 grub_video_sm712_fini.
5090 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5091 (grub_at_keyboard_fini): Likewise.
5092 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5093 Don't declare grub_{modname}_init.
5094 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5095 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5096 New proto.
5097 (grub_keylayouts_fini) [!EMU]: Likewise.
5098 * include/grub/serial.h (grub_serial_init) [!EMU]:
5099 New proto.
5100 (grub_serial_fini) [!EMU]: Likewise.
5101 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5102 New proto.
5103 (grub_terminfo_fini) [!EMU]: Likewise.
5104 * include/grub/video.h (grub_font_init) [!EMU]:
5105 New proto.
5106 (grub_font_fini) [!EMU]: Likewise.
5107 (grub_gfxterm_init) [!EMU]: Likewise.
5108 (grub_gfxterm_fini) [!EMU]: Likewise.
5109 (grub_video_sm712_init) [!EMU]: Likewise.
5110 (grub_video_sm712_fini) [!EMU]: Likewise.
5111 (grub_video_sis315pro_init) [!EMU]: Likewise.
5112 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5113 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5114 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5115
d5534665
VS
51162012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5117
5118 Make nand a prefix for nand devices.
5119
5120 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5121
10133b5f
VS
51222012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5123
5124 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5125 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5126
8e307a62
VS
51272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5128
5129 * include/grub/env.h (grub_env_find): Remove prototype.
5130 * grub-core/kern/env.c (grub_env_find): Make static.
5131 (grub_env_set): Remove useless set.
5132
a4c65f34
VS
51332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5134
5135 * grub-core/kern/i386/realmode.S: Remove useless align.
5136
d87893d5
VS
51372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5138
5139 * include/grub/dl.h (grub_dl_load_file): Don't export.
5140
50159add
VS
51412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5144 grub_dprintf.
5145
b2582b84
VS
51462012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5147
5148 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5149 grub_errors.
5150 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5151 not reloading whole superblock but only the part which is really needed.
5152 Remove useless grub_errors.
5153 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5154 grub_errors.
5155
e2a83395
VS
51562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5157
5158 Don't export grub_get_rtc.
5159
5160 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5161 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5162
e7d2a906
VS
51632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5166
6cf1363b
VS
51672012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5168
5169 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 5170 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 5171
eece3349
VS
51722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5173
5174 Remove prio_list.
5175
5176 * include/grub/list.h (grub_prio_list): Removed.
5177 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5178 GRUB_COMMAND_PRIO_MASK.
5179 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5180 GRUB_COMMAND_FLAG_ACTIVE.
5181 (grub_prio_list_insert): Removed.
5182 (grub_prio_list_remove): Likewise.
5183 (GRUB_AS_PRIO_LIST): Likewise.
5184 (GRUB_AS_PRIO_LIST_P): Likewise.
5185 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5186 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5187 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5188 * grub-core/kern/command.c (grub_register_command_prio): Inline
5189 the prio_list code.
5190 (grub_unregister_command): Likewise.
5191
94f064b4
VS
51922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5193
5194 Fix interrupt mixup from previous commit.
5195
5196 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5197 (grub_realidt): New var.
5198 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5199 Load idt.
5200 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5201 New declaration.
5202 (grub_relocator16_boot): Set grub_relocator16_idt.
5203 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5204 (LOCAL(realidt)): ... this.
5205 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5206 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5207 (grub_realidt): New variable.
5208
27317084
VS
52092012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5210
5211 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5212 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5213 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5214 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5215 Gettextize.
5216 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5217 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5218 * po/POTFILES.in: Regenerate.
5219
47b40053
VS
52202012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5221
5222 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5223 errors.
5224
2b343101
VS
52252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5226
5227 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5228 \0.
5229 (add_length): Likewise.
5230
ff27c3dd
LK
52312012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
52322012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5233
5234 GDB serial and backtrace support.
5235
5236 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5237 (prot_to_real): Likewise.
5238 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5239 * grub-core/Makefile.core.def (backtrace): New module.
5240 (gdb): Likewise.
5241 * grub-core/gdb/cstub.c: New file.
5242 * grub-core/gdb/gdb.c: Likewise.
5243 * grub-core/gdb/i386/idt.c: Likewise.
5244 * grub-core/gdb/i386/machdep.S: Likewise.
5245 * grub-core/gdb/i386/signal.c: Likewise.
5246 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 5247 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
5248 * include/grub/backtrace.h: Likewise.
5249 * include/grub/gdb.h: Likewise.
5250 * include/grub/i386/gdb.h: Likewise.
5251
52522012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
5253
5254 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5255 New function.
5256 (add_length): Likewise.
5257 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5258 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5259 proto.
5260 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5261 __argp_get_display_len.
5262
ff27c3dd 52632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
5264
5265 $"..." support in scripts.
5266
5267 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5268 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5269 * grub-core/script/yylex.l: Likewise.
5270 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5271 value.
5272
ff27c3dd 52732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
5274
5275 * gentpl.py: Remove obsolete pkglib_DATA handling.
5276
ff27c3dd 52772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
5278
5279 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5280 mailing list.
5281
5282 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5283 * util/grub-kbdcomp.in: Likewise.
5284 * util/grub-mkconfig.in: Likewise.
5285 * util/grub-mkconfig_lib.in: Likewise.
5286 * util/grub-mknetdir.in: Likewise.
5287 * util/grub-mkrescue.in: Likewise.
5288 * util/grub-mkstandalone.in: Likewise.
5289 * util/grub-reboot.in: Likewise.
5290 * util/grub-set-default.in: Likewise.
5291 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5292
ff27c3dd 52932012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
5294
5295 Remove GRUB_PREFIX.
5296
5297 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5298 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5299 used for backward compatibility.
5300
ff27c3dd 53012012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
5302
5303 Add new all_video module.
5304
5305 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5306 * grub-core/Makefile.core.def (all_video): New module.
5307 * grub-core/genmoddep.awk: Generate dependency of all_video from
5308 video.lst.
5309 * grub-core/lib/fake_module.c: New file.
5310 * grub-core/normal/main.c (features): Add feature_all_video_module.
5311 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5312 don't do explicit search again.
47454da5 5313 insmod all_video in load_video if available.
22c7ce85 5314
ff27c3dd 53152012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
5316
5317 Another round of string clarification and adding TRANSLATORS comments.
5318
ff27c3dd 53192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
5320
5321 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5322
ff27c3dd 53232012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
5324
5325 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5326 to grub_ssize_t.
5327 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5328 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5329
ff27c3dd 53302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
5331
5332 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5333 trailing newline implicitly. All users updated.
5334
ff27c3dd 53352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
5336
5337 Implement serial on IEEE1275 and EFI.
5338
5339 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5340 on emu. Mention arc and emu as the only platforms without serial
5341 support.
5342 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5343 ieee1275 platforms.
5344 * grub-core/term/efi/serial.c: New file.
5345 * grub-core/term/ieee1275/serial.c: Likewise.
5346 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5347 specification if no ns8250 driver is available.
5348 (grub_cmd_serial): Likewise.
5349 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5350 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5351 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5352 (grub_efi_parity_type_t): New type.
5353 (grub_efi_stop_bits_t): Likewise.
5354 (grub_efi_serial_io_interface): New struct.
5355 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5356 available for all interfaces.
5357 Add EFI and IEEE1275 fields.
5358 (grub_ofserial_init): New proto.
5359 (grub_efiserial_init): Likeiwse.
5360 * util/grub.d/00_header.in: Don't check for the presence of serial
5361 module.
5362
ff27c3dd 53632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
5364
5365 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5366 name as if it was an alias.
5367
114076ef
VS
53682012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * grub-core/commands/lsacpi.c (options): Fix typo.
5371
6a656b0e
VS
53722012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 Convert grub-emu to argp.
5375
5376 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5377 emu.
5378 * util/argp_common.c: Rename to ...
5379 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5380 Add missing includes.
5381 * grub-core/kern/emu/main.c: Convert to argp.
5382 * po/POTFILES.in: Regenerate.
5383 * util/grub-install.in (usage): Make first letter lowcase in messages
5384 for uniformity.
5385 * util/grub-setup.c (options): Likewise.
5386
1e3f8ae8
VS
53872012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5388
5389 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5390 Put back accidently commented-out code.
5391
ed167a80
VS
53922012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5393
5394 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5395 loop check using Brent algorithm.
5396 (grub_hfsplus_btree_search): Likewise.
5397
6753c0ec
VS
53982012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 * util/grub-install.in: Fix usage of wrong device for PreP install.
5401
4e27343f
VS
54022012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 * conf/Makefile.common (CFLAGS_GNULIB): Add
5405 -Wno-unsafe-loop-optimizations.
5406 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5407 on tools.
5408 * grub-core/commands/legacycfg.c: Add pragma to skip
5409 -Wunsafe-loop-optimizations.
5410 (check_password_md5_real): Fix loop counter type.
5411 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5412 reading.
5413 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5414 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5415 loop condition.
5416 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5417 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5418 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5419 condition.
5420 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5421 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5422 avoid possible infinite loops.
5423 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5424 and -Wunsafe-loop-optimizations.
5425 * grub-core/script/yylex.l: Likewise.
5426 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5427 (print_glyphs): Avoid infinite loops.
5428 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5429
697f18b0
GS
54302012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5431
5432 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5433 to avoid infinite loop.
5434 (disp_acpi_rsdt_table): Likewise.
5435
274416e8
VS
54362012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5437
5438 * grub-core/font/font.c (grub_font_load): Add support for default
5439 path for fonts ($prefix/fonts).
5440 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5441 for checking if string is a path.
5442 * grub-core/normal/main.c (features): Add feature_default_font_path.
5443 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5444 * util/grub.d/00_header.in: Use default directory if possible.
5445 * util/grub-install.in: Install unicode.pf2.
5446
b3e08622
VS
54472012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5448
5449 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5450 * po/Rules-swiss: New file.
5451 * po/swiss.sed: Likewise.
5452
fe42ce09
VS
54532012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5454
5455 * grub-core/fs/btrfs.c (find_device): Fix typos.
5456 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5457 * util/grub-mkrelpath.c (argp_parser): Likewise.
5458 Reported by: Yuri Chornoivan.
5459
72f1d065
DO
54602012-02-23 Dalet Omega <daletomega@gmail.com>
5461
5462 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5463 for usual informative messages.
5464
c5884973
DO
54652012-02-23 Dalet Omega <daletomega@gmail.com>
5466
5467 Starfield theme.
5468
5469 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5470 * conf/Makefile.common: Define starfielddir.
5471 * configure.ac: Configure starfield.
5472 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5473 * themes/starfield/README: Likewise.
5474 * themes/starfield/blob_w.png: Likewise.
5475 * themes/starfield/boot_menu_c.png: Likewise.
5476 * themes/starfield/boot_menu_e.png: Likewise.
5477 * themes/starfield/boot_menu_n.png: Likewise.
5478 * themes/starfield/boot_menu_ne.png: Likewise.
5479 * themes/starfield/boot_menu_nw.png: Likewise.
5480 * themes/starfield/boot_menu_s.png: Likewise.
5481 * themes/starfield/boot_menu_se.png: Likewise.
5482 * themes/starfield/boot_menu_sw.png: Likewise.
5483 * themes/starfield/boot_menu_w.png: Likewise.
5484 * themes/starfield/slider_c.png: Likewise.
5485 * themes/starfield/slider_n.png: Likewise.
5486 * themes/starfield/slider_s.png: Likewise.
5487 * themes/starfield/src/blob_nw.xcf: Likewise.
5488 * themes/starfield/src/bootmenu/: Likewise.
5489 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5490 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5491 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5492 * themes/starfield/src/slider_c.xcf: Likewise.
5493 * themes/starfield/src/slider_n.xcf: Likewise.
5494 * themes/starfield/src/slider_s.xcf: Likewise.
5495 * themes/starfield/src/terminalbox/: Likewise.
5496 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5497 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5498 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5499 * themes/starfield/starfield.png: Likewise.
5500 * themes/starfield/terminal_box_c.png: Likewise.
5501 * themes/starfield/terminal_box_e.png: Likewise.
5502 * themes/starfield/terminal_box_n.png: Likewise.
5503 * themes/starfield/terminal_box_ne.png: Likewise.
5504 * themes/starfield/terminal_box_nw.png: Likewise.
5505 * themes/starfield/terminal_box_s.png: Likewise.
5506 * themes/starfield/terminal_box_se.png: Likewise.
5507 * themes/starfield/terminal_box_sw.png: Likewise.
5508 * themes/starfield/terminal_box_w.png: Likewise.
5509 * themes/starfield/theme.txt: Likewise.
5510
17d73325
VS
55112012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5512
5513 * util/grub.d/00_header.in: Add missing export theme.
5514
dbebaf92
VS
55152012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5516
5517 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5518 already included.
5519 Reported by: Eren D.
5520
3d68bffb
VS
55212012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5522
5523 * conf/Makefile.common (grubdatadir): Removed.
5524 (Makefile.am): Move eveything grubdata to pkgdata.
5525
4b59234d
VS
55262012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * grub-core/commands/acpihalt.c (get_sleep_type):
5529 Remove unused variable.
5530
463dcadc
VS
55312012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5532
5533 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5534 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5535 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5536 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5537 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5538 i18n with gettext no-op.
5539 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5540 GRUB_ACPI_OPCODE_STRING_CONST.
5541 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5542 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5543
e5b90c82
VS
55442012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * po/POTFILES.in: Regenerate.
5547
2a704ca9
VS
55482012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5549
5550 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5551 -Wno-error=missing-noreturn.
5552
84f9d341
VS
55532012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5554
5555 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5556 condition to avoid possibly infinite loops.
5557 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5558 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5559
d46683f9
VS
55602012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5561
5562 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5563 condition to avoid possibly infinite loops.
5564
c44866b2
VS
55652012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5566
5567 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5568 on show_error.
5569
96790539
VS
55702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5571
5572 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5573
1ba7e295
VS
55742012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5577
21ffe8f1
VS
55782012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5579
5580 * util/bin2h.c (usage): Add missing attribute noreturn.
5581
0ccb6b3c
VS
55822012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5583
5584 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5585 if the size isn't divisible by 512.
5586
b00d7fb6
VS
55872012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 Make list_push and list_remove functions rather than inline functions
5590 to decrease size and avoid aliasing violations.
5591
5592 * include/grub/list.h (grub_list_push): Move to ...
5593 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5594 * include/grub/list.h (grub_list_remove): Move to ...
5595 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5596
9d369087
VS
55972012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5598
5599 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5600 and -Wunused-result.
5601
af0250d9
VS
56022012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5605 Reported by: Seth Goldberg
5606
aad32b14
VS
56072012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5608
5609 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5610
ac96441c
ST
56112012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5612
5613 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5614 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5615 command line.
5616 * docs/grub.texi (Simple configuration): Document
5617 GRUB_CMDLINE_GNUMACH.
5618
56192012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
5620
5621 * conf/Makefile.common (platform_SCRIPTS): New variable.
5622 (platform_PROGRAMS): Likewise.
5623 * gentpl.py: Mark *,module and *.image for install.
5624 * grub-core/gdb_grub.in: Add a notice of expected environment.
5625 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5626 (gmodule.pl): Likewise.
5627
ac96441c 56282012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
5629
5630 Replace grub_checkkey with grub_getkey_noblock.
5631
5632 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5633 (grub_getkey_noblock): ... this. All users updated.
5634
ac96441c 56352012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
5636
5637 * grub-core/kern/emu/console.c: Move to ...
5638 * grub-core/term/emu/console.c: ...here.
5639 (grub_ncurses_getkey): Fix return value if no key is detected.
5640
e51b5666
VS
56412012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5642
5643 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5644 (grub_unit_test_fini): Likewise.
5645 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5646
56472012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * include/grub/test.h (GRUB_UNIT_TEST)
5650
d9a62292
VS
56512012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5652
5653 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5654 Better error handling.
5655 (grub_script_return): Likewise.
5656 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5657
77c9182f
VS
56582012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5659
5660 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5661 rimplicit redifinition.
5662
edb13cf9
VS
56632012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5664
5665 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
5666 GRUB.
5667
a9e9dc7c
VS
56682012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5669
5670 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
5671 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
5672 prompt here.
5673
b4ba8e02
VS
56742012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5675
5676 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
5677 as GRUB_ERR_BUG. Don't malloc if no device is available.
5678
dded5540
VS
56792012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5680
5681 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
5682 Mark calling with invalid term as GRUB_ERR_BUG.
5683
0cf69874
VS
56842012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5685
5686 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
5687 packets rather than raising an error.
5688
59bfe502
VS
56892012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5690
5691 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
5692 in if.
5693
db5fc596
VS
56942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5695
5696 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
5697 diagnostic to dprintf.
5698 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5699
e4b7f404
VS
57002012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5701
5702 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
5703 device name.
5704
e7b02f9e
VS
57052012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
5708 (grub_ntfs_iterate_dir): Likewise.
5709
0331e102
VS
57102012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5711
5712 Efiemu stylistic fixes and gettext.
5713
5714 * grub-core/efiemu/i386/loadcore32.c
5715 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
5716 * grub-core/efiemu/i386/loadcore64.c
5717 (grub_arch_efiemu_relocate_symbols64): Likewise.
5718 * grub-core/efiemu/i386/pc/cfgtables.c
5719 (grub_machine_efiemu_init_tables): Likewise.
5720 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
5721 (grub_efiemu_loadcore_initXX): Add a filename argument.
5722 All users updated.
5723 Improved error message.
5724 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
5725 Add a filename argument.
5726 All users updated.
5727 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
5728 Reclassify double relocation as GRUB_ERR_BUG.
5729
306fc074
VS
57302012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
5733 handling.
5734
794d8ef2
VS
57352012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
5738 on partition.
5739
57402012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
5741
5742 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
5743
794d8ef2 57442012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
5745
5746 Improve string. Gettextize.
5747
78dde88e
VS
57482012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5749
5750 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
5751 utils.
5752 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
5753
4786a90f
VS
57542012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5755
5756 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
5757 [GRUB_UTIL]: New function.
5758 (insert_array) [GRUB_UTIL]: Store partmaps.
5759 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
5760 partmaps.
5761 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
5762 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
5763 (probe_abstraction): Print diskfilter and not raid.
5764 Reported by: Lennart Sorensen
5765
0b6225bd
VS
57662012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
5769 * util/grub-mkimagexx.c (MASK3): New define.
5770 (add_value_to_slot_20b): Use MASK3.
5771 (add_value_to_slot_21): Likewise.
5772 (relocate_addresses): Fix format specification.
5773 (load_image): Explicitly init symtab_section.
5774
b055f8f6
VS
57752012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
5778 (grub_util_biosdisk_get_grub_dev): Fix format specification.
5779
b77c2fb7
VS
57802012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
5783 on powerpc.
5784 Reported by: Lennart Sorensen
5785
e3ec28ab
VS
57862012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
5787
5788 * gentpl.py: Add missing license header.
5789 * docs/grub.texi: Update copyright year.
5790
c8d9ead6
GS
57912012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
5792
5793 Source grub-mkconfig_lib from the build directory at build time.
5794 Suggested by: Vladimir Serbinenko.
5795
5796 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
5797 * util/grub-install.in: Define pkgdatadir if not already set, and source
5798 grub-mkconfig_lib from there.
5799 * util/grub-kbdcomp.in: Likewise.
5800 * util/grub-mkconfig.in: Likewise.
5801 * util/grub-mknetdir.in: Likewise.
5802 * util/grub-mkrescue.in: Likewise.
5803 * util/grub-mkstandalone.in: Likewise.
5804 * util/grub-reboot.in: Likewise.
5805 * util/grub-set-default.in: Likewise.
5806 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5807
ebcecdf1
VS
58082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5809
5810 Increase warning level.
5811
5812 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
5813 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
5814 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
5815 (TARGET_CFLAGS): Likewise.
5816 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
5817 * grub-core/Makefile.core.def (decompressor_xz): Add
5818 -Wno-unreachable-code.
5819 (normal): Add -Wno-redundant-decls.
5820 (xzio): Add -Wno-unreachable-code.
5821 (lzopio): Add -Wno-redundant-decls -Wno-error.
5822 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
5823 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
5824 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
5825 * grub-core/kern/dl.c: Add exception to -Wcast-align.
5826 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
5827 * grub-core/kern/i386/coreboot/init.c: Add exception to
5828 -Wsuggest-attribute=noreturn.
5829 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
5830 * grub-core/kern/ia64/dl_helper.c: Likewise.
5831 * grub-core/kern/mips/dl.c: Likewise.
5832 * grub-core/kern/sparc64/dl.c: Likewise.
5833 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
5834 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
5835 (memcmp): Likewise.
5836 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
5837 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
5838 * grub-core/loader/mips/linux.c: Likewise.
5839 * grub-core/loader/multiboot_elfxx.c: Likewise.
5840 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
5841 * grub-core/video/sm712.c: Add exception to -Wcast-align.
5842 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
5843 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
5844 fixme.
5845 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
5846 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
5847 Fix prototype.
5848
37bb97fe
VS
58492012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5850
5851 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
5852 address.
5853
29a3550b
VS
58542012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5855
5856 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
5857 Avoid improper use of strings.
5858 (grub_cmd_legacy_initrdnounzip): Likewise.
5859
dfdffd0d
VS
58602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5861
5862 * include/grub/emu/misc.h (grub_util_warn): Add missing format
5863 attribute.
5864 (grub_util_info): Likewise.
5865 (grub_util_error): Likewise.
5866
102fae4a
VS
58672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5868
5869 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
5870 * util/grub-fstest.c (fstest): Likewise.
5871
7e94d044
VS
58722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
5875 (grub_md_sha512_real): Likewise.
5876 (grub_util_get_geli_uuid): Likewise.
5877 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
5878 (grub_util_biosdisk_open): Fix format specification.
5879 Respect format security.
5880 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
5881 (xrealloc): Likewise.
5882 (xasprintf): Likewise.
5883
5ebd9769
VS
58842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * util/import_gcry.py: Include grub/crypto.h in init.c.
5887
495fc8c1
VS
58882012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5889
5890 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
5891 (generate_image): Make prefix a const char *.
5892 Fix format specifications. Respect format security.
5893 Avoid void * arithmetics.
5894 Avoid shadowing.
5895 (argp_parser): Remove unused variable. Respect format security.
5896 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
5897 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
5898 (count_funcs): Remove unused variable.
5899 (relocate_addresses): Fix format specification.
5900 Disable x86-64 with elf32. Remove unused variables.
5901 (add_fixup_entry): Avoid shadowing.
5902 (make_reloc_section): Fix format specification.
5903 Use assert.
5904 (locate_sections): Fix format specifications.
5905 (load_image): Avoid shadowing.
5906
043c2ea3
VS
59072012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
5910 Fix format specifications. Respect format security.
5911 Don't translate already translated grub_errmsg.
5912 (argp_parser): Remove unused variable
5913
3ec65a81
VS
59142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5915
5916 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
5917
a4d9fe4a
VS
59182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5919
5920 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
5921 (main): Likewise. Use xmalloc. Respect format security.
5922
15b81d49
VS
59232012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
5926 a const char *.
5927 (argp_parser): Remove unused variable.
5928
31731fc0
VS
59292012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5930
5931 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
5932 (add_pixel): Make static.
5933 (add_font): Likewise.
5934 (write_string_section): Make name and str a const char *.
5935 (write_be16_section): Make name a const char *.
5936 (print_glyphs): Make static.
5937 (write_font_ascii_bitmap): Likewise.
5938 (write_font_width_spec): Likewise.
5939 (write_font_pf2): Likewise.
5940 (argp_parser): Remove unused variable.
5941 Respect format security.
5942 (main): Avoid shadowing. Respect format security.
5943
0809527b
VS
59442012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5945
5946 * util/grub-editenv.c (argp_parser): Make static.
5947 (create_envblk_file): Use xmalloc.
5948 (open_envblk_file): Likewise.
5949 Resepect format security.
5950 (set_variables): Respect format security.
5951
45b0c8b7
VS
59522012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5953
5954 * util/getroot.c (grub_find_device): Respect format security.
5955 (get_mdadm_uuid): Remove unused variable.
5956 (grub_util_pull_device): Dont call gettext on already translated
5957 grub_errmsg.
5958 (find_system_device): Remove unused variable.
5959 (grub_util_get_grub_dev): Likewise.
5960 (grub_make_system_path_relative_to_its_root): Respect format security.
5961
1b024b4e
VS
59622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5963
5964 * util/grub-fstest.c (execute_command): Make first argument
5965 a const char *.
5966 (read_file): Avoid shadowing.
5967 Reuse underlying error message if device open fails.
5968 (cmd_cmp): Respect format security.
5969 (root): Make const char *.
5970 (fstest): Remove args argument and use global copy.
5971 Respect format security.
5972 (argp_parser): Make static.
5973 (main): Make default_root const char *.
5974
5d1d4e28
VS
59752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5976
5977 * util/grub-mount.c (root): Make const char *.
5978 (execute_command): Make first argument a const char *.
5979 (fuse_init): Respect format security.
5980 (argp_parser): Make static. Remove unused variable.
5981 (main): Make default_root a const char *.
5982 Respect format security.
5983
36eb7379
VS
59842012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5985
5986 * util/grub-probe.c (probe): Don't call gettext on already translated
5987 grub_errmsg.
5988 Remove unused variables.
5989 (argp_parser): Remove unused variable.
5990
76fb2ea9
VS
59912012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5992
5993 * util/grub-script-check.c (argp_parser): Remove unused variable.
5994 (main): Rename read to curread to avoid shadowing.
5995
56c98584
VS
59962012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
5997
5998 * util/misc.c (grub_util_write_image_at): Fix format specification.
5999 (grub_util_write_image): Likewise.
6000 (grub_script_execute_argument_to_string): Removed (unused).
6001 (grub_script_execute_menuentry): Likewise.
6002 (grub_putchar): Likewise.
6003
164ebb48
VS
60042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6005
6006 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6007 (FUNCTION) [GRUB_UTIL]: Likewise.
6008 (VARIABLE) [GRUB_UTIL]: Likewise.
6009
44318d61
VS
60102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6011
6012 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6013 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6014
31a26002
VS
60152012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6016
6017 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6018 buffer.
6019
60202012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6021
6022 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6023 (LzmaEnc_SaveState): Removed (unused).
6024 (LzmaEnc_RestoreState): Likewise.
6025 (LzmaEnc_InitPriceTables): Made static.
6026 (LzmaEnc_Construct): Likewise.
6027 (LzmaEnc_FreeLits): Likewise.
6028 (LzmaEnc_Destruct): Likewise.
6029 (LzmaEnc_Init): Likewise.
6030 (LzmaEnc_InitPrices): Likewise.
6031 (LzmaEnc_Finish): Likewise.
6032 (LzmaEnc_PrepareForLzma2): Removed (unused).
6033 (LzmaEnc_MemPrepare): Likewise.
6034 (LzmaEnc_GetNumAvailableBytes): Likewise.
6035 (LzmaEnc_GetCurBuf): Likewise.
6036 (LzmaEnc_CodeOneMemBlock): Likewise.
6037
6fa67967
VS
60382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6041 (grub_util_ldm_embed): Likewise.
6042
9a7428e6
VS
60432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * util/grub-editenv.c (print_var): Rename name to varname to
6046 avoid shadowing.
6047 (main): Rename index to curindex to avoid shadowing.
31a26002 6048 Make filename a const char *.
9a7428e6 6049
4f96abd1
VS
60502012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6053 to arg_getline to avoid shadowing.
6054
44d10dad
VS
60552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6058 disk_ to avoid shadowing.
6059
340ba63e
VS
60602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6063 curindex to avoid shadowing.
6064 Make static.
6065 (MatchFinder_GetNumAvailableBytes): Make static.
6066
22965bce
VS
60672012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6068
6069 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6070 avoid shadowing.
6071
7b5784d4
VS
60722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6073
6074 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6075 argument from encrypt to do_encrypt to avoid shadowing.
6076
6f48ca01
VS
60772012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6080 incorrect nesting of #if's.
6081
a4ea2dff
VS
60822012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6083
6084 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6085 checks which are always false on some platforms.
6086 (grub_cmd_lsacpi): Likewise.
6087 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6088 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6089 Likewise.
6090
def9fc1b
VS
60912012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6092
6093 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6094 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6095
a67b2a04
VS
60962012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6097
6098 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6099 re_dfa_t to avoid breaking alignment invariants.
6100 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6101 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6102
44c6828d
VS
61032012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6104
6105 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6106 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6107
bebe0dd0
VS
61082012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6109
6110 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6111 Fix declaration.
6112
a9cdb3cf
VS
61132012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6116 conserve alignment invariants.
6117 (grub_ehci_ehcc_read16): Likewise.
6118 (grub_ehci_oper_read32): Likewise.
6119 (grub_ehci_oper_write32): Likewise.
6120 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6121 Conserve alignment invariants.
6122
ccc3b1b8
VS
61232012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6124
6125 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6126 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6127 declarations.
6128
987fbd95
VS
61292012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6130
6131 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6132 Remove unused variable.
6133
0df363f3
VS
61342012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6135
6136 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6137 Remove set in if.
6138
b2c0c4a6
VS
61392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6140
6141 * include/grub/net.h: Remove double declarations.
6142
690c531f
VS
61432012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 Remove "payload" command in ia64 Linux loader since I couldn't
6146 find any evidence of it being used for anything.
6147 Replace "relocate" command with an environment variable
6148
6149 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6150 fields.
6151 (ia64_boot_payload): Removed.
6152 (last_payload): Likewise.
6153 (RELOCATE_OFF): Likewise.
6154 (RELOCATE_ON): Likewise.
6155 (RELOCATE_FORCE): Likewise.
6156 (relocate): Likewise.
6157 (free_pages): Don't free payloads.
6158 (grub_load_elf64): Use common error messages.
6159 Use "linux_relocate" variable.
6160 Increase the space after boot_params.
6161 (grub_cmd_payload): Removed.
6162 (grub_cmd_relocate): Likewise.
6163 (grub_cmd_fpswa): Improve messages.
6164 (cmd_payload): Removed.
6165 (cmd_relocate): Likewise.
6166 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6167 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6168
01783768
VS
61692012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6170
6171 Convert UHCI to DMA framework.
6172
6173 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6174 (grub_uhci_pci_iter): Fill new members
6175 (grub_alloc_td): Use P2V and V2P functions.
6176 (grub_free_queue): Likewise.
6177 (grub_alloc_qh): Likewise.
6178 (grub_uhci_setup_transfer): Likewise.
6179 (grub_uhci_check_transfer): Likewise.
6180
43206939
VS
61812012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6184 Remove assignment in if while on it.
6185
571e140e
VS
61862012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 * util/grub-mkstandalone.in: Fix modules directory.
6189
a9d96eeb
VS
61902012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6191
6192 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6193 on i386-pc target.
6194 (argp_parser): Accept "auto" as compression specification.
6195
e4e37e8d
VS
61962012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6197
6198 Fix `help' with unloaded modules.
6199
6200 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6201 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6202 (grub_dyncmd_dispatcher): Small stylistic fix.
6203 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6204 explicit help is requested.
6205
e1ea3ade
VS
62062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6209 Explicitly init restart while on it.
6210
27556881
VS
62112012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6212
6213 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6214 uninited variable.
6215
d65f6b36
VS
62162012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6217
6218 * util/grub-mknetdir.in: Use . rather than source for POSIX
6219 compatibility.
6220
0a1e473c
VS
62212012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6222
6223 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6224
ce6647c8
VS
62252012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6228 variable.
6229
66747894
VS
62302012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6233 without quotes.
6234
71645f6e
VS
62352012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6236
6237 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6238
0e1c1f61
VS
62392012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6242 iteration of partitions.
6243
9c4b5c13
VS
62442012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6245
6246 Improve gettext support. Stylistic fixes and error handling fixes while
6247 on it.
6248
215c90cb
VS
62492012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6250
6251 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6252 part. Instead setup the correct stack in RM.
6253 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6254 for stack.
6255 * include/grub/i386/relocator_private.h: New file.
6256
b5c1f9bf
VS
62572012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6260 argument.
6261 * util/grub-fstest.c (options): Add missing DEVICE part.
6262
b525fd83
VS
62632012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6264
6265 Clarify and unify messages.
6266
6267 * grub-core/commands/hashsum.c (options): Unify messages.
6268 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6269 literal-only message as translatable.
6270 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6271 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6272 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6273 commands.
6274 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6275 key, not the key used to unlock. Clarify what it's used for.
6276 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6277 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6278 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6279 * util/grub-editenv.c (options): Unify "verbose" message.
6280 * util/grub-fstest.c (read_file): Unify error message.
6281 (fstest): Add quotes around commands.
6282 (options): Unify "verbose" message.
6283 * util/grub-install.in: Add quotes around variable name.
6284 * util/grub-kbdcomp.in: Unify error message.
6285 * util/grub-mkfont.c (main): Likewise.
6286 * util/grub-mkrescue.in: Likewise.
6287 * util/grub-mklayout.c (options): Unify "verbose" message.
6288 * util/grub-mkstandalone.in: Unify help and verbose messages.
6289 * util/grub-mount.c (options): Unify "verbose" message.
6290 * util/grub-probe.c (options): Likewise.
6291 * util/grub-script-check.c (options): Likewise.
6292 * util/grub-setup.c (setup): Unify no-terminator message.
6293 (options): Use DEVICE and not DEV.
6294 Unify "verbose" message.
6295 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6296
0ae70393
VS
62972012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6298
6299 Improve and unify messages.
6300
6301 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6302 name. All users updated.
6303 Print filename in error.
6304 (read_device_map): Print filename in error.
6305 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6306 (grub_util_get_os_disk): Likewise.
6307 (grub_util_biosdisk_get_grub_dev): Likewise.
6308 (grub_util_check_block_device): Likewise.
6309 (grub_util_check_char_device): Likewise.
6310 (grub_make_system_path_relative_to_its_root): Likewise.
6311 * util/grub-editenv.c (create_envblk_file): Likewise.
6312 (open_envblk_file): Likewise.
6313 (write_envblk): Likewise.
6314 * util/grub-fstest.c (cmd_cp): Likewise.
6315 (cmd_cat): Likewise.
6316 (cmd_cmp): Likewise.
6317 * util/grub-menulst2cfg.c (main): Likewise.
6318 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6319 (write_font_width_spec): Likewise.
6320 (write_font_pf2): Likewise.
6321 * util/grub-mkimage.c (generate_image): New argument outname.
6322 All users updated.
6323 Remove unreacheable message.
6324 (options): Unify messages.
6325 (help_filter): Likewise.
6326 * util/grub-mklayout.c (usage): Removed (unused).
6327 (main): Print filename in error.
6328 * util/grub-mkrescue.in: Fix wrong quoting.
6329 * util/grub-setup.c (setup): Print filename in error.
6330 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6331 (check_sas): Likewise.
6332 * util/misc.c (grub_util_get_fp_size): Removed.
6333 (grub_util_get_image_size): Print filename in error.
6334 (grub_util_read_at): Removed.
6335 (grub_util_read_image): Print filename in error.
6336 (grub_util_load_image): Likewise.
6337 (grub_util_write_image_at): New argument filename. All users updated.
6338 Print filename in error.
6339 (grub_util_write_image): New argument filename. All users updated.
6340 Print filename in error.
6341 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6342 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6343
0a96117d
VS
63442012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * grub-core/Makefile.core.def (pxechain): New module.
6347 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6348 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6349 function.
6350 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6351 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6352
aca002f7
VS
63532012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6356 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6357 * include/grub/err.h (grub_error_saved): New struct.
6358 (grub_errmsg): Make array size explicit.
6359 * include/grub/misc.h (grub_error_save): New function.
6360 (grub_error_load): Likewise.
6361 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6362 (grub_error_push): Update `errno' member name.
6363 (grub_error_pop): Likewise
6364 * grub-core/net/tftp.c (tftp_data): New member save_err.
6365 (tftp_receive): Save error.
6366 (tftp_open): Restore error.
6367
a51dab13
VS
63682012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6371 to real mode down to execute A20-related code in protected mode as
6372 intended.
6373
eb6e6649
GS
63742012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6375
6376 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6377 NULL when the argument `level' has an unexpected value.
6378
92cd0f6e
VS
63792012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 Move platform-dependent files from $prefix to $prefix/$platform.
6382
6383 * config.h.in (GRUB_TARGET_CPU): New definition.
6384 (GRUB_PLATFORM): Likewise.
6385 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6386 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6387 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6388 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6389 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6390 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6391 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6392 * grub-core/normal/term.c (read_terminal_list): Likewise.
6393 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6394 $prefix/locale.
6395 (grub_gettext_init_ext): Likewise.
6396 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6397 grub_platform.
6398 * util/grub-install.in: Update directories.
6399 * util/grub-mknetdir.in: Likewise.
6400 * util/grub-mkrescue.in: Likewise.
6401
db606889
VS
64022012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6403
6404 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6405 grub_error framework. All users updated.
6406
c39992a4
VS
64072012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6408
6409 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6410 lists (by always binsearching), improve caching (cache strings
6411 used for binsearch, not only results), improve
6412 maintainability (by using more structured binary search) and correct
6413 error handling.
6414
1e5ec32f
VS
64152012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6416
6417 * grub-core/script/execute.c (grub_script_return): Fix warning.
6418
ac576cde
VS
64192012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6420
6421 * grub-core/script/execute.c (grub_script_return): Fix potential
6422 NULL-dereference.
6423 Reported by: Jim Meyering.
6424
498453f6
VS
64252012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6426
6427 * po/POTFILES.in: Regenerate.
6428 * util/grub-install.in: Gettextize the strings missed in first pass.
6429
8be63f2e
VS
64302012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6431
6432 * Makefile.util.def (grub-mkdevicemap): Removed.
6433 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6434 * include/grub/util/deviceiter.h: Removed.
6435 * util/deviceiter.c: Likewise.
6436 * util/getroot.c (grub_util_get_os_disk): New function.
6437 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6438 replacement for EFI.
6439 * util/grub-mkdevicemap.c: Removed.
6440 * util/grub-probe.c (probe): Handle PRINT_DISK.
6441 (argp_parser): Handle -t disk.
6442
8e1e4e39
VS
64432012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6444
6445 * util/grub-mkfont.c: Migrate to argp.
6446 * util/grub-mklayout.c: Likewise.
6447 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6448 * util/grub-mkrelpath.c: Likewise.
6449 * util/grub-probe.c: Likewise.
6450 * util/grub-script-check.c: Likewise.
6451
4459819a
VS
64522012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6453
6454 * util/grub-reboot.in: Add missing datarootdir.
6455 Add missing newline.
6456 * util/grub-set-default.in: Add missing datarootdir.
6457 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6458 * util/grub-mkrescue.in: Likewise.
6459
f65741c7
VS
64602012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6463
c1a33466
VS
64642012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6465
6466 * util/grub-kbdcomp.in: Add decent help and gettextize.
6467 * docs/man/grub-kbdcomp.h2m: New file.
6468
c76899a0
VS
64692012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6470
6471 Migrate grub-mkimage.c to argp.
6472
6473 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6474 (grub-setup): Likewise.
6475 * util/grub-setup.c (print_version): Move to ...
6476 * util/argp_common.c (print_version): ... here.
6477 * util/grub-setup.c (argp_program_version_hook): Move to ...
6478 * util/argp_common.c (argp_program_version_hook): ... here.
6479 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6480 safety.
6481 * util/grub-mkimage.c (main): Migrate to argp.
6482
57db0757
VS
64832012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 * util/grub-mkrescue.in: Use same message as
6486 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6487 for better translations.
6488
18534ad9
VS
64892012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6490
6491 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6492 options with generic grub-mkrescue.in with the goal of future
6493 merge.
6494
c84ba308
VS
64952012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6496
6497 * grub-core/kern/mm.c: Add missing include of i18n.h
6498 * grub-core/lib/relocator.c: Likewise.
6499
347998c2
VS
65002012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6503 error.
6504 (allocate_pages): Check return value.
6505 Replace fatal with error.
6506 (grub_linux_boot): Replace printf with dprintf.
6507 Check find_mmap_size return value.
6508 Replace fatal with error.
6509 Don't call grub_machine_fini.
6510 (grub_load_elf64): Replace printf with dprintf.
6511 (grub_cmd_linux): Likewise.
6512 (grub_cmd_initrd): Likewise.
6513 (grub_cmd_payload): Likewise.
6514
c779226e
VS
65152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6516
6517 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6518 message.
6519 * grub-core/video/radeon_fuloong2e.c
6520 (grub_video_radeon_fuloong2e_setup): Likewise.
6521 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6522 * grub-core/video/video.c (grub_video_set_mode): Don't override
6523 standard out of memory message.
6524
dc87d45a
GS
65252012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6526
6527 NetBSD disk wedge support.
6528
6529 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6530 [__NetBSD__]: Handle NetBSD disk wedges.
6531 * util/getroot.c (convert_system_partition_to_system_disk)
6532 [__NetBSD__]: Likewise.
6533
055f856f
MW
65342012-02-03 Mark Wooding <mdw@distorted.org.uk>
6535
6536 * util/grub-mkconfig.in: Use umask rather than chmod to create
6537 grub.cfg.new to avoid insecure grub.cfg.
6538
4a9f8346
VS
65392012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * grub-core/commands/ls.c: Gettextize.
6542 * grub-core/commands/setpci.c: Likewise.
6543 * grub-core/commands/videotest.c: Likewise.
6544 * grub-core/disk/geli.c: Likewise.
6545 * grub-core/kern/mm.c: Likewise.
6546 * grub-core/lib/relocator.c: Likewise.
6547 * grub-core/loader/efi/appleloader.c: Likewise.
6548 * grub-core/loader/i386/xnu.c: Likewise.
6549 * grub-core/loader/ia64/efi/linux.c: Likewise.
6550 * grub-core/loader/xnu.c: Likewise.
6551 * grub-core/net/dns.c: Likewise.
6552 * grub-core/net/net.c: Likewise.
6553 * grub-core/script/lexer.c: Likewise.
6554 * grub-core/script/parser.y: Likewise.
6555 * grub-core/script/yylex.l: Likewise.
6556 * util/getroot.c: Likewise.
6557 * util/grub-setup.c: Likewise.
6558
a646a366
VS
65592012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6562 number.
6563
54e2be26
VS
65642012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6567
f7c71e68
VS
65682012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6571 macro.
6572 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6573 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6574
a32d5c71
VS
65752012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6576
6577 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6578 * util/grub-install.in: Gettextize.
6579 * util/grub-mkconfig.in: Likewise.
6580 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6581 if not available.
6582 (grub_warn): Gettextize.
6583 * util/grub-mknetdir.in: Gettextize.
6584 * util/grub-mkrescue.in: Likewise.
6585 * util/grub-mkstandalone.in: Likewise.
6586 * util/grub-reboot.in: Likewise.
6587 * util/grub-set-default.in: Likewise.
6588 * util/grub.d/00_header.in: Likewise.
6589 * util/grub.d/10_hurd.in: Likewise.
6590 * util/grub.d/10_kfreebsd.in: Likewise.
6591 * util/grub.d/10_linux.in: Likewise.
6592 * util/grub.d/10_netbsd.in: Likewise.
6593 * util/grub.d/10_windows.in: Likewise.
6594 * util/grub.d/20_linux_xen.in: Likewise.
6595 * util/grub.d/30_os-prober.in: Likewise.
6596 * po/POTFILES-shell.in: Regenerate.
6597
69edd81a
RL
65982012-02-03 Richard Laager <rlaager@wiktel.com>
6599
6600 * util/grub-mkimage.c (main): Fix format-security warning.
6601 * util/grub-mkrelpath.c (main): Likewise.
6602 * util/grub-probe.c (main): Likewise.
6603
65f08dbf
RL
66042012-02-03 Richard Laager <rlaager@wiktel.com>
6605
6606 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6607 failure.
6608 Put back lost PRINT_DRIVE.
6609
e9084abe
RL
66102012-02-03 Richard Laager <rlaager@wiktel.com>
6611
6612 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6613 (grub_guess_root_devices): Replace strlen with sizeof.
6614 Avoid crash.
6615 (find_root_devices_from_poolname): Remove unused variable.
6616 Handle raidzN.
6617
cf5f7ee7
VS
66182012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 Support install on multi-device filesystems.
6621
6622 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6623 (grub_guess_root_devices): ...this. Return char **. All users updated.
6624 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6625 Removed.
6626 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6627 (find_root_devices_from_poolname): ... here.
6628 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6629 Support zfs-fuse.
6630 (grub_guess_root_device): Rename to ...
6631 (grub_guess_root_devices): ... this. Return char **. All users updated.
6632 * util/grub-install.in: Handle multi-device filesystems.
6633 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6634 argument. All users updated.
6635 Handle multi-device filesystems.
6636 Use 'delim' as separator.
6637 Remove device check to allow filesystems on file.
6638 (main): Support -0 argument. Handle multi-device.
6639 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6640 Fix a cross-device check while on it.
6641 (arguments): Remove root_dev.
6642 (argp_parser): Remove -r.
6643 (main): Remove root_dev.
6644
2f53a9ed
VS
66452012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6648
17e1d934
VS
66492012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6650
6651 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6652 symbol.
6653 Reported by: NODA, Kai <nodakai>.
6654
d3e3fab5
VS
66552012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6656
6657 Fix ehci on amd64.
6658
6659 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6660 pointers.
6661 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6662 (grub_ehci_setup_qh): Likewise.
6663 (grub_ehci_find_qh): Likewise.
6664 (grub_ehci_transaction): Likewise.
6665 (grub_ehci_setup_transfer): Likewise.
6666 (grub_ehci_check_transfer): Likewise.
6667 (grub_ehci_portstatus): Likewise.
6668 (grub_ehci_detect_dev): Likewise.
6669 (grub_ehci_transfer_controller_data): New field td_last_phys.
6670 (grub_ehci_setup_transfer): Fill td_last_phys.
6671 (grub_ehci_check_transfer): Use td_last_phys.
6672
3008675b
SG
66732012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
6674
6675 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
6676 if no submenu is present.
6677
fc9b5652
AN
66782012-02-01 Aleš Nesrsta <starous@volny.cz>
6679
6680 CBI support.
6681
6682 * include/grub/usb.h (grub_usbms_protocol_t): New values
6683 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
6684 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
6685 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
6686 (grub_usbms_dev): Add subclass, protocol and intrpt.
6687 Remove in_maxsz and out_maxsz.
6688 (grub_usbms_reset): Rename to ...
6689 (grub_usbms_bo_reset): .. this.
6690 (grub_usbms_cbi_cmd): New function.
6691 (grub_usbms_cbi_reset): Likewise.
6692 (grub_usbms_reset): Likewise.
6693 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
6694 (grub_usbms_transfer): Rename to ...
6695 (grub_usbms_transfer_bo): ... this.
6696 (grub_usbms_transfer_cbi): Likewise.
6697 (grub_usbms_transfer): Likewise.
6698
a2b81d53
AN
66992012-02-01 Aleš Nesrsta <starous@volny.cz>
67002012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6701
6702 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
6703 the support for the CS5536 modification thereos and few bugfixes.
6704
6705 * grub-core/Makefile.core.def (ehci): New module.
6706 * grub-core/bus/usb/ehci.c: New file.
6707 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
6708 port and hubaddr. All users updated.
6709 Save port and hubaddr into dev structure.
6710 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
6711 define.
6712 * include/grub/pci.h (grub_dma_phys2virt): New function.
6713 (grub_dma_virt2phys): Likewise.
6714 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
6715
b1d51f02
VS
67162012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6717
6718 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
6719 check as some mkfs implementations omit it.
6720
fc694106
VS
67212012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6722
6723 * docs/grub.texi (Unicode): Mention identifier and space limitations.
6724
6c0920e3
VS
67252012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6726
6727 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
6728 Add new member volname2.
6729 (grub_jfs_label): Use volname2 if available.
6730
d1a46f9a
VS
67312012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
6734 over last_mounted as seen in image generated by mkfs.nilfs2.
6735 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
6736
dec8ed14
VS
67372012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6738
6739 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
6740 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
6741 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
6742
7397c69b
VS
67432012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6744
6745 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
6746 over the sector.
6747
b3fe42ad
VS
67482012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
6751 subvolume name (by removing a bogus and useless check).
6752
10476bb0
VS
67532012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
6754
6755 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
6756 sizeof while on it.
6757
9c08ad87
VS
67582012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
6761 (grub_scsi_read_capacity10): ... this.
6762 (grub_scsi_read_capacity16): New function.
6763 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
6764 0xffffffff.
6765 Fix off-by-one error.
6766 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
6767 64-bit unsigned.
6768 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
6769 (grub_scsi_read_capacity10): ... this.
6770 (grub_scsi_read_capacity_data): Rename to ...
6771 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
6772 (grub_scsi_read_capacity16): New struct.
6773 (grub_scsi_read_capacity16_data): Likewise.
6774 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
6775 grub_scsi_cmd_read_capacity10.
6776 New command grub_scsi_cmd_read_capacity16.
6777
bc8d0f45
VS
67782012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 SCSI >2TiB support.
6781
6782 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
6783 (grub_scsi_write16): Likewise.
6784 (grub_scsi_read): Use read16 when necessary.
6785 (grub_scsi_write): Likewise.
6786 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
6787 (grub_scsi_write16): Likewise.
6788 (grub_scsi_cmd_t): Add READ16 and WRITE16.
6789
cc774926
VS
67902012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 SCSI write support (for usbms mainly).
6793
6794 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
6795 a const pointer.
6796 (grub_scsi_write): Implement.
6797 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
6798
67639fd7
VS
67992012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
6800
6801 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
6802 variable.
6803
9079d3ed
VS
68042012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * grub-core/lib/posix_wrap/string.h (memchr): New function.
6807
c6a6f204
VS
68082012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * po/POTFILES.in: Regenerate.
6811
ecbf8cd1
VS
68122012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6813
6814 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
6815 with grub_printf to avoid unnecessary fatal failure.
6816
0b3b3b38
VS
68172012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
6820 (INT_MAX): Likewise.
6821 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
6822 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
6823 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
6824 (strcpy): Likewise.
6825 (strstr): Likewise.
6826 (strchr): Likewise.
6827 (strncpy): Likewise.
6828 (strcat): Likewise.
6829 (strncat): Likewise.
6830 (strcoll): Likewise.
6831 * include/grub/types.h (GRUB_SHRT_MAX): New define.
6832 (GRUB_INT_MAX): Likewise.
6833
db7337a3
VS
68342012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
6837 unexpected error.
6838 (optimize_utf8): Likewise.
6839 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
6840
f37c87e1
VS
68412012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6842
6843 * grub-core/boot/i386/pc/lnxboot.S: Use
6844 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
6845 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
6846 location.
6847 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
6848 definition.
6849 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
6850
63fe43f3
VS
68512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6852
6853 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
6854 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
6855 now to avoid double free.
6856 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
6857 hostdisk.
6858 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
6859 * util/grub-probe.c (escape_of_path): Always return a new copy.
6860 (print_full_name): Escape path.
6861 (probe): Don't call grub_util_devname_to_ofpath on NULL.
6862 Fix hints on abstractions.
6863
ebe2c961
VS
68642012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6865
6866 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
6867 Don't add "root" line if no compatibility hont is available.
6868 Suggested by: Seth Goldberg.
6869
2b5336a2
VS
68702012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6871
6872 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
6873 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
6874 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
6875 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
6876
74310bd8
VS
68772012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6878
6879 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
6880
c30582ba
VS
68812012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 * util/grub-pe2elf.c (ehdr): Make static.
6884 (shdr): Likewise.
6885 (num_sections): Likewise.
6886 (offset): Likewise.
6887
5f47782c
VS
68882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 Eliminate ofpath limits and possible overflows.
6891
6892 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
6893 (OF_PATH_MAX): Removed.
6894 (MAX_DISK_CAT): New const.
6895 (find_obppath): Use allocated rather than preallocated buffer.
6896 Return result. Argument of_path removed. All users updated.
6897 Add missing fdstat.
6898 (xrealpath): New function.
6899 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
6900 Allocate rather than use preallocated buffer. All users updated.
6901 (__of_path_common): Use allocated rather than preallocatecd buffer.
6902 Return result. Argument of_path removed. All users updated.
6903 (vendor_is_ATA): Read only needed part form the file.
6904 (check_sas): Allocate depending on contents rather than fixed.
6905 (main) [STANDALONE]: Handle NULL result.
6906
f990cbf9
VS
69072012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6908
6909 * grub-core/normal/completion.c (iterate_dev): Close the disk.
6910
9c6e84b8
VS
69112012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6912
6913 Cryptodisk write support.
6914
6915 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
6916 (grub_cryptodisk_decrypt): Moved logic to ...
6917 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
6918 (grub_cryptodisk_write): Implement.
6919 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
6920 (grub_util_fd_write): ... this. Make global.
6921 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
6922
87cf9744
VS
69232012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6924
6925 * include/grub/list.h (grub_list_remove): Don't crash if element is
6926 removed twice.
6927
ca8c0baf
VS
69282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 Rename ofconsole to console.
6931
6932 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
6933 as sysnonym to console.
6934 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
6935 * grub-core/term/ieee1275/console.c: ... this. All users updated.
6936 Rename grub_ofconsole_ to grub_console_. All users updated
6937 (grub_console_term_output): Rename "ofconsole" to "console".
6938 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
6939 as "console".
6940
64c8b8f6
VS
69412012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
6944 handling.
6945 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
6946 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
6947 GRUB_DISK_DEVICE_FILE_ID.
6948
f6c434d5
VS
69492012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
6952 and improve performance.
6953
5858b42d
VS
69542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6955
6956 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
6957 missing ieee1275/ prefix on whole disk.
6958
4ed3c26b
VS
69592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6960
6961 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
6962 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
6963
df71143e
VS
69642012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6965
6966 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
6967
076e7c0f
VS
69682012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 Merge common RAID and LVM logic to an abstract diskfilter.
6971 Add LDM support using the same framework.
6972
6973 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
6974 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
6975 (libgrubmods): Remove grub-core/disk/raid.c and
6976 grub-core/partmap/gpt.c.
6977 * grub-core/Makefile.core.def (ldm): New module.
6978 (raid): Renamed to diskfilter. All users updated.
6979 * grub-core/disk/raid.c: Moved to ...
6980 * grub-core/disk/diskfilter.c: ... here.
6981 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
6982 (lv_num): New var.
6983 (find_array): Renamed to ...
6984 (find_lv): ... this. Support multi-LV. Skip nameless LVs
6985 (grub_is_array_readable): Renamed to ...
6986 (grub_is_lv_readable): ... this. Support multinode hierarchy.
6987 (insert_array): New argument id.
6988 (is_node_readable): New function.
6989 (scan_device): Rename to ...
6990 (scan_disk): .. this. Restrict to one disk.
6991 (scan_devices): New function.
6992 (grub_diskfilter_iterate): Support multi-LV.
6993 Skip invisible and nameless LVs.
6994 (grub_diskfilter_memberlist): Support multi-LV.
6995 (grub_diskfilter_read_node): New function.
6996 (grub_raid_read): Most of logic moved to ...
6997 (read_segment): ... here
6998 (read_lv): New function.
6999 (grub_diskfilter_get_vg_by_uuid): New function.
7000 (grub_diskfilter_make_raid): Likewise.
7001 * grub-core/disk/ldm.c: New file.
7002 * grub-core/disk/lvm.c (vg_list): Removed.
7003 (lv_count): Likewise.
7004 (scan_depth): Likewise.
7005 (is_lv_readable): Likewise.
7006 (grub_lvm_getvalue): Advance pointer past the number.
7007 (find_lv): Removed.
7008 (do_lvm_scan): Refactored into ...
7009 (grub_lvm_detect): ... this. Support raid.
7010 (grub_lvm_iterate): Removed.
7011 (grub_lvm_memberlist): Likewise.
7012 (grub_lvm_open): Likewise.
7013 (grub_lvm_close): Likewise.
7014 (read_lv): Likewise.
7015 (read_node): Likewise.
7016 (is_node_readable): Likewise.
7017 (is_lv_readable): Likewise.
7018 (grub_lvm_read): Likewise.
7019 (grub_lvm_write): Likewise.
7020 (grub_lvm_dev): Use diskfilter
7021 (GRUB_MOD_INIT): Likewise.
7022 (GRUB_MOD_FINI): Likewise.
7023 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7024 new interface.
7025 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7026 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7027 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7028 grub_diskfilter_read_node.
7029 Fix a bug with xor.
7030 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7031 grub_diskfilter_read_node.
7032 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7033 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7034 (grub_disk_dev_iterate): Move from here...
7035 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7036 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7037 Make global.
7038 (grub_hostdisk_find_partition_start): Likewise.
7039 (grub_hostdisk_os_dev_to_grub_drive): New function.
7040 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7041 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7042 * util/getroot.c (make_device_name): ... here.
7043 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7044 Move to ...
7045 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7046 * grub-core/kern/emu/hostdisk.c
7047 (convert_system_partition_to_system_disk): Move to ...
7048 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7049 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7050 * util/getroot.c (device_is_wholedisk): ... here.
7051 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7052 * util/getroot.c (find_system_device): ... here.
7053 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7054 Move to ...
7055 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7056 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7057 Move to ...
7058 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7059 Handle LDM.
7060 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7061 Move to ...
7062 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7063 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7064 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7065 DISKFILTER.
7066 * include/grub/raid.h: Renamed to ...
7067 * include/grub/diskfilter.h: ... this.
7068 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7069 (GRUB_RAID_LAYOUT_*): Make into array.
7070 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7071 (grub_diskfilter_vg): New struct.
7072 (grub_diskfilter_pv_id): Likewise.
7073 (grub_raid_member): Removed.
7074 (grub_raid_array): Likewise.
7075 (grub_diskfilter_pv): New struct.
7076 (grub_diskfilter_lv): Likewise.
7077 (grub_diskfilter_segment): Likewise.
7078 (grub_diskfilter_node): Likewise.
7079 (grub_diskfilter_get_vg_by_uuid): New proto.
7080 (grub_raid_register): Inline.
7081 (grub_diskfilter_unregister): Likewise.
7082 (grub_diskfilter_make_raid): New proto.
7083 (grub_diskfilter_vg_register): Likewise.
7084 (grub_diskfilter_read_node): Likewise.
7085 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7086 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7087 (grub_util_is_ldm): Likewise.
7088 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7089 (grub_hostdisk_find_partition_start): Likewise.
7090 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7091 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7092 New definition.
7093 (grub_gpt_partition_map_iterate): New proto.
7094 * include/grub/lvm.h (grub_lvm_vg): Removed.
7095 (grub_lvm_pv): Likewise.
7096 (grub_lvm_lv): Likewise.
7097 (grub_lvm_segment): Likewise.
7098 (grub_lvm_node): Likewise.
7099 * util/getroot.c [...]
7100 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7101 (probe_abstraction): Likewise.
7102 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7103 (main): Remove dead logic.
7104
8a7f9b9c
VS
71052012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7106
7107 Simplify root device discover and don't fail when trying to open
7108 incorrect devices.
7109
7110 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7111 function.
7112 (get_diskname_from_path): Likewise.
7113 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7114 of iterating.
7115
30545b85
VS
71162012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7119
28ea58cf
VS
71202012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7123 pastthe end.
7124
692dabca
VS
71252012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7126
7127 * util/grub-install.in: Add missing \.
7128 Reported by: gentoofan
7129
f6e4ea70
VS
71302012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7131
7132 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7133 (direct_read): Use correct compressed size.
7134 (grub_squash_read_data): Likewise.
7135
71362012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
7137
7138 * docs/grub.texi (Platform limitations): New section.
7139 (Platform-specific operations): Likewise.
7140 * docs/grub-dev.texi (Porting): Likewise.
7141
76261110
VS
71422012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 IEEE1275 disk write support.
7145
7146 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7147 const void *.
7148 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7149 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7150 and seek loginc to ...
7151 (grub_ofdisk_prepare): ... here.
7152 (grub_ofdisk_write): Implement.
7153
fc36d603
VS
71542012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7155
7156 ARC disk write support.
7157
7158 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7159 (reopen): New argument writable. All users updated.
7160 Handle required access mode.
7161 (grub_arcdisk_write): Implement.
7162 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7163 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7164
e06c2e7a
VS
71652012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7168 (read_sblock): Don't attempt to read superblocks outside the disk size.
7169
ff447958
VS
71702012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7171
7172 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7173 first superblock to find the second one when possible.
7174
9e88df39
VS
71752012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 * util/grub-install.in: Fix an ARC bug.
7178 Print a warning if no platform-specific setup is available.
7179
bb26e4ff
VS
71802012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7181
7182 Use static allocation rather than scratch pointer in reed_solomon.
7183 It decreases its size significantly and avoids a variable in .text.
7184
7185 * grub-core/lib/reed_solomon.c (scratch): Removed.
7186 (chosenstat): New const or static array.
7187 (sigma): Likewise.
7188 (errpot): Likewise.
7189 (errpos): Likewise.
7190 (sy): Likewise.
7191 (mstat): Likewise.
7192 (errvals): Likewise.
7193 (eqstat): Likewise.
7194 (pol_evaluate): Replace x with log_x argument. All users updated.
7195 (syndroms): Removed.
7196 (gauss_solve): Use statically allocated arrays.
7197 (rs_recover): Likewise.
7198 Calculate syndroms directly.
7199 (decode_block): Use statically allocated arrays.
7200 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7201 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7202
2e13ede5
VS
72032012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 Eliminate fixed limit on reed solomon decoder length.
7206
7207 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7208 rather than hardcoding the address.
7209 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7210 no_reed_solomon_length.
7211 Move gate_a20 to no-reed-solomon part.
7212 Don't force a particular size of no reed-solomon part.
7213 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7214 Removed.
7215 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7216 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7217
f8a9ab12
VS
72182012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * grub-core/commands/wildcard.c (match_files): Handle filenames
7221 without explicit device.
7222 (wildcard_expand): Don't add explicit device if not already present.
7223 * tests/grub_script_echo1.in: Add a new expansion test.
7224
87edb894
VS
72252012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7226
7227 Replace single-linked with double-linked lists. It results in more
7228 compact and more efficient code.
7229
7230 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7231 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7232 (grub_list_remove): Moved from here ...
7233 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7234 (grub_prio_list_insert): Set prev.
7235 * include/grub/list.h (grub_list): Add prev. All users updated.
7236
48b391e9
VS
72372012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7238
7239 Handle newer autotools. Add some missing quotes while on it.
7240
7241 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7242 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7243 (pkgdata_DATA): ... here.
7244 * Makefile.util.def (update-grub_lib): Removed.
7245 * conf/Makefile.common (pkglib_DATA): Removed.
7246 (pkglib_SCRIPTS): Likewise.
7247 (pkgdata_DATA): New variable.
7248 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7249 needed.
7250 Add missing quotes.
7251 Remove unused variable while on it.
7252 * tests/util/grub-shell.in: Likewise.
7253 * util/grub-install.in: Likewise.
7254 * util/grub-mkconfig.in: Likewise.
7255 * util/grub-mknetdir.in: Likewise.
7256 * util/grub-mkrescue.in: Likewise.
7257 * util/grub-mkstandalone.in: Likewise.
7258 * util/grub.d/00_header.in: Likewise.
7259 * util/grub.d/10_hurd.in: Likewise.
7260 * util/grub.d/10_illumos.in: Likewise.
7261 * util/grub.d/10_kfreebsd.in: Likewise.
7262 * util/grub.d/10_linux.in: Likewise.
7263 * util/grub.d/10_netbsd.in: Likewise.
7264 * util/grub.d/10_windows.in: Likewise.
7265 * util/grub.d/20_linux_xen.in: Likewise.
7266 * util/grub.d/30_os-prober.in: Likewise.
7267 * util/update-grub_lib.in: Removed.
7268
72692012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
7270
7271 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7272 a workaround for intel problem.
7273
66832792
PRP
72742012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
72752012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
72762012-01-23 pfsmorigo
7277
7278 * util/grub-install.in: Support dd'in into PreP partition.
7279 * util/grub-probe.c (probe): Support discovering partition type.
7280 (main): Support -t msdos_parttype.
7281
7816a17e
VS
72822012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7283
7284 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7285 infinite recursion using counter.
7286 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7287 init to skip it if the magic check fails.
7288 (dec_stream_header): Init s->crc32.
7289
8f9d3a8c
ZB
72902012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
72912012-01-22 Zachary Bedell <pendorbound@gmail.com>
72922012-01-22 Richard Laager <rlaager@wiktel.com>
7293
7294 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7295 All users updated.
7296 (find_bestub): Determine correct size.
7297 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7298 (scan_disk): Align the size down.
7299 Call check pool before find_bestub to have ashift.
7300
b055dd32
VS
73012012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7302
7303 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7304 dprintf in no-malloc zone.
7305
d779e9bd
ML
73062012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7307
7308 * configure.ac: Add back in test for limits.h.
7309
b508af69
VS
73102012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7311
7312 Support 4K-sector NTFS.
7313
7314 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7315 (grub_ntfs_data): Remove blocksize.
7316 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7317 Remove data argument. All users updated.
7318
dad9c8b5
VS
73192012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7320
7321 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7322 being in .text to avoid dprel references.
7323 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7324 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7325 (grub_arch_highmemsize): Likewise.
7326 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7327 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7328 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7329
d43a777e
VS
73302012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7331
7332 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7333
7334 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7335 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7336
34e4208f
VS
73372012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7340 GRUB_UTIL.
7341 (grub_set_datetime_cmos): Likewise.
7342
3ec0fc1c
VS
73432012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7344
7345 Make XZ compression parameters dependent on target and not host CPU.
7346
7347 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7348 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7349
22489834
VS
73502012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7353 set but not used variable.
7354
8502fbca
VS
73552012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7358 created when no uuid support is compiled into mkfs.reiser.
7359
76df2068
VS
73602012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7363 (utf8_to_macroman): Do the opposite.
7364 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7365
64e3f8f6
VS
73662012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 * configure.ac: Refise build qemu_mips w/o unifont.
7369
9c271078
VS
73702012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7371
7372 Eliminate grub_min/grub_max prone to overflow usage.
7373
7374 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7375 (poll_nonroot_hub): Likewise.
7376 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7377 (grub_affs_label): Likewise.
7378 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7379 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7380 (grub_hfs_label): Likewise.
7381 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7382 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7383 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7384 (zap_leaf_array_get): Likewise.
7385 (dnode_get_path): Likewise.
7386 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7387 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7388 * grub-core/script/execute.c (grub_script_break): Likewise.
7389 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7390 grub_max.
7391 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7392 * include/grub/misc.h (grub_min): Removed.
7393 (grub_max): Likewise.
7394
80662dbc
VS
73952012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7396
7397 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7398 direct.inode = 0.
7399
e6da1467
VS
74002012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7403
b1ac4cb1
VS
74042012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7405
7406 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7407
b4bf7c3b
VS
74082012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7409
7410 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7411 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7412
8ee1101a
VS
74132012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7414
7415 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7416 rather than a hack for grub_strncasemap.
7417
74182012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 Support multiple initrds
7421 Note: part of this was accidently committed in r3739.
7422
7423 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7424 initrd.
7425 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7426 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7427 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7428 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7429 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7430
4d1e2bc9
VS
74312012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7434 disks with unknown size.
7435 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7436
75b49ebe
VS
74372012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7438
7439 Remove defines pertaining to arbitrary limits not affecting GRUB
7440 anymore.
7441
7442 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7443 (EXT2_MAX_SYMLINKCNT): Likewise.
7444 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7445 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7446 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7447 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7448 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7449 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7450 (DN_MAX_OBJECT_SHIFT): Likewise.
7451 (DN_MAX_OFFSET_SHIFT): Likewise.
7452 (DN_MAX_OBJECT): Likewise.
7453 (DNODES_PER_LEVEL_SHIFT): Likewise.
7454 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7455 (SPA_MAXBLOCKSIZE): Likewise.
7456 (SPA_BLOCKSIZES): Likewise.
7457 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7458 (MZAP_MAX_BLKSZ): Likewise.
7459
74a1dce7
VS
74602012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7461
7462 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7463 handle NULL appropriately.
7464 Remove MIN.
7465
30c7d3ce
VS
74662012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7467
7468 Fix efiemu.
7469
7470 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7471 cpu/types.h.
7472 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7473 * configure.ac: Fix efiemu check.
7474
3c76ea0c
VS
74752012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7478 grub_probe.
7479 Reported by: adamwill
7480
7e532280
SG
74812012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7482
7483 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7484
30492374
VS
74852012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7486
7487 Fix handling of wide characters in gfxterm.
7488
7489 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7490 (clear_char): Likewise.
7491 (paint_char): Skip code == NULL chars.
7492 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7493
e70cb72f
VS
74942012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7495
7496 * grub-core/normal/charset.c: Move comment to right place.
7497
5c827cf9
VS
74982012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7499
7500 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7501 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7502 (grub_affs_mount): Revert the correct version checking.
7503
53603892
VS
75042012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7505
7506 * docs/grub.texi (Unicode): Mention several other unsupported features.
7507
ff094b9b
VS
75082011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7511 case statements as compile-time one.
7512 (direct_read): Prevent spurious warnings.
7513 (grub_squash_read_data): Likewise.
7514
c029da8a
VS
75152011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7516
7517 Various squash4 fixes and LZO and XZ support.
7518
7519 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7520 Add xzembed source files.
7521 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7522 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7523 (grub_squash_inode): New subtype long_dir.
7524 (SQUASH_TYPE_LONG_DIR): New inode type.
7525 (COMPRESSION): New enum.
7526 (XZBUFSIZ): New const.
7527 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7528 (read_chunk): Use data->decompress.
7529 (zlib_decompress): New function.
7530 (lzo_decompress): Likewise.
7531 (xz_decompress): Likewise.
7532 (squash_mount): Set new data fields.
7533 (grub_squash_iterate_dir): Handle long dir.
7534 (squash_unmount): Free xzdec and xzbuf.
7535 (grub_squash_open): Check ino type.
7536 (direct_read): Stylistic fixes. Use data->decompress.
7537 (grub_squash_read_data): Likewise.
7538 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7539 (get_byte): Likewise.
7540 (grub_zlib_disk_read): Removed.
7541 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7542 (GRUB_POSIX_BOOL_DEFINED): New define.
7543 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7544 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7545 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7546 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7547
7a45a539
VS
75482011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 Don't override more informative errors.
7551
7552 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7553 * grub-core/font/font.c (open_section): Likewise.
7554 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7555 filename. Don't override errors.
7556 (grub_cmd_openbsd_ramdisk): Don't override errors.
7557 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7558 (grub_cmd_initrd): Likewise.
7559 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7560 (grub_cmd_initrd): Likewise.
7561 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7562 (grub_cmd_linux): Likewise.
7563 (grub_cmd_initrd): Likewise.
7564 (grub_cmd_payload): Likewise.
7565 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7566 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7567 (grub_cmd_module): Likewise.
7568 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7569 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7570 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7571 (grub_cmd_xnu_mkext): Likewise.
7572 (grub_cmd_xnu_ramdisk): Likewise.
7573 (grub_xnu_check_os_bundle_required): Likewise.
7574 (grub_xnu_load_kext_from_dir): Likewise.
7575 (grub_cmd_xnu_kextdir): Likewise.
7576 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7577
b2d004db
VS
75782011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7579
7580 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7581 as 1024 in block size field. Found on one of my test images.
7582 Small optimisation while on it.
7583
ec000eac
VS
75842011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7587 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7588 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7589 performance fixes while on it.
7590 (grub_sfs_close): Fix memory leak while on it.
7591 (grub_sfs_label): Convert Latin1 to UTF-8.
7592
f50e1165
VS
75932011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7596 space to avoid overflows.
7597 (grub_hfs_label): Convert from macroman to UTF-8.
7598
2ae254de
VS
75992011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7602
0108f491
VS
76032011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7604
7605 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7606
f45f5f89
VS
76072011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * unicode: Import Unicode 6.0 data.
7610
4d8c4765
VS
76112011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7612
63fa8ef9
VS
7613 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7614 outside of range.
7615
76162011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7617
7618 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
7619
7620 * include/grub/charset.h (grub_getend): New function.
7621 * grub-core/script/function.c (grub_script_function_find): Use
7622 grub_getend.
7623 * grub-core/normal/completion.c (add_completion): Likewise.
7624
f3cb4a4e
VS
76252011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7626
7627 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7628 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7629 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7630 (GRUB_UNICODE_TAG_END): Likewise.
7631 (GRUB_UNICODE_LAST_VALID): Likewise.
7632
5da8dbc5
VS
76332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7634
7635 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7636 len and make it smaller. All users updated.
7637 * util/import_unicode.py: Put length and not end character.
7638 Check length.
7639
8569f13d
VS
76402011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7641
7642 Make better Unicode-compliant and unify some UTF-8 code pathes.
7643
7644 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7645 valid character.
7646 (grub_is_valid_utf8): Use grub_utf8_process.
7647 Check resulting code range.
7648 (grub_utf8_to_ucs4): Use grub_utf8_process.
7649 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7650 valid character.
7651
cc4fddf5
VS
76522011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7653
7654 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7655
bbc47747
VS
76562011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * docs/grub.texi (Filesystems): Mention AFS.
7659
f63d6bf4
VS
76602011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 * docs/grub.texi (Filesystems): Clarify restrictions.
7663 (Regexp): Mention non-Unicode regexp behaviour.
7664 (Other): Mention non-Unicode matching behaviour.
7665
74bbf0db
VS
76662011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7667
f63d6bf4 7668 Make HFS implementation use MacRoman.
74bbf0db
VS
7669
7670 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
7671 (macroman): New const array.
7672 (macroman_to_utf8): New function.
7673 (utf8_to_macroman): Likewise.
7674 (grub_hfs_find_dir): Use utf8_to_macroman.
7675 (grub_hfs_dir): Use macroman_to_utf8.
7676 Set case_insensitive.
7677
4ea0316e
VS
76782011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
7681
d3c13cbd
VS
76822011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7683
7684 Integrate hints into autogeneration scripts.
7685
7686 * docs/grub.texi (Filesystems): Add a hostdisk example.
7687 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
7688 (grub-probe): Add ofpath.
7689 * gentpl.py: Remove group nosparc64.
7690 * grub-core/commands/search.c (cache_entry): New struct.
7691 (cache): New var.
7692 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
7693 * grub-core/commands/search_wrap.c (options): Add platform-specific
7694 hint options.
7695 (grub_cmd_search): Handle platform-specific hints.
7696 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
7697 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
7698 (grub_util_biosdisk_data): Likewise.
7699 (grub_util_biosdisk_open): Set device_map.
7700 (read_device_map): Handle "" as indication of no map.
7701 Set device_map.
7702 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
7703 (grub_util_biosdisk_get_compatibility_hint): New function.
7704 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
7705 * include/grub/emu/hostdisk.h
7706 (grub_util_biosdisk_get_compatibility_hint): New proto.
7707 * util/grub-install.in: Don't call grub-mkdevicemap.
7708 Add platform-specific hint to load.cfg.
7709 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
7710 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
7711 hints. Set root preliminary to compatibility hint, not to OS name.
7712 * util/grub-probe.c (PRINT_*): Add hints.
7713 (print): Make static.
7714 (escape_of_path): New function.
7715 (guess_bios_drive): Likewise.
7716 (guess_efi_drive): Likewise.
7717 (guess_baremetal_drive): Likewise.
7718 (print_full_name): Likewise.
7719 (probe): Handle hints.
7720 (main): Likewise.
7721 * util/ieee1275/devicemap.c: Removed.
7722 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
7723 updated.
7724 (grub_util_devname_to_ofpath): Return NULL on failure.
7725
7726 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
7727 resource leak.
7728 * util/getroot.c (grub_util_pull_device): Fix memory leak.
7729
7730 * po/POTFILES.in: Regenerated.
7731
7732 Allow purely long options
7733
7734 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
7735 (SHORT_ARG_USAGE): Likewise.
7736 (grub_arg_show_help): Compare opt with help_options.
7737 (parse_option): Receive opt as argument. If makes big simplificatons.
7738 All users updated
7739
00ce2df3
VS
77402011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7741
7742 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
7743 Restructure to avoid warning.
7744
e77e325f
VS
77452011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7746
7747 * util/grub-install.in: Account for possible escaped comma in device
7748 name.
7749
165099ea
VS
77502011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7751
7752 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
7753 channel.
7754
ce4a999d
VS
77552011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7756
7757 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
7758 allocation and zero-setting.
7759 (grub_ieee1275_get_devname): Check that alias is complete.
7760
379586ad
VS
77612011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
7764 unaligned segments.
7765
9197b0ad
VS
77662011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
7767
7768 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
7769 prefix.
7770 (grub_ofdisk_open): Check and discard ieee1275 prefix.
7771 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
7772 Add ieee1275 prefix.
7773
edddb7f9
VS
77742011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7775
7776 * docs/grub.texi (Filesystems): Update.
7777
a1a8b1b9
VS
77782011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7779
7780 Support odc, newc and bigendian cpio formats.
7781
7782 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
7783 * grub-core/Makefile.core.def (newc): New module.
7784 (odc): Likewise.
7785 (cpio_be): Likewise.
7786 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
7787 (MAGIC): Likewise.
7788 (MAGIC2): Likewise.
7789 (head) [MODE_ODC]: Adapt for the format.
7790 (head) [MODE_NEWC]: Likewise.
7791 (head) [!MODE_*]: Write fields of interest as arrays.
7792 (MAGIC_USTAR): Removed.
7793 (read_number) [MODE_NEWC]: Change to hex.
7794 (read_number) [!MODE_*]: Parse binary arrays.
7795 (grub_cpio_find_file): Factor out the code for better structure and
7796 always use read_number.
7797 (grub_cpio_mount): Use MAGIC and MAGIC2.
7798 (grub_cpio_dir): Exit on first hook non-0 return.
7799 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
7800 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
7801 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
7802 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
7803 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
7804 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
7805 * grub-core/fs/newc.c: New file.
7806 * grub-core/fs/odc.c: Likewise.
7807 * grub-core/fs/cpio_be.c: Likewise.
7808
58eba9ee
VS
78092011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 Fix handling of tar numbers occupying the whole field.
7812
7813 * grub-core/fs/cpio.c (read_number): New function.
7814 (grub_cpio_find_file): Use read_number instead of strtoull.
7815
a54a0e12
VS
78162011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7817
7818 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
7819 occupying the whole field size.
7820
a6120aca
LA
78212011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
7822
7823 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
7824
a93964ce
VS
78252011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7826
7827 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
7828
3ea1ca46
SG
78292011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
7830
7831 * grub-core/Makefile.core.def (lzma_decompress): Add missing
7832 TARGET_IMG_LDFLAGS.
7833
b87f7ef2
VS
78342011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7835
7836 * util/getroot.c (ESCAPED_PATH_MAX): New define.
7837 (mountinfo_entry): Increase the field size to take escaping into
7838 account.
7839 (find_root_device_from_libzfs): Add one byte to size of strings for
7840 security.
7841
62092395
VS
78422011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7843
7844 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
7845 an assert.
7846 * util/grub-setup.c (setup): Likewise.
7847
1f0b1a77
VS
78482011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
7849
7850 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
7851 _LzmaDecodeA.
7852
8eba9997
VS
78532011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7854
7855 * docs/grub.texi (Internationalisation): New section.
7856
dd0c91e9
VS
78572011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
7858
7859 * docs/grub.texi (Loopback booting): New section.
7860
78612011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
7862
7863 * util/grub-mkstandalone.in: Fix minor typo errors.
7864
198e150a
VS
78652011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7866
7867 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
7868
7869 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
7870 net/icmp.c and net/icmp6.c.
7871 (http): New module.
7872 (priority_queue): Likewise.
7873 * grub-core/io/bufio.c: Rewritten.
7874 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
7875 TYPE_WITH_CONFIGFILE_OPTION.
7876 (legacy_commands): Add bootp and dhcp.
7877 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
7878 (grub_legacy_parse): Likewise.
7879 * grub-core/lib/priority_queue.c: New file.
7880 * grub-core/net/arp.c: Add missing license header.
7881 (arp_find_entry): Removed.
7882 (arp_find_entry): Likewise.
7883 (grub_net_arp_resolve): Rename to ...
7884 (grub_net_arp_send_request): ...this.
7885 (grub_net_arp_receive): New card argument.
7886 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
7887 Set router and DNS server.
7888 (grub_net_configure_by_dhcp_ack): Handle routing information.
7889 (grub_cmd_bootp): Set checksum.
7890 (grub_bootp_init): Remove net_dhcp.
7891 * grub-core/net/dns.c: New file.
7892 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
7893 completion.
7894 (get_card_packet): Handle allocation.
7895 (grub_efinet_findcards): Set mtu.
7896 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
7897 (get_card_packet): Handle allocation.
7898 (emucard): Set mtu.
7899 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
7900 (GRUB_MOD_INIT): Set mtu.
7901 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
7902 mtu.
7903 (get_card_packet): Handle allocation.
7904 (grub_ofnet_findcards): Set mtu.
7905 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
7906 assert.
7907 (grub_net_recv_ethernet_packet): Handle IPv6.
7908 * grub-core/net/http.c: New file.
7909 * grub-core/net/icmp.c: Likewise.
7910 * grub-core/net/icmp6.c: Likewise.
7911 * grub-core/net/ip.c (ip6addr): New type.
7912 (ip6hdr): Likewise.
7913 (reassemble): Likewise.
7914 (cmp): New function.
7915 (reassembles): New variable.
7916 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
7917 (id): New variable.
7918 (send_fragmented): New function.
7919 (grub_net_send_ip_packet): Rename to ...
7920 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
7921 Handle non-UDP.
7922 (grub_net_recv_ip_packets): Rename to ...
7923 (handle_dgram): ... this. Check checksum. Handle non-UDP.
7924 (free_rsm): New function.
7925 (free_old_fragments): Likewise.
7926 (grub_net_recv_ip4_packets): New function.
7927 (grub_net_send_ip6_packet): Likewise.
7928 (grub_net_send_ip_packet): Likewise.
7929 (grub_net_recv_ip6_packets): Likewise.
7930 (grub_net_recv_ip_packets): Likewise.
7931 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
7932 (LINK_LAYER_CACHE_SIZE): New const.
7933 (link_layer_find_entry): New function.
7934 (grub_net_link_layer_add_address): Likewise.
7935 (grub_net_link_layer_resolve_check): Likewise.
7936 (grub_net_link_layer_resolve): Likewise.
7937 (grub_net_ipv6_get_slaac): Likewise.
7938 (grub_net_ipv6_get_link_local): Likewise.
7939 (grub_cmd_ipv6_autoconf): Likewise.
7940 (parse_ip): Handle one number representation.
7941 (parse_ip6): New functoion.
7942 (match_net): Handle IPv6.
7943 (grub_net_resolve_address): Handle IPv6 and DNS.
7944 (grub_net_resolve_net_address): Handle IPv6.
7945 (route_cmp): New function.
7946 (grub_net_route_address): Find best route.
7947 (grub_net_addr_to_str): Handle IPv6.
7948 (grub_net_addr_cmp): New function.
7949 (grub_net_add_addr): Register local route.
7950 (print_net_address): Handle net address.
7951 (grub_net_poll_cards): Retransmit TCP.
7952 (grub_net_poll_cards_idle_real): Likewise.
7953 (have_ahead): New function.
7954 (grub_net_seek_real): Use underlying seek.
7955 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
7956 * grub-core/net/tcp.c: New file.
7957 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
7958 (cmp): New function.
7959 (ack): Likewise.
7960 (tftp_receive): Handle unordered input.
7961 (destroy_pq): New function.
7962 (tftp_close): Close pq.
7963 * grub-core/net/udp.c: Put missing license header.
7964 (grub_net_udp_socket): New function.
7965 (udp_socket_register): Likewise.
7966 (grub_net_udp_close): Likewise.
7967 (grub_net_recv_udp_packet): Check checksum.
7968 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
7969 * include/grub/misc.h (grub_memchr): New function.
7970 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
7971 (grub_net_card_driver): Return buf in recv.
7972 (grub_net_slaac_mac_list): New struct.
7973 (grub_network_level_protocol_id): Add ipv6.
7974 (grub_net_network_level_addr): Likewise.
7975 (grub_net_network_level_net_addr): Likewise.
7976 (grub_net_app_protocol): Add seek.
7977 (grub_net_socket): Removed.
7978 (grub_net_sockets): Likewise.
7979 (grub_net_socket_register): Likewise.
7980 (grub_net_socket_unregister): Likewise.
7981 (FOR_NET_SOCKETS): Likewise.
7982 (grub_net_add_addr): Add const.
7983 (GRUB_NET_BOOTP_*): New enum.
7984 (grub_net_addr_cmp): New proto.
7985 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
7986 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
7987 (grub_net_hwaddr_to_str): NEw proto.
7988 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
7989 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
7990 (grub_dns_init): New proto.
7991 (grub_dns_fini): Likewise.
7992 (grub_net_tcp_retransmit): Likewise.
7993 (grub_net_link_layer_add_address): Likewise.
7994 (grub_net_link_layer_resolve_check): Likewise.
7995 (grub_net_link_layer_resolve): Likewise.
7996 (grub_net_dns_lookup): Likewise.
7997 (grub_net_add_dns_server): Likewise.
7998 (grub_net_remove_dns_server): Likewise.
7999 (GRUB_NET_TRIES): New const.
8000 (GRUB_NET_INTERVAL): Likewise.
8001 * include/grub/net/arp.h: Mostly rewritten.
8002 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8003 * include/grub/net/ip.h: Mostly rewritten.
8004 * include/grub/net/netbuff.h: Indent.
8005 * include/grub/net/tcp.h: New file.
8006 * include/grub/net/udp.h: Mostly rewritten.
8007 * include/grub/priority_queue.h: New file.
8008 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8009 (grub_swap_bytes64_compile_time): Likewise.
8010 (grub_cpu_to_be16_compile_time): Likewise.
8011 (grub_cpu_to_be32_compile_time): Likewise.
8012 (grub_cpu_to_be64_compile_time): Likewise.
8013 (grub_be_to_cpu64_compile_time): Likewise.
8014
215c1800
VS
80152011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8016
8017 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8018 UINT_TO_PTR with cast.
8019
c17e546c
VS
80202011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8021
8022 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8023 don't use them.
8024
ff6b18b6
VS
80252011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8026
8027 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8028 already there.
8029
70ffcc93
VS
80302011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8031
8032 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8033 confusing ipxe.
8034
e5f4d260
VS
80352011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8036
8037 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8038 Add missing const attribute.
8039 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8040 Likewise.
8041 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8042 Likewise.
8043
8e54b4b7
VS
80442011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8045
8046 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8047 misaligned access.
8048 (serpent_setkey): Likewise.
8049 (serpent_encrypt_internal): Likewise.
8050 (serpent_decrypt_internal): Likewise.
8051 (serpent_encrypt): Don't put an alignment-increasing cast.
8052 (serpent_decrypt): Likewise.
8053 (serpent_test): Likewise.
8054
813c0a2b
VS
80552011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8056
8057 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8058
f2b60fbd
VS
80592011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8060
8061 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8062
8063 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8064 grub_addr_t casts.
8065 (PTR_TO_UINT64): Likewise.
8066 (PTR_TO_UINT32): Likewise.
8067
5ef5c511
VS
80682011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8069
8070 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8071 because of stack.
8072 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8073 limit.
8074
c476e6df
VS
80752011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8076
8077 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8078 text_width > available width a bit more gracefully.
8079
384ad7cc
VS
80802011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8081
8082 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8083 current address calculation.
8084
96f8caf8
VS
80852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8086
8087 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8088 stack.
8089 (encode_block): Likewise.
8090
276b7a8b
VS
80912011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8092
8093 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8094 certainety.
8095
e3fd394a
VS
80962011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8097
8098 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8099 non-RS part to avoid RS messing with GDT.
8100 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8101 Increase to suit in realmode routines.
8102
81032011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8104
8105 * grub-core/kern/i386/realmode.S: Increase alignment.
8106 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8107
ee9c2e7a
VS
81082011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8111 be deterministic.
8112 (syndroms): Compute 0 syndrom.
8113 (rs_recover): Use 0 syndrom.
8114
7a7f7cc9
VS
81152011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8116
8117 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8118
a14b16d1
VS
81192011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8120
8121 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8122 brackets.
8123
9f59e9fc
VS
81242011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8125
ca1b552c
VS
8126 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8127 account.
8128 (get_top_pad): Likewise.
8129 (get_right_pad): Likewise.
8130 (get_bottom_pad): Likewise.
8131
81322011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8133
8134 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 8135
e739d698
VS
81362011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8137
8138 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8139 attribute as the structure isn't guaranteed to be properly aligned.
8140 (grub_efi_pci_device_path): Likewise.
8141 (grub_efi_pccard_device_path): Likewise.
8142 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8143 specify the size of `memory_type'.
8144 (grub_efi_vendor_device_path): Likewise.
8145 (grub_efi_controller_device_path): Likewise.
8146 (grub_efi_acpi_device_path): Likewise.
8147 (grub_efi_expanded_acpi_device_path): Likewise.
8148 (grub_efi_atapi_device_path): Likewise.
8149 (grub_efi_scsi_device_path): Likewise.
8150 (grub_efi_fibre_channel_device_path): Likewise.
8151 (grub_efi_1394_device_path): Likewise.
8152 (grub_efi_usb_device_path): Likewise.
8153 (grub_efi_usb_class_device_path): Likewise.
8154 (grub_efi_i2o_device_path): Likewise.
8155 (grub_efi_mac_address_device_path): Likewise.
8156 (grub_efi_ipv4_device_path): Likewise.
8157 (grub_efi_ipv6_device_path): Likewise.
8158 (grub_efi_infiniband_device_path): Likewise.
8159 (grub_efi_uart_device_path): Likewise.
8160 (grub_efi_vendor_messaging_device_path): Likewise.
8161 (grub_efi_hard_drive_device_path): Likewise.
8162 (grub_efi_cdrom_device_path): Likewise.
8163 (grub_efi_vendor_media_device_path): Likewise.
8164 (grub_efi_file_path_device_path): Likewise.
8165 (grub_efi_protocol_device_path): Likewise.
8166 (grub_efi_piwg_device_path): Likewise.
8167 (grub_efi_bios_device_path): Likewise.
8168
cb8f88ea
VS
81692011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8172 (grub_ucs4_to_utf8_alloc): Likewise.
8173 (grub_ucs4_to_utf8): Likewise.
8174 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8175 (grub_ucs4_to_utf8_alloc): Likewise.
8176
309e5352
VS
81772011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 AFFS never uses unicode.
8180
8181 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8182 (grub_latin1_to_utf8): New inline function.
8183 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8184
e7987e1b
VS
81852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8186
8187 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8188 overflow.
8189
efc2616e
VS
81902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8191
8192 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8193 (grub_squash_dirent_header): Likewise.
8194 (read_chunk): Don't double swap.
8195 (grub_squash_iterate_dir): Fix swap sizes.
8196
3c349f5a
VS
81972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8198
8199 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8200
b453412d
VS
82012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8202
8203 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8204 (grub_hfs_iterate_dir): Likewise.
8205
12e9d4d1
VS
82062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8207
8208 Fix video on platforms where unaligned access is forbidden.
8209 Make several optimisations while on it.
8210
8211 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8212 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8213 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8214 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8215 Disable.
8216 (grub_video_fbblit_replace_16bit_1bit):
8217 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8218 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8219 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8220 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8221 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8222 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8223 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8224 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8225 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8226 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8227 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8228 (grub_video_fbblit_replace_index_RGB888): Likewise.
8229 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8230 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8231 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8232 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8233 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8234 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8235 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8236 Disable.
8237 (grub_video_fbblit_blend_XXX565_1bit):
8238 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8239 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8240 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8241 void *.
8242 * grub-core/video/fb/video_fb.c (common_blitter)
8243 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8244 (grub_video_fb_create_render_target_from_pointer)
8245 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8246 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8247 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8248 definition.
8249 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8250
ace96609
VS
82512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8252
8253 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8254 HH22 and HM10 relocations.
8255
fd261d73
VS
82562011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8257
8258 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8259
e59b7857
VS
82602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8261
8262 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8263 allocation succeeded.
8264
9b4baaa4
VS
82652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8268 argument a u8 pointer. All users updated.
8269 Handle unaligned buffers.
8270
dc713193
VS
82712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8274 add_part to workaround compiler bug.
8275
30dd48c2
VS
82762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8277
8278 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8279
0c6087a8
VS
82802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8283 Reserve alignment invariants.
8284 (grub_multiboot_load): Likewise.
8285 (retrieve_video_parameters): Likewise.
8286 (grub_multiboot_make_mbi): Likewise.
8287
c2e77777
VS
82882011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8289
8290 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8291 incorrect pointer.
8292
b70b6d11
VS
82932011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8294
8295 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8296 (grub_pata_pio_write): Likewise.
8297
02a2bf83
VS
82982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8299
8300 Add noreturn attributes and remove unreachable code.
8301
8302 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8303 code.
8304 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8305 code. Mark as noreturn.
8306 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8307 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8308 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8309 unreachable code.
8310 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8311 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8312 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8313 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8314 * include/grub/kernel.h (grub_main): Mark as noreturn.
8315 * include/grub/reader.h (grub_rescue_run): Likewise.
8316
2019d09e
VS
83172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8318
8319 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8320 redundant declaration.
8321
d1c501ee
VS
83222011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8325 redundant declaration.
8326 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8327
61664420
VS
83282011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8329
8330 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8331 to ensure alignment.
8332 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8333 alignment. Ensure tmp alignment.
8334 (grub_cmd_hdparm): Ensure buf alignment.
8335 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8336 to ensure alignment.
8337 (grub_ata_dumpinfo): Ensure text alignment.
8338 (grub_atapi_identify): Preserve alignment invariant.
8339 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8340
0d51ee20
VS
83412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8342
8343 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8344 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8345 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8346 * include/grub/misc.h (grub_reboot)
8347 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8348 (grub_halt) [__mips__]: Likewise.
8349
753ef8c1
VS
83502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8351
8352 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8353 Remove redundant declaration.
8354 (grub_mmap_get_post64): Likewise.
8355 (grub_mmap_get_upper): Likewise.
8356 (grub_mmap_get_lower): Likewise.
8357
85c85365
VS
83582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8361 uint32_t * to ensure alignment.
8362 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8363
a23f2cc4
VS
83642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8365
93018f64
VS
8366 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8367 uint16_t * to ensure alignment.
8368 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8369 alignment.
8370
83712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8372
8373 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
8374 to ensure alignment.
8375 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8376
58acccd6
VS
83772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8378
8379 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8380 Handle unaligned pointers.
8381 (u32at): Likewise.
8382 (u64at): Likewise.
8383 (fixup): Use byte access instead of v16at.
8384 (find_attr): Fix imporper usage of v32at.
8385 (read_data): Likewise.
8386 (list_file): Handle byte-swapping and unaligned strings.
8387 (grub_ntfs_label): Likewise.
8388
9b05cad7
VS
83892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8390
8391 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8392 as it's not necessarily aligned.
8393
b3950b84
VS
83942011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8395
8396 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8397 redundant declaration.
8398 (grub_serial_init): Likewise.
8399 (grub_terminfo_init): Likewise.
8400
fcd232b7
VS
84012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8402
8403 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8404 function.
8405 (ZAP_HASH_IDX): Likewise.
8406 (ZAP_LEAF_HASH_SHIFT): Likewise.
8407 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8408 (LEAF_HASH): Likewise.
8409 (ZAP_LEAF_NUMCHUNKS): Likewise.
8410 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8411 alignment invariants. Return pointer. All users updated.
8412 (ZAP_LEAF_ENTRY): Make into inline function.
8413 (NBBY): Removed.
8414 (xor): LIkewise.
8415 (xor_out): Use grub_crypto_xor.
8416 (dnode_get_path): Use grub_get_unaligned.
8417 (nvlist_find_value): Likewise.
8418 (grub_zfs_nvlist_lookup_uint64): Likewise.
8419 (grub_zfs_nvlist_lookup_string): Likewise.
8420 (get_nvlist_size): Likewise.
8421 (grub_zfs_open): Likewise.
8422 (fill_fs_info): Likewise.
8423 (grub_zfs_dir): Likewise.
8424 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8425 alignment invariants.
8426 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8427 necessarily aligned.
8428
f138623a
VS
84292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8430
8431 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8432
564840dc
VS
84332011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8434
8435 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8436 arithmetic to conserve alignment invariants.
8437
9b40df20
VS
84382011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8441 redundant declaration.
8442 (grub_efiemu_mm_obtain_request): Likewise.
8443 (grub_efiemu_prepare): Likewise.
8444
d1c930f9
VS
84452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8448 to match types.
8449
4c5f3056
VS
84502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8451
8452 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8453 case of aunaligned recptr.
8454 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8455 alignment.
8456 (grub_hfsplus_btree_search): Handle unaligned index.
8457
728cba91
VS
84582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8459
8460 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8461 to get freetag and skip.
8462
eb561f31
VS
84632011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8464
8465 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8466 array.
8467 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8468 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8469
20993fbb
VS
84702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8471
8472 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8473 name for checksum and fix allocation algorithm.
8474
1f313b94
VS
84752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 * include/grub/types.h (grub_properly_aligned_t): New type.
8478 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8479 (grub_get_unaligned16): Add explicit casts.
8480 (grub_get_unaligned32): Likewise.
8481 (grub_get_unaligned64): Likewise.
8482 (grub_set_unaligned16): New function.
8483 (grub_set_unaligned32): Likewise.
8484
47ae27ec
VS
84852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8486
8487 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8488
78c2cd1c
VS
84892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8490
8491 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8492 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8493 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8494
53072f9b
VS
84952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8496
8497 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8498 conditionals.
8499
055dc239
VS
85002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8501
8502 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8503 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8504
496bd074
VS
85052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8506
8507 Unify and improve RAID and crypto xor.
8508
8509 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8510 changed to grub_crypto_xor
8511 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8512 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8513 Use bigger types when possible.
8514
ef6e4335
VS
85152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8516
8517 * grub-core/disk/raid.c (scan_devices): Fix condition.
8518
5d048bf2
VS
85192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8522 Make name a const ptr.
8523
ee533335
VS
85242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8525
8526 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8527 first argument a const pointer.
8528 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8529 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8530 proto.
8531 (grub_children_iterate): Likewise.
8532 (grub_machine_mmap_iterate): Remove redundant declaration.
8533
cc8f3668
VS
85342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8535
8536 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8537 (grub_cmd_acpi) [!x86]: Disable EBDA.
8538
c5fc563a
VS
85392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8540
8541 Enable UTF8 in gnulib regexp.
8542
8543 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8544 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8545 (isupper): Use grub_isupper.
8546 (isascii): New inline function.
8547 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8548 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8549 * grub-core/normal/charset.c (grub_utf8_process): New function.
8550 (grub_utf8_to_utf16): Use grub_utf8_process.
8551 (grub_encode_utf8_character): New function.
8552 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8553 * include/grub/charset.h (grub_utf8_process): New declaration.
8554 (grub_encode_utf8_character): Likewise.
8555 * include/grub/misc.h (grub_islower): New inline function.
8556 (grub_isupper): Likewise.
8557 (grub_strchrsub): Moved down to fix the definitions.
8558
0af2346f
VS
85592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8560
8561 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8562 specification.
8563
74dbd244
VS
85642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8565
8566 * include/grub/loader.h (grub_loader_register_preboot_hook):
8567 Use struct preboot * and not void * for handle. All users updated.
8568 (grub_loader_unregister_preboot_hook): Likewise.
8569
1bc8f60d
VS
85702011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8573 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8574 UTF-16-BE. All users updated.
8575 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8576 (grub_hfsplus_iterate_dir): Likewise.
8577 (grub_hfsplus_label): Likewise.
8578
48d6e456
VS
85792011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8580
8581 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8582
bf3a3857
VS
85832011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8584
8585 Add missing const qualifiers.
8586
8587 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8588 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8589 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8590 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8591 (grub_lvm_check_flag): Likewise.
8592 * grub-core/efiemu/i386/coredetect.c
8593 (grub_efiemu_get_default_core_name): Likewise
8594 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8595 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8596 * grub-core/fs/ntfs.c (fixup): Likewise.
8597 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8598 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8599 (fzap_lookup): Likewise.
8600 (zap_lookup): Likewise.
8601 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8602 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8603 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8604 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8605 (grub_freebsd_add_meta_module): Likewise.
8606 (grub_cmd_freebsd_module): Likewise.
8607 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8608 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8609 (grub_xnu_writetree_get_size): Likewise.
8610 (grub_xnu_writetree_toheap_real): Likewise.
8611 (grub_xnu_find_key): Likewise.
8612 (grub_xnu_create_key): Likewise.
8613 (grub_xnu_create_value): Likewise.
8614 (grub_xnu_register_memory): Likewise.
8615 (grub_xnu_check_os_bundle_required): Likewise.
8616 (grub_xnu_scan_dir_for_kexts): Likewise.
8617 (grub_xnu_load_kext_from_dir): Likewise.
8618 * grub-core/normal/color.c (color_list): Likewise.
8619 * grub-core/normal/completion.c (current_word): Likewise.
8620 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8621 * grub-core/term/serial.c (grub_serial_find): Likewise.
8622 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8623 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8624 Likewise.
8625 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8626 (grub_freebsd_add_meta_module): Likewise.
8627 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8628 * include/grub/net.h (grub_net_card_driver): Likewise.
8629 (grub_net_card): Likewise.
8630 (grub_net_app_protocol): Likewise.
8631 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8632 * include/grub/serial.h (grub_serial_find): Likewise.
8633 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8634 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8635 (grub_xnu_create_value): Likewise.
8636 (grub_xnu_find_key): Likewise.
8637 (grub_xnu_scan_dir_for_kexts): Likewise.
8638 (grub_xnu_load_kext_from_dir): Likewise.
8639
8640 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8641 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8642 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8643 Moved from here ...
8644 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8645
112b4837
CW
86462011-11-28 Colin Watson <cjwatson@ubuntu.com>
8647
8648 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8649
49e891ac
VS
86502011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8651
8652 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8653 (read_device): Fix size calculation.
8654
fd258e5c
RM
86552011-11-25 Robert Millan <rmh@gnu.org>
8656
8657 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8658 (find_root_device_from_libzfs): Add zpool output parser to be used
8659 as fallback when libzfs isn't available.
8660
78845dc2
SG
86612011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8662
8663 * po/Makefile.in.in: Add missing escape-continuation.
8664
adac5211
VS
86652011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
8666
8667 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
8668
10b64f1c
VS
86692011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8670
8671 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
8672
bb416954
VS
86732011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8674
8675 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
8676
bdfe9eeb
VS
86772011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
8680
581ffa8a
VS
86812011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
8682
8683 * grub-core/lib/adler32.c: Add missing license specification.
8684 * grub-core/lib/crc64.c: Likewise.
8685 * grub-core/loader/i386/pc/plan9.c: Likewise.
8686 * grub-core/partmap/plan.c: Likewise.
8687
2536cf64
LK
86882011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
8689
8690 Add facility to debug GRUB with gdb under qemu.
8691
8692 * grub-core/gdb_grub.in: New file.
8693 * grub-core/gmodule.pl.in: Likewise.
8694 * grub-core/Makefile.core.def (gmodule.pl): New script.
8695 (gdb_grub): Likewise.
8696
bc108a4a
VS
86972011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8698
8699 * util/grub-mount.c (argp_parser): Accept relative pathes.
8700 * util/grub-fstest.c (argp_parser): Likewise.
8701
111c1778
VS
87022011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8703
8704 Plan9 support.
8705
8706 * Makefile.util.def (libgrubmods): Add
8707 grub-core/partmap/plan.c.
8708 * docs/grub.texi: Notice Plan9 support.
8709 * grub-core/Makefile.core.def (plan9): New module.
8710 (part_plan): Likewise.
8711 * grub-core/loader/i386/pc/plan9.c: New file.
8712 * grub-core/partmap/plan.c: Likewise.
8713 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
8714 define.
8715 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
8716 * include/grub/mm.h (grub_extend_alloc): New inline function.
8717
c30be3b6
VS
87182011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 Make Reed-Solomon faster by using power of generator representation of
8721 GF(256)*.
8722
8723 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
8724 (gf_double_t): Likewise.
8725 (gf_invert): Removed.
8726 (gf_powx): New array.
8727 (gf_powx_inv): Likewise.
8728 (scratch): Move higher.
8729 (gf_reduce): Removed.
8730 (gf_mul): Use powx.
8731 (gf_invert): Likewise.
8732 (init_inverts): Replaced with ...
8733 (init_powx): ...this. All users updated.
8734 (pol_evaluate): Replace multiplications with additions.
8735 (rs_encode): Likewise.
8736 (gauss_eliminate): Call gf_invert.
8737 (grub_reed_solomon_add_redundancy): Call init_powx.
8738 (grub_reed_solomon_recover): Call init_powx unconditionally.
8739
fa5aeffc
VS
87402011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8741
8742 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
8743
a346b81c
VS
87442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8745
8746 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
8747 disk->partiton for safety.
8748
d89ee414
VS
87492011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8750
8751 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8752 Fix a memory leak.
8753 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
8754
91ee7b6d
VS
87552011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8756
8757 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
8758
91e5a33d
VS
87592011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8760
8761 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
8762
9edd7be2
VS
87632011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8764
8765 Fix spaces handling in proc/self/mountinfo.
8766
8767 * util/getroot.c (unescape): New function.
8768 (grub_find_root_device_from_mountinfo): Use unescape.
8769
ba102053
VS
87702011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8771
8772 Support ZFS embedding.
8773
8774 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
8775 (grub_zfs_fs): Register grub_zfs_embed.
8776
aa94b870
VS
87772011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8778
8779 Fix MIPS compilation.
8780
8781 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
8782 * include/grub/offsets.h: Rename decompressor fields from
8783 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
8784 * util/grub-mkimage.c (image_targets): Use new names.
8785
5fbdac14
VS
87862011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8787
8788 Defer multiboot device parsing until we're in compressed part.
8789
8790 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
8791 bsd_part. setdevice has fallen into disuse.
8792 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
8793 (bsd_part): Likewise.
8794 (boot_dev): New variable.
8795 (multiboot_trampoline): Don't parse multiboot device.
8796 Pass multiboot device in %edx.
8797 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
8798 grub_boot_device.
8799 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
8800 Likewise.
8801 * grub-core/kern/i386/pc/startup.S: Save edx.
8802 (grub_boot_drive): Removed.
8803 (grub_install_dos_part): Likewise.
8804 (grub_install_bsd_part): Likewise.
8805 (grub_boot_device): New variable.
8806 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
8807 (grub_install_bsd_part): Likewise.
8808 (grub_boot_drive): Likewise.
8809 (grub_boot_device): New variable.
8810 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
8811 Removed.
8812 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
8813 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
8814 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
8815 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
8816 * util/grub-install.in: Remove redundant condition.
8817
691cbb58
VS
88182011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8819
8820 Fix bug introduced by previous commit.
8821
8822 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
8823
60240b8b
VS
88242011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8825
8826 Use decompressors framework on i386-pc. It increases core size
8827 by 46 bytes but improves compatibility and maintainability.
8828
8829 * grub-core/Makefile.core.def (lzma_decompress): New image.
8830 (kernel): Add i386_pc_ldflags.
8831 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
8832 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
8833 to real_to_prot, prot_to_real and device info.
8834 * include/grub/offsets.h: Renamed decompressor offsets.
8835 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
8836 (image_target_desc): Remove raw_size and rename decompressor fields.
8837 (compress_kernel): Handle lzma.
8838 (generate_image): Handle decompressors on i386-pc.
8839
e9d3421c
VS
88402011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 * configure.ac: Add -fno-asynchronous-unwind-tables.
8843
2b23074a
VS
88442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8845
8846 Move assembly code to C by using intwrap. It increases core size
8847 by 88 bytes but improves compatibility and maintainability.
8848
8849 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
8850 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
8851 ... here. Translated to C.
8852 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
8853 * grub-core/term/i386/pc/console.c (grub_console_getkey):
8854 ... here. Translated to C.
8855 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
8856 * grub-core/term/i386/pc/console.c (grub_console_getxy):
8857 ... here. Translated to C.
8858 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
8859 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
8860 ... here. Translated to C.
8861 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
8862 * grub-core/term/i386/pc/console.c (grub_console_cls):
8863 ... here. Translated to C.
8864 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
8865 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
8866 ... here. Translated to C.
8867 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
8868 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
8869 Translated to C.
8870 * grub-core/term/i386/pc/console.c (int10_9): New function.
8871 (grub_console_putchar): Likewise.
8872 * include/grub/i386/pc/console.h: Removed the not anymore shared
8873 functions.
8874
678f4b67
VS
88752011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 Move grub_chainloader_real_boot out of the kernel.
8878
8879 * grub-core/Makefile.am: Remove machine/loader.h.
8880 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
8881 Removed.
8882 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
8883 variable.
8884 (grub_relocator16_keep_a20_enabled): Likewise.
8885 (grub_relocator16_boot): Fill new variables.
8886 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
8887 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
8888 relocator.
8889 (grub_chainloader_unload): Likewise.
8890 (grub_chainloader_cmd): Likewise.
8891 * include/grub/i386/pc/loader.h: Removed.
8892 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
8893 and esi. All initialisers updated.
8894
4626edf6
VS
88952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
88962011-11-12 Colin Watson <cjwatson@ubuntu.com>
8897
8898 * Makefile.util.def (grub-mount): New util.
8899 * .bzrignore: Add grub-mount.
8900 * configure.ac: Check for fuse and enable grub-mount if available.
8901 * docs/man/grub-mount.h2m: New file.
8902 * util/grub-mount.c: Likewise.
8903
10f0117b
VS
89042011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8905
8906 * grub-core/commands/efi/fixvideo.c: Gettextize.
8907 * grub-core/commands/hashsum.c: Likewise.
8908 * grub-core/commands/i386/cmostest.c: Likewise.
8909 * grub-core/commands/i386/pc/drivemap.c: Likewise.
8910 * grub-core/commands/i386/pc/lsapm.c: Likewise.
8911 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8912 * grub-core/commands/lsmmap.c: Likewise.
8913 * grub-core/commands/menuentry.c: Likewise.
8914 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8915 * grub-core/commands/setpci.c: Likewise.
8916 * grub-core/loader/i386/bsd.c: Likewise.
8917 * grub-core/loader/i386/linux.c: Likewise.
8918 * util/getroot.c: Likewise.
8919 * util/grub-editenv.c: Likewise.
8920 * util/grub-fstest.c: Likewise.
8921 * util/grub-mkfont.c: Likewise.
8922 * util/grub-mkimage.c: Likewise.
8923 * util/grub-mkpasswd-pbkdf2.c: Likewise.
8924 * util/grub-pe2elf.c: Likewise.
8925 * util/grub-probe.c: Likewise.
8926 * util/grub-setup.c: Likewise.
8927 * util/ieee1275/ofpath.c: Likewise.
8928 * util/misc.c: Likewise.
8929 * util/raid.c: Likewise.
8930
566f779b
RM
89312011-11-11 Robert Millan <rmh@gnu.org>
8932
8933 * util/getroot.c (grub_util_get_geom_abstraction): Remove
8934 __attribute__((unused)) from `os_dev', which *is* being used.
8935
b50787de
VS
89362011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8937
8938 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
8939 forgotten define.
8940 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
8941 GRUB_IA64_DL_GOT_ALIGN.
8942 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
8943 GRUB_IA64_DL_TRAMP_ALIGN.
8944
119d11c8
VS
89452011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8946
8947 Replace grub_fatal with normal errors in i386 linux loader.
8948
8949 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
8950 (allocate_pages): Check find_efi_mmap_size return value.
8951 (grub_e820_add_region): Return error.
8952 (grub_linux_boot): Check mmap return value.
8953
6e0632e2
VS
89542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
8955
8956 * grub-core/commands/acpihalt.c: Gettextized.
8957 * grub-core/commands/cacheinfo.c: Likewise.
8958 * grub-core/commands/cmp.c: Likewise.
8959 * grub-core/commands/efi/loadbios.c: Likewise.
8960 * grub-core/commands/gptsync.c: Likewise.
8961 * grub-core/commands/ieee1275/suspend.c: Likewise.
8962 * grub-core/commands/legacycfg.c: Likewise.
8963 * grub-core/commands/memrw.c: Likewise.
8964 * grub-core/commands/minicmd.c: Likewise.
8965 * grub-core/commands/parttool.c: Likewise.
8966 * grub-core/commands/time.c: Likewise.
8967 * grub-core/commands/videoinfo.c: Likewise.
8968 * grub-core/disk/geli.c: Likewise.
8969 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
8970 * grub-core/disk/luks.c: Likewise.
8971 * grub-core/disk/lvm.c: Likewise.
8972 * grub-core/font/font_cmd.c: Likewise.
8973 * grub-core/fs/zfs/zfscrypt.c: Likewise.
8974 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8975 * grub-core/gfxmenu/view.c: Likewise.
8976 * grub-core/kern/emu/hostdisk.c: Likewise.
8977 * grub-core/kern/emu/main.c: Likewise.
8978 * grub-core/kern/emu/misc.c: Likewise.
8979 * grub-core/kern/emu/mm.c: Likewise.
8980 * grub-core/kern/mips/arc/init.c: Likewise.
8981 * grub-core/kern/mips/loongson/init.c: Likewise.
8982 * grub-core/kern/partition.c: Likewise.
8983 * grub-core/lib/i386/halt.c: Likewise.
8984 * grub-core/lib/mips/arc/reboot.c: Likewise.
8985 * grub-core/lib/mips/loongson/reboot.c: Likewise.
8986 * grub-core/loader/i386/pc/chainloader.c: Likewise.
8987 * grub-core/loader/i386/xnu.c: Likewise.
8988 * grub-core/loader/multiboot.c: Likewise.
8989 * grub-core/net/bootp.c: Likewise.
8990 * grub-core/net/net.c: Likewise.
8991 * grub-core/normal/term.c: Likewise.
8992 * grub-core/partmap/bsdlabel.c: Likewise.
8993 * grub-core/parttool/msdospart.c: Likewise.
8994 * grub-core/term/gfxterm.c: Likewise.
8995 * grub-core/term/terminfo.c: Likewise.
8996 * grub-core/video/i386/pc/vbe.c: Likewise.
8997 * util/grub-menulst2cfg.c: Likewise.
8998 * util/grub-mkdevicemap.c: Likewise.
8999 * util/grub-mklayout.c: Likewise.
9000 * util/grub-mkrelpath.c: Likewise.
9001 * util/grub-script-check.c: Likewise.
9002 * util/ieee1275/grub-ofpathname.c: Likewise.
9003 * util/resolve.c: Likewise.
9004
073aa7a9
VS
90052011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9006
9007 Support %1$d syntax.
9008
9009 * tests/printf_unit_test.c: New file.
9010 * Makefile.util.def (printf_test): New test.
9011 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9012
c76b5417
VS
90132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9016 fix.
9017
df067ad1
VS
90182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9019
9020 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9021 dprintf.
9022 * grub-core/font/font.c (grub_font_load): Likewise.
9023
5b289bc5
VS
90242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 * util/grub-macho2img.c: Add comment concerning gettext.
9027 * grub-core/lib/legacy_parse.c: Likewise.
9028
c1860f87
VS
90292011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9032 (grub_xvasprintf): Likewise.
9033
d35d0d37
VS
90342011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9035
9036 Add const keyword to grub_env_get and gettextize week days.
9037
9038 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9039 (grub_read_hook_datetime): Return const char *.
9040 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9041 updated.
9042 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9043 Mark for gettext.
9044 (grub_get_weekday_name): Return const char *. Call gettext.
9045 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9046 char * and len as the argument. All users updated.
9047 (grub_script_argv_split_append): Receive const char *.
9048 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9049 * include/grub/env.h (grub_env_get): Likewise.
9050 (grub_env_read_hook_t): Return const char *.
9051 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9052 (grub_script_argv_split_append): Likewise.
9053
9aed8a71
VS
90542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9055
9056 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9057
067fdf00
VS
90582011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9061 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9062
a8bd9d39
VS
90632011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9066 Fix prototype.
9067
f7ce5baf
VS
90682011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 Fix mips compilation.
9071
9072 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9073 normal decoder.
9074 (hashes): Use in embed decoder as well (for sizes).
9075 (dec_stream_header): Fix embed decompressor logic.
9076 (dec_stream_footer): Likewise.
9077
9bb182f3
VS
90782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9079
9080 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9081 an error and not a fatal on unrecognised relocation types.
9082
63a9e6f6
VS
90832011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9086 Issue error rather than printf on unknown arguments.
9087
4c458569
VS
90882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9089
9090 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9091 Make buf a const.
9092
e2d22baf
VS
90932011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9096 Fix module name.
9097
53dc8590
VS
90982011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9101 leftover debug printf.
9102
6c189294
VS
91032011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9104
9105 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9106
f7688369
VS
91072011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9110 A stylistic fix.
9111
11a775a3
VS
91122011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9113
9114 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9115
33f784e8
SL
91162011-11-10 Shea Levy <slevy@tieronedesign.com>
9117
9118 Allow all modules to perform serial IO
9119
9120 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9121 * include/grub/serial.h (grub_serial_port_configure): New inline
9122 function.
9123 (grub_serial_port_fetch): Likewise.
9124 (grub_serial_port_put): Likewise.
9125 (grub_serial_port_fini): Likewise.
9126 (grub_serial_find): New proto.
9127
f6276525
VS
91282011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 Put symlink at the end of the node and fix a potential
9131 memory corruption.
9132
9133 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9134 Make symlink into an array.
9135 (set_rockridge): Set have_symlink and alloc_dirents.
9136 (grub_iso9660_read_symlink): Use new layout.
9137 (grub_iso9660_iterate_dir): Fix memory corruption.
9138 Use new layout.
9139 (grub_iso9660_dir): Set have_symlink.
9140 (grub_iso9660_open): Likewise.
9141
c3591189
VS
91422011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9143
9144 Remove local keyword.
9145
9146 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9147 (version_test_gt): Likewise.
9148 (version_find_latest): Likewise.
9149 (gettext_printf): Likewise.
9150 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9151
cb544caa
VS
91522011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9153
9154 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9155
45bd824d
VS
91562011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9157
9158 Fix ZFS memory and resource leaks.
9159
9160 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9161 All users updated.
9162 Free type on exit.
9163 (fill_vdev_info): New parameter inserted. All users updated.
9164 (check_pool_label): Likewise.
9165 (scan_disk): Likewise.
9166 (scan_devices): Close non-inserted disks.
9167 (fzap_iterate): Free l.
9168 (unmount_device): Free children descripto memory.
9169
ad9a2f44
VS
91702011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9171
9172 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9173 argument (access out of bounds).
9174
6b68db81
VS
91752011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9178 >= 6 drives.
9179
28840fda
VS
91802011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9181
9182 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9183 Fix declaration.
9184
8a5a3a5b
VS
91852011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9186
9187 Fix several memory leaks.
9188
9189 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9190 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9191 (grub_cpio_dir): Likewise.
9192 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9193 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9194 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9195 (grub_romfs_label): Likewise.
9196 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9197 (squash_unmount): New function.
9198 (grub_squash_dir): Fix memory leak.
9199 (grub_squash_open): Likewise.
9200 (grub_squash_read): Likewise.
9201 (grub_squash_mtime): Likewise.
9202 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9203 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9204 * util/grub-fstest.c (fstest): Likewise.
9205
57b01250
VS
92062011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9207
9208 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9209 avoid accessing beyond the array.
9210
19e81ba7
VS
92112011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9212
9213 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9214
52b656c0
VS
92152011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9216
9217 Several AFFS fixes.
9218
9219 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9220 (GRUB_AFFS_FLAG_FFS): Removed.
9221 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9222 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9223 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9224 (grub_fshelp_node): Make block 32-bit.
9225 Add block_cache and last_block_cache.
9226 (grub_affs_read_block): Fill and use block cache.
9227 (grub_affs_read_file): Removed.
9228 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9229 boot block.
9230 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9231 safety.
9232 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9233 space.
9234 (grub_affs_close): Free block cache.
9235 (grub_affs_read): Use grub_fshelp_read_file directly.
9236
438a746a
VS
92372011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9238
9239 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9240 with no error set.
9241
49a45021
VS
92422011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9243
9244 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9245 used variable.
9246 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9247 Likewise.
9248
3ae17eb8
VS
92492011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9250
9251 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9252
9253 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9254 byteswap when needed.
9255
27610c38
VS
92562011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9257
9258 Fix FreeBSD compilation.
9259
9260 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9261 to avoid circular dependency.
9262 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9263 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9264 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9265
4a19b601
VS
92662011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9267
9268 Fix ZFS crypto error types.
9269
9270 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9271 (grub_gcm_decrypt): Likewise.
9272 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9273 from PBKDF2.
9274
958ee221
VS
92752011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 Illumos support.
9278
9279 * Makefile.util.def (10_illumos): New script.
9280 * configure.ac: Set COND_HOST_ILLUMOS.
9281 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9282 Support Illumos calls.
9283 (find_partition_start) [__sun__]: Likewise.
9284 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9285 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9286 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9287 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9288 device.
9289 * util/grub-probe.c (probe) [__sun__]: Do character check.
9290 * util/grub.d/10_illumos.in: New file.
9291
cac14fb6
VS
92922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9293
9294 Support escaped commas in hostdisk.
9295
9296 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9297 (find_grub_drive): Use unescape_cmp.
9298 (make_device_name): Escape commas.
9299
78e08dc3
VS
93002011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9303
9f421dd1
VS
93042011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9305
9306 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9307 variable.
9308
ed64e9e2
VS
93092011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9310
9311 Support trampoline jumps on powerpc.
9312
9313 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9314 __ia64__ path.
9315 (grub_dl_load_segments): Set mod->sz.
9316 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9317 segments.
9318 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9319 (jump): Likewise.
9320 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9321 function.
9322 (trampoline): New struct.
9323 (trampoline_template): New const.
9324 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9325 * include/grub/dl.h (grub_dl): Add sz element.
9326 [__powerpc__]: Follow __ia64__.
9327 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9328 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9329 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9330 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9331
3084ede4
VS
93322011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 ZFS crypto support.
9335
9336 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9337 * grub-core/Makefile.core.def (zfscrypt): New module.
9338 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9339 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9340 it. All users updated.
9341 (grub_zfs_decrypt): New var.
9342 (grub_zfs_load_key): Likewise.
9343 (zio_checksum_functions): Add SHA256+MAC.
9344 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9345 (zio_read): Handle encrypted blocks.
9346 (zap_verify): Remove incorrect check.
9347 (fzap_iterate): Handle non-standard fzap.
9348 (zap_iterate): Likewise.
9349 (zap_iterate_u64): New function.
9350 (dnode_get_fullpath): Load keys.
9351 * grub-core/fs/zfs/zfscrypt.c: New file.
9352 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9353 (grub_crypto_ecb_encrypt): Make input const.
9354 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9355 (grub_crypto_ecb_encrypt): Make input const.
9356 (GRUB_CIPHER_AES): New macro.
9357 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9358 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9359 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9360 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9361 prefix. All users updated.
9362 (grub_zfs_add_key): New proto.
9363 (grub_zfs_decrypt): Likewise.
9364 (grub_zfs_load_key): Likewise.
9365 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9366 * util/grub-fstest.c (options): Add -K option.
9367 (argp_parser): Likewise.
9368
b632b404
VS
93692011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9370
9371 Support zle compression on ZFS.
9372
9373 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9374 (decomp_table): Add zle.
9375 * include/grub/zfs/zio.h (zio_compress): Add zle.
9376
c7ba4f69
VS
93772011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9378
9379 Support BtrFS embedding.
9380
9381 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9382 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9383 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9384 * util/grub-setup.c (setup): Use fs embedding if available.
9385 Add additional sanity check.
9386
455377d9
VS
93872011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * util/grub-install.in: Fix condition for config_opt.
9390
c2fd16ca
VS
93912011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 Support third redundancy strip on raidz3.
9394
9395 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9396 Return error on singularity. All users updated.
9397 (read_device): Don't stop on 3rd failure on raidz3.
9398
8622923b
VS
93992011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9400
9401 Support case-insensitive ZFS subvolumes.
9402
9403 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9404 All users updated.
9405 (zap_hash): Likewise.
9406 (name_cmp): New function.
9407 (zap_leaf_array_equal): New parameter case_insensitive.
9408 All users updated.
9409 (zap_leaf_lookup): Likewise.
9410 (fzap_lookup): Likewise.
9411 (zap_lookup): Likewise.
9412 (dnode_get_path): New parameter case_insensitive. Retrieve case
9413 sensitiviness of a volume. All users updated.
9414 (dnode_get_fullpath): New parameter case_insensitive.
9415 All users updated.
9416 (grub_zfs_dir): Set info.case_insensitiveness.
9417
95f2e860
VS
94182011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 Support second redundancy strip on raidz(2,3).
9421
9422 * grub-core/fs/zfs/zfs.c (powx): New array.
9423 (powx_inv): Likewise.
9424 (poly): New const.
9425 (xor_out): New function.
9426 (gf_mul): Likewise.
9427 (recovery): Likewise.
9428 (read_device): Use second redundancy strip.
9429
11ee4389
VS
94302011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9431
9432 Use a power of generator representation of GF(256) multiplication group
9433 to save space time and complexity.
9434
9435 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9436 (raid6_table2): Likewise.
9437 (powx): New array.
9438 (powx_inv): Likewise.
9439 (poly): New const.
9440 (grub_raid_block_mul): Replace with ...
9441 (grub_raid_block_mulx): ...this.
9442 (grub_raid6_init_table): Rewritten.
9443 (grub_raid6_recover): Use power of generator representation.
9444
09e2763f
VS
94452011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9446
9447 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9448 for the right device.
9449
8bec9a28
VS
94502011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9451
9452 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9453 expected by grub-mkimage and it's more clear since there is no implicit
9454 padding.
9455
dbd3a32e
VS
94562011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9457
9458 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9459 disk.
9460 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9461
182c872a
PMH
94622011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9463
9464 * util/grub-mkrescue.in: Fix handling xorriso option.
9465
1e51cabd
VS
94662011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9469 NULL.
9470
9cc3581d 94712011-11-03 crocket <crockabiscuit@gmail.com>
9472
9473 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9474
158dc1ea
VS
94752011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9476
9477 XZ CRC64 and SHA256 support.
9478
9479 * Makefile.util.def (libgrubmods): Add crc64.c.
9480 * grub-core/Makefile.core.def (crc64): New module.
9481 * grub-core/lib/crc64.c: New file.
9482 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9483 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9484 Fix the type.
9485 (MAX_HASH_SIZE): New define.
9486 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9487 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9488 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9489 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9490 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9491 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9492 Handle non-crc32 hashes.
9493 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9494 (dec_stream_header): Handle non-crc32 hashes.
9495 (dec_stream_footer): Likewise.
9496 (dec_block_header): Likewise.
9497 (dec_main): Likewise.
9498 (xz_dec_init): Likewise.
9499 (xz_dec_reset): Likewise.
9500 (xz_dec_end): Likewise.
9501 * util/import_gcry.py: Add CRC64 line.
9502
9d9b3d2f
VS
95032011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9504
9505 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9506 as well.
9507
7d0ac931
VS
95082011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 Make reiserfs label retrieval similar to other *_label functions.
9511
9512 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9513 (REISERFS_MAX_LABEL_LENGTH): Removed.
9514 (REISERFS_LABEL_OFFSET): Likewise.
9515 (grub_reiserfs_label): Rewritten.
9516
95172011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9518
9519 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9520 field.
9521
cf5ba824
VS
95222011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9523
9524 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9525
17744004
VS
95262011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9529 drive failure on both raidz and raidz2.
9530
aca5aefc
VS
95312011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9532
9533 Fix RAIDZ(2) for >= 5 devices.
9534
9535 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9536 asize argument. All users updated.
9537
ce8ca56e
VS
95382011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9539
9540 Fix RAIDZ(2).
9541
9542 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9543 (fill_vdev_info_real): Set ashift.
9544 (read_device): Rewrite RAIDZ part based on reverse engineering.
9545
7c01e783
VS
95462011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9547
9548 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9549 don't report potentially unavialiable fields in debug output.
9550 (find_path): Fix double-free and memory leak.
9551
ce109e84
VS
95522011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 Read label on UFS1.
9555
9556 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9557 (grub_ufs_fs): Always set .label.
9558
87661123
VS
95592011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 Use shifts in UFS.
9562
9563 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9564 (grub_ufs_data): New field log2_blksz.
9565 (grub_ufs_read_file): Use shifts.
9566 (grub_ufs_mount): Check block size and logarithm it.
9567
46bc1dc2
VS
95682011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9569
9570 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9571 long symlinks.
9572
19ee2987
VS
95732011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9574
9575 Handle symlinks and long names on tar and cpio.
9576
9577 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9578 (ATTR_FILE): Likewise.
9579 (ATTR_DIR): Likewise.
9580 (ATTR_LNK): Likewise.
9581 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9582 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9583 L and K entries.
9584 (grub_cpio_mount): Zero-fill data.
9585 (handle_symlink): New function.
46bc1dc2
VS
9586 (grub_cpio_dir): Handle symlinks.
9587 (grub_cpio_open): Likewise.
9588 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 9589
c83a08d8
VS
95902011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 Fix iso9660 filename limitations and fix memory leaks.
9593
9594 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9595 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9596
45cdd3ea
VS
95972011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9598
9599 Fix JFS file name length limitations.
9600
9601 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9602 (grub_jfs_diropen): Fix maximum filename length.
9603 (grub_jfs_getent): Fix filename length.
9604 (grub_jfs_lookup_symlink): Fix size checks.
9605
94ef05c2
VS
96062011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9607
9608 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9609 string.
9610
785ab8c7
VS
96112011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9612
eb0b6b45
VS
9613 Leverage BFS implementation to read AFS.
9614
9615 * Makefile.util.def (libgrubmods): Add afs.c.
9616 * grub-core/Makefile.core.def (afs): New module
9617 * grub-core/fs/afs.c: New file.
9618 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9619
96202011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9621
9622 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 9623
c4a1628f
VS
96242011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9625
9626 * grub-core/fs/bfs.c: Run indent.
9627
5825b379
VS
96282011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9629
9630 BFS implementation based on the specification.
9631
9632 * grub-core/fs/bfs.c: New file.
9633 * Makefile.util.def (libgrubmods): Add bfs.c.
9634 * grub-core/Makefile.core.def (bfs): New module.
9635
42b2a706
VS
96362011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 * util/grub-fstest.c (cmd_cp): Clarify error message.
9639 (cmd_cmp): Likewise.
9640
61b99bfc
YB
96412011-10-30 Yves Blusseau <blusseau@zetam.org>
9642
9643 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9644 and befs_be.
9645
faba3d16
VS
96462011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 Remove afs and befs because of copyright problem.
9649
9650 * grub-core/fs/afs.c: Removed.
9651 * grub-core/fs/afs_be.c: Removed.
9652 * grub-core/fs/befs.c: Removed.
9653 * grub-core/fs/befs_be.c: Removed.
9654 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9655 * grub-core/Makefile.core.def (afs): Removed.
9656 (afs_be): Likewise.
9657 (befs): Likewise.
9658 (befs_be): Likewise.
9659
c39224b0
VS
96602011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9661
9662 Prefer rockridge over Joliet.
9663
9664 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
9665 to ...
9666 (set_rockridge): ... here.
9667 (grub_iso9660_mount): Check rockridge on the primary label when
9668 discovering. Ignore Joliet if Rockridge is present.
9669
e551115a
VS
96702011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 Use shifts in nilfs2.
9673
9674 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
9675 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
9676 (grub_nilfs2_palloc_entries_per_group): Replace with ...
9677 (grub_nilfs2_log_palloc_entries_per_group): ... this.
9678 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
9679 (grub_nilfs2_entries_per_block): Replaced with ...
9680 (grub_nilfs2_log_entries_per_block_log): ... this.
9681 (grub_nilfs2_blocks_per_group): Replaced with ...
9682 (grub_nilfs2_blocks_per_group_log): ... this.
9683 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
9684 (grub_nilfs2_blocks_per_desc_block_log): ... this.
9685 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
9686 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
9687 (grub_nilfs2_palloc_entry_offset): Replaced ...
9688 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
9689 (grub_nilfs2_dat_translate): Use shifts.
9690 (grub_nilfs2_read_inode): Likewise.
9691 (GRUB_MOD_INIT): Ensure that logs are correct.
9692
564dd58c
VS
96932011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 Use shifts in minix filesystem.
9696
9697 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
9698 (GRUB_MINIX_ZONE2SECT): Likewise.
9699 (grub_minix_data): Replace block_size with log_block_size.
9700 (grub_minix_read_file): Use shifts.
9701 (grub_minix_mount): Check block size and take a logarithm.
9702
ed9ba06d
VS
97032011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 Use shifts in squash4.
9706
9707 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
9708 (squash_mount): Check block size and take logarithm.
9709 (direct_read): Use shifts.
9710
ad03fe76
VS
97112011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9712
9713 Correct befs block counting logic.
9714
9715 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
9716 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
9717 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
9718 (grub_afs_read_inode): Use block_shift.
9719 (RANGE_SHIFT): New definition.
9720 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
9721 unexpected conditions, use shifts and appropriate types.
9722 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
9723
6563f63d
VS
97242011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9725
9726 * grub-core/disk/raid.c (scan_devices): Check partition.
9727 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9728
5b1ae25f
VS
97292011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9730
9731 Support BFS (befs) UUID.
9732
9733 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
9734 (grub_afs_small_data_element_header): New struct.
9735 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
9736 (grub_afs_read_attribute) [MODE_BFS]: New function.
9737 (grub_afs_iterate_dir): Allocate for complete inode.
9738 (grub_afs_mount): Likewise.
9739 (grub_afs_uuid) [MODE_BFS]: New function.
9740 (grub_afs_fs) [MODE_BFS]: Add .uuid.
9741
f8d82408
VS
97422011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
9743
9744 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
9745 (zfs_unmount): Fix memory leak.
9746
5773fb64
VS
97472011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9748
9749 Support NTFS reparse points.
9750
9751 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
9752 (symlink_descriptor): New struct.
9753 (grub_ntfs_read_symlink): New function.
9754 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
9755 (grub_ntfs_open): Likewise.
9756
91c3fdde
VS
97572011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
9760
3be82e10
VS
97612011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9762
9763 fstest xnu_uuid subcommand.
9764
9765 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
9766 grub-core/commands/xnu_uuid.c.
9767 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
9768 (fstest): Handle xnu_uuid.
9769 (options): Document xnu_uuid.
9770 (argp_parser): Parse xnu_uuid.
9771
8e32442e
VS
97722011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9773
9774 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
9775 -l argument. Add newline at the end if printing.
9776 (GRUB_MOD_INIT): Document -l.
9777
52a05075
VS
97782011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
9781
1869edb5
VS
97822011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 ZFS multi-device and version 33 support.
9785
9786 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
9787 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
9788 (grub_zfs_data): Add multidev-ice-related fields.
9789 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
9790 (dva_get_offset): Make dva const.
9791 (zfs_fetch_nvlist): New function.
9792 (fill_vdev_info_real): Likewise.
9793 (fill_vdev_info): Likewise.
9794 (check_pool_label): Likewise.
9795 (scan_disk): Likewise.
9796 (scan_devices): Likewise.
9797 (read_device): Likewise.
9798 (read_dva): Likewise.
9799 (zio_read_gang): Use read_dva.
9800 (zio_read_data): Likewise.
9801 (zap_leaf_lookup): Add missing endian conversion.
9802 (zap_verify): Add missing endian conversion. All users updated.
9803 (fzap_lookup): Likewise.
9804 (fzap_iterate): Likewise.
9805 (dnode_get_path): Handle SA bonus.
9806 (nvlist_find_value): Make input const. All users updated.
9807 (unmount_device): New function.
9808 (zfs_unmount): Use unmount_device.
9809 (zfs_mount): Use scan_disk.
9810 (zfs_mtime): New function.
9811 (grub_zfs_open): Handle system attributes.
9812 (fill_fs_info): Likewise.
9813 (grub_zfs_dir): Likewise.
9814 (grub_zfs_fs): Add mtime.
9815 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
9816 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
9817 (SA_MTIME_OFFSET): Likewise.
9818 (SA_SYMLINK_OFFSET): Likewise.
9819 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
9820 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
9821 (fstest): Support zfsinfo.
9822 (argp_parser): Likewise.
9823
186b4028
VS
98242011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
9825
9826 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
9827 error.
9828
98292011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
9830
9831 ZFS fixes.
9832
9833 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
9834 sharing the same block. Iterate over correct number of indices.
9835 (dnode_get_path): Handle symlinks correctly.
9836
c0584900
VS
98372011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9838
9839 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
9840
67e2bd71
VS
98412011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9842
9843 Read label on HFS+.
9844
9845 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
9846 (grub_hfsplus_btree_search): Fix types.
9847 (grub_hfsplus_label): Implement.
9848
e9cc6b7b
VS
98492011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9850
9851 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
9852
19832ddb
VS
98532011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9854
9855 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
9856
66b40850
VS
98572011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 Fix symlink handling on iso9660.
9860
9861 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
9862 All users updated.
9863 (grub_iso9660_susp_iterate): Accept zero-size iterate.
9864 (grub_iso9660_read_symlink): Moved most of code ...
9865 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
9866
db821363
VS
98672011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9868
9869 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
9870 Use union to avoid breaking strict-aliasing rules.
9871
e1211949
VS
98722011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9873
9874 Support multi-extent iso files.
9875
9876 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
9877 Add node.
9878 (grub_fshelp_node): Revamp. All users updated.
9879 (FLAG_*): New enum.
9880 (read_node): New function.
9881 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
9882 All users updated.
9883 (grub_iso9660_mount): Don't attempt to read sua when there is none.
9884 (get_node_size): New function.
9885 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
9886 entries.
9887 Fix memory leak on . and ..
9888 (grub_iso9660_read): Use read_node.
9889 (grub_iso9660_close): Free node.
9890
d4888031
VS
98912011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9892
9893 Fix tar 4G limit and handle paths containing dot.
9894
9895 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
9896 (canonicalize): New function.
9897 (grub_cpio_find_file): Use canonicalize. Store offs in
9898 grub_disk_addr_t.
9899 (grub_cpio_dir): Use grub_disk_addr_t.
9900 (grub_cpio_open): Likewise.
9901
9f12e664
VS
99022011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9903
9904 Fix handling of uncompressed blocks on squashfs and break 4G limit.
9905
9906 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
9907 unused flags.
9908 (grub_squash_inode): Add long_file and block_size.
9909 (grub_squash_cache_inode): New struct.
9910 (grub_squash_dirent): Make types into enum.
9911 (SQUASH_TYPE_LONG_REGULAR): New type.
9912 (grub_squash_frag_desc): Add field size.
9913 (SQUASH_BLOCK_FLAGS): New enum.
9914 (grub_squash_data): Use grub_squash_cache_inode.
9915 (grub_fshelp_node): Make ino_chunk 64-bit.
9916 (read_chunk): Minor argument change. All users updated.
9917 (squash_mount): Use correct le_to_cpu.
9918 (grub_squash_open): Handle LONG_REGULAR.
9919 (direct_read): New function.
9920 (grub_squash_read_data): Handle blocks correctly.
9921
9f326fba
VS
99222011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9923
9924 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
9925
f4d9b64b
VS
99262011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
9929
5bbd28b8
VS
99302011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9931
9932 Fix 2G limit on ZFS.
9933
9934 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
9935 types.
9936 (uberblock_verify): Likewise.
9937 (dmu_read): Likewise.
9938 (grub_zfs_read): Likewise. Remove invalid cast.
9939
68c72069
VS
99402011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9941
9942 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
9943 (grub_jfs_blkno): Fix incorrect shift.
9944 (grub_jfs_read_file): Use more appropriate types.
9945
6e536dc8
VS
99462011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9947
9948 Support triple indirect on minix2 and minix3.
9949
9950 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
9951 Declare triple_indir_zone.
9952 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
9953 indirect.
9954
e0864e7a
VS
99552011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
9956
9957 Minix FS fixes.
9958
9959 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
9960 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
9961 Rename ctime to mtime. All users updated.
9962 (grub_minix_get_file_block): Fix types and double indirect computations.
9963
89481cab
VS
99642011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
9967 if no label is found.
9968 (grub_fat_iterate_dir): Fix file size type.
9969 (grub_fat_iterate_dir): Likewise.
9970
f646e143
VS
99712011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9972
9973 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
9974 save some space.
9975 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
9976 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
9977
534d769e
VS
99782011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9979
9980 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
9981
e084ba18
VS
99822011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9983
9984 * util/import_gcry.py: Accept space between # and include.
9985
3471ecdf
VS
99862011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9987
9988 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
9989
124df5f6
VS
99902011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
9991
9992 Fine grainely disable warnings on lexer. Remove Wno-error on it.
9993
9994 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
9995 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
9996 yylex_strncpy.
9997 * grub-core/script/yylex.l: Add fine-grained #pragma.
9998
4defb8d5
VS
99992011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10000
10001 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10002 New inline function.
10003 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10004 Likewise.
10005 (memset) [GRUB_UTIL]: Likewise.
10006 (memcmp) [GRUB_UTIL]: Likewise.
10007
4e94ae65
VS
100082011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10009
10010 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10011 inline function rather than a define.
10012
18c575e5
VS
100132011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10014
10015 * util/grub-setup.c: Add missing include.
10016
f8bc22a8
VS
100172011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * util/ieee1275/grub-ofpathname.c: Add missing include.
10020
3ce69fc9
VS
100212011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10022
10023 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10024 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10025 Likewise.
10026
d1e293bb
VS
100272011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10028
10029 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10030 grub_memcmp usage.
10031
7a5c54a4
VS
100322011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10033
10034 * util/grub-install.in: Add datarootdir as per automake manual
10035 suggestion.
10036 * util/grub-mknetdir.in: Likewise.
10037
100382011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
10039
10040 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10041 suggestion.
10042 * util/grub.d/10_kfreebsd.in: Likewise.
10043 * util/grub.d/10_linux.in: Likewise.
10044 * util/grub.d/10_netbsd.in: Likewise.
10045 * util/grub.d/10_windows.in: Likewise.
10046 * util/grub.d/20_linux_xen.in: Likewise.
10047
766f7d08
VS
100482011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10049
10050 Remove redundant grub_kernel_image_size.
10051
10052 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10053 _edata and _start.
10054 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10055 the small code. It moves it only by few bytes but simplifies the code.
10056 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10057 _start.
10058 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10059 (grub_kernel_image_size): Removed.
10060 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10061 (grub_kernel_image_size): Removed.
10062 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10063 compiled with Apple toolchain.
10064 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10065 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10066 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10067 (grub_total_module_size): Likewise.
10068 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10069 Removed.
10070 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10071 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10072 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10073 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10074 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10075 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10076 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10077 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10078 Removed.
10079 (grub_total_module_size): Removed.
10080 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10081 (image_targets): Likewise.
10082 Set .compressed_size to no field on sparc.
10083 (generate_image): Remove kernel_image_size handling.
10084
fcf1d672
SJ
100852011-10-19 Szymon Janc <szymon@janc.net.pl>
10086
10087 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10088 NULL pointer dereference.
10089
de9c615e
VS
100902011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10091
10092 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10093 done with a dedicated section.
10094
10095 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10096 Ensure the correct position of boot_path.
10097 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10098 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10099 other fields.
10100 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10101 * include/grub/boot.h: Removed. All references removed.
10102 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10103 Removed.
10104 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10105
e55599dc
VS
101062011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10107
10108 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10109 name.
10110
36dd20ad
VS
101112011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10112
10113 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10114
f8f72eb8
VS
101152011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10118 Don't add the bogus brackets.
10119
a374751b
VS
101202011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 ExFAT support.
10123
10124 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10125 * grub-core/Makefile.core.def (exfat): New module.
10126 * grub-core/fs/exfat.c: New file.
10127 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10128 (GRUB_FAT_ATTR_*): Make into an enum.
10129 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10130 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10131 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10132 (GRUB_FAT_MAXFILE): Removed.
10133 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10134 (grub_current_fat_bpb_t): New type.
10135 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10136 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10137 (grub_fat_dir_node_t): New type.
10138 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10139 (fat_log2) [MODE_EXFAT]: Removed.
10140 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10141 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10142 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10143 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10144 (grub_fat_label) [MODE_EXFAT]: New function.
10145 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10146 reserved_first_sector to 0.
10147
544c2487
VS
101482011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10149
10150 Move grub_reboot out of the kernel.
10151
10152 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10153 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10154 * grub-core/lib/efi/reboot.c: ... here.
10155 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10156 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10157 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10158 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10159 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10160 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10161 * grub-core/lib/ieee1275/reboot.c: ... here.
10162 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10163 * grub-core/lib/mips/arc/reboot.c: ... here.
10164 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10165 * grub-core/lib/mips/loongson/reboot.c: ...here.
10166 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10167 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10168 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10169 * include/grub/i386/reboot.h: New file.
10170 * include/grub/mips/loongson/ec.h: Fix includes.
10171 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10172 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10173 * grub-core/lib/i386/reboot.c: New file.
10174
a97501d2
VS
101752011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10176
10177 Make grub_prefix into module to fix the arbitrary limit and save
10178 some space.
10179
10180 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10181 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10182 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10183 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10184 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10185 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10186 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10187 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10188 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10189 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10190 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10191 * include/grub/ia64/efi/kernel.h: Removed.
10192 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10193 (grub_prefix): Removed.
10194 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10195 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10196 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10197 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10198 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10199 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10200 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10201 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10202 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10203 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10204 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10205 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10206 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10207 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10208 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10209 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10210 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10211 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10212 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10213 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10214 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10215 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10216 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10217 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10218 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10219 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10220 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10221 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10222 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10223 from module.
10224 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10225 prefix_end.
10226 (image_targets): Likewise.
10227 (generate_image): Put prefix as a module.
10228
39705fad
VS
102292011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10230
10231 Replace grub_module_iterate with FOR_MODULES.
10232
10233 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10234 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10235 (grub_efi_modules_addr): ...this.
10236 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10237 (grub_efi_init): Set grub_modbase.
10238 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10239 (grub_modbase): New variable.
10240 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10241 (grub_modbase): New variable.
10242 (grub_machine_init): Set grub_modbase.
10243 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10244 (grub_modbase): New variable.
10245 (grub_machine_init): Set grub_modbase.
10246 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10247 (grub_modbase): New variable.
10248 (grub_machine_init): Set grub_modbase.
10249 * grub-core/kern/main.c (grub_module_iterate): Remove.
10250 (grub_modules_get_end): Use grub_modbase.
10251 (grub_load_modules): Use FOR_MODULES.
10252 (grub_load_config): Likewise.
10253 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10254 (grub_modbase): New variable.
10255 (grub_machine_init): Set grub_modbase.
10256 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10257 (grub_modbase): New variable.
10258 (grub_machine_init): Set grub_modbase.
10259 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10260 Removed.
10261 (grub_modbase): New variable.
10262 (grub_machine_init): Set grub_modbase.
10263 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10264 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10265 (grub_module_iterate): Likewise.
10266 (grub_modbase): New variable declaration.
10267 (FOR_MODULES): New macro.
10268
2afb7f6c
VS
102692011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10270
10271 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10272 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10273
366e34fa
VS
102742011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 Fix few obvious type discrepancies.
10277
10278 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10279 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10280 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10281 variable.
10282 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10283 and connected types.
10284 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10285 offset.
10286 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10287 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10288 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10289 and connected types.
10290
177b960e
VS
102912011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10292
10293 Fix python 3.x incompatibilities.
10294
10295 * gentpl.py: Put brackets around print strings.
10296 * util/import_gcry.py: Open explicitly as utf-8.
10297 Use in instead of has_key.
10298
3b619ae1
VS
102992011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10300
10301 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10302 (GRUB_XFS_INO_AGBITS): Make into inline function.
10303 (GRUB_XFS_INO_INOINAG): Likewise.
10304 (GRUB_XFS_INO_AG): Likewise.
10305 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10306 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10307 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10308 (GRUB_XFS_EXTENT_SIZE): Likewise.
10309 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10310 (GRUB_XFS_NEXT_DIRENT): Likewise.
10311 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10312 (grub_xfs_read_file): Fix offset type.
10313
8bcebcb8
RM
103142011-10-15 Robert Millan <rmh@gnu.org>
10315
10316 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10317
0017e5ef
RM
103182011-10-15 Robert Millan <rmh@gnu.org>
10319
10320 Fix build problem on FreeBSD and GNU/kFreeBSD.
10321
10322 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10323
d8919552
VS
103242011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10327
10328 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10329 types.
10330 (grub_hfsplus_btree_recoffset): Likewise.
10331 (grub_hfsplus_btree_recptr): Likewise.
10332 (grub_hfsplus_find_block): Likewise.
10333 (grub_hfsplus_btree_search): Likewise.
10334 (grub_hfsplus_read_block): Likewise.
10335 (grub_hfsplus_read_file): Likewise.
10336 (grub_hfsplus_mount): Likewise.
10337 (grub_hfsplus_btree_iterate_node): Likewise.
10338 (grub_hfsplus_btree_search): Likewise.
10339 (grub_hfsplus_iterate_dir): Likewise.
10340 (grub_hfsplus_read): A small code simplification.
10341
c81296b6
VS
103422011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10343
10344 * grub-core/kern/emu/hostdisk.c
10345 (convert_system_partition_to_system_disk): Don't assume that children
10346 of mapper nodes are mapper nodes.
10347
0eb8ffb1
VS
103482011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10351 * include/grub/misc.h (grub_isxdigit): New function.
10352 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10353 switched to grub_isxdigit.
10354 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10355 number starting with a letter.
10356
a98f4a08
RM
103572011-10-09 Robert Millan <rmh@gnu.org>
10358
10359 LVM support for FreeBSD and GNU/kFreeBSD.
10360
10361 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10362 GNU/kFreeBSD.
10363 (LVM_DEV_MAPPER_STRING): Move from here ...
10364 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10365 * util/getroot.c: Include `<grub/util/lvm.h>'.
10366 (grub_util_get_dev_abstraction): Enable
10367 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10368 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10369 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10370 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10371 support it.
10372 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10373 GNU/kFreeBSD.
10374 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10375 when LVM abstraction is required for ${GRUB_DEVICE}.
10376
050e8e90
SJ
103772011-10-06 Szymon Janc <szymon@janc.net.pl>
10378
10379 Add support for LZO compression in GRUB:
10380 - import of minilzo library,
10381 - LZO decompression for btrfs,
10382 - lzop files decompression.
10383
10384 * grub-core/io/lzopio.c: New file.
10385 * grub-core/lib/adler32.c: Likewise.
10386 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10387 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10388 * grub-core/lib/minilzo/minilzo.c: Likewise.
10389 * grub-core/lib/minilzo/minilzo.h: Likewise.
10390 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10391 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10392 grub-core/lib/minilzo/minilzo.c to common.
10393 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10394 cflags in cppflags.
10395 * grub-core/Makefile.core.def (btrfs): Likewise.
10396 * grub-core/Makefile.core.def (lzopio): New module.
10397 (adler32): Likewise.
10398 * grub-core/fs/btrfs.c: Include minilzo.h.
10399 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10400 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10401 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10402 (grub_btrfs_lzo_decompress): New function.
10403 (grub_btrfs_extent_read): Add support for LZO compression type.
10404 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10405 (GRUB_USHRT_MAX): Likewise.
10406 (GRUB_UINT_MAX): Likewise.
10407 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10408 (UINT_MAX): Likewise.
10409 (CHAR_BIT): Likewise.
10410 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10411 grub-core/lib/posix_wrap/limits.h
10412 (UCHAR_MAX): Likewise.
10413 * include/grub/file.h (grub_file_filter_id): New compression filter
10414 GRUB_FILE_FILTER_LZOPIO.
10415 * include/grub/file.h (grub_file_filter_id): Set
10416 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10417 * include/grub/types.h (grub_get_unaligned16): New function.
10418 (grub_get_unaligned32): Likewise.
10419 (grub_get_unaligned64): Likewise.
10420 * util/import_gcry.py (cryptolist): Add adler32.
10421
0eb8ffb1
VS
104222011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10423
10424 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10425 in perspective decreases the complexity of build system and fixes
10426 compilation right now.
10427
ce79cc99 104282011-10-01 Ales Nesrsta <starous@volny.cz>
10429
10430 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10431 (fixed problem related to using UHCI with coreboot).
10432
8667a314
BC
104332011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10434
10435 * gentpl.py: Use Autogen macros so that the output template file
10436 (Makefile.tpl) size is reduced.
10437
fc5efcc0
MK
104382011-09-29 Mads Kiilerich <mads@kiilerich.com>
10439
10440 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10441 extra_dist.
10442
d1ab689d
ML
104432011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10444
10445 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10446 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10447
c05de032
ML
104482011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10449
10450 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10451 _fullpath.
10452
cca7ccd8
ML
104532011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10454
10455 Remove extra declaration of sleep for mingw32.
10456
10457 * util/misc.c (sleep) [__MINGW32__]: Removed.
10458 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10459
e0b0dc83
GS
104602011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10461
10462 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10463 type and packname.
10464 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10465 Resurrected.
10466 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10467 (grub_netbsd_btinfo_bootwedge): New struct.
10468 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10469 New function.
10470 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10471
91a1a164
TH
104722011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10473
10474 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10475 loader.
10476
2ded951e
AB
104772011-09-28 Andreas Born <futur.andy@googlemail.com>
10478
10479 Fix incorrect identifiers in bash-completion.
10480
10481 * util/bash-completion.d/grub-completion.bash.in
10482 (_grub_mkpasswd-pbkdf2): Rename to ...
10483 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10484 (_grub_script-check): Rename to ...
10485 (_grub_script_check): ... this. All users updated.
10486
69915030
VS
104872011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10490 Return 0 if disk isn't biosdisk.
10491
20fd15f9
GS
104922011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10493
10494 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10495 on NetBSD.
10496 * Makefile.util.def (grub-fstest): Likewise.
10497
1a7d7db9
GS
104982011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10499
10500 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10501 Get sector size from disk label.
10502
2221ab6c
CW
105032011-09-05 Colin Watson <cjwatson@ubuntu.com>
10504
10505 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10506 */README* as well as README*.
10507 Reported by: Axel Beckert.
10508
ca51c4a0
VS
105092011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10510
10511 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10512 case of less than 256 MiB of RAM.
10513
ab80f326
VS
105142011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10515
10516 * grub-core/commands/wildcard.c (make_regex): Handle @.
10517
4155e697
VS
105182011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10521
ab178c08
SJ
105222011-08-21 Szymon Janc <szymon@janc.net.pl>
10523
10524 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10525 AC_LANG_CONFTEST macros.
10526
7dc3c686
SJ
105272011-08-20 Szymon Janc <szymon@janc.net.pl>
10528
10529 Add grub-fstest option to uncompress data for commands.
10530
10531 * util/grub-fstest.c (uncompress): New var.
10532 (options): New option -u.
10533
fe8d4a7b
SJ
105342011-08-20 Szymon Janc <szymon@janc.net.pl>
10535
10536 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10537 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10538
a5219af1
SJ
105392011-08-20 Szymon Janc <szymon@janc.net.pl>
10540
10541 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10542 file type was not recognized correctly (not gzip or corrupted).
10543
f87abff5
VS
105442011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10547 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10548
d94497ea
VS
105492011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10552 loongson.
10553 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10554 video_radeon_fuloong2e.
10555 * grub-core/video/radeon_fuloong2e.c: New file.
10556 * include/grub/video.h (grub_video_id_t): Add new ID
10557 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10558
0d1fd011
VS
105592011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10560
10561 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10562 define.
10563 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10564 that PRID matches the detected subplatform and reset the subplatform
10565 if it doesn't.
10566
84beb0ee
VS
105672011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10568
10569 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10570
1227c133
VS
105712011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10572
10573 Fix PCI iterating on functions >= 4.
10574
10575 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10576 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10577 Removed.
10578 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10579 (grub_pci_read): Fix bitmask.
10580 (grub_pci_read_word): Likewise.
10581 (grub_pci_read_byte): Likewise.
10582 (grub_pci_write): Likewise.
10583 (grub_pci_write_word): Likewise.
10584 (grub_pci_write_byte): Likewise.
10585
9594c689
VS
105862011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10587
10588 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10589 can still be specified in TARGET_CFLAGS)
10590
14a2562c
VS
105912011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10594
10595 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10596 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10597 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10598 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10599 (FULOONG): Rename to ...
10600 (FULOONG2F): ... this. All users updated.
10601 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10602 (machtype_fuloong2f_str): ... this.
10603 (machtype_fuloong2e_str): New string.
10604 Check for machtype_fuloong2e_str.
10605 * grub-core/loader/mips/linux.c (loongson_machtypes)
10606 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10607 * grub-core/term/serial.c (loongson_defserial)
10608 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10609 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10610 loongson_defserial.
10611 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10612 Rename to ...
10613 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10614 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10615 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10616 to IMAGE_FULOONG2F_FLASH. All users updated.
10617 (image_targets): Rename images.
10618 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10619
b526cbb6
SJ
106202011-08-19 Szymon Janc <szymon@janc.net.pl>
10621
10622 Make enable of disk cache statistics code configurable.
10623
10624 * configure.ac: --enable-cache-stats added.
10625 * config.h.in (DISK_CACHE_STATS): New define.
10626 * grub-core/Makefile.core.def (cacheinfo): New command.
10627 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10628 * grub-core/commands/cacheinfo.c: New file.
10629 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10630 moved to cacheinfo.c.
10631 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10632 debug code.
10633 * include/grub/disk.h: Likewise.
10634
fb739ccd
SJ
106352011-08-19 Szymon Janc <szymon@janc.net.pl>
10636
10637 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10638 * grub-core/Makefile.am: Likewise.
10639
2bba8cfd
VS
106402011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10643 non-zero pull.
10644
43526629
VS
106452011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10648 All users updated.
10649 (grub_jfs_lookup_symlink): Use correct starting inode.
10650
5c144cc8
VS
106512011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10652
10653 * util/grub-setup.c (main): Add missing gcry initialisation.
10654
b1257f65
VS
106552011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 Don't accept text modes on EFI when booting Linux.
10658
10659 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10660 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10661
828bc390
ML
106622011-08-15 Mario Limonciello <mario_limonciello@dell.com>
106632011-08-15 Colin Watson <cjwatson@ubuntu.com>
10664
10665 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
10666 use of "/path/.." as in grub-install for EFI as well as handling
10667 symlinks correctly.
10668 Fixes Debian bug #637768.
10669
5f60ccac
CW
106702011-08-15 Colin Watson <cjwatson@ubuntu.com>
10671
10672 * util/grub-probe.c: Remove duplicate #include.
10673
6dc212f9
RM
106742011-08-10 Robert Millan <rmh@gnu.org>
10675
10676 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
10677
10678 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
10679 function.
10680 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
10681 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
10682
66816d85
RM
106832011-08-03 Robert Millan <rmh@gnu.org>
10684
10685 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
10686 la_array as packed.
10687 Reported by: Zachary Bedell
10688
20168fca
CW
106892011-07-26 Colin Watson <cjwatson@ubuntu.com>
10690
10691 * configure.ac: The Loongson port requires grub-mkfont due to its
10692 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
10693 be built.
10694
303b6246
CW
106952011-07-26 Colin Watson <cjwatson@ubuntu.com>
10696
10697 * util/grub-install.in: Don't source grub-mkconfig_lib until after
10698 processing arguments (otherwise help2man fails when GRUB has not yet
10699 been installed).
10700
6795300e
VS
107012011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10702
41aa28ea
VS
10703 New script grub-mkstandalone.
10704
10705 * Makefile.util.def (grub-mkstandalone): New script.
10706 * docs/man/grub-mkstandalone.h2m: New file.
10707 * util/grub-mkstandalone.in: Likewise.
10708
107092011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10710
10711 Support ATA disks with 4K sectors.
6795300e
VS
10712
10713 * include/grub/ata.h (grub_ata): New member log_sector_size.
10714 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
10715 (grub_ata_identify): Read sector size.
10716 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
10717
92227597
VS
107182011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10719
10720 * util/grub-install.in: Don't use uhci outside of x86.
10721
c77069f5
VS
107222011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
10723
10724 * util/grub-mkrescue.in: Add missing quotes.
10725
107262011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
10727
10728 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
10729 dereference.
10730
583168a2
VS
107312011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10732
10733 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
10734
6be1c01f
VS
107352011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10736
10737 * include/grub/video.h: add missing EXPORT_FUND on
10738 grub_video_edid_checksum and grub_video_edid_preferred_mode.
10739
a1167439
VS
107402011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10741
10742 * include/grub/mips/kernel.h: Fix define conflict.
10743
bf66054f
VS
107442011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
10745
10746 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
10747 all four ways.
10748
8fc4fa45
CW
107492011-07-21 Colin Watson <cjwatson@ubuntu.com>
10750
10751 Preferred resolution detection for VBE.
10752
10753 * grub-core/video/video.c (grub_video_edid_checksum): New function.
10754 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
10755 the Flat Panel extension, in line with the X.org VESA driver.
10756 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
10757 New function.
10758 (grub_vbe_bios_get_ddc_capabilities): Likewise.
10759 (grub_vbe_bios_read_edid): Likewise.
10760 (grub_vbe_get_preferred_mode): Likewise.
10761 (grub_video_vbe_setup): When the mode is "auto", try to get the
10762 preferred mode from VBE, and use the largest mode that is no larger
10763 than the preferred mode (some BIOSes expose a preferred mode that is
10764 not in their mode list!). If this fails, fall back to 640x480 as a
10765 safe conservative choice.
10766 (grub_video_vbe_get_edid): New function.
10767 (grub_video_vbe_adapter): Add get_edid.
10768 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
10769 (struct grub_video_adapter): Add get_edid.
10770 (grub_video_edid_checksum): Add prototype.
10771 (grub_video_edid_preferred_mode): Likewise.
10772 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
10773 structure.
10774
10775 * grub-core/commands/videoinfo.c (print_edid): New function.
10776 (grub_cmd_videoinfo): Print EDID if available.
10777
10778 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
10779 is more appropriate on a wider range of platforms than 640x480.
10780 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
10781 documentation.
10782
ca5572a9
VS
107832011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10784
10785 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
10786
e4bcf625
VS
107872011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10788
10789 * po/POTFILES.in: Regenerate.
10790
c4edd548
VS
107912011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10792
10793 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
10794 incorrect memory usage.
10795
16a2bab0
VS
107962011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
10797
10798 * util/grub-install.in: Source grub-mkconfig_lib.
10799
2e418de6
VS
108002011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10801
10802 Remove getroot.c from core on emu platform.
10803
10804 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
10805 kern/emu/raid.c.
10806 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
10807 useless.
10808 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
10809 * util/getroot.c (get_win32_path): ... here.
10810 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
10811 * util/getroot.c (fini_libzfs): ... here.
10812 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
10813 * util/getroot.c (grub_get_libzfs_handle): ... here.
10814 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
10815 Moved from here...
10816 * util/getroot.c (grub_find_zpool_from_dir): ... here.
10817 * grub-core/kern/emu/misc.c
10818 (grub_make_system_path_relative_to_its_root): Moved from here...
10819 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
10820 * grub-core/kern/emu/getroot.c: Moved from here ...
10821 * util/getroot.c: ... here. All users updated.
10822 * grub-core/kern/emu/raid.c: Moved from here ...
10823 * util/raid.c: ... here. All users updated.
10824
def9832a
VS
108252011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 * po/POTFILES.in: Regenerate.
10828
cd8fe79a
VS
108292011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 Fix compilation on GNU/Linux.
10832
10833 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
10834 Disable geli.
10835 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
10836 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
10837 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
10838
a251b719
VS
108392011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
108402011-07-07 Michael Gorven <michael@gorven.za.net>
108412011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
10842
10843 LUKS and GELI support.
10844
10845 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
10846 grub-core/disk/luks.c, grub-core/disk/geli.c,
10847 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
10848 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
10849 grub-core/lib/arg.c.
10850 (libgrubmods.a): Remove gcrypts cflags and cppflags.
10851 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
10852 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
10853 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
10854 (grub-bin2h): Add libgcry.a.
10855 (grub-mkimage): Likewise.
10856 (grub-mkrelpath): Likewise.
10857 (grub-script-check): Likewise.
10858 (grub-editenv): Likewise.
10859 (grub-mkpasswd-pbkdf2): Likewise.
10860 (grub-pe2elf): Likewise.
10861 (grub-fstest): Likewise.
10862 (grub-mkfont): Likewise.
10863 (grub-mkdevicemap): Likewise.
10864 (grub-probe): Likewise.
10865 (grub-ofpath): Likewise.
10866 (grub-mklayout): Likewise.
10867 (example_unit_test): Likewise.
10868 (grub-menulst2cfg): Likewise.
10869 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
10870 * grub-core/Makefile.core.def (cryptodisk): New module.
10871 (luks): Likewise.
10872 (geli): Likewise.
10873 * grub-core/disk/AFSplitter.c: New file.
10874 * grub-core/disk/cryptodisk.c: Likewise.
10875 * grub-core/disk/geli.c: Likewise.
10876 * grub-core/disk/luks.c: Likewise.
10877 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
10878 grub_util_is_lvm.
10879 (grub_util_get_dm_abstraction): New function.
10880 (grub_util_follow_gpart_up): Likewise.
10881 (grub_util_get_geom_abstraction): Likewise.
10882 (grub_util_get_dev_abstraction): Use new functions.
10883 (grub_util_pull_device): Pull GELI and LUKS.
10884 (grub_util_get_grub_dev): Handle LUKS and GELI.
10885 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
10886 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
10887 (follow_geom_up): Removed.
10888 (grub_util_fd_seek): New function.
10889 (open_device): Use grub_util_fd_seek.
10890 (nread): Rename to ..
10891 (grub_util_fd_read): ... this. All users updated.
10892 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
10893 (grub_crypto_cbc_decrypt): Likewise.
10894 (grub_crypto_hmac_write): Likewise.
10895 (grub_crypto_hmac_buffer): Likewise.
10896 (grub_password_get): Extend to util.
10897 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
10898 New member modname.
10899 (gcry_md_spec) [GRUB_UTIL]: Likewise.
10900 * include/grub/cryptodisk.h: New file.
10901 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
10902 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
10903 LUKS and GELI.
10904 (grub_util_follow_gpart_up): New proto.
10905 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
10906 (grub_util_fd_read): Likewise.
10907 (grub_cryptodisk_cheat_mount): Likewise.
10908 (grub_util_cryptodisk_print_uuid): Likewise.
10909 (grub_util_get_fd_sectors): Likewise.
10910 * util/grub-fstest.c (mount_crypt): New var.
10911 (fstest): Mount crypto if requested.
10912 (options): New option -C.
10913 (argp_parser): Parse -C.
10914 (main): Init and fini gcry.
10915 * util/grub-install.in: Support cryptodisk install.
10916 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
10917 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
10918 cryptodisk.
10919 (prepare_grub_to_access_device): Likewise.
10920 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
10921 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
10922 (probe_cryptodisk_uuid): New function.
10923 (probe_abstraction): Likewise.
10924 (probe): Use new functions.
10925 * util/import_gcry.py: Create Makefile.utilgcry.def.
10926 Add modname member.
10927
9bfdcbbc
VS
109282011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
10929
10930 Lazy device scanning.
10931
10932 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
10933 (grub-setup): Remove util/raid.c.
10934 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
10935 * grub-core/disk/lvm.c (scan_depth): New variable.
10936 (grub_lvm_iterate): Rescan if necessary.
10937 (find_lv): New function based on grub_lvm_open.
10938 (grub_lvm_open): Use find_lv. Rescan on error.
10939 (is_node_readable): New function.
10940 (is_lv_readable): Likewise.
10941 (grub_lvm_scan_device): Skip already found disks.
10942 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
10943 Stop if searched device is found and readable.
10944 * grub-core/disk/raid.c (inscnt): New variable.
10945 (scan_depth): Likewise.
10946 (scan_devices): New function based on grub_raid_register. Abort if
10947 looked for device is found.
10948 (grub_raid_iterate): Rescan if needed.
10949 (find_array): NEw function based on -grub_raid_open.
10950 (grub_raid_open): Use find_array and rescan.
10951 (insert_array): Set became_readable_at.
10952 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
10953 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
10954 New function.
10955 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
10956 (grub_util_pull_device): New function.
10957 (grub_util_get_grub_dev): Call grub_util_pull_device.
10958 * util/raid.c: Moved to ..
10959 * grub-core/kern/emu/raid.c: ... here.
10960 (grub_util_raid_getmembers): New parameter "bootable".
10961 All users updated. Support 1.x.
10962 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
10963 All users updated.
10964 * include/grub/disk.h (grub_disk_pull_t): New enum.
10965 (grub_disk_dev): Change iterate prototype.
10966 All users updated.
10967 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
10968 New proto.
10969 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
10970 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
10971 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
10972 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
10973 All users updated.
10974 * include/grub/util/raid.h: Removed.
10975
1c358e59
VS
109762011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10977
10978 * po/POTFILES.in: Regenerate.
10979
abee94ed
VS
109802011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
10981
10982 Unify sparc init with other ieee1275.
10983
10984 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
10985 instead of kern/sparc64/ieee1275/init.c.
10986 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
10987 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
10988 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
10989 grub/machine/kernel.h.
10990 (grub_ieee1275_original_stack) [__sparc__]: New variable.
10991 (grub_claim_heap) [__sparc__]: Use sparc version.
10992 (grub_machine_init): Moved args parsing to
10993 (grub_parse_cmdline): ...this.
10994 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
10995 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
10996 New definition.
10997 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
10998
10999 Move BOOTP to separate file.
11000
11001 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11002 * grub-core/net/net.c: Move all BOOTP functions to
11003 * grub-core/net/bootp.c: ... here.
11004
11005 Use frame interface on PXE.
11006
11007 * grub-core/Makefile.core.def (pxecmd): Removed.
11008 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11009 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11010 * grub-core/i386/pc/pxe.c: Moved from here ...
11011 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11012 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11013 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11014
11015 EFI network support.
11016
11017 * grub-core/Makefile.core.def (efinet): New module.
11018 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11019 here...
11020 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11021 All users updated.
11022 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11023 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11024 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11025 * grub-core/net/drivers/efi/efinet.c: New file.
11026 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11027 (grub_efi_net_config): New extern var.
11028
11029 Various cleanups and bugfixes.
11030
11031 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11032 error.
11033 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11034 disk declared as partition.
11035 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11036 leak on failure.
11037 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11038 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11039 (grub_debug_zalloc): Likewise.
11040 (grub_debug_realloc): Likewise.
11041 (grub_debug_memalign): Likewise.
11042 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11043 Check that target is IPv4.
11044 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11045 local-mac-address as fallback.
11046 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11047 memory leak.
11048 * grub-core/net/ip.c (ipchksum): Rename to ...
11049 (grub_net_ip_chksum): ... this. All users updated.
11050 (grub_net_recv_ip_packets): Special handling for DHCP.
11051 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11052
11053 Unify prefix handling
11054
11055 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11056 (grub_machine_get_bootlocation): ... this.
11057 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11058 (grub_machine_get_bootlocation): ... this.
11059 (grub_prefix): New variable.
11060 (prefix): Removed.
11061 (root_dev): New variable.
11062 (dir): Likewise.
11063 (main): Use new variables.
11064 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11065 Revamped into ...
11066 (grub_machine_get_bootlocation): ... this.
11067 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11068 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11069 (grub_machine_get_bootlocation): ... this.
11070 (grub_machine_set_prefix): Removed.
11071 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11072 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11073 Revamped into ...
11074 (grub_machine_get_bootlocation): ... this.
11075 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11076 (grub_set_prefix_and_root): ... this. All users updated.
11077 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11078 Revamped into ...
11079 (grub_machine_get_bootlocation): ... this.
11080 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11081 (grub_machine_get_bootlocation): New proto.
11082 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11083
11084 Less intrusive and more reliable seek on network implementation.
11085
11086 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11087 (grub_file_seek): Don't call grub_file_net_seek.
11088 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11089 (grub_net_fs_read_real): .. this.
11090 (grub_net_seek_real): Use net->offset.
11091 (grub_net_fs_read): Seek if necessary.
11092
11093 Unify IEEE1275 netwotk config with the other platforms.
11094
11095 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11096 New variable.
11097 (grub_machine_get_bootlocation): Support network.
11098 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11099 Support type and device parsing.
11100 (grub_ieee1275_get_device_type): New function.
11101 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11102 into ...
11103 (grub_ieee1275_net_config_real): ... this.
11104 (grub_ofnet_probecards): Removed.
11105 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11106 * include/grub/ieee1275/ofnet.h: Removed.
11107 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11108 extern var.
11109 (grub_ieee1275_get_device_type): New function.
11110
11111 Unify network device closing across platforms and make more robust.
11112
11113 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11114 grub_grubnet_fini.
11115 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11116 already.
11117 * grub-core/net/net.c (grub_net_network_level_interface_register):
11118 Update num_ifaces.
11119 (grub_net_card_unregister): Close all interfaces.
11120 (receive_packets): Don't poll if no iterfaces are registered.
11121 Open if necessary.
11122 (grub_net_fini_hw): New function.
11123 (grub_net_restore_hw): Likewise.
11124 (fini_hnd): New variable.
11125 (GRUB_MOD_INIT): Register preboot hook.
11126 (GRUB_MOD_FINI): Run and unregister preboot hook.
11127
11128 Poll network cards when idle.
11129
11130 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11131 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11132 * grub-core/net/net.c (receive_packets): Save last poll time.
11133 (grub_net_poll_cards_idle_real): New function.
11134 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11135 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11136 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11137
11138 Rename ofnet interfaces.
11139
11140 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11141 (grub_ofnet_findcards): Use ofnet_%s names.
11142
11143 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11144
11145 Cleanup socket opening.
11146
11147 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11148 (grub_net_fs_close): Likewise.
11149 (grub_net_fs_read_real): Use eof member.
11150 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11151 (+grub_net_udp_close): New inline function.
11152
11153 * include/grub/net/tftp.h: Moved to the top of ...
11154 * grub-core/net/tftp.c: ... here.
11155 * include/grub/net/ip.h: Moved mostly to the top of ...
11156 * grub-core/net/ip.c: ... here.
11157 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11158 * grub-core/net/ethernet.c: ... here.
11159
11160 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11161
11162 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11163 FS name.
11164
11165 * include/grub/net/ip.h (ipv4_ini): Removed.
11166 (ipv4_fini): Likewise.
11167
11168 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11169 (grub_net_send_ip_packets): Likewise.
11170
cf1337aa
VS
111712011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11174 grub_read_cmos prototype.
11175
93c06ff9
VS
111762011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11177
11178 VGA text support in qemu-mips
11179
11180 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11181 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11182 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11183 text.
11184 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11185 * grub-core/kern/vga_init.c: ... this.
11186 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11187 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11188 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11189 Adjust.
11190 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11191 GRUB_MACHINE_PCI_IO_BASE.
11192
748ccabe
VS
111932011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11194
11195 MIPS qemu flash support.
11196
11197 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11198 magic.
11199 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11200 (grub_machine_init): Probe memory if its size isn't known.
11201 * util/grub-mkimage.c (image_targets): Add flash targets.
11202 (generate_image): Handle flash targets.
11203
d7345994
VS
112042011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11205
11206 MIPS qemu at_keyboard support.
11207
11208 * gentpl.py (videoinkernel): Add qemu-mips.
11209 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11210 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11211 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11212 modules.
11213 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11214 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11215 * grub-core/term/serial.c (grub_serial_register)
11216 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11217
a07a81b3
VS
112182011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11219
11220 CMOS support on sparc.
11221
11222 * gentpl.py (cmos): Add powerpc and sparc.
11223 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11224 powerpc and sparc.
11225 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11226 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11227 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11228 grub_set_datetime_cmos.
11229 * grub-core/lib/ieee1275/cmos.c: New file.
11230 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11231 (find_rtc): Set no_ieee1275_rtc on error.
11232 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11233 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11234 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11235 fail. Move value to argument. All users updated
11236 (grub_cmos_write): Likewise.
11237 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11238 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11239 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11240 grub_get_datetime_cmos and grub_set_datetime_cmos.
11241
77546584
GS
112422011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11243
11244 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11245 sourcing grub-mkconfig_lib.
11246 * util/update-grub_lib.in: Likewise.
11247 * util/grub.d/00_header.in: Likewise.
11248 * util/grub.d/10_hurd.in: Likewise.
11249 * util/grub.d/10_kfreebsd.in: Likewise.
11250 * util/grub.d/10_linux.in: Likewise.
11251 * util/grub.d/10_netbsd.in: Likewise.
11252 * util/grub.d/10_windows.in: Likewise.
11253 * util/grub.d/20_linux_xen.in: Likewise.
11254 * util/grub.d/30_os-prober.in: Likewise.
11255
54894791
CW
112562011-06-28 Colin Watson <cjwatson@ubuntu.com>
11257
11258 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11259 default_bg_color rather than black.
11260 (grub_gfxterm_fullscreen): Likewise.
11261 (grub_gfxterm_background_color_cmd): Save new background color in
11262 default_bg_color.
11263
8d5d8444
VS
112642011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11265
11266 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11267
5afeb5bd
VS
112682011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11269
11270 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11271 mismerge.
11272
ba7df45e
VS
112732011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11274
11275 Chainloading on coreboot support.
11276
11277 * grub-core/Makefile.core.def (chain): Add coreboot.
11278 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11279
d0b526b2
VS
112802011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11283 if it happens.
11284
5ff1d945
VS
112852011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11286
11287 Implement time command.
11288
11289 * grub-core/Makefile.core.def (time): New module.
11290 * grub-core/commands/time.c: New file.
11291 * grub-core/script/parser.y: Remove "time" keyword.
11292 * grub-core/script/yylex.l: Likewise.
11293
5ebaad7e
VS
112942011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11295
11296 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11297
bdea3798
VS
112982011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11299
11300 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11301 when handling leftovers.
11302
b28c5655
VS
113032011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11304
11305 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11306 so that help2man doesn't fail.
11307
b6f945dc
VS
113082011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11309
11310 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11311 type in pointers on sparc64.
11312 (get_card_packet): Likewise.
11313
f9b75e8a
CW
113142011-06-27 Colin Watson <cjwatson@ubuntu.com>
11315
11316 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11317 with `*'.
11318 (grub_cmd_videoinfo): Fetch current video mode.
11319
1e3d9b86
VS
113202011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11321
11322 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11323 because of underlying system restrictions.
11324
efff4b1c
VS
113252011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11328 necessary.
11329
9fc9ce37
VS
113302011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11331
11332 Coreboot video support.
11333
11334 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11335 (vbe): Likewise.
11336 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11337 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11338 here ...
11339 * grub-core/kern/i386/int.S: ... here.
11340 * grub-core/video/i386/pc/vbe.c: Updated includes.
11341 * grub-core/video/i386/pc/vga.c: Likewise.
11342 * include/grub/i386/coreboot/memory.h
11343 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11344 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11345 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11346 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11347 Disable interrupts.
11348 * include/grub/i386/pc/vga.h: Removed. All users updated.
11349
41bec7fe
VS
113502011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11351
11352 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11353 definitions for dprintf.
11354 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11355
ca80309d
VS
113562011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11357
11358 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11359 prototype.
11360 (get_card_packet): Likewise.
11361
9e322ce8
YB
113622011-06-26 Yves Blusseau <blusseau@zetam.org>
11363
11364 Display the path of the file when file is not found
11365
11366 * grub-core/fs/fat.c: Display the filename when file is not found.
11367 * grub-core/fs/fshelp.c: Likewise.
11368 * grub-core/fs/hfs.c: Likewise.
11369 * grub-core/fs/jfs.c: Likewise.
11370 * grub-core/fs/minix.c: Likewise.
11371 * grub-core/fs/ufs.c: Likewise.
11372 * grub-core/fs/btrfs.c: Likewise.
11373 * grub-core/commands/i386/pc/play.c: Likewise.
11374
cbf597af
SJ
113752011-06-26 Szymon Janc <szymon@janc.net.pl>
11376
11377 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11378 pointer checks before calling grub_free().
11379 * grub-core/commands/wildcard.c (match_devices): Likewise.
11380 * grub-core/commands/wildcard.c (match_files): Likewise.
11381 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11382 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11383 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11384 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11385 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11386 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11387 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11388 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11389 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11390
6295b32f
P
113912011-06-25 Patrick <p55@mailinator.com>
11392
11393 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11394
77c0840b
VS
113952011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11398 (grub_pxe_send): Likewise.
11399 (GRUB_MOD_INIT): Fix types.
11400
40ea05de
SJ
114012011-06-24 Szymon Janc <szymon@janc.net.pl>
11402
11403 * grub-core/io/xzio.c: Fix code style issues
11404
90162423
MRA
114052011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
114062011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
11407
11408 Network infrastructure.
11409 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11410
11411 * include/grub/net/arp.h: New file.
90162423
MRA
11412 * include/grub/net/device.h: Likewise.
11413 * include/grub/net/ethernet.h: Likewise.
11414 * include/grub/net/ip.h: Likewise.
11415 * include/grub/net/netbuff.h: Likewise.
11416 * include/grub/net/tftp.h: Likewise.
11417 * include/grub/net/udp.h: Likewise.
11418 * include/grub/ieee1275/ofnet.h: Likewise.
11419 * include/grub/emu/export.h: Likewise.
11420 * include/grub/net.h: Likewise.
11421 * grub-core/net/arp.c: Likewise.
11422 * grub-core/net/ethernet.c: Likewise.
11423 * grub-core/net/ip.c: Likewise.
11424 * grub-core/net/udp.c: Likewise.
11425 * grub-core/net/tftp.c: Likewise.
11426 * grub-core/net/netbuff.c: Likewise.
11427 * grub-core/net/net.c: Likewise.
11428 * grub-core/net/drivers/emu/emunet.c: Likewise.
11429 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11430 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11431 export.h.
11432 * grub-core/Makefile.core.def (net): New module.
11433 (tftp): Likewise.
11434 (ofnet): Likewise.
11435 (emunet): Likewise.
11436 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11437 network protocols.
11438 * grub-core/kern/device.c (grub_net_open) : New variable.
11439 (grub_device_open): Handle network device.
11440 (grub_device_close): Likewise.
11441 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11442 (grub_grubnet_fini): Likewise.
11443 (grub_file_seek): Seek in network device.
11444 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11445 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11446 network root.
11447 (grub_machine_fini): Call grub_grubnet_fini.
11448 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11449 network.
11450 (grub_ieee1275_get_aliasdevname): New function.
11451 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11452 Add unofficial Solaris network info.
11453 (grub_multiboot_make_mbi): Likewise.
11454 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11455 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11456 * include/grub/device.h (grub_fs): Removed.
11457 * include/grub/err.h (grub_err_t): Add network-related values.
11458 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11459 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11460 (grub_ieee1275_get_aliasdevname): New proto.
11461 * include/grub/net.h: Rewritten.
423a1849 11462
031f22a0
VS
114632011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11464
11465 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11466 names.
11467
4388ca72
VS
114682011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11469
11470 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11471 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11472 it truncates the output.
11473 Reported by: Ximin Luo.
11474
98e2f506
VS
114752011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11478
2a5e94d8
VS
114792011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11480
11481 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11482 partmap before abstraction.
11483
535c1910
AK
114842011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11485
11486 * util/grub-mkconfig_lib.in: Add missing quotes.
11487
bc09e1a2
VS
114882011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11489
11490 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11491 old method if mountinfo would return /dev/root and /dev/root doesn't
11492 exist.
11493
290766fb
VS
114942011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 ZFS zlib support
11497
11498 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11499 (decomp_table): Add zlib entries.
11500 (zio_read): USe 8 bits for compression function rather than 3.
11501 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11502
115032011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11504
11505 * grub-core/disk/ahci.c: Add missing license statements.
11506 * grub-core/fs/romfs.c: Likewise.
11507 * grub-core/lib/ia64/setjmp.S: Likewise.
11508 * grub-core/loader/i386/pc/freedos.c: Likewise.
11509 * grub-core/loader/ia64/efi/linux.c: Likewise.
11510 * grub-core/video/colors.c: Likewise.
11511 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11512
5ab3f48a
VS
115132011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11514
11515 AHCI support.
11516
11517 * grub-core/Makefile.core.def (ata_pthru): Removed.
11518 (ahci): New module.
11519 (pata): Likewise.
11520 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11521 on unload.
11522 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11523 readwrite.
11524 (grub_hdparm_do_check_powermode_cmd): Likewise.
11525 (grub_hdparm_do_smart_cmd): Likewise.
11526 (grub_hdparm_set_val_cmd): Likewise.
11527 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11528 * grub-core/disk/ahci.c: New file.
11529 * grub-core/disk/ata.c: Factor out the low-level part into ...
11530 * grub-core/disk/pata.c: ... here.
11531 * grub-core/disk/ata_pthru.c: Contents moved to ...
11532 * grub-core/disk/pata.c: ... here.
11533 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11534 (grub_scsi_iterate): Use grub_scsi_names.
11535 (grub_scsi_open): Likewise.
11536 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11537 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11538 (grub_ata_regs_t): New struct.
11539 (grub_disk_ata_pass_through_parms): Likewise.
11540 (grub_ata_device): Renamed to ...
11541 (grub_ata): ... this.
11542 (grub_ata_dev): New struct.
11543 Removed all low-level inline functions.
11544 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11545 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11546 iterate hooks and open. All users updated.
11547 * util/grub-install.in: Handle AHCI disk module.
11548
c31dc5f5
SJ
115492011-06-23 Szymon Janc <szymon@janc.net.pl>
11550
11551 Add support for DRI and RSTn markers in JPEG files.
11552
11553 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11554 (JPEG_MARKER_RST0): Likewise.
11555 (JPEG_MARKER_RST1): Likewise.
11556 (JPEG_MARKER_RST2): Likewise.
11557 (JPEG_MARKER_RST3): Likewise.
11558 (JPEG_MARKER_RST4): Likewise.
11559 (JPEG_MARKER_RST5): Likewise.
11560 (JPEG_MARKER_RST6): Likewise.
11561 (JPEG_MARKER_RST7): Likewise.
11562 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11563 (grub_jpeg_decode_dri): New function.
11564 (grub_jpeg_decode_sos): Move image data related part into
11565 grub_jpeg_decode_data function.
11566 (grub_jpeg_decode_data): New function.
11567 (grub_jpeg_reset): New function.
11568 (grub_jpeg_decode_jpeg): Handle new markers.
11569
fe12fd5b
VS
115702011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11571
11572 * util/ieee1275/ofpath.c (check_sas): Close fd.
11573 (main): Free of_path.
11574 Reported by: David Volgyes <dvolgyes>.
11575
03147f46
VS
115762011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11577
11578 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11579 Reported by: David Volgyes <dvolgyes>.
11580
cad3237f
VS
115812011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11582
11583 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11584 file after stat.
11585 Reported by: David Volgyes <dvolgyes>.
11586
13548d26
VS
115872011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11588
11589 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11590
11591 Reported by: David Volgyes <dvolgyes>.
11592
e061a1b5
VS
115932011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11594
11595 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11596 Prevent memory leak.
11597
1abe47dc
VS
115982011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11599
11600 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11601 (main): Close file.
e061a1b5 11602 Reported by: David Volgyes <dvolgyes>.
1abe47dc 11603
fbc62666
VS
116042011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11605
11606 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11607 to continue if allocation is failed.
11608
11609 Reported by: David Volgyes <dvolgyes>.
11610
e98c83e9
DV
116112011-06-23 David Volgyes <dvolgyes>
11612
11613 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11614 dereference.
11615
a199a8cd
VS
116162011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11617
11618 Fix spurious warning.
11619
11620 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11621 (acorn_partition_map_find): Use .bin member.
11622
e2d1dba0
VS
116232011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11624
11625 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11626 /dev/root as a valid device.
11627
8a5d6919
JM
116282011-06-23 Jim Meyering <meyering@redhat.com>
11629
e2d1dba0
VS
11630 Avoid NULL deref in grub_device_open.
11631
8a5d6919
JM
11632 * grub-core/kern/device.c (grub_device_open): Don't dereference
11633 a NULL pointer upon failed grub_env_get.
11634
f7db6f4a
VS
116352011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 Support non-512B sectors and agglomerate reads.
11638
11639 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11640 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11641 (disk_io_guid): Removed.
11642 (make_devices): Locate solely by BlockIO.
11643 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11644 (grub_efidisk_read): Use read_blocks.
11645 (grub_efidisk_write): Use write_blocks.
11646 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11647 log_sector_size.
11648 (get_safe_sectors): Handle non-512B sectors.
11649 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11650 sectors.
11651 (grub_biosdisk_write): Handle non-512B sectors.
11652 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11653 (grub_scsi_read): Remove special non-512B block handling (now handled
11654 one level up).
11655 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11656 and do sanity checks.
11657 (grub_disk_adjust_range): Handle non-512B sectors.
11658 (transform_sector): New function.
11659 (grub_disk_read_small): Likewise.
11660 (grub_disk_read): Rewritten.
11661 (grub_disk_write): Handle non-512B sectors.
11662 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11663 log_sector_size.
11664 (open_device): Use log_sector_size.
11665 (grub_util_biosdisk_read): Likewise.
11666 (grub_util_biosdisk_write): Likewise.
11667 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
11668 non-512B sectors.
11669 (pc_partition_map_embed): Likewise.
11670 * include/grub/disk.h (grub_disk): New field log_sector_size.
11671 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
11672 (GRUB_DISK_CACHE_BITS): Increased to 6.
11673 * util/grub-fstest.c (fstest): New command testload.
11674 (argp_parser): Likewise.
11675
881ac815
RM
116762011-06-16 Robert Millan <rmh@gnu.org>
11677
11678 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
11679 `ata' driver on kernel of FreeBSD 9.
11680
11681 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
11682 (get_ataraid_disk_name): New functions.
11683 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
11684 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
11685 get_ataraid_disk_name() and get_ada_disk_name().
11686
1e9aef7d
CW
116872011-06-13 Colin Watson <cjwatson@ubuntu.com>
11688
11689 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
11690 input format.
11691
351c7c8a
CW
116922011-05-29 Colin Watson <cjwatson@ubuntu.com>
11693
11694 * docs/grub.texi (Obtaining and Building GRUB): Substitute
11695 `ftp.gnu.org' for `alpha.gnu.org'.
11696
6b4e6430
CW
116972011-05-27 Colin Watson <cjwatson@ubuntu.com>
11698
11699 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
11700 partitions under /dev/disk/by-id/.
11701
c64db050
CW
117022011-05-27 Colin Watson <cjwatson@ubuntu.com>
11703
11704 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
11705 after ten consecutive open failures. Scanning all the way up to
11706 10000 is excessive and can cause serious performance problems in
11707 some configurations.
11708 Fixes Ubuntu bug #787461.
11709
245f4aba
VS
117102011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
11713 opening new one.
11714
f767c929
VS
117152011-05-21 Colin Watson <cjwatson@ubuntu.com>
117162011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
11717
11718 Don't stat devices unless we have to.
11719
11720 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
11721 dir == /dev/mapper.
11722 (grub_guess_root_device): Use already known os_dev if possible.
11723 * grub-core/kern/emu/hostdisk.c
11724 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
11725 if device is known to be a dm one.
11726
f35fa3a6
CW
117272011-05-20 Colin Watson <cjwatson@ubuntu.com>
11728
11729 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
11730 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
11731 Reported by: Pawel Tecza.
11732
9a79fcf2
VS
117332011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
11734
11735 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
11736 (lsefisystab): Likewise.
11737 (lssal): Likewise.
11738 (lsefimmap): Likewise.
11739 (hdparm): Enable on qemu-mips.
11740 (setjmp): Add ia64 nodist.
11741 (serial): Simplify tags.
11742
63e3eea9
CW
117432011-05-18 Colin Watson <cjwatson@ubuntu.com>
11744
11745 * Makefile.util.def (grub-ofpathname): Install manual page.
11746
09728256
CW
117472011-05-18 Colin Watson <cjwatson@ubuntu.com>
11748
11749 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
11750
8b63a142
CW
117512011-05-18 Colin Watson <cjwatson@ubuntu.com>
11752
11753 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
11754
e775d8ed
VS
117552011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11756
11757 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
11758 into dprintf.
11759
bf947d36
VS
117602011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11761
11762 Use full 64-bit division.
11763
11764 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
11765 (grub_divmod64): ... this.
11766 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
11767 version.
11768
b84f26c5
CW
117692011-05-18 Colin Watson <cjwatson@ubuntu.com>
11770
11771 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
11772 `source'.
11773
5626056f
CW
117742011-05-18 Colin Watson <cjwatson@ubuntu.com>
11775
11776 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
11777 to avoid accidents when debugging with 'sh -x'.
11778 * grub-core/gensyminfo.sh.in: Likewise.
11779 * tests/example_scripted_test.in: Likewise.
11780 * tests/grub_cmd_regexp.in: Likewise.
11781 * tests/grub_script_blanklines.in: Likewise.
11782 * tests/grub_script_dollar.in: Likewise.
11783 * tests/grub_script_expansion.in: Likewise.
11784 * tests/grub_script_final_semicolon.in: Likewise.
11785 * tests/partmap_test.in: Likewise.
11786 * tests/util/grub-shell-tester.in: Likewise.
11787 * tests/util/grub-shell.in: Likewise.
11788
e2965f4a
CW
117892011-05-18 Colin Watson <cjwatson@ubuntu.com>
11790
11791 Move gfxmenu color handling to video, so that gfxterm can use it
11792 too.
11793
11794 * grub-core/gfxmenu/named_colors.c: Move to ...
11795 * grub-core/video/colors.c: ... here. Rename
11796 grub_gui_get_named_color to grub_video_get_named_color.
11797 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
11798 * grub-core/video/colors.c (my_isxdigit): ... here.
11799 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
11800 Move to ...
11801 * grub-core/video/colors.c (parse_hex_color_component): ... here.
11802 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
11803 to ...
11804 * grub-core/video/colors.c (grub_video_parse_color): ... here.
11805
11806 * include/grub/gui.h (grub_gui_color_t): Move to ...
11807 * include/grub/video.h (grub_video_rgba_color_t): ... here.
11808 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
11809 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
11810 * include/grub/gui.h (grub_gui_map_color): Move to ...
11811 * include/grub/video.h (grub_video_map_rgba_color): ... here.
11812 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
11813 to ...
11814 * include/grub/video.h (grub_video_get_named_color): ... here.
11815 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
11816 * include/grub/video.h (grub_video_parse_color): ... here.
11817
11818 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
11819 video/colors.c.
11820 (gfxmenu): Remove gfxmenu/named_colors.c.
11821 (video) [videomodules]: Add video/colors.c.
11822
11823 Add a background_color command.
11824
11825 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
11826 function.
11827 (GRUB_MOD_INIT): Register background_color command.
11828 (GRUB_MOD_FINI): Unregister background_color command.
11829 (redraw_screen_rect): Allow blend/replace of text layer to be
11830 controlled independently from whether there is a background bitmap.
11831 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
11832 changing bitmap.
11833
1e4b4390
VS
118342011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11835
26618ff0
VS
11836 Patch BPB in ntldr and chainloader --bpb.
11837
1e4b4390
VS
11838 * grub-core/fs/fat.c: Include grub/fat.h.
11839 (grub_fat_bpb): Moved to ...
11840 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
11841 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
11842 grub/ntfs.h.
11843 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
11844 Moved from here...
11845 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
11846 here.
11847 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
11848 New function.
11849 (grub_chainloader_cmd): Patch BPB if --bpb is given.
11850 (GRUB_MOD_INIT): Show --bpb.
11851 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
11852 * grub-core/normal/main.c (features): New variable.
11853 (GRUB_MOD_INIT): Set feature_* variables.
11854 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
11855 proto.
11856 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
11857
cf02731e
VS
118582011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11859
11860 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
11861 for cleanness.
11862
e3a1073f
VS
118632011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 FreeDOS direct loading support.
11866
11867 * docs/grub.texi (Supported OS): Add FreeDOS.
11868 * grub-core/Makefile.core.def (freedos): New module.
11869 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
11870 variable.
11871 (grub_relocator16_boot): Handle %ebx.
11872 * grub-core/lib/i386/relocator16.S: Likewise.
11873 * grub-core/loader/i386/pc/freedos.c: New file.
11874
05caa461
VS
118752011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11876
11877 Long Linux command line support.
11878
11879 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11880 (maximal_cmdline_size): New variable.
11881 (allocate_pages): Use maximal_cmdline_size.
11882 (grub_cmd_linux): Set and use maximal_cmdline_size.
11883 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
11884 (allocate_pages): Use maximal_cmdline_size.
11885 (grub_cmd_linux): Set and use maximal_cmdline_size.
11886 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
11887 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
11888 and cmdline_size.
11889
a2491e23
VS
118902011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
118912011-05-18 Colin Watson <cjwatson@ubuntu.com>
11892
11893 Improve devmapper support
11894
11895 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
11896 (grub_util_is_lvm): New function.
11897 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
11898 than lvm if not dmraid.
11899 Handle mapped md nodes.
11900 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
11901 (grub_util_device_is_mapped): ... this. Make always available. All users
11902 updated.
11903 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
11904 (convert_system_partition_to_system_disk): Handle lvm, mpath and
11905 dmraid nodes.
11906 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
11907
6ad6223e
VS
119082011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
11911
11912 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
11913 * grub-core/modinfo.sh.in: New file.
11914 * grub-core/Makefile.core.def (modinfo.sh): New script.
11915 * util/grub-mknetdir.in: Use modinfo.sh.
11916 * util/grub-mkrescue.in: Likewise.
11917
543a8f6e
VS
119182011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
11921 Fix potential usage of Elf32 instead of Elf64 when compiling on
11922 32-bit architecture. Add endianness macros while on it.
11923
4959e111
VS
119242011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11925
11926 Use mipsel- rather than mips- in directories involving mipsel ports to
11927 allow both endiannesses coexist.
11928
11929 * configure.ac: proparate target_cpu=mipsel rather than resetting to
11930 mips. All conditions adjusted.
11931 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
11932 variable.
11933 * util/grub-install.in: Adjust conditions to take renaming into account.
11934 * util/grub-mkimage.c (image_targets): Likewise. New target
11935 mips-qemu_mips-elf for bigendian mips.
11936
35341bbc
VS
119372011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11938
11939 Avoid unnecessary copying on MIPS.
11940
11941 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
11942 early if src == dest.
11943 * util/grub-mkimage.c (generate_image): Arange for src == dest if
11944 compression is none.
11945
b772baed
VS
119462011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11947
11948 Reduce memory footprint on SGI by putting modules before the kernel
11949 as opposed to after.
11950
11951 * grub-core/Makefile.core.def (kernel): Increase linking address.
11952 (none_decompress): Likewise.
11953 (xz_decompress): Likewise.
11954 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
11955 address.
11956 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
11957 layout change.
11958 (grub_arch_modules_addr): New function.
11959 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
11960 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
11961 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
11962 here.
11963 * grub-core/kern/mips/startup.S (total_size): Rename to ...
11964 (grub_total_modules_size): ... this. Make global.
11965 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
11966 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
11967 New definition.
11968 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
11969 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
11970 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
11971 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
11972 * util/grub-mkimage.c (image_target_desc): New flag
11973 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
11974 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
11975 (generate_image): Handle images with modules before kernel.
11976
566a1917
VS
119772011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
11978
11979 Prevent potential loss of memory map by overwrite on qemu-mips.
11980
11981 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
11982 Save ram size in $s4.
11983 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
11984 All users changed to grub_arch_memsize.
11985 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
11986 Loongson.
11987 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
11988 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
11989 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
11990 external variable.
11991
5d420cd9
CW
119922011-05-17 Colin Watson <cjwatson@ubuntu.com>
11993
11994 * .bzrignore: Remove grub-dumpbios.
11995
d064b830
CW
119962011-05-17 Colin Watson <cjwatson@ubuntu.com>
11997
11998 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
11999 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12000 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12001 existing options which append).
12002 * docs/grub.texi (Simple configuration): Document new options.
12003 Reported by: Ian Jackson. Fixes Debian bug #617538.
12004
3ca2b466
CW
120052011-05-17 Colin Watson <cjwatson@ubuntu.com>
12006
12007 * util/grub-fstest.c (cmd_cat): New function.
12008 (fstest): Handle CMD_CAT.
12009 (options): Add cat.
12010 (argp_parser): Handle cat.
12011
24c9143a
CW
120122011-05-17 Colin Watson <cjwatson@ubuntu.com>
12013
12014 * Makefile.util.def (grub-bin2h): Don't install.
12015 * docs/man/grub-bin2h.h2m: Remove.
12016
90f7ac19
VS
120172011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12020 place.
12021
8d4a5178
VS
120222011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12023
12024 Reenable qemu-mips port.
12025
12026 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12027 Fix small arc bug while on it.
12028 * gentpl.py: Handle qemu_mips.
12029 * grub-core/Makefile.am: Likewise.
12030 * grub-core/Makefile.core.def: Likewise.
12031 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12032 inappropriate includes.
12033 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12034 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12035 * grub-core/kern/main.c (grub_modules_get_end)
12036 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12037 * grub-core/kern/mips/qemu-mips: Moved to ..
12038 * grub-core/kern/mips/qemu_mips: ... this.
12039 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12040 (grub_machine_init): Call terminfo_init and serial_init.
12041 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12042 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12043 New variable.
12044 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12045 parameter passing.
12046 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12047 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12048 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12049 * include/grub/mips/qemu_mips/cmos.h: New file.
12050 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12051 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12052 Removed.
12053 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12054 Use correct mips-style address.
12055 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12056 (GRUB_TICKS_PER_SECOND): Removed.
12057 (grub_get_rtc): Likewise.
12058 (grub_cpu_idle): Likewise.
12059 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12060 New definition.
12061 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12062 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12063 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12064 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12065 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12066 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12067 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12068 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12069
400b9371
VS
120702011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12071
12072 SGI ARCS port.
12073
12074 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12075 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12076 platforms.
12077 * configure.ac: New target mips-arc.
12078 * gentpl.py: Likewise.
12079 * grub-core/Makefile.am: Likewise.
12080 * grub-core/Makefile.core.def: Likewise.
12081 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12082 (none_decompress): Likewise.
12083 (lsdev): New module.
12084 (datetime): Use lib/arc/datetime.c on ARC.
12085 (part_dvh): New module.
12086 * grub-core/commands/arc/lsdev.c: New file.
12087 * grub-core/disk/arc/arcdisk.c: Likewise.
12088 * grub-core/kern/mips/arc/init.c: Likewise.
12089 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12090 aligned addresses.
12091 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12092 support.
12093 (grub_arch_dl_relocate_symbols): Likewise.
12094 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12095 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12096 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12097 platforms.
12098 * grub-core/lib/arc/datetime.c: New file.
12099 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12100 pci.h on non-loongson.
12101 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12102 (grub_linux_boot): Set unused registers to 0.
12103 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12104 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12105 * grub-core/mmap/mips/uppermem.c: ...here.
12106 * grub-core/partmap/dvh.c: New file.
12107 * grub-core/term/arc/console.c: Likewise.
12108 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12109 (grub_terminfo_set_current): Add terminal "arc".
12110 (grub_terminfo_readkey): Support ARC sequences.
12111 * include/grub/arc/arc.h: New file.
12112 * include/grub/arc/console.h: Likewise.
12113 * include/grub/disk.h (grub_disk_dev_id): Add
12114 GRUB_DISK_DEVICE_ARCDISK_ID.
12115 * include/grub/mips/arc/kernel.h: New file.
12116 * include/grub/mips/arc/memory.h: Likewise.
12117 * include/grub/mips/arc/time.h: Likewise.
12118 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12119 * include/grub/mips/kernel.h (grub_halt): ... here.
12120 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12121 here...
12122 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12123 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12124 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12125 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12126 proto.
12127 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12128 from here ...
12129 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12130 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12131 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12132 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12133 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12134 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12135 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12136 (grub_phys_addr_t): Moved from here ...
12137 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12138 (grub_vtop): Moved from here ...
12139 * include/grub/mips/memory.h (grub_vtop): ... here.
12140 (grub_map_memory): Moved from here ...
12141 * include/grub/mips/memory.h (grub_map_memory): ... here.
12142 (grub_unmap_memory): Moved from here ...
12143 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12144 (grub_machine_mmap_iterate): Moved from here ...
12145 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12146 (grub_mmap_get_lower): Moved from here ...
12147 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12148 (grub_mmap_get_upper): Moved from here ...
12149 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12150 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12151 here ...
12152 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12153 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12154 here ...
12155 * include/grub/mips/time.h (grub_get_rtc): ... here.
12156 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12157 here ...
12158 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12159 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12160 here ...
12161 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12162 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12163 definition.
12164 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12165 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12166 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12167 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12168 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12169 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12170 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12171 (GRUB_MACHINE_LINK_ADDR): Likewise.
12172 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12173 to 6.
12174 * util/grub-install.in: Run dvhtool on ARC.
12175 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 12176 (generate_image): Handle ECOFF output for mips-arc.
400b9371 12177
c8ecc840
VS
121782011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12179
12180 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12181 blocks.
12182
153a4b55
VS
121832011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12184
12185 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12186 after enabling port.
12187
ff44d107
VS
121882011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12189
12190 Skip incorrect USB devices.
12191
12192 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12193 configcnt == 0.
12194 * include/grub/usb.h (grub_usb_err_t): New enum value
12195 GRUB_USB_ERR_BADDEVICE.
12196
638dbe4f
VS
121972011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12198
12199 Fuloong video init support.
12200
12201 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12202 well.
12203 (grub_vga_read_arx): New function.
12204 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12205 definition.
12206 (framebuffer): New members io, mmioptr and mmiobase.
12207 (read_sis_cmd): New function.
12208 (write_sis_cmd): Likewise.
12209 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12210 rather than 640x400.
12211 * grub-core/video/sis315_init.c: New file.
12212
c3fc520c
VS
122132011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12214
12215 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12216 non-loongson.
12217 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12218 to grub_dl_register_symbol.
12219
67b1e5c9
VS
122202011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12221
12222 Fix compilation errors.
12223
12224 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12225 potentially unused.
12226 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12227 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12228 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12229 to loongson machines.
12230
b756f75f
VS
122312011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12232
12233 Several FS mtime support.
12234
12235 * grub-core/fs/affs.c (grub_affs_time): New struct.
12236 (grub_affs_file): New field mtime.
12237 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12238 type. Removed 'size'. New field 'di'. All users updated.
12239 (grub_affs_mount): Simplify checsum checking.
12240 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12241 (grub_affs_dir): Handle mtime.
12242 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12243 (grub_cpio_dir): Likewise.
12244 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12245 (grub_hfs_filerec): New field mtime.
12246 (grub_hfs_dir): Handle mtime.
12247 (grub_hfs_mtime): New function.
12248 (grub_hfs_fs): Register grub_hfs_mtime.
12249 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12250 (grub_iso9660_dir): New field mtime.
12251 (grub_fshelp_node): New field dirent.
12252 (iso9660_to_unixtime): New function.
12253 (iso9660_to_unixtime2): Likewise.
12254 (grub_iso9660_read_symlink): Use node->dirent.
12255 (grub_iso9660_iterate_dir): Likewise.
12256 (grub_iso9660_dir): Set mtime.
12257 (grub_iso9660_mtime): New function.
12258 (grub_iso9660_fs): Register grub_iso9660_mtime.
12259 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12260 (grub_jfs_inode): New fields atime, ctime and mtime.
12261 (grub_jfs_dir): Set mtime.
12262 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12263 * grub-core/fs/ntfs.c (list_file): Set mtime.
12264 (grub_ntfs_dir): Likewise.
12265 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12266 (grub_reiserfs_iterate_dir): Set mtime.
12267 (grub_reiserfs_dir): Likewise.
12268 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12269 (grub_fshelp_node): Likewise.
12270 (grub_sfs_iterate_dir): Set mtime.
12271 (grub_sfs_dir): Likewise.
12272 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12273 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12274 (grub_xfs_inode): New fields atime, mtime, ctime.
12275 (grub_xfs_dir): Set mtime.
12276 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12277 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12278 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12279
12280 Support UDF symlinks.
12281
12282 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12283 (grub_ufs_read_symlink): New function. All users updated.
12284
12285 Check amiga partmap checksum.
12286
12287 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12288 (grub_amiga_partition): Likewise.
12289 (amiga_partition_map_checksum): New function.
12290 (amiga_partition_map_iterate): Check checksum.
12291
5470225d
VS
122922011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12293
12294 ROMFS support.
12295
12296 * Makefile.util.def (libgrubmods.a): Add romfs.
12297 * grub-core/Makefile.core.def (romfs): New module.
12298 * grub-core/fs/romfs.c: New file.
12299
d4680a35
VS
123002011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 Squashfs v4 support.
12303
12304 * Makefile.util.def (libgrubmods.a): Add squash4.
12305 * grub-core/Makefile.core.def (squash4): New module.
12306 * grub-core/fs/squash4.c: New file.
12307 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12308 disk_input_start, disk_input.
12309 (get_byte): Handle disk_input.
12310 (grub_zlib_disk_read): New function.
12311 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12312
bcb18e74
FZ
123132011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
123142011-05-15 Feiran Zheng <famcool@gmail.com>
12315
12316 * Makefile.util.def (libgrubmods.a): Add minix3.
12317 * grub-core/Makefile.core.def (minix3): New module.
12318 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12319 (GRUB_MINIX_BSIZE): Removed.
12320 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12321 (grub_minix_ino_t): New type.
12322 (grub_minix_le_to_cpu_ino): New macro.
12323 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12324 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12325 (grub_minix_data): New field block_size.
12326 (grub_minix_read_file): Handle 64-bit correctly.
12327 * grub-core/fs/minix3.c: New file.
12328
32297d5f
TG
123292011-05-15 Tristan Gingold <gingold@free.fr>
123302011-05-15 Robert Millan <rmh.grub@aybabtu.com>
123312011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12332
12333 IA64 support.
12334
12335 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12336 * configure.ac: Add ia64-efi target.
12337 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12338 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12339 * gentpl.py: Add ia64_efi platform.
12340 Rename x86_efi to efi and Add ia64-efi. All users updated.
12341 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12342 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12343 Remove kern/generic/rtc_get_time_ms.c on EFI.
12344 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12345 kern/ia64/dl_helper.c on ia64-efi.
12346 Add kern/emu/cache.c on emu.
12347 (linux): Use on loader/ia64/efi/linux.c on ia64.
12348 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12349 whether symbol is a function.
12350 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12351 (grub_symbol): New field 'isfunc'.
12352 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12353 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12354 (grub_dl_load_segments): Place all sections into the same region.
12355 [__ia64__]: Create trampolines and got.
12356 [GRUB_MACHINE_EMU]: Call mprotect.
12357 (grub_dl_resolve_symbols): Resolve symbol type as well.
12358 [__ia64__]: Create function descriptors.
12359 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12360 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12361 (grub_get_rtc): New function.
12362 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12363 * grub-core/kern/emu/cache.S: Renamed to ...
12364 * grub-core/kern/emu/cache_s.S: ... this.
12365 [__ia64__]: Add a nop.
12366 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12367 [__ia64__]: New function.
12368 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12369 * grub-core/kern/ia64/dl.c: New file.
12370 * grub-core/kern/ia64/dl_helper.c: Likewise.
12371 * grub-core/kern/ia64/efi/init.c: New file.
12372 * grub-core/kern/ia64/efi/startup.S: Likewise.
12373 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12374 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12375 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12376 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12377 * grub-core/loader/ia64/efi/linux.c: New file.
12378 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12379 (GRUB_MOD_DEP): Likewise.
12380 (grub_dl) [__ia64__]: New fields got and tramp.
12381 (grub_dl): New field 'base'.
12382 (grub_dl_register_symbol): New argument isfunc. All users updated.
12383 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12384 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12385 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12386 (grub_ia64_dl_get_tramp_got_size): New proto.
12387 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12388 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12389 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12390 * include/grub/efi/api.h: Skip call wrappers on ia64.
12391 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12392 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12393 * include/grub/elf.h (ELF_ST_INFO): New definition.
12394 * include/grub/ia64/efi/kernel.h: New file.
12395 * include/grub/ia64/efi/memory.h: Likewise.
12396 * include/grub/ia64/efi/time.h: Likewise.
12397 * include/grub/ia64/kernel.h: Likewise.
12398 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12399 * include/grub/ia64/time.h: New file.
12400 * include/grub/ia64/types.h: Likewise.
12401 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12402 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12403 New protos.
12404 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12405 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12406 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12407 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12408 All users updated.
12409 (EFI64_HEADER_SIZE): New definition. All users updated.
12410 (image_targets): Add ia64-efi.
12411 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12412 jumpers_addr. All users updated.
12413 Create function descriptors.
12414 (count_funcs): New function.
12415 (unaligned_uint32): New struct.
12416 (MASK20): New definition.
12417 (MASK19): Likewise.
12418 (MASKF21): Likewise.
12419 (add_value_to_slot_20b): New function.
12420 (add_value_to_slot_21_real): Likewise.
12421 (add_value_to_slot_21): Likewise.
12422 (ia64_kernel_trampoline): New struct.
12423 (nopm): New variable.
12424 (jump): Likewise.
12425 (make_trampoline): New function.
12426 (relocate_addresses): Handle ia64.
12427 (make_reloc_section): Likewise.
12428 (load_image): Likewise.
12429
983b414d
VS
124302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12433 warning. Move variables before code while on it.
12434
5d063cdc
VS
124352011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 Fuloong support.
12438
12439 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12440 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12441 * grub-core/boot/mips/loongson/fuloong.S: New file.
12442 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12443 Explicitly init CS5536.
12444 [FULOONG]: Don't use serial until CS5536 is available.
12445 Set GPIO based on dumps.
12446 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12447 [FULOONG]: Handle GPIO and memory controller differences.
12448 Parse machine type in $a2.
12449 * grub-core/boot/mips/startup_raw.S: Determine and save the
12450 architecture.
12451 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12452 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12453 init on architecture type.
12454 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12455 SIS315E. Don't init at_keyboard on fuloong.
12456 (grub_halt): Support Fuloong.
12457 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12458 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12459 (loongson_machtypes): New array.
12460 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12461 type.
12462 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12463 config. All users updated. Handle CS5536 serial.
12464 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12465 default port on machine type. Register serial as inactive.
12466 * grub-core/video/sis315pro.c: New file.
12467 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12468 definition.
12469 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12470 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12471 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12472 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12473 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12474 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12475 to ...
12476 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12477 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12478 definition.
12479 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12480 (grub_arch_machine): New extern var.
12481 * include/grub/mips/loongson/serial.h
12482 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12483 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12484 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12485 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12486 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12487 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12488 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12489 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12490 * include/grub/term.h (grub_term_register_input_inactive): New inline
12491 function.
12492 (grub_term_register_output_inactive): Likewise.
12493 * include/grub/video.h (grub_video_driver_id): New value
12494 GRUB_VIDEO_DRIVER_SIS315PRO.
12495 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12496 New field "names". All users updated.
12497 New field value IMAGE_FULOONG_FLASH.
12498 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12499
6ada82d1
JU
125002011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12501
12502 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12503 and add some clarification.
12504
90c571a4
VS
125052011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12508 platforms if kernel is compressed.
12509
de04eecf
VS
125102011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12511
12512 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12513 unused modules since currently referrence counter isn't reliable and
12514 there isn't much memory to recover there anyway.
12515
57688121
VS
125162011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12517
12518 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12519 rather than resetting it to allow modules to reference themselves
12520 in init.
12521
3d2c7e35
VS
125222011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12523
12524 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12525 counter on dependencies since grub_dl_unref already handles this.
12526
b25db218
VS
125272011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12528
12529 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12530 on error if not already done.
12531
25a45338
VS
125322011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12533
12534 Fix few potential memory misusage.
12535
12536 * grub-core/font/font.c (load_font_index): Don't free char_index to
12537 avoid double free.
b25db218
VS
12538 (grub_font_load): Zero-fill font at alloc for safety.
12539 Close file on error.
12540 (free_font): Free bmp_idx.
25a45338 12541
0cac83df
VS
125422011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12543
12544 * docs/grub.texi (Installation): Fix several outdated claims.
12545
2217a143
VS
125462011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 Handle module_license on windows.
12549
12550 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12551 sections shifted.
12552 (insert_string): Make argument const char * instead of char *.
12553 (write_section_data): Handle long section names.
12554 Handle module_license.
12555
d4de6b01
VS
125562011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12557
12558 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12559 handle class-free menuentries.
12560 (grub_normal_add_menu_entry): Add a check to be sure.
12561
4c2a3b43
VS
125622011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12563
12564 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12565 PgUp and PgDown.
12566
85c6210f
VS
125672011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12568
12569 * configure.ac: Bump version to 1.99.
12570
36084912
VS
125712011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12572
12573 Give ATA device a bit more time on first try in order to allow disks
12574 to spin up.
12575
12576 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12577 if dev->present is 1. Reset dev->present on failure.
12578 (grub_ata_device_initialize): Set dev->present to 1.
12579 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12580 (grub_ata_device): New member 'present'.
12581
bda0e219
VS
125822011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12583
12584 * util/grub-mkimage.c (generate_image): Update hash.
12585
19e1c41b
VS
125862011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12587
12588 Flush caches on DMA memory.
12589
12590 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12591 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12592 (grub_dma_free): Likewise.
12593 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12594
91bbcc0c
VS
125952011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12598 to avoid asm treating ld and sd as macros.
12599
60ddfad3
VS
126002011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12601
12602 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12603 decompressor.
12604
a298aa04
VS
126052011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12606
12607 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12608 grub_decompress_core since later would fail if grub_decompress_core
12609 is too far.
12610
9b44feca
VS
126112011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12614 R_MIPS_JALR since it's used by newer compiler.
12615
56dbe7b4
VS
126162011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12617
12618 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12619
52856af2
VS
126202011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12621
12622 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12623 file_path to 0 for surety.
12624 (grub_chainloader_boot): Set exit_data to NULL.
12625 Unset the loader once done.
12626 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12627
9c9bfc6d
VS
126282011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12629
12630 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12631 unknown key into a dprintf.
12632
dd94a3df
VS
126332011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12634
12635 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12636 on first non-existant partition.
12637
fa68d99c
VS
126382011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12639
12640 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12641 openning fails.
12642 Reported by: Mark Korenberg.
12643
157effb7
VS
126442011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12645
12646 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12647 overflow.
12648
ea75312f
VS
126492011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12650
12651 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12652 before closing to ensure that it will be readable by grub-setup.
12653
072b5d31
VS
126542011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12655
12656 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12657 (devpath_1): Use MAKE_PIWG_PATH.
12658 (devpath_2): Likewise.
12659 (devpath_3): Likewise.
12660 (devpath_4): Likewise.
12661 (devpath_5): Likewise.
12662 (devpath_6): Likewise.
12663
12664 The appleldr.mod was checked that to be binary identical to previous
12665 version.
12666
7fae0051
Z
126672011-05-05 Zach <mikezackles>
12668
12669 Support 2010 Macbooks.
12670
12671 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
12672 (devs): Add devpath_6.
12673
7c515bee
VS
126742011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12675
12676 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
12677 /dev/random. /dev/urandom is good enough for our purposes (salting).
12678
ed660bd8
VS
126792011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12680
12681 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
12682
ee5614b7
VS
126832011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
12686 hexadecimal.
12687
664889a6
VS
126882011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12689
12690 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
12691 and not 0 on failure.
12692
bd405bbc
CW
126932011-05-03 Colin Watson <cjwatson@ubuntu.com>
12694
12695 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
12696 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
12697 disk; otherwise grub_fs_probe will not fall back to the next
12698 filesystem.
12699 (grub_pxefs_open): Likewise, for consistency.
12700 Reported and tested by: Ezekiel Grave.
12701
4ebff753
CW
127022011-05-03 Colin Watson <cjwatson@ubuntu.com>
12703
12704 * tests/partmap_test.in: Don't hardcode path to parted.
12705 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
12706
8f942553
CW
127072011-05-01 Colin Watson <cjwatson@ubuntu.com>
12708
12709 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
12710 of `ls' to find out which devices are available.
12711
3c62402d
VS
127122011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12713
12714 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
12715 than source address for efi mmap buffer.
12716
723f63f2
VS
127172011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12718
12719 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
12720 wrong action on non-detecting the magic.
12721
68797f92
VS
127222011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12723
12724 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
12725 already supplied by another part of the module (fixes compilation on
12726 FreeBSD).
12727
6be8715d
VS
127282011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
12729
12730 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
12731 match the one used by mdadm.
12732
e91dba5b
CW
127332011-04-21 Colin Watson <cjwatson@ubuntu.com>
12734
12735 * po/README: Add instructions for creating po/LINGUAS.
12736
c85140b3
CW
127372011-04-21 Colin Watson <cjwatson@ubuntu.com>
12738
12739 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
12740 #551428.
12741
12742 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
12743 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
12744 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
12745 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
12746 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
12747 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
12748 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
12749 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
12750 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
12751 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
12752 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
12753 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
12754 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
12755 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
12756 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
12757 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
12758 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
12759 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
12760 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
12761 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
12762 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
12763 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
12764
92051871
CW
127652011-04-21 Colin Watson <cjwatson@ubuntu.com>
12766
12767 * grub-core/kern/emu/getroot.c
12768 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
12769 test that was incorrectly reintroduced in r3214.
12770 Reported by: Ian Dall. Fixes Savannah bug #33133.
12771
b13f79a4
CW
127722011-04-21 Colin Watson <cjwatson@ubuntu.com>
12773
12774 Fix stack pointer handling in 16-bit relocator.
12775
12776 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
12777 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
12778 Fixes Ubuntu bug #683904.
12779
9b710a88
VS
127802011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12781
12782 * configure.ac: Bump version to 1.99~rc2.
12783
d97e7b59
VS
127842011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12785
12786 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
12787 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
12788 * grub-core/lib/x86_64/setjmp.S: Likewise.
12789 * grub-core/lib/mips/setjmp.S: Likewise.
12790 * grub-core/lib/powerpc/setjmp.S: Likewise.
12791 * grub-core/lib/sparc64/setjmp.S: Likewise.
12792
0624551c
VS
127932011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
12794
12795 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
12796 * grub-core/lib/efi/datetime.c: Likewise.
12797
e8f28d4c
VS
127982011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12799
12800 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
12801 New function.
12802 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
12803 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
12804 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
12805
bba79a15
VS
128062011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12807
12808 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
12809 bitmap.
12810 (grub_gfxterm_term_init): Likewise.
12811
abc474ef
VS
128122011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
12813
12814 Take into account the decorations the computing menu entry width.
12815
12816 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
12817 (grub_gfxmenu_create_box): Register get_border_width.
12818 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
12819 if available.
12820 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
12821 get_border_width.
12822
e74b3947
EP
128232011-04-18 Endres Puschner <code@e7p.de>
12824
12825 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
12826 Don't skip first class.
12827
34faa595
VS
128282011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12829
12830 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
12831 chunks.
12832 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
12833
93a777e3
VS
128342011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12835
12836 Complete 64-bit division support.
12837
12838 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
12839 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
12840 * include/grub/misc.h (grub_divmod64): Rename to ...
12841 (grub_divmod64_full): ... this.
12842 (grub_divmod64): New inline function.
12843
a5102d94
VS
128442011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12845
12846 * util/grub-mkimage.c (generate_image): Add forgotten comma.
12847
f3fb7b36
VS
128482011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
12851 performing the necessary test.
12852
9ac718b0
VS
128532011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12854
12855 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
12856 (kfreebsd.elf): Likewise.
12857 (pc-chainloader.elf): Likewise.
12858 (ntldr.elf): Likewise.
12859
50d2cc5a
VS
128602011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
12861
12862 Identify RAID by its UUID rather than (guessed) name.
12863
12864 * grub-core/disk/raid.c (ascii2hex): New function.
12865 (grub_raid_open): Accept mduuid/%s specification.
12866 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
12867 (get_mdadm_uuid): ... this.
12868 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
12869
e03f7bea
VS
128702011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
12873 to negative size.
12874
e74c3112
CW
128752011-04-13 Colin Watson <cjwatson@ubuntu.com>
12876
12877 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
12878 btrfs subvolume.
12879 * util/grub.d/20_linux_xen.in: Likewise.
12880
78fa584f
CW
128812011-04-13 Colin Watson <cjwatson@ubuntu.com>
12882
12883 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
12884 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
12885
12886 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
12887 Build a list of relevant visible mounts using the mnt_id and
12888 parent_mnt_id fields, and then scan that list at the end.
12889
9d5f8162
CW
128902011-04-12 Colin Watson <cjwatson@ubuntu.com>
12891
12892 * docs/grub.texi (normal): New section.
12893 (normal_exit): New section.
12894 (Embedded configuration): Add reference to normal.
12895 (GRUB only offers a rescue shell): Likewise.
12896 * docs/grub-dev.texi (Error Handling): Fix typo.
12897
09a9d66f
CW
128982011-04-12 Colin Watson <cjwatson@ubuntu.com>
12899
12900 * NEWS: Drop obsolete entry about probe-only btrfs support.
12901
0c676933
CW
129022011-04-12 Colin Watson <cjwatson@ubuntu.com>
12903
12904 * util/import_gcry.py: Fix typo.
12905
ec9f5e0d
VS
129062011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12907
12908 * NEWS: Add btrfs support.
12909
fe6b2cba
VS
129102011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
129112011-04-11 Colin Watson <cjwatson@ubuntu.com>
12912
12913 BtrFS support. Written by me (Vladimir) with important bugfixes and
12914 even more important testing by Colin.
12915
12916 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
12917 * grub-core/Makefile.core.def (btrfs): Add crc.c.
12918 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
12919 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
12920 mem_input_off and mem_input. All users updated to accept in-RAM input.
12921 (gzio_seek): New function.
12922 (test_zlib_header): Likewise.
12923 (grub_gzio_read): Likewise.
12924 (grub_zlib_decompress): Likewise.
12925 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
12926 Accept partial and non-virtual mounts.
12927 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
12928 avoid receiving /dev/dm-X as device.
12929 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
12930 Handle bind and partial mounts.
12931 * grub-core/lib/crc.c: New file.
12932 * include/grub/deflate.h: Likewise.
12933 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
12934 proto.
12935 * include/grub/lib/crc.h: New file.
12936
e745cf0c
VS
129372011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12938
12939 Implement automatic module license checking according to new GNU
12940 guidelines.
12941
12942 * grub-core/kern/dl.c (grub_dl_check_license): New function.
12943 (grub_dl_load_core): Use grub_dl_check_license.
12944 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
12945 (GRUB_MOD_LICENSE): Likewise.
12946 (GRUB_MOD_DUAL_LICENSE): Likewise.
12947 All modules updated.
12948
2a9bc016
CW
129492011-04-11 Colin Watson <cjwatson@ubuntu.com>
12950
12951 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
12952 reserved_first_sector to 1. btrfs reserves plenty of space for boot
12953 loaders.
12954 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
12955
8a3bc88e
VS
129562011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12957
12958 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
12959
af869a4a
VS
129602011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12961
12962 * util/grub-fstest.c (read_file): Report GRUB error if file opening
12963 failed.
12964
9ee8d94f
VS
129652011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12966
12967 * grub-core/kern/file.c (grub_file_open): Don't take into account the
12968 parenthesis in the middle of the filename.
12969
b01abe3e
VS
129702011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12971
12972 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
12973 rather than trying to put initrd way too high.
12974 Reported by: Ryan Lortie <desrt@desrt.ca>
12975
335bda1e
VS
129762011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12977
12978 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
12979 improperly removed string.
12980
5ca1a64d
VS
129812011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
12982
12983 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
12984 is_disk.
12985 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
12986 (open_device) Likewise.
12987 (grub_util_biosdisk_close): Likewise.
d8ce9995 12988 Reported by: Mark Korenberg.
5ca1a64d 12989
cbac5b1e
AK
129902011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
12991
12992 * util/grub-mkconfig_lib.in: Add missing quotes.
12993
088cdb65
CW
129942011-04-10 Colin Watson <cjwatson@ubuntu.com>
12995
12996 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
12997 is NULL.
12998
8b8a81fa
VS
129992011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13000
13001 Dynamically count the number of lines for the lower banner.
13002
13003 * grub-core/normal/menu_entry.c (per_term_screen): New member
13004 num_entries.
13005 (print_down): Use num_entries.
13006 (update_screen): Likewise.
13007 (grub_menu_entry_run): Set num_entries.
13008 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13009 num_entries.
13010 (grub_print_message_indented): Move real part to ...
13011 (grub_print_message_indented_real): ... here. Additional argument
13012 dry_run.
13013 (draw_border): Additional argument num_entries.
13014 (print_message): Additional argument dry_run.
13015 (print_entries): Receive menu viewer data.
13016 (grub_menu_init_page): New argment num_entries.
13017 (menu_text_set_chosen_entry): Use num_entries.
13018 (grub_menu_try_text): Likewise.
13019 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13020 All users updated.
13021 (grub_ucs4_count_lines): New function.
13022 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13023 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13024 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13025 (grub_term_border_height): Likewise.
13026 (grub_term_num_entries): Likewise.
13027
277f955b
VS
130282011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13029
13030 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13031 Remove now unused string.
13032
536ce85a
CW
130332011-04-09 Colin Watson <cjwatson@ubuntu.com>
13034
13035 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13036 build system.
13037 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13038
13039 (Comment): Fix typo.
13040 (Getting started): General copy-editing.
13041 (Typical Development Experience): Likewise.
13042 (Error Handling): Likewise.
13043 (Video API): Likewise.
13044
2cf09e32
CW
130452011-04-09 Colin Watson <cjwatson@ubuntu.com>
13046
13047 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13048 throughout.
13049
1ec652f4
VS
130502011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13051
13052 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13053 directory.
13054
2c583728
CW
130552011-04-08 Colin Watson <cjwatson@ubuntu.com>
13056
13057 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13058 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13059 "development".
13060
d7a565e9
VS
130612011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13062
13063 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13064 grub_strcpy since the lines aren't necessarily 0-terminated.
13065
7c2e4909
VS
130662011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13067
13068 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13069 root on legacy.
13070
34c09785
VS
130712011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13072
13073 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13074 (GRUB_MOD_INIT): DEVICE isn't optional.
13075
6a6f8058
VS
130762011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13077
13078 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13079 word on new line if it's too long anyway. Fixes a hang.
13080
2e335e90
VS
130812011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13082
13083 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13084 const.
13085 * util/grub-setup.c (main): Reuse md device name if available.
13086 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13087 not GRUB name as argument.
13088 Based on patch by: Florian Wagner <fwagner>.
13089
10a7a867
VS
130902011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13091
13092 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13093 Place mbi on low memory for better compatibility.
13094
7a3d6cd9
VS
130952011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13098
18dd6b47
VS
130992011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
131002011-04-08 Colin Watson <cjwatson@ubuntu.com>
13101
13102 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 13103 * conf/Makefile.common: Likewise.
18dd6b47 13104
3c0e3f14
VS
131052011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13106
f7148863
VS
13107 * grub-core/normal/menu.c: Add missing include.
13108
131092011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13110
13111 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 13112
6d1fa41f
MZ
131132011-04-08 Martin Zuther <mzuther@mzuther.de>
13114
13115 * util/grub-mkconfig.in: Ignore emacsen backup.
13116
478182a8
VS
131172011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13118
13119 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13120 on open.
13121 (grub_util_biosdisk_close): Likewise.
13122
72a89a54
VS
131232011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13124
13125 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13126 const attribute and use grub_isdigit.
13127
b5ebecfa
A
131282011-04-06 Andrey <dev_null@ukr.net>
13129
13130 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13131 gcc warning.
13132
7755f66e
VS
131332011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13134
13135 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13136 useful grub_dprintf's.
13137
461121ff
VS
131382011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13141
2a961775
VS
131422011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13143
13144 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13145
adf594cc
VS
131462011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13147
13148 Output errors if theme loading failed.
13149
13150 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13151 grub_gfxterm_fullscreen on error paths to ...
13152 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13153 theme loading error.
13154
665900a3
VS
131552011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13156
13157 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13158 space for older compilers.
13159 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13160
a562b479
VS
131612011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13162
13163 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13164 and report them as not RAID members since they are useless for GRUB.
13165 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13166
850e9373
VS
131672011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13168
13169 Increase LVM implementation robustness in order not to crash on
13170 configurations like pvmove. Previously code assumed that in some places
13171 only lvs or only pvs are used whereas it seems that they are used
13172 interchangeably.
13173
13174 * grub-core/disk/lvm.c (read_node): New function.
13175 (read_lv): Use read_node.
13176 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13177 Match volumes only at the end when all lvs are found. Take both
13178 pvs (first) and lvs (second) into account.
13179 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13180 mirror_* into node_*. All users updated.
13181 (grub_lvm_stripe): Merge this ...
13182 (grub_lvm_mirror): ... and this ...
13183 (grub_lvm_node): ... into this. All users updated.
13184
6f332153
VS
131852011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13186
13187 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13188 of function to allow further scanning for LVMs.
13189
829ea451
VS
131902011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13191
13192 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13193 on failed seek as it breaks open fd reusage.
13194
09ceb9a5
VS
131952011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13196
13197 * util/grub-install.in: Add a recommendation to use --recheck before
13198 reporting bugs.
13199
67e11623
VS
132002011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13201
13202 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13203 are obtained.
13204
caee5efd
VS
132052011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13206
13207 GRUB developper manual based on existing Internals section and
13208 contributions by the various authors with active copyright assignment.
13209
13210 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13211 * docs/font_char_metrics.png: New file.
13212 * docs/font_char_metrics.txt: Likewise.
13213 * docs/grub-dev.texi: Likewise.
13214 * docs/grub.texi (Internals): Move from here ...
13215 * docs/grub-dev.texi: ... here.
13216
2cccc747
CW
132172011-04-01 Colin Watson <cjwatson@ubuntu.com>
13218
13219 Store the loopback device as data on loopback grub_disk structures,
13220 rather than the file it points to. This fixes use of freed memory
13221 if an existing loopback device is replaced.
13222
13223 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13224 disk->data, not dev->file.
13225 (grub_loopback_read): Adjust file assignment to match.
13226 Fixes Ubuntu bug #742967.
13227
186ae367
CW
132282011-04-01 Colin Watson <cjwatson@ubuntu.com>
13229
13230 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13231 when replacing an existing device.
13232
cfed2ad0
VS
132332011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13234
13235 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13236 memory corruptions.
13237
13238 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13239 unsigned.
13240 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13241 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13242 (grub_jfs_read_inode): Likewise.
13243 (grub_jfs_opendir): Likewise. Remove now useless casts.
13244 (grub_jfs_getent): Likewise.
13245 Make ino a grub_uint32_t rather than int.
13246 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13247 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13248 division and module with bit operations.
13249 (grub_jfs_find_file): Make ino a grub_uint32_t.
13250 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13251
05d2ed32
CW
132522011-04-01 Colin Watson <cjwatson@ubuntu.com>
13253
13254 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13255 warning. (This was in fact always initialised before use, but GCC
13256 wasn't smart enough to prove that.)
13257 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13258
91dc6073
VS
132592011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13260
13261 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13262 stack alignment.
13263 (efi_wrap_1): Likewise.
13264 (efi_wrap_2): Likewise.
13265 (efi_wrap_3): Likewise.
13266 (efi_wrap_4): Likewise.
13267 (efi_wrap_5): Likewise.
13268 (efi_wrap_6): Likewise.
13269 (efi_wrap_10): Likewise.
13270 Based on information by: Red Hat/Peter Jones.
13271
a8afc1d1
CW
132722011-03-31 Colin Watson <cjwatson@ubuntu.com>
13273
13274 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13275 set-but-not-used variable.
13276
a826cc7d
CW
132772011-03-31 Colin Watson <cjwatson@ubuntu.com>
13278
13279 * docs/grub.texi (Simple configuration): Be more explicit about
13280 GRUB_DEFAULT, and add an example.
13281 Reported by: Leslie Rhorer.
13282
875b67ba
CW
132832011-03-30 Colin Watson <cjwatson@ubuntu.com>
13284
13285 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13286 shell".
13287
fd7cd914
AS
132882011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13289
13290 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13291 * util/grub.d/20_linux_xen.in: Likewise.
13292
090b1b6a
VS
132932011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13294
13295 * util/grub.d/10_linux.in: Try alternative config filenames where
13296 we parse config file.
13297 * util/grub.d/20_linux_xen.in: Likewise.
13298
baad885c
AS
132992011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13300
13301 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13302 * util/grub.d/20_linux_xen.in: Likewise.
13303
241e41f5
VS
133042011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13305
13306 * grub-core/disk/raid.c (insert_array): Add few potentially
13307 useful grub_util_info.
13308 (grub_raid_register): Likewise.
13309
56445fb2
VS
133102011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13311
13312 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13313 Preserve partition number in mdadm code path.
13314
c871b1c6
VS
133152011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13316
13317 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13318 few potentially useful grub_util_info.
13319
5e631b4f
CW
133202011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13321
13322 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13323
2d5d0333
CW
133242011-03-30 Colin Watson <cjwatson@ubuntu.com>
13325
13326 * docs/grub.texi (default): Use @example rather than nested
13327 itemized lists to avoid breaking gendocs.
13328
3d7ed04e
CW
133292011-03-30 Colin Watson <cjwatson@ubuntu.com>
13330
13331 * docs/grub.texi (Future): Update.
13332
abf04200 133332011-03-30 Colin Watson <cjwatson@ubuntu.com>
13334
13335 * docs/grub.texi (Environment): New chapter.
13336 (Changes from GRUB Legacy): Link to "Environment block" section for
13337 details of limitations.
13338 (Simple configuration): Likewise. Link to documentation of gfxmode
13339 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13340 respectively.
13341 (Shell-like scripting): Note that normal variables are stored in the
13342 environment.
13343 (gettext): Link to documentation of lang and locale_dir.
13344 (list_env): New section.
13345 (load_env): New section.
13346 (save_env): New section.
13347
13348 (Reporting bugs): Fix typo.
13349
e1ad0edd
VS
133502011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13351
13352 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13353 the example.
13354
5d803174
VS
133552011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 * grub-core/term/at_keyboard.c (set_scancodes)
13358 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13359
2a2da1d0
CW
133602011-03-30 Colin Watson <cjwatson@ubuntu.com>
13361
13362 * docs/grub.texi (Menu-specific commands): Remove some semantics
13363 that were true in GRUB Legacy but not in GRUB 2.
13364 (submenu): New section.
13365 (false): New section.
13366 (read): New section.
13367 (true): New section.
13368
a7527639
CW
133692011-03-30 Colin Watson <cjwatson@ubuntu.com>
13370
13371 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13372
133732011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
13374
13375 * docs/grub.texi (Simple configuration): Explain some of the
13376 current limitations of grub-mkconfig.
8a748df2 13377 Reported by: Leslie Rhorer.
e30af029 13378
fc858482
VS
133792011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13380
13381 Old macs search for boot.efi rather than for bootia32.efi.
13382
13383 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13384 * util/grub-mkrescue.in: Likewise.
13385 Suggested by: Peter Jones.
13386
e1eb511d
VS
133872011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13388
13389 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13390
70e75364
VS
133912011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13392
13393 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13394 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13395 (grub_lvm_mirror): New struct.
13396 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13397 (grub_lvm_iterate): Iterate only visible volumes.
13398 (grub_lvm_read): Factor out to ..
13399 (read_lv): ... this. Support mirrors.
13400 (grub_lvm_read): New wrapper function.
13401 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13402 stripped or mirrored.
13403
fc18f6a3
VS
134042011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13405
13406 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13407
5c650f4c
CW
134082011-03-29 Colin Watson <cjwatson@ubuntu.com>
13409
13410 * docs/grub.texi (loopback): New section.
13411
61d7156b
CW
134122011-03-29 Colin Watson <cjwatson@ubuntu.com>
13413
13414 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13415 removed -p option.
13416
994b8264
CW
134172011-03-29 Colin Watson <cjwatson@ubuntu.com>
13418
13419 * docs/grub.texi (BIOS installation): New section, partly based on
13420 previous text in other sections.
13421 (Installing GRUB using grub-install): Replace BIOS discussion with a
13422 cross-reference.
13423 (Images): Likewise.
13424
9e4d19e0
VS
134252011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13426
13427 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13428 [HAVE_DIOCGDINFO]: Add safety checks.
13429
a307c0b2
VS
134302011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13433 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13434
b4db4f39
CW
134352011-03-29 Colin Watson <cjwatson@ubuntu.com>
13436
13437 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13438 real_sb->size is zero (e.g. RAID-0), get the disk size from
13439 real_sb->data_size instead.
13440 Fixes Ubuntu bug #743136.
13441
35e5f84c
VS
134422011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13443
13444 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13445 printf clauses for printing size and start.
13446
d2e29d81
VS
134472011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13448
13449 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13450 Reported and tested by: Timothy Nikkel.
13451
ed5587af
VS
134522011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13453
13454 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13455 (dirty_region_add_real): ... this.
13456 (dirty_region_add): Don't discard margin refresh when performing
13457 scheduled repaint.
13458
a1dc717c
VS
134592011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13460
13461 * grub-core/lib/relocator.c (allocate_regstart)
13462 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13463 terminals are capabple of malloc-free operation.
13464 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13465 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13466
9f3677d3
VS
134672011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13468
13469 * util/grub-setup.c: Copy the partition table zone if floppy support
13470 is disabled, even if no partition table is found.
13471
13472 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13473 during POST if an invalid partition table is contained in the PBR
13474 of the active partition when GRUB is installed to a partition.
13475
24148725
CW
134762011-03-28 Colin Watson <cjwatson@debian.org>
13477
13478 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13479 comment.
13480
f329eda7
CW
134812011-03-28 Colin Watson <cjwatson@debian.org>
13482
13483 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13484 to be specific about what kind of RAID device we're scanning for.
13485
c482ad98
SG
134862011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13487
13488 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13489 return freed string.
13490
5ee04984
VS
134912011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13492
13493 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13494
f4727da9
VS
134952011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13496
13497 Use libgeom on FreeBSD to detect partitions.
13498
13499 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13500 (grub-mkrelpath): Likewise.
13501 (grub-script-check): Likewise.
13502 (grub-editenv): Likewise.
13503 (grub-mkpasswd-pbkdf2): Likewise.
13504 (grub-fstest): Likewise.
13505 (grub-mkfont): Likewise.
13506 (grub-mkdevicemap): Likewise.
13507 (grub-probe): Likewise.
13508 (grub-setup): Likewise.
13509 (grub-ofpathname): Likewise.
13510 (grub-mklayout): Likewise.
13511 (example_unit_test): Likewise.
13512 (grub-menulst2cfg): Likewise.
13513 * grub-core/Makefile.core.def (grub-emu): Likewise.
13514 (grub-emu-lite): Likewise.
13515 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13516 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13517 define HAVE_DIOCGDINFO.
13518 (follow_geom_up) [FreeBSD]: New function.
13519 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13520 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13521 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13522 unconditionally of HAVE_DIOCGDINFO.
13523
82fe6c75
VS
135242011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13525
13526 Fix FreeBSD compilation problem.
13527
13528 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13529 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13530
4c6c9431
CW
135312011-03-24 Colin Watson <cjwatson@ubuntu.com>
13532
13533 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13534 Switch back to page zero before loading a kernel, since some kernel
13535 drivers expect that.
13536 Thanks to: Felix Kuehling.
13537
c7064d94
VS
135382011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13541 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13542 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13543
3f71cded
VS
135442011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13547 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13548
ef6de21a
VS
135492011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13550
13551 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13552 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13553 malloc is disabled.
13554
8bc66a2c
VS
135552011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13558 for modules headers when counting the needed allocation size.
13559
5657722c
VS
135602011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13563 if no ASCII character is found to prevent crash.
13564
41a85f55
AK
135652011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13566
13567 * grub-core/video/bitmap.c (match_extension): Ignore case.
13568
59e1e5f1
VS
135692011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13570
13571 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13572
bd4d051a
VS
135732011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13574
13575 * grub-core/script/parser.y: Declare "time" as valid argument.
13576
bae7fcc1
PJ
135772011-03-23 Peter Jones <pjones@redhat.com>
13578
13579 Fix incorrect assert failure reporting.
13580
13581 * grub-core/tests/example_functional_test.c (example_test): Add
13582 a failure comment.
13583 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13584 (failure_start): ...this. Check that malloc succeeded.
13585 Don't call xvasprintf. Return failure struct.
13586 (failure_append_vtext): New function.
13587 (failure_append_text): Likewise.
13588 (add_failure): Likewise.
13589 (grub_test_assert_helper): Likewise.
13590 * include/grub/test.h (grub_test_assert_helper): New declaration.
13591 (grub_test_assert): Macro rewritten.
13592
537dc9be
VS
135932011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13594
13595 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13596
fa3e01bf
VS
135972011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13598
13599 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13600
b1d28404
VS
136012011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13602
13603 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13604 into GRUB-style one.
13605
2e3e2e09
VS
136062011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13607
13608 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13609 error and not grub_errno.
13610 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13611
ed57e557
VS
136122011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13613
13614 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13615 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13616
d1611f01
VS
136172011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13618
13619 * grub-core/efiemu/i386/pc/cfgtables.c
13620 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13621 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13622 (grub_xnu_unlock): Likewise.
13623 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13624
7d4e39d6
VS
136252011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13628 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13629 * grub-core/commands/hashsum.c (aliases): Likewise.
13630 * grub-core/commands/setpci.c (pci_registers): Likewise.
13631 * grub-core/disk/usbms.c (attach_hook): Likewise.
13632 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13633 (zio_checksum_table): Likewise.
13634 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13635 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13636 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13637 * grub-core/lib/relocator.c (leftovers): Likewise.
13638 (extra_blocks): Likewise.
13639 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13640 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13641 (modules_last): Likewise.
13642 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13643 (devices): Likewise.
13644 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13645 (modules_last): Likewise.
13646 * grub-core/normal/auth.c (users): Likewise.
13647 * grub-core/normal/context.c (initial_menu): Likewise.
13648 (current_menu): Likewise.
13649 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13650 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13651 (grub_serial_terminfo_input_template): Likewise.
13652 (grub_serial_terminfo_output_template): Likewise.
13653 (grub_serial_terminfo_input): Likewise.
13654 (grub_serial_terminfo_output): Likewise.
13655 (registered): Likewise.
13656 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13657
40fc4659
VS
136582011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13659
13660 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13661 grub_video_mode_type_t.
13662 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13663 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13664 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
13665
2da48d28
VS
136662011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 * util/grub-install.in: Correct the x86-64 name as x86_64.
13669
9b43bf39
CW
136702011-03-11 Colin Watson <cjwatson@ubuntu.com>
13671
13672 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
13673 initial chunk read from the kernel always includes GRUB's multiboot
13674 header, which is now outside the first sector.
13675
be1a7ce0
CW
136762011-03-09 Colin Watson <cjwatson@ubuntu.com>
13677
13678 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
13679 cached mmap_size, so that this works correctly when called multiple
13680 times.
13681 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
13682
83a3c48d
CW
136832011-03-09 Colin Watson <cjwatson@ubuntu.com>
13684
13685 * docs/grub.texi (Simple configuration): Tidy up formatting.
13686
57d75699
SJ
136872011-03-07 Szymon Janc <szymon@janc.net.pl>
13688
13689 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
13690 Set-but-not-used variable removed.
13691
028501a0
VS
136922011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13693
13694 Workaround yet another IEEE1275 bug.
13695
13696 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
13697 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
13698 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
13699 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
13700 is set.
13701 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
13702 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
13703
d998657d
VS
137042011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13705
13706 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
13707 error.
13708
fee7cdd4
CW
137092011-02-11 Colin Watson <cjwatson@ubuntu.com>
13710
13711 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
13712 empty, since in that case we can only generate either nothing or a
13713 syntactically invalid configuration file.
13714 Reported by: Michal Suchanek. Fixes Debian bug #612898.
13715
97286eb5
CW
137162011-02-09 Colin Watson <cjwatson@ubuntu.com>
13717
13718 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
13719 (Making a GRUB bootable CD-ROM): Likewise.
13720 (Invoking grub-mkrescue): New section.
13721 Reported by: Yann Dirson. Fixes Debian bug #612585.
13722
22b28eb3
CW
137232011-02-09 Colin Watson <cjwatson@ubuntu.com>
13724
13725 * util/grub-install.in: Remove unnecessary brackets from tr
13726 arguments.
13727 * util/grub.d/10_hurd.in: Likewise.
13728 * util/grub.d/10_kfreebsd.in: Likewise.
13729 * util/grub.d/10_linux.in: Likewise.
13730 * util/grub.d/20_linux_xen.in: Likewise.
13731 Reported by: Jamie Heilman. Fixes Debian bug #612564.
13732
7e735e43
CW
137332011-02-08 Colin Watson <cjwatson@ubuntu.com>
13734
13735 * include/grub/file.h (not_easly_seekable): Rename to ...
13736 (not_easily_seekable): ... this. Update all users.
13737
800f1881
CW
137382011-01-28 Colin Watson <cjwatson@ubuntu.com>
13739
13740 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
13741 grub-mkrescue.
13742
3281d3d6
VS
137432011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
13744
13745 * util/grub-mkimage.c (generate_image): Refuse to create the images
13746 bigger than the actual flash (512K) in Loongson machines. 512K is also
13747 the biggest chip supported by them.
13748
3533413c
VS
137492011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13750
13751 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
13752
73ae4f4f
VS
137532011-01-22 Anthony DeRobertis <anthony@derobert.net>
13754
13755 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
13756 super_offset field.
13757
37f4f608
VS
137582011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13759
13760 * util/grub-install.in: Ignore install device on platforms
13761 where it doesn't make sense. Always use UUIDs except on pc, efi and
13762 sparc64.
13763 Reported by: Daniel Kahn Gillmor.
13764
03a4ccb5
VS
137652011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13766
13767 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
13768
ffc8f4d8
VS
137692011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13770
13771 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
13772 (iterate_real): Don't rely on partition being non-NULL.
13773
80f23be7
VS
137742011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13775
13776 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
13777 supported platforms. Put a compile time assert for this rather than
13778 generate a warning with 32-bit shift.
13779
5d4f4dd5
VS
137802011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13781
13782 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
13783 logical expression more readable.
13784
e489601a
VS
137852011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
13786
13787 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
13788 even if some elements have a name.
13789 Reported by: Alexander GQ Gerasiov.
13790
96e0a6ea
CW
137912011-01-22 Colin Watson <cjwatson@ubuntu.com>
13792
13793 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
13794 path unreadable if `grub-probe -t abstraction' fails, for example if
13795 memberlist fails on an LVM volume group.
13796 Reported by: Darius Jahandarie.
13797
81431e2b
CW
137982011-01-22 Colin Watson <cjwatson@ubuntu.com>
13799
13800 * docs/grub.texi (Simple configuration): Document
13801 GRUB_PRELOAD_MODULES.
13802
5e79d66a
CW
138032011-01-17 Colin Watson <cjwatson@ubuntu.com>
13804
13805 * .bzrignore: Remove nonexistent grub-pbkdf2.
13806
646ada34
VS
138072011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
13808
13809 * configure.ac: Bump version to 1.99~rc1.
13810
04360337
VS
138112011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
13812
13813 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
13814 for safety.
13815
46c9db88
VS
138162011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
13817
13818 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
13819 module.
13820
138212011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
13822
13823 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
13824
4fbf1852
VS
138252011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
13828 diskdevid.
13829
f1632d4d
VS
138302011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 Fix compilation on cygwin.
13833
13834 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
13835 -R .drectve on cygwin.
13836 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
13837 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
13838 (COND_CYGWIN): New condition.
13839 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
13840 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
13841 not @TARGET_OBJ2ELF@.
13842 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
13843 type to determine whether aux is to be used.
13844
0b5e127b
VS
138452011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13846
13847 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
13848 realpath'ed device string.
13849 Handle floppy (somewhat).
13850 Issue error in unknown case rather than garbage.
13851 Reported by: Axel Beckert.
13852
173b71e9
VS
138532011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13854
13855 * util/grub.d/00_header.in (load_video): Handle the case when no video
13856 drivers available.
13857 Thanks to: Axel Beckert.
13858
f8f479db
VS
138592011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13860
13861 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
13862 variable. Fixes problem on big endian platforms.
13863
8fc0a245
VS
138642011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13865
13866 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
13867 It doesn't work well there.
13868
b8494fbe
VS
138692011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13870
13871 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
13872 warning.
13873 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
13874 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
13875 counter.
13876
b44a558c
VS
138772011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
13878
13879 Use alias->path rather than buggy "canon".
13880
13881 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
13882 (ofdisk_hash_add): New argument curcan. All users updated.
13883
51fa856c
CW
138842011-01-11 Colin Watson <cjwatson@ubuntu.com>
13885
13886 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
13887
9da068a5
VS
138882011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13889
13890 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
13891 loadmask before doing any calculations. Use correct type for offset.
13892 (grub_linux_load64): Likewise.
13893
86205c94
CW
138942011-01-11 Colin Watson <cjwatson@ubuntu.com>
13895
13896 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
13897 with NULL.
13898 (console_grub_equivalences_unshift): Likewise.
13899 Reported by: Daniel Dehennin.
13900
4531a206
VS
139012011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13902
13903 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
13904 (set_env_limn_ro): Likewise.
13905 (GRUB_MOD_INIT): Likewise.
13906 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
13907 ARRAY_SIZE while on it.
13908 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
13909 * grub-core/normal/context.c (grub_env_export): Move from here ...
13910 * grub-core/kern/env.c (grub_env_export): ... here.
13911 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
13912 prefix.
13913 * grub-core/kern/main.c (grub_main): Export root and prefix.
13914 * include/grub/env.h (grub_env_export): Export.
13915 Reported by: Seth Goldberg.
13916
45146057
VS
139172011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13918
13919 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13920 Take into account space used by ELF sections and multiboot palette.
13921 Reported by: Grégoire Sutre.
13922
f093110b
VS
139232011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
13924
13925 * BUGS: New file.
13926
3395fe52
VS
139272011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13928
13929 Pass more appropriate video id to Linux.
13930
13931 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
13932 grub_video_get_driver_id and variable gfxpayloadforcelfb to
13933 fill have_vga.
13934 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
13935 shift params->lfb_size.
13936 * include/grub/i386/linux.h: Make an enume out of have_vga values.
13937
c2fa6cbb
VS
139382011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13939
13940 * util/grub-menulst2cfg.c: Add missing include of misc.h.
13941
b3ff6ff0
VS
139422011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
13945 separator and pass bootpath/devid even if only one of them is available.
13946 Reported by: Seth Goldberg.
13947
ae67942e
VS
139482011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
13951 implementations bug on them.
13952
13953 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
13954 memory.
13955 (filter_memory_map): Likewise.
13956
d570097a
VS
139572011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13958
13959 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
13960 Reported by: nebuchadnezzar.
13961
a508e776
VS
139622011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13963
13964 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
13965 Reported by: nebuchadnezzar.
13966
dcb883b1
VS
139672011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13968
13969 Submenu default support.
13970
13971 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
13972 auto_boot. All users updated.
13973 Declared static.
13974 Handle chosen and default with submenus.
13975 (grub_menu_execute_with_fallback): Declared static.
13976 Don't notify failure if autobooted. Upper level does it.
13977 (menuentry_eq): New function.
13978 (get_entry_number): Use menuentry_eq.
13979 (show_menu): New parameter "autobooted". All users updated.
13980 (grub_show_menu): Likewise.
13981 * include/grub/normal.h (grub_show_menu): Likewise.
13982 * include/grub/menu.h (grub_menu_execute_entry): Removed.
13983 (grub_menu_execute_with_fallback): Likewise.
13984
6fef99b4
VS
139852011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13986
13987 * util/grub-mklayout.c (usage): Update help text.
13988
47a77af5
VS
139892011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13990
13991 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
13992
ce6bb3ee
VS
139932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13994
13995 * util/grub-menulst2cfg.c (main): Trim the line.
13996
db87be2a
VS
139972011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
13998
13999 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14000 (grub_machine_init): Don't check amount of low memory as reportedly
14001 INT 12h can be broken and if low memory is too low we wouldn't have
14002 gotten into grub_machine_init anyway.
14003
c49849cc
VS
140042011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14007 (grub_machine_mmap_iterate): Take low memory into account
14008
b1969b30
VS
140092011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14010
14011 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14012 badfs.
14013 Reported by: TiCPU.
14014
cf0eaf13
VS
140152011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14016
14017 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14018 members errors.
14019
1f060f39
GS
140202011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14021
14022 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14023 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14024
a21e5672
GS
140252011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14026
14027 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14028 openbsd and netbsd types being in part_bsd module.
14029
c88172fa
VS
140302011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14033 (_FILE_OFFSET_BITS): Likewise.
14034 Reported by: Seth Goldberg.
14035
53798c4b
GS
140362011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14037
14038 * configure.ac: Check for libdevmapper header.
14039
e7121b69
VS
140402011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14041
14042 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14043 avoid aliasing.
14044 (fzap_lookup): Likewise.
14045 (dnode_get): Likewise.
14046 (make_mdn): Likewise.
14047 (zfs_mount): Likewise.
14048 (fzap_iterate): Use temporary pointer to avoid aliasing.
14049 (grub_zfs_read): Likewise.
14050 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14051 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14052 pointers to avoid aliasing.
14053 (grub_cmd_xnu_kernel64): Likewise.
14054 (grub_xnu_load_driver): Likewise.
14055
fc836af9
VS
140562011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14059 aliasing warning.
14060 (grub_cmd_terminal_output): Likewise.
14061 Reported and tested by: Grégoire Sutre.
14062
f9f37648
VS
140632011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14064
14065 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14066 warning.
14067 Reported and tested by: Grégoire Sutre.
14068
ec1dfd63
VS
140692011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14070
14071 * configure.ac: Do CPU substitution even if it's specified explicitly.
14072 Reported and tested by: Alain Greppin.
14073
9462775a
VS
140742011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14075
14076 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14077 Reported and tested by: Alain Greppin.
14078
0fd48e35
VS
140792011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14080
14081 Satisfy some bison versions need for inttypes.h.
14082
14083 * grub-core/lib/posix_wrap/inttypes.h: New file.
14084 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14085 (int16_t): Likewise.
14086 (int32_t): Likewise.
14087 (int64_t): Likewise.
14088 Reported and tested by: Alain Greppin.
14089
43f1bc83
VS
140902011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14091
14092 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14093 Silence spurious warning.
14094 Reported and tested by: Alain Greppin.
14095
64d1f041
SJ
140962011-01-07 Szymon Janc <szymon@janc.net.pl>
14097
14098 * docs/grub.texi (Support automatic decompression): Update with xz
14099 decompression support.
14100
25953e10
SJ
141012011-01-07 Szymon Janc <szymon@janc.net.pl>
14102
14103 Improve loaders' kernel command line handling.
14104
14105 * grub-core/lib/cmdline.c: New file.
14106 * include/grub/lib/cmdline.h: Likewise.
14107 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14108 grub_create_loader_cmdline to create kernel command line.
14109 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14110 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14111 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14112 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14113 (linux): Add lib/cmdline.c on common.
14114
e72d259f
VS
141152011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14116
14117 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14118 inopos might be unaligned.
14119
c0cf26da
VS
141202011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14121
14122 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14123 endian transformations.
14124 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14125 Based on report by: Doug Nazar.
14126
0ca09e6c
DN
141272011-01-07 Doug Nazar <nazard.michi@gmail.com>
14128
14129 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14130 array->members[i].start_sector.
14131 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14132
014b6806
VS
141332011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14134
14135 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14136 Reported and tested by: Grégoire Sutre.
14137
415502c2
CW
141382011-01-06 Colin Watson <cjwatson@ubuntu.com>
14139
14140 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14141 avoid causing test failures by clearing the screen.
14142
71b6a2b7
CW
141432011-01-06 Colin Watson <cjwatson@ubuntu.com>
14144
14145 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14146 Fix prefix check to handle the case where dir ends with a slash
14147 (most significantly, "/" itself).
14148 Reported by: Michael Vogt.
14149
b3f8d28a
VS
141502011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14151
14152 Run terminfo_cls on initing terminfo output to clear the screen and
14153 move the cursor to (0,0).
14154
14155 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14156 Call grub_terminfo_output_init.
14157 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14158 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14159 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14160
4c3e4f37
VS
141612011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14162
14163 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14164 only when needed.
14165
488f71f1
VS
141662011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14167
14168 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14169 CTRL.
14170
18a38098
VS
141712011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 The E820 type 5 is BADRAM, not EXEC_CODE.
14174
14175 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14176 (GRUB_E820_BADRAM): New define.
14177 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14178 into reserved. Propagate BADRAM.
14179 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14180 (GRUB_E820_BADRAM): New define.
14181
9eae2084
VS
141822011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14183
14184 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14185 Ignore the memory post-4G.
14186 (grub_relocator_firmware_alloc_region): Additional debug statement.
14187
ebc71d28
VS
141882011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14189
14190 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14191 names.
14192 Reported by: David Pravec.
14193
446fa400
VS
141942011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14195
14196 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14197 BIOSes.
14198
a0159f37
VS
141992011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14200
14201 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14202 Prevent overflow.
14203 (grub_reed_solomon_recover): Likewise.
14204
e5146ca1
VS
142052011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14206
14207 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14208
142092011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
14210
14211 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14212 variable.
14213
5b1bdf12
CW
142142011-01-04 Colin Watson <cjwatson@ubuntu.com>
14215
14216 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14217 descriptions of extract_legacy_entries_source and
14218 extract_legacy_entries_configfile.
14219 Reported by: Seung Soo, Ha.
14220
99d925aa
CW
142212011-01-03 Colin Watson <cjwatson@ubuntu.com>
14222
14223 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14224 on devices that do not implement function 0.
14225
4af0504b
DV
142262011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14227
14228 * grub-core/fs/hfsplus.c: Make parent unsigned.
14229 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14230 overflows.
14231 (grub_hfsplus_cmp_extkey): Likewise
14232
469ee10a
VS
142332011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14234
14235 * util/grub-install.in: Correctly use bootloader_id and not
14236 GRUB_DISTRIBUTOR on efibootmgr line.
14237
323a8e9c
VS
142382011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14239
14240 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14241
1b394975
IC
142422010-12-31 Ian Campbell <ijc@hellion.org.uk>
14243
14244 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14245 Xen and reorder menu item wording to make it clearer that this entry
14246 will launch Xen. Print separate messages when loading Xen and
14247 Linux.
14248
275bff5f
VS
142492010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14250
14251 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14252 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14253 loop in case of incorrect amiga partmap.
14254
307806cb
VS
142552010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14256
14257 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14258 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14259 Reported by:EHeM.
14260
b12b923e
VS
142612010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14262
14263 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14264 spurious warning.
14265 Reported by: crocket
14266
14b48a19
VS
142672010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14270 Preload EFIemu.
14271 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14272
693db2df
VS
142732010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14276 is loaded
14277 (grub_cmd_xnu_kextdir): Likewise.
14278 (grub_cmd_xnu_splash): Likewise.
14279
c7638645
VS
142802010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14281
14282 Avoid using Reed-Solomon with 0 redundancy.
14283
14284 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14285 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14286 or 0 redundancy.
14287 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14288 (grub_reed_solomon_recover): Likewise.
14289
25dd4780
VS
142902010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14291
14292 Don't use disk subsystem in freebsd_boot.
14293
14294 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14295 (freebsd_biosdev): Likewise.
14296 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14297 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14298
0b2db943
VS
142992010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14300
14301 Handling of files of unknown size is currently limited. They can't be
14302 used e.g. for initrd or modules. Moreover gzip handling of not
14303 easily seekable files is buggy. Disable unknown file size for now. May
14304 be inefficient but works.
14305
14306 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14307 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14308
5c408d0f
MP
143092010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14310
14311 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14312 floppy probe.
14313
190a011a
JD
143142010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14315
14316 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14317
022d01b8
SL
143182010-12-25 Shea Levy <shlevy>
14319
14320 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14321
c4855fdc
VS
143222010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14323
14324 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14325 Windows Server 2008.
14326 Reported by: Devin Giddings.
14327
0354b867
VS
143282010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14329
14330 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14331 writing an error message because of async power management.
14332 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14333 (grub_reboot): Likewise.
14334
ab66c69f
JU
143352010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14336
14337 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14338 keep unit tests from failing when they shouldn't.
14339
1426ef35
CW
143402010-12-21 Colin Watson <cjwatson@ubuntu.com>
14341
14342 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14343 previous patch increased the size of the RS code by 20 bytes (at
14344 least with gcc-4.4), so increase this by 20 bytes to match.
14345 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14346
20641b6b
CW
143472010-12-21 Colin Watson <cjwatson@ubuntu.com>
14348
14349 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14350 scratch area. Make sure to initialise chosen in standalone mode as
14351 well as non-standalone.
14352 Reported by: Robert Hooker and Andy Whitcroft.
14353 Tested by: Andy Whitcroft.
14354
d060ad60
CW
143552010-12-21 Colin Watson <cjwatson@ubuntu.com>
14356
14357 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14358 constructing a new unescaped string and passing it to grub_xputs in
14359 one go, rather than passing characters to grub_printf one at a time.
14360
b889cfad
CW
143612010-12-21 Colin Watson <cjwatson@ubuntu.com>
14362
14363 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14364 initialising utf16.
14365
4e01b6c8
CW
143662010-12-21 Colin Watson <cjwatson@ubuntu.com>
14367
14368 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14369 comment. Add an extra layer of quotation, requiring the output of
14370 this function to be used in a printf format string.
14371 (gettext_printf): New function.
14372 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14373 Extract translatable strings from here-documents and use a temporary
14374 variable instead, so that xgettext can find them.
14375 * util/grub.d/10_kfreebsd.in: Likewise.
14376 * util/grub.d/10_linux.in: Likewise.
14377 * util/grub.d/20_linux_xen.in: Likewise.
14378
14379 * po/grub.d.sed: New file.
14380 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14381 arguments. Set c-format flags on all strings extracted from
14382 util/grub.d/ (xgettext refuses to include these itself for strings
14383 it extracted from a shell file, but these really are c-format).
14384
5318fe98
VS
143852010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14386
14387 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14388 Avoid next pointing to nowhere.
14389
6c85b743
VS
143902010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14393 rather than assuming than rootblock is exactly in the middle.
14394 (grub_affs_label): Likewise.
14395
a2a08a35
VS
143962010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14397
14398 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14399 reserved_first_sector to 0.
14400 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14401 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14402 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14403
7059d1ec
VS
144042010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 Fix handling of UTF-16 UDF labels.
14407
14408 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14409 (read_string): .. here.
14410 (grub_udf_label): Use read_string.
14411
30aff4cb
BC
144122010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14413
14414 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14415 editor under argument scope.
14416 Reported by: Jordan Uggla
14417
5cf86f4b
VS
144182010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14419
14420 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14421
32570200
CW
144222010-12-18 Colin Watson <cjwatson@ubuntu.com>
14423
14424 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14425 line, and other keys scroll an entire page (previous handling was
14426 for \r and \n to scroll a page and other keys to scroll two lines).
14427
e1dffcf2
VS
144282010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14429
14430 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14431 Set ptrdest to correct get_physical_target_address rather than
14432 incorrect get_virtual_current_address.
14433
b04298cf 144342010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14435
14436 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14437 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14438
5367ecd3
CW
144392010-12-10 Colin Watson <cjwatson@ubuntu.com>
14440
14441 * .bzrignore: Ignore grub-core/rs_decoder.S.
14442
1fb430f8
CW
144432010-12-10 Colin Watson <cjwatson@ubuntu.com>
14444
14445 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14446 .mo/.mo.gz opening sequence to ...
14447 (grub_mofile_open_lang): ... here.
14448 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14449 * util/grub.d/00_header.in (grub_lang): Include country part of
14450 locale.
14451 Reported by: Mario Limonciello.
14452
a94a6671
RM
144532010-12-09 Robert Millan <rmh@gnu.org>
14454
14455 * NEWS: Document addition of ZFS support.
14456
24b7938b
CW
144572010-12-04 Colin Watson <cjwatson@ubuntu.com>
14458
14459 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14460 rather than `/ 2', as the latter requires -Wa,--divide which would
14461 require bumping our minimum binutils version.
14462
bddc3ef6
BC
144632010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14464
14465 * util/grub-script-check.c (main): Print script line number on
14466 error.
14467
bf78d5b2
RM
144682010-12-01 Robert Millan <rmh@gnu.org>
14469
14470 * grub-core/fs/zfs/zfs.c: New file.
14471 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14472 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14473 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14474 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14475
14476 * include/grub/zfs/dmu.h: Likewise.
14477 * include/grub/zfs/dmu_objset.h: Likewise.
14478 * include/grub/zfs/dnode.h: Likewise.
14479 * include/grub/zfs/dsl_dataset.h: Likewise.
14480 * include/grub/zfs/dsl_dir.h: Likewise.
14481 * include/grub/zfs/sa_impl.h: Likewise.
14482 * include/grub/zfs/spa.h: Likewise.
14483 * include/grub/zfs/uberblock_impl.h: Likewise.
14484 * include/grub/zfs/vdev_impl.h: Likewise.
14485 * include/grub/zfs/zap_impl.h: Likewise.
14486 * include/grub/zfs/zap_leaf.h: Likewise.
14487 * include/grub/zfs/zfs.h: Likewise.
14488 * include/grub/zfs/zfs_acl.h: Likewise.
14489 * include/grub/zfs/zfs_znode.h: Likewise.
14490 * include/grub/zfs/zil.h: Likewise.
14491 * include/grub/zfs/zio.h: Likewise.
14492 * include/grub/zfs/zio_checksum.h: Likewise.
14493
14494 * Makefile.util.def: Build ZFS into libgrubmods.
14495 * grub-core/Makefile.core.def: Build zfs.mod.
14496
3f0f3831
SJ
144972010-11-30 Szymon Janc <szymon@janc.net.pl>
14498
14499 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14500 variable.
14501 * grub-core/commands/wildcard.c (match_files): Likewise.
14502
3a4253b2
RM
145032010-11-30 Robert Millan <rmh@gnu.org>
14504
14505 * grub-core/loader/i386/bsd.c
14506 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14507 whether kernel is loaded using grub_loader_is_loaded(), rather
14508 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14509 certain error conditions.
14510
8c317b27
RM
145112010-11-30 Robert Millan <rmh@gnu.org>
14512
c5c9cd3e
RM
14513 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14514 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 14515
49d3ab46
VS
145162010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 Avoid using tricks for initialising endian variables.
14519
14520 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14521 Make const.
14522 (GRUB_MOD_INIT): Don't byte-swap.
14523 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14524 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14525 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14526 (grub_swap_bytes32_compile_time): Likewise.
14527 (grub_cpu_to_le32_compile_time): Likewise.
14528 (grub_cpu_to_le16_compile_time): Likewise.
14529
f420a804
VS
145302010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 * util/grub-setup.c (setup): Stop recommending --force. People who
14533 understand the dangers of blocklists are able to find this option
14534 anyway and the ones who don't shouldn't use it anyway.
14535
4e7db17b
RM
145362010-11-26 Robert Millan <rmh@gnu.org>
14537
14538 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14539 Update all users.
14540
9be57a0d
CW
145412010-11-26 Colin Watson <cjwatson@ubuntu.com>
14542
14543 Fix LVM-on-RAID probing.
14544
14545 * util/grub-probe.c (probe): Remember which disk was detected as
14546 RAID (perhaps an LVM physical volume). Use that disk's raidname
14547 rather than that of the top-level disk.
14548
2c7859b3 145492010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 14550
d7647bb6
BC
14551 Fix cmdline argument quotes for setparams command of menuentry
14552 definitions.
7e623b0d
BC
14553
14554 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14555 quotes for arguments.
f866fe80 14556 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 14557 grub_strchrsub function instead.
f866fe80 14558
7955bea0 14559 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 14560
74f72a64
CW
145612010-11-24 Colin Watson <cjwatson@ubuntu.com>
14562
14563 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14564 effort by skipping "." and ".." entries up-front.
14565 Suggested by: Michael Lazarev.
14566
5a407278
CW
145672010-11-24 Colin Watson <cjwatson@ubuntu.com>
14568
14569 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14570 ldflags to ldadd, to fix link line ordering.
14571 (none_decompress): Likewise.
14572
3030d8ec
CW
145732010-11-24 Colin Watson <cjwatson@ubuntu.com>
14574
14575 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14576 platforms.
14577 (grub-emu-lite): Remove kern/emu/cache.S.
14578
b7fbac12
CW
145792010-11-23 Colin Watson <cjwatson@ubuntu.com>
14580
14581 * util/deviceiter.c (compare_devices): If the by-id link for a
14582 device couldn't be resolved, fall back to sorting by the by-id link
14583 rather than segfaulting.
14584 Reported and tested by: Daniel Mierswa.
14585
5225f328
CW
145862010-11-23 Colin Watson <cjwatson@ubuntu.com>
14587
14588 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14589 ldflags, to fix link line ordering.
14590
038b3ce8
CW
145912010-11-23 Colin Watson <cjwatson@ubuntu.com>
14592
14593 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14594 linkers are picky about this.
14595
bf16e98e
CW
145962010-11-23 Colin Watson <cjwatson@ubuntu.com>
14597
14598 * grub-core/Makefile.am (command.lst): Adjust sed expression
14599 ordering so that extended and priority commands aren't treated as
14600 ordinary commands.
14601
7242bab6
CW
146022010-11-23 Colin Watson <cjwatson@ubuntu.com>
14603
14604 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14605 Remove byte-swapping function calls, which are not valid in
14606 structure initialisers.
14607 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14608 non-const.
14609 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14610 grub_gpt_partition_type_bios_boot.
14611
14e8b279
CW
146122010-11-22 Colin Watson <cjwatson@ubuntu.com>
14613
14614 Fix test program build on GNU/kFreeBSD.
14615
14616 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14617 $(LIBNVPAIR)' library dependencies.
14618
e6f63338 146192010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
14620
14621 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14622
cf8ffc38
CW
146232010-11-22 Colin Watson <cjwatson@ubuntu.com>
14624
14625 * util/grub-install.in: Remove excessive quoting that broke
14626 installations to RAID devices.
14627
7f8b0fd7
VS
146282010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14629
14630 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14631 bootloader version instead of 0.
14632
dfd240b1
VS
146332010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14636 warning.
14637
7b61e609
VS
146382010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14639
14640 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14641 retrieve the metadat sector if size isn't known.
14642 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14643
9dfe92d0
RM
146442010-11-18 Robert Millan <rmh@gnu.org>
14645
14646 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14647 with grub_memcmp().
14648
41cc919e
VS
146492010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14650
14651 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14652 arrow.
14653 Reported by: Jordan Uggla.
14654
1afcc914
VS
146552010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14656
14657 Make better UTF compliant.
14658
14659 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14660 sequences as incorrect.
14661 (grub_is_valid_utf8): Likewise.
14662 (grub_utf8_to_ucs4): Likewise.
14663 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14664 (grub_ucs4_to_utf8_alloc): Likewise.
14665 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
14666
f1808884
VS
146672010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14668
14669 Make legacy_source behave like source.
14670
14671 * grub-core/commands/legacycfg.c (legacy_file): Don't call
14672 grub_show_menu.
14673 (grub_cmd_legacy_source): Call grub_show_menu if needed.
14674
24ec575b
CW
146752010-11-16 Colin Watson <cjwatson@debian.org>
14676
14677 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
14678 (-Wunused implies -Wunused-parameter, but not vice versa).
14679
72b7c7aa
CW
146802010-11-16 Colin Watson <cjwatson@ubuntu.com>
14681
14682 * configure.ac: Make error messages less confusing by testing for
14683 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
14684 accepted, but produces a diagnostic if something else is wrong).
14685
e98937aa
VS
146862010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
14689 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
14690 (now unused).
14691 (grub_keyboard_controller_init)
14692 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
14693 read the initial state since controller isn't inited yet.
14694
f6bbabc3
VS
146952010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
14696
14697 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
14698 allocate_regbeg may need to create new chunk header.
14699
22e7dbb2
VS
147002010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14701
14702 Fix quoting in legacy parser.
14703
14704 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
14705 single quotes.
14706 (grub_legacy_parse): Likewise.
14707 Reported by: Jordan Uggla.
14708 Tested by: Jordan Uggla.
14709
03f80960
VS
147102010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14711
14712 Don't add -lgcc on i386 and x86_64.
14713
14714 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
14715 * conf/Makefile.common (LDADD_KERNEL): Likewise.
14716 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
14717
779dc15b
VS
147182010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14719
14720 * configure.ac: Add -Wno-trampolines when supported.
14721
d20a3b37
MV
147222010-11-14 Modestas Vainius <modax@debian.org>
14723
14724 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
14725 fakeraid.
14726
e5360933
GC
147272010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14728
14729 Add generic logical block size support for UDF.
14730
14731 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
14732 (GRUB_UDF_BLKSZ): Removed.
14733 (struct grub_udf_data): New field "lbshift" to hold the logical block
14734 size of the file system in log2 format. All users updated.
14735 (sblocklist): Change type to unsigned.
14736 (grub_udf_mount): Change type of "sblklist" to unsigned.
14737 Move AVDP search before VRS recognition, because the latter requires
14738 knowledge of the logical block size, which is detected during the
14739 former.
14740 Detect and validate logical block size during AVDP search, adding
14741 support for block sizes 512, 1024 and 4096.
14742 Make VRS recognition independent of block size.
14743
cb0229c5
GC
147442010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14745
14746 Properly handle deleted files on UDF.
14747
14748 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
14749 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
14750 set.
14751
406858a8
GC
147522010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
14753
14754 Support reading files larger than 2 GiB.
14755
14756 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
14757 "offset" to grub_off_t.
14758 (grub_udf_read_file): Likewise for parameter "pos".
14759
130da6a7
VS
147602010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14761
14762 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
14763 unavailable.
14764 (Simple configuration): Refer to Changes from GRUB Legacy about
14765 save_env availability.
14766
65e93f6b
VS
147672010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14768
14769 * util/grub-install.in: Ignore empty partition table detection
14770 instead of trying to include part_ module.
14771
1fd08bf1
VS
147722010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14773
14774 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
14775 LVM on RAID support.
14776
de1a024f
VS
147772010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
14778
14779 Properly define WORDS_BIGENDIAN in wrapped environments.
14780
14781 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
14782 definition.
14783 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
14784
14785 Reported by: Manoel Rebelo Abranches.
14786 Tested by: Manoel Rebelo Abranches.
14787
bc5dd0b9
VS
147882010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14789
14790 * util/grub-mkconfig.in: Fix quoting.
14791
58c184be
VS
147922010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14793
14794 Support big ext2 files.
14795
14796 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
14797 (grub_ext2_read_block): Support triple indirect blocks.
14798 (grub_ext2_read_file): Use 64-bit types and read size_high.
14799 (grub_ext2_open): Read size_high.
14800 Reported by: Ximin Luo.
14801 Tested by: Manoel Rebelo Abranches.
14802
5f0c02b3
VS
148032010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14804
14805 * util/grub-install.in: Handle filenames containing spaces.
14806 Reported by: Jordan Uggla.
14807 Tested by: Jordan Uggla.
14808
4417aae6
VS
148092010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14810
14811 * util/grub-mkconfig.in (grub_script_check): New variable.
14812 Use grub_script_check instead of grub-script-check.
14813 Reported by: Barry Jackson.
14814
7625a68e
VS
148152010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
14816
14817 * docs/grub.texi (menu): Correct the order.
14818 Reported by: D. Hugh Redelmeier.
14819
10001ac5
VS
148202010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14821
14822 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
14823 jump.
14824
9c4cf53b
MRA
148252010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
14826
10001ac5
VS
14827 * include/grub/elfload.h (grub_elf32_size): New parameter.
14828 All users updated.
9c4cf53b
MRA
14829 Return maximum segments alignment.
14830 (grub_elf64_size): Likewise.
14831 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
14832 Return maximum segments alignment.
14833 (grub_elf64_size): Likewise.
14834 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
14835 (grub_linux_claimmap_iterate): New function. Uses the
14836 "available" property in the "memory" node for memory allocation
14837 for kernel in the PowerPC loader.
9c4cf53b
MRA
14838 (grub_linux_load32): Correctly find linux entry point offset.
14839 (grub_linux_load64): Likewise.
14840
d2bf06bf
RM
148412010-11-07 Robert Millan <rmh@gnu.org>
14842
14843 On mips-yeeloong, build with -march=loongson2f when this flag is
14844 available (GCC >= 4.4).
14845 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
14846 `-march=mips3'.
14847 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
14848 or otherwise add -march=mips3.
14849
898c99a2
BC
148502010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
14851
87220a68
BC
14852 Suppress shell expansion on echo '*' and echo "*" like cases.
14853 Reported by: Jordan Uggla.
898c99a2
BC
14854
14855 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
14856 string arguments before shell expansion.
14857 * tests/grub_cmd_echo.in: New testcases.
14858
4f9b406a
RM
148592010-11-07 Robert Millan <rmh@gnu.org>
14860
14861 * conf/mips-qemu-mips.rmk: Remove stale file from previous
14862 transition.
14863
80c6d25e
VS
148642010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
14865
14866 * grub-core/kern/emu/hostdisk.c
14867 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
14868
4a1a0153
VS
148692010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14870
14871 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
14872 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
14873 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
14874
34706ddc
VS
148752010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14876
14877 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
14878
6972dea9
VS
148792010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14880
14881 * util/grub-install.in: Replace useless recomendation to pass
14882 --modules with a recomendation to report a bug.
14883
9c693bd6
VS
148842010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
14885
14886 Properly register serial terminfo.
14887 Reported by: Jordan Uggla
14888
14889 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
14890 const.
14891 (grub_serial_terminfo_output_template): Likewise.
14892 (grub_cmd_serial): Register "serial" with terminfo.
14893 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
14894 grub_serial_terminfo_output.
14895
6c9e4c0c
RM
148962010-11-05 Robert Millan <rmh@gnu.org>
14897
14898 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
14899 needed).
14900
b9b3839f
RM
149012010-11-05 Robert Millan <rmh@gnu.org>
14902
14903 On Yeeloong, pass machine type information to Linux.
14904
14905 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
14906 (LOONGSON_MACHTYPE): New macro, set to
14907 "machtype=lemote-yeeloong-2f-8.9inches".
14908 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
14909 additional argument to Linux.
14910
1a3aaff4
RM
149112010-11-04 Robert Millan <rmh@gnu.org>
14912
14913 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
14914 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
14915 (its SATA disks are detected as slaveless IDE master drives on
14916 kFreeBSD).
14917 Reported by Carsten Aulbert.
14918
a75f4f62
CW
149192010-11-02 Colin Watson <cjwatson@ubuntu.com>
14920
14921 * util/bin2h.c (main): Fix spelling error in generated output.
14922
33b4b0c6
GS
149232010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
14924
14925 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
14926
2b36fbf4
VS
149272010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14928
14929 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
14930 vga= option is supplied.
14931
74aaf558
VS
149322010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14933
14934 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
14935 * util/grub.d/10_kfreebsd.in: Likewise.
14936 * util/grub.d/10_linux.in: Likewise.
14937 * util/grub.d/20_linux_xen.in: Likewise.
14938
6428dec3
VS
149392010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14940
14941 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
14942 argument as an argument to no-argument option.
14943
f8729d98
VS
149442010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14945
14946 * util/grub.d/10_linux.in: Add missing load_video with explicit
14947 GRUB_GFXPAYLOAD_LINUX.
14948
89d68fa6
VS
149492010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14950
14951 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
14952
3a1197cd
VS
149532010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14954
14955 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
14956 elements with invlid index.
14957 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14958 * grub-core/disk/raid.c (insert_array): Automatically reallocate
14959 members.
14960 * include/grub/raid.h (grub_raid_member): New struct.
14961 (grub_raid_array): Transform devices and start_sector into usage of
14962 grub_raid_member. All users updated
14963 (allocated_devs): New member.
14964
71574288
VS
149652010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14966
14967 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
14968 is modified
14969
8d40ec65
BC
149702010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
14971
14972 NetBSD build fix for getline function conflict from gnulib.
14973
14974 * Makefile.util.def (libgrubkern.a): New library for grub kernel
14975 components that depend on gnulib headers.
14976 (libgrubmods.a): Renamed from earlier libgrub.a.
14977 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
14978
95b9257e
VS
149792010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14980
14981 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
14982 install rather than creating a broken install.
14983
26c53dc6
VS
149842010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14985
14986 * util/grub-setup.c (argp): Remove misleading example of installing to
14987 a partition.
14988
4171b3c5
VS
149892010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14990
14991 * util/grub-setup.c (setup): Clarify the error message.
14992
18568d18
VS
149932010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14994
14995 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
14996
4f6a2e21
VS
149972010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14998
14999 * grub-core/kern/emu/misc.c
15000 (grub_make_system_path_relative_to_its_root)
15001 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15002
150032010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
15004
15005 * grub-core/kern/emu/misc.c
15006 (grub_make_system_path_relative_to_its_root): Revert r2882.
15007
e138c458
VS
150082010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15009
15010 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15011 useless field head. All users updated.
15012 (free_subchunk): Correct handling of IN_REGION subchunk.
15013
0cbcdf0e
CW
150142010-10-22 Colin Watson <cjwatson@ubuntu.com>
15015
15016 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15017 (Supported kernels): Likewise.
15018
b65ea155
GS
150192010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15020
15021 Make mktemp invocations portable.
15022
15023 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15024 exit if mktemp fails.
15025 * tests/grub_script_blockarg.in: Likewise.
15026 * tests/partmap_test.in: Likewise.
15027 * tests/util/grub-shell-tester.in: Likewise.
15028 * tests/util/grub-shell.in: Likewise.
15029 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15030 * Makefile.am: Likewise, and chain shell commands with `&&'
15031 instead of ';'.
15032 * util/grub-mkrescue.in: Use the same explicit template as above, and
15033 exit if mktemp fails.
15034
05f43cdd
BC
150352010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15036
15037 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15038 Linux kernel, reported by Dennis Schridde.
15039
800e6a9b
SJ
150402010-10-17 Szymon Janc <szymon@janc.net.pl>
15041
15042 * grub-core/normal/auth.c (grub_auth_check_authentication):
15043 Set-but-not-used variable removed.
15044
d82df574
VS
150452010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15046
15047 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15048 32-bit linux protocol.
15049
7bced458
VS
150502010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15053 cursor shape for sanity.
15054
5b027690
VS
150552010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15056
15057 * docs/grub.texi (Installation): Document buggy BIOS install.
15058
ba5f65cf
VS
150592010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15060
15061 * docs/grub.texi (Installation): Indent.
15062
fdf2ec9c
VS
150632010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15064
15065 * util/grub-setup.c (setup): New parameter allow_floppy.
15066 (arguments): New member allow_floppy.
15067 (argp_parser): Handle --allow-floppy.
15068 (main): Pass allow_floppy.
15069 * util/grub-install.in: New option --allow-floppy passed though to
15070 grub-setup.
15071
861dfd4c
VS
150722010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15073
15074 * util/grub-install.in: Handle partitionless disks.
15075
f77a8c24
VS
150762010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15077
15078 * util/grub-setup.c (setup): Don't clean blocklists before readability
15079 verfification.
15080
27d9ee32
VS
150812010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15082
15083 * docs/grub.texi (Installation): Document embedding zone. Remove
15084 obsolete grub-install example.
15085
6bdda8f8
SJ
150862010-10-16 Szymon Janc <szymon@janc.net.pl>
15087
15088 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15089 Set-but-not-used variable ifdef'ed.
15090 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15091 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15092 variable removed.
15093 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15094 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15095 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15096 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15097 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15098 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15099 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15100 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15101 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15102 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15103 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15104 Likewise.
15105
e19b016b
VS
151062010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15107
15108 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15109 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15110 enum value.
15111
6c8d3002
VS
151122010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15115 synonym to _S5_. Needed for some DSDTs.
15116
c32b51c9
VS
151172010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15118
15119 Userspace ACPI parser debugging.
15120
15121 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15122 headers and add relevant defines. Don't include standard headers.
15123 (main) [GRUB_DSDT_TEST]: New function.
15124 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15125 Don't declare functions.
15126
fbfbeb39
VS
151272010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15128
15129 Remove dead grub_efi_mm_fini.
15130
15131 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15132 (ALLOCATED_PAGES_SIZE): Likewise.
15133 (MAX_ALLOCATED_PAGES): Likewise.
15134 (allocated_pages): Likewise.
15135 (grub_efi_allocate_pages): Don't record allocated pages.
15136 (grub_efi_free_pages): Likewise.
15137 (grub_efi_mm_init): Likewise.
15138 (grub_efi_mm_fini): Removed.
15139
65f7ed7c
VS
151402010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15141
15142 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15143 (grub_efi_mm_init): Take into account the memory map size increase.
15144
24977b44
VS
151452010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15146
15147 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15148 (serial_hw_put): Wait based on real time rather than port reads. Don't
15149 roken ports.
15150 * include/grub/serial.h (grub_serial_port): New field broken.
15151
1eb01cd2
RM
151522010-10-16 Robert Millan <rmh@gnu.org>
15153
15154 * grub-core/kern/emu/misc.c
15155 (grub_make_system_path_relative_to_its_root): Fix premature return
15156 when processing non-root ZFS filesystems.
5f8b440b 15157 Reported by Sergio Talens-Oliag.
1eb01cd2 15158
2d5fed60
RM
151592010-10-15 Robert Millan <rmh@gnu.org>
15160
15161 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15162 guarantee compressed ones are processed first.
15163
d0f4c1ea
VS
151642010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15165
15166 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15167 grub_efiemu_autocore.
15168
d87c681f
VS
151692010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15170
15171 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15172 rather than 0x1b.
15173 (grub_console_getkey): Use correct jae opcode rather than ja.
15174
219b3564
RM
151752010-10-12 Robert Millan <rmh@gnu.org>
15176
15177 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15178 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15179 variable. All references updated.
15180
15181 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15182
20c6bb7e
VS
151832010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15184
15185 Correctly distinguish mdraid flavours.
15186
15187 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15188 (insert_array): New argument raid.
15189 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15190 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15191 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15192
74baff84
VS
151932010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15194
15195 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15196 handling of special keys.
15197
3ef068df 151982010-10-02 Aleš Nesrsta <starous@volny.cz>
15199
c7980ad9
VS
15200 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15201 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 15202
a9455194 152032010-10-02 Aleš Nesrsta <starous@volny.cz>
15204
c7980ad9
VS
15205 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15206 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15207 users updated.
a9455194 15208 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 15209 Use right endpoint when querying descriptor.
a9455194 15210
441cfe65
VS
152112010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15212
15213 Clear out 0x80 color bit on EFI.
15214 Tested by: decoder
15215 Reported by: decoder and meta tech.
15216
15217 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15218 (grub_console_setcolorstate): Clear out 0x80 bit.
15219 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15220 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15221 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15222
bf26bcc4
VS
152232010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15224
15225 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15226 Set to "auto".
15227
6e3c515d
VS
152282010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15229
15230 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15231 mo_file after freeing.
15232
e6d983ba
VS
152332010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15234
15235 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15236
74ccb5b5
VS
152372010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15240 flags.
15241
17821956
VS
152422010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15243
15244 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15245 usage.
15246
ee74fa48
VS
152472010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15248
15249 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15250
15251 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15252 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15253 and terminfo.h when needed.
15254 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15255 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15256 (terminfo): Enable only on terminfokernel.
15257 (extcmd): Likewise.
15258 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15259 * include/grub/lib/arg.h: Likewise.
15260 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15261 incorrect usage of ->.
15262
aa438e68
VS
152632010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15264
15265 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15266 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15267
57994012
VS
152682010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15269
15270 Fix coreboot compilation.
15271
15272 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15273 Take VBE info into account even if only text is supported.
15274 (fill_vbe_info): Take into account the case when only VGA text
15275 is supported.
15276 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15277 on coreboot, multiboot and qemu.
15278
2a406611
VS
152792010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15280
15281 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15282 debug messages.
15283 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15284
d33613fc
VS
152852010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15286
15287 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15288 parameters.
15289
44a1b432
VS
152902010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15291
15292 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15293 if they were BSD-style.
15294
edde54e6
VS
152952010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15296
15297 * grub-core/boot/i386/pc/lnxboot.S: Replace
15298 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15299 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15300
b65830fa
VS
153012010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15302
15303 Write embedding zone using Reed-Solomon.
15304
15305 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15306 * grub-core/Makefile.am (rs_decoder.S): New target.
15307 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15308 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15309 (multiboot): Move to RS part.
15310 (post_reed_solomon): New label.
15311 (grub_boot_drive): Move to non-RS part since it's modified in memory
15312 on boot.
15313 Include rs_decoder.S.
15314 * grub-core/lib/reed_solomon.c: New file.
15315 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15316 New definition.
15317 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15318 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15319 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15320 * include/grub/partition.h (grub_partition_map): Change prototype of
15321 embed to allow returning additional sectors.
15322 * include/grub/reed_solomon.h: New file.
15323 * util/grub-setup.c (setup): Handle Reed-Solomon.
15324
0b4b227f
CW
153252010-09-28 Colin Watson <cjwatson@ubuntu.com>
15326
15327 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15328 i386 and x86-64 definedness tests.
15329
f772623b
YB
153302010-09-27 Yves Blusseau <blusseau@zetam.org>
15331
15332 Fix generation of kernel_syms.lst
15333
15334 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15335 ASM_PREFIX
15336
8e57a6ca
RM
153372010-09-26 Robert Millan <rmh@gnu.org>
15338
15339 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15340
15341 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15342 the pool is an array of devices, iterate through it and return the
15343 first device that passes a stat() test (instead of blindly returning
15344 the first one).
15345
f9130836
RM
153462010-09-26 Robert Millan <rmh@gnu.org>
15347
15348 Build fixes for GNU/kFreeBSD.
15349
15350 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15351 to programs that require ZFS conversion.
15352 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15353 kernels that don't have FLOPPY_MAJOR.
15354
96510faf
BC
153552010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15356
15357 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15358
449333eb
BC
153592010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15360
15361 Fix grub-emu build.
15362
15363 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15364 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15365 mdraid09 and mdraid1x.
15366
e1fd1939
CW
153672010-09-24 Colin Watson <cjwatson@ubuntu.com>
15368
15369 Re-enable grub-extras.
15370
15371 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15372 avoid confusing Automake. Run autogen only twice, once for the top
15373 level and once for grub-core. Add Makefile.util.def and
15374 Makefile.core.def from extra modules to the appropriate autogen
15375 invocations. If Makefile.common exists in an extra module, include
15376 it in both Makefile.util.am and grub-core/Makefile.core.am;
15377 similarly, include any Makefile.util.common file in Makefile.util.am
15378 and any Makefile.core.common file in grub-core/Makefile.core.am.
15379 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15380 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15381 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15382 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15383
15384 * gentpl.py (gvar_add): Turn GVARS into a set.
15385 (global_variable_initializers): Sort global variables on output.
15386 (vars_init): New function.
15387 (first_time): Likewise.
15388 (library): Ensure that non-global variable initialisations are
15389 emitted before the first time we emit code for a library block.
15390 Append to variables rather than setting them. Only emit
15391 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15392 each conditional path.
15393 (program): installdir() emits an Autogen macro, so must be passed to
15394 var_add rather than gvar_add.
15395 (data): Likewise.
15396 (script): Likewise.
15397 (rules): New function, centralising handling for different target
15398 types. Set up Guile association lists for first_time and vars_init,
15399 and send most output to a diversion so that variable initialisations
15400 can be emitted first.
15401 (module_rules): Use new rules function.
15402 (kernel_rules): Likewise.
15403 (image_rules): Likewise.
15404 (library_rules): Likewise.
15405 (program_rules): Likewise.
15406 (script_rules): Likewise.
15407 (data_rules): Likewise.
15408
15409 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15410
15411 * .bzrignore: Add contrib and grub-core/contrib. Remove
15412 grub-core/Makefile.gcry.am.
15413
1d12cf29
YB
154142010-09-24 Yves Blusseau <blusseau@zetam.org>
15415
15416 * grub-core/lib/LzFind.c: Add missing include.
15417 * grub-core/lib/LzmaEnc.c: Likewise.
15418 * grub-core/script/lexer.c: Likewise.
15419 * grub-core/script/yylex.l: Likewise.
15420 * util/grub-macho2img.c: Likewise.
15421 * util/grub-menulst2cfg.c: Likewise.
15422 * util/grub-mklayout.c: Likewise.
15423 * util/grub-mkpasswd-pbkdf2.c
15424 * util/grub-mkrelpath.c: Likewise.
15425 * util/resolve.c: Likewise.
15426
dd363028
BC
154272010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15428
15429 * Makefile.util.def (example_unit_test): Add
15430 grub-core/gnulib/libgnu.a.
15431
f5a109e2
GS
154322010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15433
15434 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15435
6d0fa83c
VS
154362010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15437
15438 Support xz compression on yeeloong.
15439
15440 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15441 * configure.ac: Check for LZMA.
15442 * grub-core/Makefile.core.def (xz_decompress): New target.
15443 (none_decompress): Likewise.
15444 * grub-core/boot/decompressor/minilib.c: New file.
15445 * grub-core/boot/decompressor/none.c: Likewise.
15446 * grub-core/boot/decompressor/xz.c: Likewise.
15447 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15448 * grub-core/kern/mips/cache_flush.S: Likewise.
15449 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15450 * grub-core/kern/mips/startup.S: Move first stage to ...
15451 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15452 nomacro.
15453 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15454 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15455 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15456 Allocate statically.
15457 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15458 Allocate statically or use scratch. Don't check CRC32.
15459 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15460 Allocate statically. Don't check CRC32.
15461 * include/grub/decompressor.h: New file.
15462 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15463 Removed.
15464 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15465 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15466 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15467 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15468 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15469 * util/grub-mkimage.c (grub_compression_t): New type.
15470 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15471 (image_target_desc): New field default_compression.
15472 (image_targets): Adjust yeeloong targets.
15473 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15474 (compress_kernel): New parameter comp.
15475 (generate_image): Likewise. Handle new compression case.
15476 (options): New option --compression
15477 (help): Likewise.
15478 (main): Handle new option.
15479
1b655af6
GS
154802010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15481
15482 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15483
8f03f0b5
CW
154842010-09-22 Colin Watson <cjwatson@ubuntu.com>
15485
15486 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15487 typo in __i386__ conditional.
15488
7835dfd3
VS
154892010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15490
15491 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15492 include.
15493
e255597e
VS
154942010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15495
6d0fa83c 15496 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
15497
15498 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15499 new tags as supported.
15500 (acpiv2_size): New function.
15501 (grub_multiboot_get_mbi_size): Take new tags into account.
15502 (grub_multiboot_make_mbi): Add new tags.
15503 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 15504
6cc14051 155052010-09-21 Aleš Nesrsta <starous@volny.cz>
15506
15507 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15508 Added missing configuration of USB device.
15509
df7769d8
CW
155102010-09-21 Colin Watson <cjwatson@ubuntu.com>
15511
15512 * grub-core/normal/menu_entry.c (run): Make sure we always return
15513 a value.
15514
b031012d
CW
155152010-09-21 Colin Watson <cjwatson@ubuntu.com>
15516
15517 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15518 NumberOfPages is UINT64 according to the UEFI specification, not
15519 UINTN. Fix printf format.
15520
174de8f3
CW
155212010-09-21 Colin Watson <cjwatson@ubuntu.com>
15522
15523 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15524 `err' to grub_usb_err_t.
15525 Reported and tested by: KESHAV P.R.
15526
d7dbe923
CW
155272010-09-21 Colin Watson <cjwatson@ubuntu.com>
15528
15529 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15530 tpart non-const, so that we can assign to it. (Since this is a
15531 typedef, the constness refers to the pointer rather than what it
15532 points to.)
15533
8d5e2af3
CW
155342010-09-21 Colin Watson <cjwatson@ubuntu.com>
15535
15536 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15537 $(top_srcdir)/grub-core/gnulib as well as
15538 $(top_builddir)/grub-core/gnulib.
15539 Reported by: KESHAV P.R.
15540
5c527783
CW
155412010-09-21 Colin Watson <cjwatson@ubuntu.com>
15542
15543 * util/grub-install.in: Fix the bootloader ID option to be
15544 consistently --bootloader-id, not --bootloader_id.
15545 Reported by: KESHAV P.R.
15546
d309a16e
CW
155472010-09-21 Colin Watson <cjwatson@ubuntu.com>
15548
15549 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15550 check hash checksum." consistently translatable.
15551
b830cd16
YB
155522010-09-21 Yves Blusseau <blusseau@zetam.org>
15553
15554 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15555 $(top_builddir).
15556
c4fe27a8
CW
155572010-09-21 Colin Watson <cjwatson@ubuntu.com>
15558
15559 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15560 (GRUB_MOD_INIT): Register sha1sum command.
15561 (GRUB_MOD_FINI): Unregister sha1sum command.
15562
a4c1d277
YB
155632010-09-21 Yves Blusseau <blusseau@zetam.org>
15564
15565 Keep boot and grub directory names in sync with utils scripts
15566
15567 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15568 * config.h.in: Add previous macros.
15569 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15570 * util/grub-install.in: Use $bootdir and $grubdir variables.
15571
4eff79d2
CW
155722010-09-21 Colin Watson <cjwatson@ubuntu.com>
15573
15574 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15575 convert partition names to disk names if the new `convert' parameter
15576 is set.
15577 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15578 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15579 disk in its own right. This can happen with Xen disk images.
15580
934d7e44
YB
155812010-09-21 Yves Blusseau <blusseau@zetam.org>
15582
15583 * util/grub-editenv.c: Update strings to avoid warnings when generating
15584 grub.pot file.
15585 * util/grub-setup.c: Likewise.
934d7e44 15586
df3367cc
VS
155872010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15588
15589 * configure.ac: Change version to 1.99~beta0.
15590
77a94e98
VS
155912010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15592
15593 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15594 Add BADRAM.
15595 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15596 Likewise.
15597 * include/multiboot.h: Resynced with specification.
15598 * include/multiboot2.h: Likewise.
15599
269004c1
CW
156002010-09-21 Colin Watson <cjwatson@ubuntu.com>
15601
15602 Fix po directory handling.
15603
15604 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15605 * grub-core/gnulib/Makefile.am: Import gettext module.
15606 * m4/gnulib-cache.m4: Likewise.
15607 * m4/gnulib-comp.m4: Likewise.
15608 * m4/gettext.m4: New file, from gnulib.
15609 * m4/glibc2.m4: Likewise.
15610 * m4/iconv.m4: Likewise.
15611 * m4/intdiv0.m4: Likewise.
15612 * m4/intl.m4: Likewise.
15613 * m4/intldir.m4: Likewise.
15614 * m4/intlmacosx.m4: Likewise.
15615 * m4/intmax.m4: Likewise.
15616 * m4/inttypes-pri.m4: Likewise.
15617 * m4/lcmessage.m4: Likewise.
15618 * m4/lib-ld.m4: Likewise.
15619 * m4/lib-link.m4: Likewise.
15620 * m4/lib-prefix.m4: Likewise.
15621 * m4/lock.m4: Likewise.
15622 * m4/nls.m4: Likewise.
15623 * m4/po.m4: Likewise.
15624 * m4/printf-posix.m4: Likewise.
15625 * m4/progtest.m4: Likewise.
15626 * m4/threadlib.m4: Likewise.
15627 * m4/uintmax_t.m4: Likewise.
15628 * m4/visibility.m4: Likewise.
15629 * po/Makefile.am: Remove.
15630 * po/Makefile.in.in: New file, from gettext.
15631 ($(DOMAIN).pot-update): Support POTFILES-shell.
15632 * po/Makevars: New file.
15633 * po/POTFILES-shell: Rename to ...
15634 * po/POTFILES-shell.in: ... this. Update.
15635 * po/POTFILES: Rename to ...
15636 * po/POTFILES.in: ... this. Update.
15637 * po/Rules-quot: New file, from gettext.
15638 * po/boldquot.sed: Likewise.
15639 * po/en@boldquot.header: Likewise.
15640 * po/en@quot.header: Likewise.
15641 * po/insert-header.sin: Likewise.
15642 * po/quot.sed: Likewise.
15643 * po/remove-potcdate.sin: Likewise.
15644
3e0fa5d0
VS
156452010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15646
15647 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15648
ade9bd66
VS
156492010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15650
15651 * util/grub.d/20_linux_xen.in: Use submenus.
15652
fc55cc4c
VS
156532010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15654
15655 Support submenus.
15656
15657 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15658 parameter submenu. All users updated.
15659 * grub-core/normal/main.c (free_menu): Rename to ...
15660 (grub_normal_free_menu): ... this. Made global.
15661 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15662 if requested.
15663 * grub-core/normal/menu_entry.c (screen): New field submenu.
15664 (make_screen): Set submenu.
15665 (run): Open new context if requested.
15666 * include/grub/menu.h (grub_menu_entry): New field submenu.
15667 * include/grub/normal.h (grub_normal_free_menu): New proto.
15668
600cedf7
VS
156692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15670
15671 Menu entries extractor.
15672
15673 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
15674 variants.
15675 (GRUB_MOD_INIT): Register new variants.
15676 (GRUB_MOD_FINI): Unregister new variants.
15677 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
15678 into grub_cmd_legacy_source.
15679 (grub_cmd_legacy_source): Implement extractor variants.
15680 (GRUB_MOD_INIT): Register new variants.
15681 (GRUB_MOD_FINI): Unregister new variants.
15682 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
15683 as an extractor.
15684 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
15685 search as an extractor.
15686 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
15687 test as an extractor.
15688 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
15689 as an extractor.
15690 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
15691 (grub_env_new_context): New function.
15692 (grub_env_context_open): Likewise.
15693 (grub_env_extractor_open): Likewise.
15694 (grub_env_extractor_close): Likewise.
15695 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
15696 grub_extractor_level.
15697 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
15698 * include/grub/env.h (grub_env_extractor_open): New proto.
15699 (grub_env_extractor_close): Likewise.
15700 * include/grub/normal.h (grub_extractor_level): New external variable.
15701
7bda3a87
VS
157022010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 Make cutmem accept a region specification.
15705 Suggested by: Samuel Thibault
15706
15707 * grub-core/mmap/mmap.c (parsemem): New function.
15708 (grub_cmd_cutmem): Handle new arguments.
15709
2ea57f88
VS
157102010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15711
15712 New command cutmem.
15713
15714 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
15715 (GRUB_MOD_INIT): Register new command.
15716 (GRUB_MOD_FINI): Unregister new command.
15717
74342e31
VS
157182010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 Support some annoying BSD and Minix subpartitions.
15721
15722 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
15723 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
15724 Properly handle concatenation.
15725 * grub-core/kern/device.c (grub_device_iterate): Likewise.
15726 * grub-core/normal/completion.c (iterate_partition): Likewise.
15727 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
15728 contain partition. All users updated.
15729 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
15730 struct.
15731 (grub_openbsdlabel_partition_map): Likewise.
15732 (bsdlabel_partition_map_iterate): Rename to ..
15733 (iterate_real): ... this. New arguments sector, freebsd and pmap.
15734 (bsdlabel_partition_map_iterate): New function.
15735 (netopenbsdlabel_partition_map_iterate): Likewise.
15736 (netbsdlabel_partition_map_iterate): Likewise.
15737 (openbsdlabel_partition_map_iterate): Likewise.
15738 (GRUB_MOD_INIT): Register new partmaps.
15739 (GRUB_MOD_FINI): Unregister new partmaps.
15740 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
15741 (grub_partition_msdos_iterate): ... this. All users updated.
15742 Don't support embedding other than in a minix partition.
15743 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
15744 proto.
15745 * include/grub/partition.h (grub_partition): New field msdostype.
15746 * util/grub-install.in: Handle openbsd and netbsd types being in
15747 part_bsd module.
15748
1e8d555b
VS
157492010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15750
15751 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
15752
15753 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
15754 * grub-core/Makefile.core.def (mdraid): Renamed to ...
15755 (mdraid09): ... this.
15756 (mdraid1x): New module.
15757 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
15758 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
15759
899d8af4
VS
157602010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
15763 vsprintf.
15764
40901acd
CW
157652010-09-20 Colin Watson <cjwatson@ubuntu.com>
15766
15767 * grub-core/commands/efi/lsefimmap.c: Correct header.
15768 * NEWS: Update.
15769
dfe3b247
CW
157702010-09-20 Colin Watson <cjwatson@ubuntu.com>
15771
15772 * util/grub-editenv.c (argp_parser): Don't pass translated strings
15773 as printf format strings; the translations might contain '%' which
15774 could cause a crash.
15775 (main): Likewise.
15776 * util/grub-fstest.c (argp_parser): Likewise.
15777 * util/grub-setup.c (argp_parser): Likewise.
15778 (main): Likewise.
15779
3286a4b4
VS
157802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15781
15782 Use argp in grub-fstest.
15783
15784 * util/grub-fstest.c: Don't include getopt.h.
15785 Include argp.h.
15786 (root): New variable.
15787 (args_count): Likewise.
15788 (nparm): Likewise.
15789 (num_disks): Likewise.
15790 (images): Likewise.
15791 (cmd): Likewise.
15792 (debug_str): Likewise.
15793 (args): Likewise.
15794 (options): Transformed to argp.
15795 (usage): Removed.
15796 (main): Split argument parsing into ...
15797 (argp_parser): ... this. Changed to argp format.
15798 (argp): New variable.
15799 (main): Use argp_parse.
15800
3dccbe4b
TG
158012010-09-20 Tristan Gingold <gingold@free.fr>
158022010-09-20 Robert Millan <rmh.grub@aybabtu.com>
158032010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15804
15805 * grub-core/commands/efi/lsefimmap.c: New file.
15806 * grub-core/Makefile.core.def (lsefimmap): New module.
15807 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
15808
38c259a7
VS
158092010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15810
15811 Pause the execution (10s max) if any errors are displayed so the user
15812 has a chance to see them.
15813
15814 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
15815 (grub_print_error): Increment grub_err_printed_errors.
15816 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
15817 execution if any errors were displayed.
15818 (show_menu): Remove old code for pause.
15819 * grub-core/normal/menu_entry.c (run): Likewise.
15820 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
15821 users updated.
15822 (grub_normal_get_char_counter): Likewise.
15823 * include/grub/err.h (grub_err_printed_errors): New external variable.
15824 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
15825
f218b09c
VS
158262010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15827
15828 Support multiboot VBE info.
15829
15830 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15831 Take VBE info into account.
15832 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
15833 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15834 Call fill_vbe_info when appropriate.
15835 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
15836 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
15837 as supported.
15838 (grub_multiboot_get_mbi_size): Take new tags into account.
15839 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
15840 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
15841 Call fill_vbe_tag when appropriate.
15842 (grub_multiboot_make_mbi): Properly align tags.
15843 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
15844 function.
15845 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
15846 proto.
15847 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
15848
a9cc5438
VS
158492010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15850
15851 Suport manual terminal geometry specification.
15852
15853 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
15854 Save state in grub_ofconsole_terminfo_output.
15855 (grub_ofconsole_term): Use grub_terminfo_getwh.
15856 (grub_ofconsole_getwh): Removed.
15857 * grub-core/term/serial.c (grub_serial_getwh): Removed.
15858 (grub_serial_term): Use grub_terminfo_getwh.
15859 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
15860 (options): New struct.
15861 (OPTION_*): New enum.
15862 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
15863 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
15864 width and height.
15865 (grub_terminfo_getwh): New proto.
15866 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
15867
1a8fed20
VS
158682010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15869
15870 Handle legacy "terminal" command.
15871
15872 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
15873 and FLAG_TERMINAL.
15874 (legacy_commands): Add terminal and title.
15875 (grub_legacy_parse): Handle terminal. Simplify title handling.
15876
41e9c57d
VS
158772010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15878
15879 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
15880 parameters overflow.
15881
61c874c5
CW
158822010-09-20 Colin Watson <cjwatson@ubuntu.com>
15883
15884 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
15885 widthspec.h.
15886
15887 * docs/grub.texi (Shell-like scripting): Document `!'.
15888 (Network): Simplify using new i386-pc-pxe format. Mention
15889 grub-mknetdir.
15890
15891 * NEWS: Update.
15892
943682b4
CW
158932010-09-20 Colin Watson <cjwatson@ubuntu.com>
15894
15895 * Makefile.am (SUBDIRS): Restore "."; it's important to force
15896 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
15897 when needed.
15898
6d3d698d
CW
158992010-09-20 Colin Watson <cjwatson@ubuntu.com>
15900
15901 * grub-core/commands/efi/lsefisystab.c: Correct header.
15902 * grub-core/commands/efi/lssal.c: Likewise.
15903 * grub-core/commands/testload.c: Likewise.
15904
c982589f
CW
159052010-09-20 Colin Watson <cjwatson@ubuntu.com>
15906
15907 * util/grub-mkrescue.in: Add explicit root argument to --set to
15908 prevent the UUID being interpreted as an argument to --set (matches
15909 previous change to prepare_grub_to_access_device).
15910
a63c31b6
CW
159112010-09-20 Colin Watson <cjwatson@ubuntu.com>
15912
15913 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
15914 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
15915 the verbosity of later #ifs.
15916 (find_partition_start): Define this function on FreeBSD too.
15917 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
15918 function.
15919 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
15920 on FreeBSD.
15921
6439b8ee
YB
159222010-09-20 Yves Blusseau <blusseau@zetam.org>
15923
15924 * util/grub-editenv.c: Use argp instead of getopt.
15925
c5930ec8
YB
159262010-09-20 Yves Blusseau <blusseau@zetam.org>
15927
15928 * util/grub-setup.c: Use argp instead of getopt.
15929
15c69261
YB
159302010-09-20 Yves Blusseau <blusseau@zetam.org>
15931
15932 Use gnulib-tool to create gnulib source files.
15933
15934 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
15935 grub-core/gnulib directories
15936 * .bzignore: Add **/.deps and autogenerated gnulib files
15937 * configure.ac: Assign auxiliary directory to build-aux, add invocation
15938 of gnulib macros, add grub-core/gnulib/Makefile
15939 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
15940 include m4 directory to aclocal.
15941 * Makefile.util.def: Remove direct compilation of gnulib source files
15942 and use the new grub-core/gnulib/libgnu.a.
15943 * build-aux/config.rpath: move config.rpath from top directory to
15944 build-aux
15945 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
15946 in gnulib headers
15947 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
15948 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
15949 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
15950 header.
15951 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
15952 string.
15953
e511c9f5
YB
159542010-09-20 Yves Blusseau <blusseau@zetam.org>
15955
15956 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
15957 grub-core/genmod.sh and grub-core/gensyminfo.sh
15958
c2dede05
BC
159592010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
15960
15961 Add a test for echo command options.
15962
15963 * tests/grub_cmd_echo.in: New test.
15964 * Makefile.util.def: Rules for new test.
15965
c55f5018
SJ
159662010-09-20 Szymon Janc <szymon@janc.net.pl>
15967
15968 Remove crc.mod and move crc command to hashsum.mod.
15969 Remove lib/crc.c - users updated to use gcrypt implementation.
15970
15971 * grub-core/commands/crc.c: Removed.
15972 * grub-core/Makefile.core.def (crc): Module removed.
15973 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
15974 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
15975 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
15976 * grub-core/lib/crc.c: Removed.
15977 * include/grub/lib/crc.h: Removed.
15978 * Makefile.util.def (crc): Remove lib/crc.c
15979 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
15980 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
15981 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
15982 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
15983 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
15984 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
15985
e0337366
VS
159862010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15987
15988 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
15989
742f9232
VS
159902010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
15991
15992 Split config.h for util and core.
15993
15994 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
15995 (ADDR32): Likewise.
15996 (DATA32): Likewise.
15997 (BSS_START_SYMBOL): Likewise.
15998 (END_SYMBOL): Likewise.
15999 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16000 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16001 * config.h.in: New file.
16002 * configure.ac: Use config-util.h as config define file.
16003 Rename MACHINE into GRUB_MACHINE. All users updated.
16004 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16005 updated.
16006 (NESTED_FUNC_ATTR): Likewise.
16007 Substitue new variables.
16008 (COND_HAVE_ASM_USCORE): New conditional.
16009 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16010 (kernel_syms.lst): Use ASM_PREFIX.
16011 * grub-core/kern/emu/console.c: Include config-util.h.
16012 * grub-core/kern/emu/misc.c: Likewise.
16013 * grub-core/kern/emu/mm.c: Likewise.
16014 * include/grub/emu/misc.h: Likewise.
16015 * include/grub/libgcc.h: Likewise.
16016
39feb0e8
VS
160172010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16018
16019 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16020 constants usage.
16021 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16022 Fix GRUB_TERM_KEY_* constants usage.
16023 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16024
9af6dac3
VS
160252010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16026
16027 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16028 print pointer.
16029 * grub-core/bus/usb/uhci.c: Remove empty define.
16030 (grub_uhci_check_transfer): Add missing cast.
16031 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16032 print pointer.
16033 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16034 PRIuGRUB_SIZE.
16035 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16036
d6d94820
VS
160372010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16038
16039 * grub-core/Makefile.core.def (legacycfg): Add
16040 lib/i386/pc/vesa_modes_table.c on emu.
16041
3572f2b6
BC
160422010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16043
16044 Reduce number of temporary files generated by build system.
16045
16046 * grub-core/gencmdlist.sh: Removed.
16047 * grub-core/genfslist.sh: Removed.
16048 * grub-core/genhandlerlist.sh: Removed.
16049 * grub-core/genmodsrc.sh: Removed.
16050 * grub-core/genpartmaplist.sh: Removed.
16051 * grub-core/genparttoollist.sh: Removed.
16052 * grub-core/gentermiinallist.sh: Removed.
16053 * grub-core/genvideolist.sh: Removed.
16054
16055 * grub-core/genmod.sh.in: New file.
16056 * grub-core/gensyminfo.sh.in: New file.
16057
16058 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16059 * conf/Makefile.extra-dist: Update with new files.
16060 * gentpl.py: Remove rules related to unnecessary temporary files.
16061 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16062 and und-* files.
16063 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16064 genmod.sh scripts.
16065 * grub-core/bus/usb/uhci.c: Remove empty #define.
16066 * grub-core/genmoddep.awk: Updated with new syminfo format.
16067 * util/bash-completion.d/Makefile.am: Add config.log to
16068 CLEANFILES.
16069
c836b030
YB
160702010-09-19 Yves Blusseau <blusseau@zetam.org>
16071
16072 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16073
2f4e8053
BC
160742010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16075
16076 * util/grub-mkconfig.in: Check the config script for syntax errors
16077 before saving.
16078
75831c34
CW
160792010-09-19 Colin Watson <cjwatson@ubuntu.com>
160802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16081
16082 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16083 platforms.
16084 * util/grub-install.in: Add EFI and IEEE1275 support.
16085 * util/i386/efi/grub-install.in: Removed.
16086 * util/ieee1275/grub-install.in: Likewise.
16087
eaf41b25
VS
160882010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16089
16090 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16091 (grub_cmd_cmosclean): Likewise.
16092 (GRUB_MOD_INIT): Register command cmosclean.
16093 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16094 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16095
1a9130dd
CPE
160962010-09-18 Carles Pina i Estany <carles@pina.cat>
160972010-09-18 Aleš Nesrsta <starous@volny.cz>
160982010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16099
16100 Add keyboard layouts support.
16101
16102 * Makefile.util.def (grub-mklayout): New file.
16103 (grub-kbdcomp): New script.
16104 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16105 Add keyboard_layouts.h.
16106 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16107 commands/boot.c on yeeloong.
16108 (keylayouts): New module.
16109 * grub-core/bus/usb/ohci.c
16110 * grub-core/bus/usb/uhci.c
16111 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16112 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16113 (attach_root_port): Likewise.
16114 (poll_nonroot_hub): Likewise.
16115 (grub_usb_poll_devices): Likewise.
16116 (detach_device): Close transfer.
16117 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16118 function.
16119 (grub_usb_bulk_setup_readwrite): Likewise.
16120 (grub_usb_bulk_finish_readwrite): Likewise.
16121 * grub-core/commands/keylayouts.c: New file.
16122 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16123 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16124 aliases.
16125 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16126 support scancode 2.
16127 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16128 * include/grub/keyboard_layouts.h: New file.
16129 * util/grub-mklayout.c: New file.
16130 * util/grub-kbdcomp.in: Likewise.
16131
a1d84a5e
VS
161322010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16133
16134 Unify memory types.
16135
16136 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16137 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16138 types.
16139 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16140 (grub_upper_mem): Likewise.
16141 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16142 * include/grub/memory.h (grub_memory_type_t): New enum.
16143 All users updated.
16144
9696382e
VS
161452010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16146
16147 * grub-core/Makefile.core.def (lsapm): New module.
16148 * grub-core/commands/i386/pc/lsapm.c: New file.
16149 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16150 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16151 Likewise.
16152 * include/grub/i386/pc/apm.h: New file.
16153 * include/multiboot.h (multiboot_apm_info): New struct.
16154
161552010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16156
16157 GRUB-legacy configuration file support.
16158
16159 * Makefile.util.def (grub-menulst2cfg): New util.
16160 * docs/man/grub-menulst2cfg.h2m: New file.
16161 * grub-core/Makefile.core.def (legacycfg): New module.
16162 * grub-core/commands/legacycfg.c: New file.
16163 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16164 (grub_normal_add_menu_entry): ... this.
16165 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16166 (grub_normal_set_password): ...this.
16167 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16168 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16169 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16170 * grub-core/lib/legacy_parse.c: New file.
16171 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16172 * include/grub/i386/pc/vesa_modes_table.h: New file.
16173 * include/grub/legacy_parse.h: Likewise.
16174 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16175 * util/grub-menulst2cfg.c: New file.
16176
bf8d1338
CW
161772010-09-17 Colin Watson <cjwatson@ubuntu.com>
16178
16179 * grub-core/kern/emu/hostdisk.c
16180 (convert_system_partition_to_system_disk): Initialise node.
16181
9c0bad2e
CW
161822010-09-17 Colin Watson <cjwatson@ubuntu.com>
16183
16184 * grub-core/kern/emu/hostdisk.c
16185 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16186 leak.
16187 Reported and based on patch by: Modestas Vainius.
16188
a939d135
CW
161892010-09-17 Colin Watson <cjwatson@ubuntu.com>
16190
16191 Fix DM-RAID probing with recent versions of device-mapper udev
16192 rules.
16193
16194 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16195 canonicalise device paths under /dev/mapper/.
16196 (convert_system_partition_to_system_disk): Compare the
16197 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16198 path, since device nodes under /dev/mapper/ are often symlinks.
16199
0f7ee3c9
YB
162002010-09-17 Yves Blusseau <blusseau@zetam.org>
16201
16202 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16203
10854d0d
YB
162042010-09-16 Yves Blusseau <blusseau@zetam.org>
16205
16206 * configure.ac: Avoid some annoying error messages if freetype-config
16207 program is not found.
16208
108538d8
CW
162092010-09-16 Colin Watson <cjwatson@ubuntu.com>
16210
16211 Support RAID on virtio devices, and others.
16212
16213 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16214 Rename to ...
16215 [__MINGW32__] (grub_find_device): ... this.
16216 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16217 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16218 reasonable default if dir is NULL.
16219 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16220 ...
16221 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16222 (grub_guess_root_device): Update callers.
16223 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16224
16225 * util/raid.c (grub_util_getdiskname): Remove.
16226 (grub_util_raid_getmembers): Use grub_find_device rather than
16227 grub_util_getdiskname.
16228
e5bfc130
CW
162292010-09-16 Colin Watson <cjwatson@ubuntu.com>
16230
16231 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16232 needing to be compiled with serial support.
16233 (ls): Indicate that multiple files are accepted.
16234 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16235 indicate that multiple files are accepted.
16236
be458ae2
CW
162372010-09-16 Colin Watson <cjwatson@ubuntu.com>
16238
16239 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16240 libgrub_a_init.c, and util/bash-completion.d/grub.
16241
cb731b5e
VS
162422010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 * util/grub-setup.c (setup): Fix incorrect container semantics.
16245
35139e8a
VS
162462010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16247
16248 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16249 misusage.
16250 Reported by: J. Nick Terry
16251
e50fca4a
VS
162522010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16253
16254 Move embedding routines to partmap sources files.
16255
16256 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16257 [GRUB_UTIL]: New variable.
16258 (gpt_partition_map_iterate): Set part.parent.
16259 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16260 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16261 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16262 New function.
16263 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16264 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16265 (grub_partition_map) [GRUB_UTIL]: New field embed.
16266 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16267 (setup): Use ->embed.
16268
f00478b7
VS
162692010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16270
16271 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16272 function.
16273 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16274 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16275
2b94e3ff
YB
162762010-09-15 Yves Blusseau <blusseau@zetam.org>
16277
16278 Add function to get completions from usage.
16279
16280 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16281 completions from usage. Use LC_ALL=C to get options properly.
16282
2e04a006
VS
162832010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16284
16285 * grub-core/gnulib/basename-lgpl.c: Imported.
16286 * grub-core/gnulib/basename.c: Likewise.
16287 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16288 * grub-core/gnulib/dirname.c: Likewise.
16289 * grub-core/gnulib/dirname.h: Likewise.
16290 * grub-core/gnulib/stripslash.c: Likewise.
16291
5dcdf93a
VS
162922010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 * grub-core/gnulib/error.c: Resynced.
16295 * grub-core/gnulib/getopt.c: Likewise.
16296 * grub-core/gnulib/getopt_int.h: Likewise.
16297 * grub-core/gnulib/regex.h: Likewise.
16298 * grub-core/gnulib/regex_internal.c: Likewise.
16299 * grub-core/gnulib/regex_internal.h: Likewise.
16300
014f47b7
SJ
163012010-09-15 Szymon Janc <szymon@janc.net.pl>
16302
16303 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16304 CRC calculations and validity checks.
16305 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16306 calculations.
16307
dd521a4a
SJ
163082010-09-15 Szymon Janc <szymon@janc.net.pl>
16309
16310 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16311
79c4eeb9
VS
163122010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16313
16314 Fix incorrect echo options handling.
16315 Reported by: Yves Blusseau.
16316
16317 * include/grub/command.h (grub_command_flags_t): New flags
16318 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16319 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16320 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16321
ed80f7d5
VS
163222010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16323
16324 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16325 users updated.
16326 (GRUB_COMMAND_FLAG_MENU): Likewise.
16327 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16328 (GRUB_COMMAND_FLAG_TITLE): Removed.
16329 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16330 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16331 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16332 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16333 (grub_command_flags_t): New enum. All users updated.
16334
5fe7620a
SG
163352010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16336
16337 Fix solaris compilation.
16338
16339 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16340 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16341 (grub-emu-list): Likewise.
16342
545b752f
VS
163432010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16344
16345 Remove deprecated root command.
16346
16347 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16348 updated.
16349
6c1a338c
VS
163502010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16351
16352 * util/i386/pc/grub-setup.c: Merge this ...
16353 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16354 * util/grub-setup.c: ... into this.
16355 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16356 New struct.
16357
163582010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16359
16360 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16361 possible.
16362
d2ea4551
VS
163632010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16364
16365 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16366 allocate p.
16367
3c3b5040
VS
163682010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16369
16370 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16371 explicit root argument to set to prevent UUID to be interpreted as
16372 argument to set.
16373
b71c3fae
VS
163742010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16375
16376 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16377
275433e6
VS
163782010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16379
16380 Don't export grub_gate_a20.
16381
16382 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16383 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16384 to ...
16385 (grub_gate_a20): ... this. All users updated.
16386 * include/grub/i386/pc/init.h: Removed. All users updated.
16387
a5dbb1f1
VS
163882010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16389
16390 Create euro.pf2 which supports most European languages.
16391
16392 * Makefile.am (grubdata_DATA): Add euro.pf2.
16393 (euro.pf2): New target.
16394 (CLEANFILES): Add euro.pf2.
16395
62a747cb
VS
163962010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16397
16398 * configure.ac: Disable emu-usb by default to prevent inadvertent
16399 device takeover.
16400
608e43b1
VS
164012010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16402
16403 Disable usbserial on grub-emu since our libusb code isn't good enough
16404 yet.
16405
16406 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16407 (usbserial_pl2303): Likewise.
16408 (usbserial_ftdi): Likewise.
16409
94564f81
VS
164102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16411
16412 * include/grub/disk.h (grub_disk): Remove has_partitions.
16413 All users updated.
16414 * disk/loopback.c (grub_loopback): Remove has_partitions.
16415 All users updated.
16416 (options): Remove partitions. All users updated.
16417 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16418 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16419 actual partition table is found.
16420
3352800b
VS
164212010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16422
16423 Remove readability checks (too many false negatives).
16424
16425 * util/grub-install.in: Remove readability checks.
16426 * util/grub-mkconfig.in: Likewise.
16427 * util/grub.d/10_hurd.in: Likewise.
16428 * util/grub.d/10_kfreebsd.in: Likewise.
16429 * util/grub.d/10_linux.in: Likewise.
16430 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16431 way.
16432
2419f17a
VS
164332010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16434
16435 Enable acpi shutdown on all ACPI platforms.
16436
16437 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16438 on coreboo, multiboot and EFI.
16439 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16440 (grub_acpi_halt): Likewise.
16441 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16442 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16443 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16444 * grub-core/lib/i386/halt.c (grub_halt)
16445 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16446
0575c7c3
VS
164472010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16448
16449 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16450 context.
16451
54ac3cd1
VS
164522010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16453
16454 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16455 * grub-core/video/efi_uga.c: Likewise.
16456
b2a30ac5
VS
164572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16458
16459 Filter devaliases and never open same device twice.
16460
16461 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16462 (last_ihandle): Likewise.
16463 (ofdisk_hash_ent): New member shortest.
16464 (ofdisk_hash_add): Add canonical path too.
16465 (scan): New function.
16466 (grub_ofdisk_iterate): Iterate over hashed entries.
16467 (compute_dev_path): Don't add :0.
16468 (grub_ofdisk_open): Don't really open the disk.
16469 (grub_ofdisk_close): Avoid closing unrelated disk.
16470 (grub_ofdisk_read): Implement reopen logic.
16471 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16472 New function.
16473 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16474 New proto.
16475
fb53b340
VS
164762010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16477
16478 Fix sparc64.
16479
16480 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16481 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16482 right address. Add sparc64_ieee1275_ldflags.
16483 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16484 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16485 to grub_host_to_target_addr
16486 (load_image): Likewise.
16487
f452b040
VS
164882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 * grub-core/normal/completion.c (complete_file): Handle device
16491 containing slash.
16492 Fix based on patch by Doug Nazar.
16493
9b5b2541
VS
164942010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16495
16496 grub-mknetdir script.
16497
16498 * Makefile.util.def (grub-mknetdir): New module.
16499 * tests/util/grub-shell.in: Support boot=net
16500 * util/grub-mknetdir.in: New file.
16501
9d2be652
VS
165022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16503
16504 videoinfo on non-vbe.
16505
16506 * grub-core/Makefile.core.def (vbeinfo): Removed.
16507 (vbetest): Removed.
16508 (videoinfo): New module.
16509 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16510 * grub-core/commands/i386/pc/vbetest.c: Removed.
16511 * grub-core/commands/videoinfo.c: New file.
16512 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16513 specification.
16514 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16515 as vbetest.
16516 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16517 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16518 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16519 mode_number. New parameter mode. All users updated.
16520 (grub_video_gop_iterate): New function.
16521 (grub_video_efi_gop): New member iterate.
16522 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16523 (grub_vbe_set_video_mode): Remove setting useless fields.
16524 (vbe2videoinfo): New function.
16525 (grub_video_vbe_iterate): Likewise.
16526 (grub_video_vbe_setup): Use vbe2videoinfo.
16527 (grub_video_vbe_print_adapter_specific_info): New function.
16528 (grub_video_vbe_adapter): New fields iterate and
16529 print_adapter_specific_info.
16530 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16531 All users updated.
16532 (grub_video_mode_info): New field mode_number.
16533 (grub_video_adapter): New fields iterate and
16534 print_adapter_specific_info.
16535
179503f5
TG
165362010-09-13 Tristan Gingold <gingold@free.fr>
165372010-09-13 Robert Millan <rmh.grub@aybabtu.com>
165382010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16539
16540 * grub-core/commands/efi/lsefisystab.c: New file.
16541 * grub-core/commands/efi/lssal.c: Likewise.
16542 * grub-core/Makefile.core.def (lsacpi): New module.
16543 (lsefisystab): Likewise.
16544 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16545 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16546 (grub_efi_sal_system_table): New struct.
16547 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16548 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16549 (grub_efi_sal_system_table_platform_features): Likewise.
16550 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16551 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16552 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16553 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16554
cf9827de
VS
165552010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 Support explicit user claim that a device is BIOS-visible.
16558
16559 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16560 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16561 * grub-core/kern/emu/hostdisk.c
16562 (convert_system_partition_to_system_disk): Support mdX.
16563 (find_system_device): New parameter add. All users updated.
16564 (grub_util_biosdisk_is_present): New function.
16565 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16566 proto.
16567
53f0eb1f
VS
165682010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 Search hints support.
16571
16572 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16573 All users updated.
16574
b23ffd70
YB
165752010-09-13 Yves Blusseau <blusseau@zetam.org>
16576
16577 Bash completion script for util commands
16578
16579 * Makefile.am: Add util/bash-completion.d directory
16580 * configure.ac: Likewise.
16581 * util/bash-completion.d/Makefile.am: New file.
16582 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16583
d547dc28
VS
165842010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16585
16586 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16587 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16588 Reported by: Yves Blusseau.
16589
2fc8ccb9
VS
165902010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16591
16592 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16593 partition size and offset.
16594
d8a84076
VS
165952010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16596
16597 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16598
84fb3b3d
VS
165992010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16600
16601 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16602
768ec2e2
VS
166032010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16604
16605 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16606 (grub_xvasprintf): Likewise.
16607
4870900f
VS
166082010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16609
16610 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16611
faca6bec
VS
166122010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16613
16614 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16615 args ending with NULL.
16616
166172010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
16618
16619 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16620 pointer.
16621
3c70f225
SJ
166222010-09-11 Szymon Janc <szymon@janc.net.pl>
16623
16624 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16625
4df7996d
VS
166262010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16627
16628 Shutdown using ACPI.
16629
16630 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16631 * grub-core/commands/acpihalt.c: New file.
16632 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16633 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16634 (grub_acpi_halt): New proto.
16635 (GRUB_ACPI_SLP_EN): New const.
16636 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16637 (GRUB_ACPI_OPCODE_*): New enum.
16638 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16639
126b4c32
TG
166402010-09-11 Tristan Gingold <gingold@free.fr>
166412010-09-11 Robert Millan <rmh.grub@aybabtu.com>
166422010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 * commands/lsacpi.c: New file.
16645 * grub-core/Makefile.core.def (lsacpi): New module.
16646 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16647 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16648 (grub_acpi_madt_entry_header): New struct.
16649 (grub_acpi_madt): Likewise.
16650 (grub_acpi_madt_entry_interrupt_override): Likewise.
16651 (grub_acpi_madt_entry_sapic): Likewise.
16652 (grub_acpi_madt_entry_lsapic): Likewise.
16653 (grub_acpi_madt_entry_platform_int_source): Likewise.
16654 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16655 (PRIuGRUB_UINT32_T): Likewise.
16656 (PRIxGRUB_UINT64_T): Likewise.
16657
1aa4fe88
VS
166582010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16659
16660 Implement loading palette on ieee1275_fb.
16661
16662 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16663 (have_setcolors): Likewise.
16664 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
16665 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
16666 (grub_video_ieee1275_set_palette): Implement.
16667
25761e13
VS
166682010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
166692010-09-11 Colin Watson <cjwatson@ubuntu.com>
16670
16671 * util/grub-install.in (grub_partition): New variable.
16672 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
16673 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
16674 Fixes a bug reported by Yves Blusseau.
16675
050abaea
VS
166762010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16677
16678 Fix emu on mipsel.
16679
16680 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
16681 =grub_cpu_flush_cache on all mips and not only yeeloong.
16682 * configure.ac (COND_mips): New conditional.
16683 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
16684 platforms.
16685 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
16686 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
16687 [GRUB_LINKER_HAVE_INIT]: New function.
16688 (grub_emu_post_init): Likewise.
16689 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
16690 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
16691 * include/grub/cache.h (_mips): Include mips/cache.h.
16692 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
16693 LVM and RAID prototypes.
16694 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
16695 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
16696 function.
16697
5ed7d816
CW
166982010-09-10 Colin Watson <cjwatson@ubuntu.com>
16699
16700 * util/grub-install.in: Don't try to verify core.img until after
16701 running grub-mkimage to create it.
16702
90367e04
RM
167032010-09-10 Robert Millan <rmh@gnu.org>
16704
16705 * util/grub.d/10_hurd.in: Add misc readability checks.
16706 * util/grub.d/10_kfreebsd.in: Likewise.
16707 * util/grub.d/10_linux.in: Likewise.
16708
c452fa66
CW
167092010-09-10 Colin Watson <cjwatson@ubuntu.com>
16710
16711 * util/grub-install.in: ${imgext} won't be defined here until the
16712 install branch is merged. For the meantime, only verify core.img on
16713 i386-pc and sparc64-ieee1275 platforms.
16714
c38fe9f4
RM
167152010-09-10 Robert Millan <rmh@gnu.org>
16716
16717 Solaris support in grub_find_zpool_from_dir(). Thanks
16718 Seth Goldberg for referring to getextmntent() facility.
16719
16720 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
16721 `sys/mkdev.h'.
16722 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
16723 `<sys/mnttab.h>'.
16724 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
16725 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
16726 method for finding zpool name.
16727
905f7773
CW
167282010-09-10 Colin Watson <cjwatson@ubuntu.com>
16729
16730 grub-fstest needs the host and hostfs modules while other utilities
16731 actively require those modules to be absent, so grub-fstest needs
16732 its own initialisation and finalisation code.
16733
16734 * Makefile.am (grub_fstest.pp): New target.
16735 (grub_fstest_init.lst): Likewise.
16736 (grub_fstest_init.c): Likewise.
16737 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
16738
fb90b546
RM
167392010-09-10 Robert Millan <rmh@gnu.org>
16740
16741 * configure.ac: Check for `struct statfs.f_fstypename' and
16742 `struct statfs.f_mntfromname'.
16743
16744 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
16745 kFreeBSD-specific code.
16746
66d4bea5
RM
167472010-09-10 Robert Millan <rmh@gnu.org>
16748
16749 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
16750 on ZFS. Now non-main filesystems are supported as / too.
16751
b6a690ee
CW
167522010-09-09 Colin Watson <cjwatson@ubuntu.com>
16753
16754 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
16755 and grub-core/disk/host.c to ...
16756 (grub-fstest): ... here. Having the host disk implementation
16757 present confuses grub-probe and other utility programs.
16758
16759 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
16760 when writing to a file, not when writing to stdout.
16761
8901b00c 167622010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
16763
16764 * tests/partmap_test.in: New test for partitions.
16765 * Makefile.util.def: Rules for new test.
16766
7bf45fdd
RM
167672010-09-09 Robert Millan <rmh@gnu.org>
16768
16769 * util/grub-probe.c (probe): Fix a pair of unhandled error
16770 conditions.
16771
4dfbc574
RM
167722010-09-09 Robert Millan <rmh@gnu.org>
16773
16774 Basic Btrfs support (detection and UUID).
16775
16776 * grub-core/fs/btrfs.c: New file.
16777 * Makefile.util.def (library): Register btrfs.c.
16778 * grub-core/Makefile.core.def: Likewise.
16779
6b8e78ae
RM
167802010-09-08 Robert Millan <rmh@gnu.org>
16781
16782 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
16783 with (optional) parameters to specify device and relative path.
16784 * util/grub-install.in: Use is_path_readable_by_grub() to
16785 verify readability of a few critical files.
16786 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
16787 verify readability of grub.cfg.new.
16788
27f21a8b
VS
167892010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16790
16791 Split minix.mod into minix.mod and minix2.mod.
16792
16793 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
16794 * grub-core/Makefile.core.def (minix2): New module.
16795 * grub-core/fs/minix.c: Use definitions instead of runtime version
16796 checking.
16797 * grub-core/fs/minix2.c: New file.
16798
c0e53ea5
YB
167992010-09-08 Yves Blusseau <blusseau@zetam.org>
16800
16801 Add new --boot-directory option to replace --root-directory
16802
16803 * util/grub-install.in: Add new --boot-directory option
16804 * util/grub-reboot.in: Likewise.
16805 * util/grub-set-default.in: Likewise.
16806
b9fe6ea2
YB
168072010-09-08 Yves Blusseau <blusseau@zetam.org>
16808
16809 * util/grub-mkconfig.in: Use new variable.
16810
d87aedff
YB
168112010-09-08 Yves Blusseau <blusseau@zetam.org>
16812
16813 * configure.ac: Define some useful variables.
16814
e55e8495
VS
168152010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
16816
16817 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
16818 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
16819 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
16820 Use terminfo and don't use cursor-on/cursor-off unless it's known
16821 to work.
16822 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
16823 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
16824
6fa6d675
CW
168252010-09-08 Colin Watson <cjwatson@ubuntu.com>
16826
16827 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
16828 starts with "(,", fill the drive containing the loaded image in
16829 between those two characters, but expect that a full partition
16830 specification including partition map names will follow.
16831
92f2aef0
RM
168322010-09-08 Robert Millan <rmh@gnu.org>
16833
16834 * configure.ac: Remove `--enable-grub-fstest' option.
16835 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
16836
16837 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
16838 `grub-fstest' instead of `grub-probe' for readability verification.
16839 * util/grub-probe.c (probe): Remove readability verification kludge.
16840
99fd620d
RM
168412010-09-08 Robert Millan <rmh@gnu.org>
16842
16843 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
16844 initializing `GRUB_FS'.
16845
058e30ac 168462010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
16847
16848 Not command (!) support to GRUB script.
16849
16850 * tests/grub_script_not.in: New test.
16851 * Makefile.util.def: Rules for new test.
16852
16853 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16854 ! command as a special case.
16855 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
16856
b61d05ed 168572010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16858
058e30ac 16859 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
16860 grub_free.
b61d05ed 16861
4d69c786 168622010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16863
16864 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
16865
aa3119c4 168662010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
16867
16868 * docs/grub.texi (Shell-like scripting): Documentation for break,
16869 continue, shift and return commands.
16870
db0f7e3d
VS
168712010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
16872
16873 Rename CD-ROM to cd on BIOS.
16874
16875 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
16876 "cd".
16877 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
16878
88b87c93
VS
168792010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16880
16881 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
16882 * util/grub-probe.c (main): Likewise.
16883 * util/i386/pc/grub-setup.c (main): Likewise.
16884 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
16885 Reported and debugged by: alexxy
16886
294f324d
VS
168872010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16888
16889 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
16890 diagnostic info.
16891
d7ee3441
JS
168922010-09-05 Jo Shields <directhex@apebox.org>
16893
16894 * util/grub.d/30_os-prober.in: Add missing classes.
16895
d7e06c1f
VS
168962010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16897
16898 * docs/grub.texi (Theme file format): Document new position format.
16899
fc157e53
VS
169002010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16901
16902 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
16903 a table. Use @code instead of @verbatim.
16904
506e9a1c
CB
169052010-09-05 Colin D Bennett <colin@gibibit.com>
16906
16907 Gfxmenu documentation.
16908
16909 * docs/grub.texi (Theme file format): New chapter.
16910
f0aff67c
SJ
169112010-09-05 Szymon Janc <szymon@janc.net.pl>
16912
16913 * grub-core/Makefile.core.def (xzio): New module.
16914 * grub-core/io/xzio.c: New file.
16915 * grub-core/lib/xzembed/xz.h: New file (from xembed).
16916 * grub-core/lib/xzembed/xz_config.h: Likewise.
16917 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
16918 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
16919 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
16920 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
16921 * grub-core/lib/xzembed/xz_private.h: Likewise.
16922 * grub-core/lib/xzembed/xz_stream.h: Likewise.
16923 * include/grub/file.h (grub_file_filter_id): New compression filter
16924 GRUB_FILE_FILTER_XZIO.
16925
82a85062
VS
169262010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
16929 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
16930 size.
16931
3579415d
VS
169322010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16933
16934 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
16935 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
16936
5124ae6d
VS
169372010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 Uncompressed checksum support.
16940
16941 * grub-core/commands/hashsum.c (options): Add option --uncompress.
16942 (check_list): New parameter uncompress.
16943 (grub_cmd_hashsum): Handle --uncompress.
16944
9aadb3d1
VS
169452010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 Reintroduce testload.
16948
16949 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
16950 from here ...
16951 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
16952 (GRUB_MOD_INIT): New function.
16953 (GRUB_MOD_FINI): Likewise.
16954 * grub-core/Makefile.core.def (testload): New module.
16955
a17792c3
SJ
169562010-09-05 Szymon Janc <szymon@janc.net.pl>
16957
16958 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
16959 (uint8_t): New type.
16960 (uint16_t): Likewise.
16961 (uint32_t): Likewise.
16962 (uint64_t): Likewise.
16963
b81e40a3
SJ
169642010-09-05 Szymon Janc <szymon@janc.net.pl>
16965
16966 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
16967
fc2ef117
VS
169682010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
16969
16970 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
16971 Made static.
16972 (grub_gzfile_open): Removed. All users updated.
16973 (GRUB_MOD_INIT): New function.
16974 (GRUB_MOD_FINI): Likewise.
16975 * grub-core/kern/file.c (grub_file_filters_all): New variable.
16976 (grub_file_filters_enabled): Likewise.
16977 (grub_file_open): Handle filters.
16978 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
16979 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
16980 * include/grub/file.h (grub_file_filter_id_t): New type.
16981 (grub_file_filter_t): Likewise.
16982 (grub_file_filters_all): New extern variable.
16983 (grub_file_filters_enabled): Likewise.
16984 (grub_file_filter_register): New inline function.
16985 (grub_file_filter_unregister): Likewise.
16986 (grub_file_filter_disable): Likewise.
16987 (grub_file_filter_disable_compression): Likewise.
16988 * include/grub/gzio.h: Removed.
16989
35ee15e0
BC
169902010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
16991
16992 Filename expansion support for wildcards in GRUB script.
16993
16994 * tests/grub_script_expansion.in: New test.
16995 * Makefile.util.def: Rule for new test.
16996
16997 * grub-core/commands/wildcard.c: New file, implements filename
16998 expansion support for GRUB script.
16999 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17000 * grub-core/script/argv.c: Cosmetic changes.
17001 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17002 Refactored to perform wildcard expansion on arguments.
17003 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17004 struct.
17005
17006 * tests/util/grub-shell.in: Fix quoting for read input.
17007
5f0c4aca
BC
170082010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17009
17010 Support for updating environment variables with matched substrings
17011 of regexp.
17012
17013 * tests/grub_cmd_regexp.in: New test.
17014 * Makefile.util.def: Rule for new test.
17015
17016 * grub-core/commands/regexp.c: New option -s to update environment
17017 variables with regexp matches.
17018
3759a35f
SJ
170192010-09-04 Szymon Janc <szymon@janc.net.pl>
17020
17021 * include/grub/file.h (grub_file): New member not_easly_seekable.
17022 (grub_file_seekable): New inline function.
17023 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17024 easily seekable.
17025 (grub_gzio_open): Set not_easly_seekable.
17026 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17027 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17028
ed8c6dec
BC
170292010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17030
17031 Support for options to appear multiple times on cmdline.
17032
17033 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17034 * grub-core/commands/extcmd.c: Support for repeatable option.
17035 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17036 repeatable option support.
17037
17038 Refactor menuentry into a regular command.
17039
17040 * grub-core/commands/menuentry.c: New file, menuentry command
17041 implementation.
17042 * grub-core/Makefile.core.def: Rule update for normal.mod.
17043 * grub-core/normal/main.c: Moved menuentry creation to
17044 grub-core/commands/menuentry.c.
17045 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17046 (grub_menu_execute_entry_real): Removed.
17047 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17048 function.
17049 (grub_script_execute_menuentry): Removed.
17050 * grub-core/script/parser.y (menuentry): Removed.
17051 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17052 * grub-core/script/yylex.l (menuentry): Removed.
17053 * include/grub/menu.h (grub_menu_init): New prototype.
17054 (grub_menu_fini): New prototype.
17055 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17056 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17057 (grub_script_execute_sourcecode): New prototype.
17058
dacd0cf0
BC
170592010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17060
17061 "return" command for GRUB script functions.
17062
17063 * tests/grub_script_return.in: New test.
17064 * Makefile.util.def: Rules for new test.
17065
17066 * grub-core/script/execute.c (grub_script_return): New function.
17067 * grub-core/script/main.c: Register/unregister return commaond.
17068 * include/grub/script_sh.h (grub_script_return): New prototype.
17069
52e72f9d
BC
170702010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17071
17072 "setparams" command to update positional parameters.
17073
17074 * tests/grub_script_setparams.in: New test.
17075 * Makefile.util.def: Rules for new test.
17076
17077 * grub-core/script/argv.c (grub_script_argv_make): New function.
17078 * grub-core/script/execute.c (replace_scope): New function.
17079 (grub_script_setparams): New function.
17080 * grub-core/script/lexer.c: Remove unused variables.
17081 * grub-core/script/main.c: Register/unregister setparams command.
17082 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17083 (grub_script_setparams): New prototype.
17084
25b60c91
BC
170852010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17086
17087 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17088 grub_free order.
17089
37e7bf68
BC
170902010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17091
17092 Support for passing block of commands as an argument to extcmds.
17093
17094 * Makefile.util.def: Rules for new test.
17095 * tests/grub_script_blockarg.in: New test.
17096 * grub-core/tests/test_blockarg.c: New file, block argument
17097 command used in the test.
17098
17099 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17100 (grub_register_extcmd_prio): New function prototype.
17101 (grub_extcmd_dispatcher): New function prototype.
17102 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17103 type.
17104 * include/grub/script_sh.h (struct grub_script): New members
17105 `children', `next_siblings' and `refcnt' for block arguments and
17106 reference counting.
17107 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17108 (grub_script_arg): New member `script' for block argument.
17109 (grub_script_argv): New member `script' for block argument.
17110 (grub_parser_param): New member `scripts' for block argument.
17111 (grub_script_mem_free): New extern function prototype.
17112 (grub_script_ref): New function prototype.
17113 (grub_script_unref): New function prototype.
17114
17115 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17116 extcmd form to support block arguments.
17117 * grub-core/script/argv.c: Block arguments support.
17118 * grub-core/script/execute.c: Likewise.
17119 * grub-core/script/lexer.c: Likewise.
17120 * grub-core/script/main.c: Likewise.
17121 * grub-core/script/script.c: Likewise.
17122 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17123 non-terminals.
17124
17125 * grub-core/commands/acpi.c: Update extcmd implementations with
17126 grub_extcmd_context_t.
17127 * grub-core/commands/cat.c: Likewise.
17128 * grub-core/commands/echo.c: Likewise.
17129 * grub-core/commands/extcmd.c: Likewise.
17130 * grub-core/commands/hashsum.c: Likewise.
17131 * grub-core/commands/hdparm.c: Likewise.
17132 * grub-core/commands/help.c: Likewise.
17133 * grub-core/commands/hexdump.c: Likewise.
17134 * grub-core/commands/i386/cpuid.c: Likewise.
17135 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17136 * grub-core/commands/i386/pc/halt.c: Likewise.
17137 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17138 * grub-core/commands/iorw.c: Likewise.
17139 * grub-core/commands/keystatus.c: Likewise.
17140 * grub-core/commands/loadenv.c: Likewise.
17141 * grub-core/commands/ls.c: Likewise.
17142 * grub-core/commands/lspci.c: Likewise.
17143 * grub-core/commands/memrw.c: Likewise.
17144 * grub-core/commands/probe.c: Likewise.
17145 * grub-core/commands/search_wrap.c: Likewise.
17146 * grub-core/commands/setpci.c: Likewise.
17147 * grub-core/commands/sleep.c: Likewise.
17148 * grub-core/disk/loopback.c: Likewise.
17149 * grub-core/hello/hello.c: Likewise.
17150 * grub-core/loader/i386/bsd.c: Likewise.
17151 * grub-core/loader/xnu.c: Likewise.
17152 * grub-core/term/gfxterm.c: Likewise.
17153 * grub-core/term/serial.c: Likewise.
17154 * grub-core/tests/lib/functional_test.c: Likewise.
17155
888d1500
BC
171562010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17157
17158 Multi-line quoted strings support.
17159
17160 * grub-core/script/lexer.c (append_newline): Removed.
17161 (grub_script_lexer_yywrap): Refactored.
17162 (grub_script_lexer_init): Refactored.
17163 * grub-core/script/yylex.l (yywrap): New function.
17164 (grub_lexer_resplit): New function.
17165 (grub_lexer_unput): New function.
17166 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17167 and resplit.
17168 * tests/grub_script_echo1.in: Added few more testcases.
17169
dda060dd
VS
171702010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 * grub-core/kern/misc.c: Don't add abort alias in utils.
17173 Reported by: echoline.
17174
6556eba9
BC
171752010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17176
17177 Add missing files into "make dist" tarball for other platforms.
17178
17179 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17180 * conf/Makefile.common (dist_noinst_DATA): New variable.
17181 * conf/Makefile.extra-dist: Added missing make dist files.
17182 * grub-core/Makefile.core.def: Likewise.
17183
c8e7bf5f
VS
171842010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17185
17186 Compress grub_prefix.
17187
17188 * grub-core/boot/i386/pc/lnxboot.S: Use
17189 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17190 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17191 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17192 GRUB_MACHINE_PREFIX_END. All users updated.
17193 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17194 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17195 + 0x40.
17196 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17197 * util/grub-mkimage.c (image_target_desc): Change data_end to
17198 prefix_end. All users updated.
17199
a7c00cdb
VS
172002010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17201
17202 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17203 value.
17204 (grub_openbsd_boot): Likewise.
17205 (grub_netbsd_boot): Likewise.
17206 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17207 (grub_xnu_boot): Likewise.
17208
9f915872
VS
172092010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17210
17211 * configure.ac: Clean LIBS variable after tests.
17212
efa1bee7
CW
172132010-09-02 Colin Watson <cjwatson@ubuntu.com>
17214
17215 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17216
61d720e5
VS
172172010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17218
17219 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17220 echo if libdevmapper will be used.
17221
ef8e0ec8
IT
172222010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17223
17224 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17225 constant for the same file.
17226
03e261d8
VS
172272010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17228
17229 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17230
c2a4eba6
CW
172312010-09-02 Colin Watson <cjwatson@ubuntu.com>
17232
17233 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17234 grub-core/*.pp.
17235
9056cbf3
CW
172362010-09-02 Colin Watson <cjwatson@ubuntu.com>
17237
17238 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17239 required by the boot protocol.
17240
17241 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17242 ebp and edi members.
17243 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17244 state.ebp and state.edi.
17245 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17246 %ebp and %edi according to grub_relocator32_ebp and
17247 grub_relocator32_edi respectively.
17248 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17249 and state.edi.
17250
529cc99a
VS
172512010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17252
17253 Add i386-pc-pxe image target.
17254
17255 * util/grub-mkimage.c (image_target_desc): New enum value
17256 IMAGE_I386_PC_PXE.
17257 (image_targets): New target i386-pc-pxe.
17258 (generate_image): Handle i386-pc-pxe image.
17259
9a093920
VS
172602010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17261
17262 Fix grub_pxe_scan.
17263
17264 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17265 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17266 All users updated.
17267 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17268 (grub_pxe_pxenv): Correct type.
17269
f9cefc4e
CW
172702010-09-01 Colin Watson <cjwatson@ubuntu.com>
17271
17272 * NEWS: Document most of the important changes since 1.98.
17273
4066f57f
CW
172742010-09-01 Colin Watson <cjwatson@ubuntu.com>
17275
17276 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17277 generated manual page) a little.
17278
da2891f9
CW
172792010-09-01 Colin Watson <cjwatson@ubuntu.com>
17280
17281 * docs/grub.texi: Add myself as an author.
17282
ad717fae
VS
172832010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17284
17285 * Makefile.util.def (libgrub.a): Add missing sunpc.
17286 Reported by: Seth Goldberg.
17287
eefe8abd
VS
172882010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 Interrupt wrapping and code simplifications.
17291
9494ef9a
VS
17292 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17293 x86_noieee1275 which are functionaly equivalent in this case.
17294 (grub-install): Make source on each platform explicit. Enable on
17295 all noemu.
17296 * gentpl.py (x86_efi_pc): Removed group.
17297 (x86_noefi): Likewise.
17298 (i386_noefi): Likewise.
17299 (x86_noieee1275): Likewise.
17300 (i386_noieee1275): Likewise.
17301 (i386_noefi_noieee1275): Likewise.
17302 (i386_pc_qemu_coreboot): Likewise.
17303 (i386_coreboot_multiboot): Likewise.
17304 (i386_pc_coreboot_multiboot_qemu): Likewise.
17305 (x86_noefi_mips): Likewise.
17306 (noieee1275): Likewise.
17307 (ieee1275_mips): Likewise.
17308 (noemu_noieee1275): Likewise.
17309 (cmos): New group.
17310 (usb): Likewise.
17311 (videoinkernel): Likewise.
17312 (videomodules): Likewise.
eefe8abd 17313 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
17314 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17315 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17316 include/grub/loader.h, include/grub/msdos_partition.h,
17317 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17318 include/grub/machine/console.h, include/grub/machine/vga.h,
17319 include/grub/machine/vbe.h, include/grub/machine/init.h,
17320 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17321 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 17322 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
17323 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17324 * grub-core/Makefile.core.def (kernel): Explicit the source for
17325 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17326 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17327 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17328 Use videoinkernel tag.
17329 (usb): Enable on all usb.
17330 (usbserial_common): Likewise.
17331 (usbserial_pl2303): Likewise.
17332 (usbserial_ftdi): Likewise.
17333 (uhci): Enable on all x86.
17334 (ohci): Enable on all pci.
17335 (cmostest): Enable on all CMOS.
17336 (acpi): Include commands/acpi.c on all platforms.
17337 (halt): Add relevant lib/*/halt.c.
17338 (hdparm): Enable on all pci.
17339 (lspci): Likewise.
17340 (usbtest): Enable on all usb.
17341 (ata): Enable on all pci.
17342 (ata_pthru): Likewise.
17343 (usbms): Enable on all usb.
17344 (usb_keyboard): Likewise.
17345 (font): Use tag videomodules.
17346 (bufio): Likewise.
17347 (datetime): Use tag cmos. Enable on all noemu.
17348 (mmap): Use tags common and x86.
17349 (gfxterm): Use tag videomodules.
17350 (bitmap): Likewise.
17351 (bitmap_scale): Likewise.
17352 (video_fb): Likewise.
17353 (video): Likewise.
17354 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17355 adjust padding accordingly. All users updated.
17356 (grub_ohci_transaction): Fix bad format specification.
17357 (GRUB_MOD_INIT): Add asserts for struct size.
17358 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17359 (grub_alloc_td): Likewise.
17360 (grub_free_queue): Likewise.
17361 (grub_uhci_transfer): Likewise.
17362 (grub_uhci_transaction): Fix bad format specification.
17363 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17364 (grub_usb_bulk_readwrite): Likewise.
17365 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17366 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17367 Made static.
17368 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17369 Made static.
17370 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17371 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17372 Transformed into C.
17373 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17374 Moved from here ...
17375 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17376 ... here. Transformed into C. Made static.
17377 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17378 Moved from here ...
17379 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17380 ... here. Transformed into C. Made static.
17381 * grub-core/kern/i386/pc/startup.S
17382 (grub_biosdisk_check_int13_extensions): Moved from here ...
17383 * grub-core/disk/i386/pc/biosdisk.c
17384 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17385 Made static.
17386 * grub-core/kern/i386/pc/startup.S
17387 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17388 * grub-core/disk/i386/pc/biosdisk.c
17389 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17390 Transformed into C. Made static.
17391 * grub-core/kern/i386/pc/startup.S
17392 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17393 * grub-core/disk/i386/pc/biosdisk.c
17394 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17395 Transformed into C. Made static.
17396 * grub-core/kern/i386/pc/startup.S
17397 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17398 * grub-core/disk/i386/pc/biosdisk.c
17399 (grub_biosdisk_get_diskinfo_standard): ... here.
17400 Transformed into C. Made static.
17401 * grub-core/kern/i386/pc/startup.S
17402 (grub_biosdisk_get_num_floppies): Moved from here ...
17403 * grub-core/disk/i386/pc/biosdisk.c
17404 (grub_biosdisk_get_num_floppies): ... here.
17405 Transformed into C. Made static.
17406 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17407 New function.
17408 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17409 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17410 Transformed into C. Made static.
17411 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17412 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17413 Transformed into C. Made static.
17414 * grub-core/kern/i386/ieee1275/init.c: Removed.
17415 * grub-core/kern/i386/misc.S: Likewise.
17416 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17417 Splitted from here ...
17418 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17419 Transformed into C. Made static. All users updated.
17420 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17421 Transformed into C. Made static. All users updated.
17422 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17423 Moved from here...
17424 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17425 Transformed into C. Made static. All users updated.
17426 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17427 Moved from here...
17428 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17429 Transformed into C. Made static. All users updated.
17430 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17431 Removed (replaced by C version).
17432 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17433 Moved from here...
17434 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17435 Transformed into C. Made static.
17436 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17437 Moved from here...
17438 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17439 ... here. Transformed into C.
17440 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17441 Moved from here...
17442 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17443 ... here. Transformed into C.
17444 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17445 Moved from here...
17446 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17447 ... here. Transformed into C. Made static.
17448 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17449 Moved from here...
17450 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17451 ... here. Transformed into C.
21ed554b
VS
17452 * grub-core/kern/i386/pc/startup.S
17453 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17454 * grub-core/video/i386/pc/vbe.c
17455 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
17456 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17457 Moved from here...
17458 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17459 ... here. Transformed into C.
17460 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17461 Moved from here...
17462 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17463 ... here. Transformed into C.
17464 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17465 Moved from here...
17466 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17467 ... here. Transformed into C.
17468 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17469 Moved from here...
17470 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17471 ... here. Transformed into C.
17472 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17473 Moved from here...
17474 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17475 ... here. Transformed into C. Made static.
17476 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17477 Moved from here...
17478 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17479 ... here. Transformed into C. Made static.
17480 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17481 Moved from here...
17482 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17483 ... here. Transformed into C. Made static.
17484 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17485 pxe_rm_entry as third argument.
17486 (grub_bios_interrupt): New function.
17487 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17488 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17489 of calling grub_stop.
17490 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17491 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17492 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17493 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17494 * grub-core/lib/i386/halt.c: Moved from here ...
17495 * grub-core/lib/i386/halt.c: ... here.
17496 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17497 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17498 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17499 grub_stop_floppy.
17500 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17501 * include/grub/i386/coreboot/init.h: Removed.
17502 * include/grub/i386/multiboot/init.h: Likewise.
17503 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17504 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17505 * include/grub/i386/pc/int.h: New file.
17506 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17507 (grub_pxe_scan): Removed.
17508 (grub_pxe_call): Update prototype.
17509 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17510 prototypes.
17511 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17512 * include/grub/i386/qemu/init.h: Removed.
17513 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17514 noreturn.
17515 (grub_halt): Likewise.
17516 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17517 (grub_reboot): Likewise.
17518 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17519 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
17520 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17521
215dd471
RM
175222010-08-30 Robert Millan <rmh@gnu.org>
17523
17524 * NEWS: Document addition of ZFS support in `grub-install' and
17525 `grub-mkconfig'.
17526
ebd65b82
BC
175272010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17528
17529 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17530 dprintf output.
17531
11721d19
VS
175322010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17533
17534 Remove leftover embedding of font objects.
17535
17536 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17537 * util/grub-install.in (font): Removed.
17538 * util/grub-mkimage.c (generate_image): Remove font support. All users
17539 updated.
17540
37837d4e
VS
175412010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17542
17543 Remove leftover embedding of font objects.
17544
17545 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17546 * util/grub-install.in (font): Removed.
17547 * util/grub-mkimage.c (generate_image): Remove font support. All users
17548 updated.
17549
b4c1aae0
VS
175502010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17551
17552 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 17553 Reported by: Ian Turner
b4c1aae0 17554
8920a08d
VS
175552010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17556
17557 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17558 timeout to avoid indefinite boot stalling.
17559
f21db033
VS
175602010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17561
17562 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17563 (grub_env_write_color_highlight): Likewise.
17564
9a9de209
VS
175652010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17566
17567 * grub-core/normal/term.c (print_more): Return to normal and not
17568 to standard state after printing "---MORE---".
17569
3dca01d7
VS
175702010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17573 Mask out the bit 0x80 since it has other meaning that specifiing color.
17574
0b986c40
VS
175752010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17576
17577 New relocator. Allows for more kernel support and more straightforward
17578 loader writing.
17579
17580 * Makefile.am (BOOTTARGET): New variable.
17581 (QEMU32): Likewise.
17582 (linux.init.x86_64): New target.
17583 (linux.init.i386): Likewise.
17584 (multiboot.elf): Likewise.
17585 (kfreebsd.elf): Likewise.
17586 (kfreebsd.aout): Likewise.
17587 (pc-chainloader.elf): Likewise.
17588 (pc-chainloader.bin): Likewise.
17589 (ntldr.elf): Likewise.
17590 (ntldr.bin): Likewise.
17591 (multiboot2.elf): Likewise.
17592 (kfreebsd.init.x86_64): Likewise.
17593 (kfreebsd.init.i386): Likewise.
17594 (knetbsd.init.i386): Likewise.
17595 (kopenbsd.init.i386): Likewise.
17596 (knetbsd.init.x86_64): Likewise.
17597 (kopenbsd.init.x86_64): Likewise.
17598 (linux-initramfs.i386): Likewise.
17599 (linux-initramfs.x86_64): Likewise.
17600 (kfreebsd-mfsroot.i386.img): Likewise.
17601 (knetbsd.image.i386): Likewise.
17602 (kopenbsd.image.i386): Likewise.
17603 (kopenbsd.image.x86_64): Likewise.
17604 (knetbsd.miniroot-image.i386.img): Likewise.
17605 (kfreebsd-mfsroot.x86_64.img): Likewise.
17606 (knetbsd.image.x86_64): Likewise.
17607 (knetbsd.miniroot-image.x86_64.img): Likewise.
17608 (kfreebsd-mfsroot.i386.gz): Likewise.
17609 (bootcheck-kfreebsd-i386): Likewise.
17610 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17611 (bootcheck-kfreebsd-x86_64): Likewise.
17612 (knetbsd.miniroot-image.i386.gz): Likewise.
17613 (bootcheck-knetbsd-i386): Likewise.
17614 (bootcheck-kopenbsd-i386): Likewise.
17615 (bootcheck-kopenbsd-x86_64): Likewise.
17616 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17617 (bootcheck-knetbsd-x86_64): Likewise.
17618 (bootcheck-linux-i386): Likewise.
17619 (bootcheck-linux-x86_64): Likewise.
17620 (bootcheck-linux16-i386): Likewise.
17621 (bootcheck-linux16-x86_64): Likewise.
17622 (bootcheck-multiboot): Likewise.
17623 (bootcheck-multiboot2): Likewise.
17624 (bootcheck-kfreebsd-aout): Likewise.
17625 (bootcheck-pc-chainloader): Likewise.
17626 (bootcheck-ntldr): Likewise.
17627 (CLEANFILES): Add new targets.
17628 (BOOTCHECKS): New variable.
17629 (.PHONY): Add bootchecks.
17630 (SUCCESSFUL_BOOT_STRING): New variable.
17631 (BOOTCHECK_TIMEOUT): Likewise.
17632 (bootcheck): New target
17633 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17634 * configure.ac: Correct efiemu excuse.
17635 * docs/grub.texi (Supported kernels): New chapter.
17636 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17637 include/grub/mm_private.h. Simplify inclusion of
17638 include/grub/boot.h, include/grub/loader.h
17639 and include/grub/msdos_partition.h
17640 (KERNEL_HEADER_FILES) [i386_coreboot]:
17641 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17642 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17643 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17644 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17645 include/grub/machine/loader.h.
17646 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17647 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17648 extra_dist.
17649 (pci.mod): Enable on i386-multiboot.
17650 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17651 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17652 i386-qemu.
17653 (relocator.mod): Rewritten.
17654 (aout.mod): Enable on all x86.
17655 (bsd.mod): Likewise.
17656 (ntldr.mod): New module.
17657 (linux.mod): Use loader/i386/linux.c on all x86.
17658 (xnu.mod): Enable on all x86.
17659 (vga_text.mod): disable on EFI and QEMU.
17660 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17661 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17662 * grub-core/efiemu/loadcore.c: Likewise.
17663 * grub-core/efiemu/main.c: Likewise.
17664 (grub_efiemu_exit_boot_services): Removed.
17665 (grub_efiemu_finish_boot_services): Likewise.
17666 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
17667 function.
17668 * grub-core/efiemu/i386/nocfgtables.c: New file.
17669 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
17670 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
17671 (grub_efi_finish_boot_services): Moved from here ...
17672 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
17673 Fille finish memory map and related data.
17674 (finish_mmap_buf): New variable.
17675 (grub_efi_uintn_t finish_mmap_size): Likewise.
17676 (grub_efi_uintn_t finish_key): Likewise.
17677 (grub_efi_uintn_t finish_desc_size): Likewise.
17678 (grub_efi_uint32_t finish_desc_version): Likewise.
17679 (grub_efi_is_finished): Likewise.
17680 (grub_efi_get_memory_map): Use saved memory map if EFI is already
17681 finished.
17682 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
17683 (grub_elf64_phdr_iterate): Likewise.
17684 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
17685 (grub_os_area_size): Likewise.
17686 (grub_machine_init): Don't reserve os area.
17687 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
17688 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17689 * grub-core/kern/i386/loader.S: Removed.
17690 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
17691 (grub_os_area_size): Likewise.
17692 (grub_machine_init): Don't reserve os area.
17693 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
17694 Don't call grub_dl_unload_all.
17695 Don't include loader.S.
17696 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
17697 Declare the memory after _end as available.
17698 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 17699 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 17700 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
17701 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
17702 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
17703 * include/grub/mm_private.h (grub_mm_header): ... here.
17704 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
17705 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
17706 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
17707 (grub_mm_region): ..here. Removed addr. Added pre_size.
17708 All users updated.
17709 * grub-core/kern/mm.c (base): Renamed to ...
17710 (grub_mm_base): ... this. Made global.
17711 (grub_real_malloc): Alloc from end of region.
17712 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
17713 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
17714 * grub-core/kern/powerpc/cache_flush.S: ... here.
17715 * grub-core/lib/efi/relocator.c: New file.
17716 * grub-core/lib/i386/relocator.c: Rewritten.
17717 * grub-core/lib/i386/relocator16.S: New file.
17718 * grub-core/lib/i386/relocator32.S: Likewise.
17719 * grub-core/lib/i386/relocator64.S: Likewise.
17720 * grub-core/lib/i386/relocator_asm.S: Rewritten.
17721 * grub-core/lib/i386/relocator_common.S: New file.
17722 * grub-core/lib/ieee1275/relocator.c: Likewise.
17723 * grub-core/lib/mips/relocator.c: Rewritten.
17724 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
17725 stylistic adjustments.
17726 * grub-core/lib/powerpc/relocator.c: New file.
17727 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
17728 * grub-core/lib/relocator.c: Rewritten.
17729 * grub-core/lib/x86_64/relocator_asm.S: New file.
17730 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
17731 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
17732 (bsd_tag): New struct.
17733 (tags): New variable.
17734 (tags_last): Likewise.
17735 (netbsd_module): New struct.
17736 (netbsd_mods): New variable.
17737 (netbsd_mods_last): Likewise.
17738 (openbsd_opts): New parameter "serial".
17739 (OPENBSD_SERIAL_ARG): New definition.
17740 (netbsd_opts): New parameter "serial".
17741 (NETBSD_SERIAL_ARG): New definition.
17742 (grub_freebsd_add_meta): Reorganised into ...
17743 (grub_bsd_add_meta): ...this. All users updated.
17744 (grub_freebsd_add_mmap): Reorganised into ...
17745 (generate_e820_mmap): ...this...
17746 (grub_bsd_add_mmap): ...and this. All users updated.
17747 (grub_freebsd_list_modules): Use tags.
17748 (grub_netbsd_add_meta_module): New function.
17749 (grub_netbsd_list_modules): Likewise.
17750 (grub_freebsd_boot): Use relocator and finish EFI.
17751 (grub_openbsd_boot): Likewise.
17752 (grub_netbsd_setup_video): New function.
17753 (grub_netbsd_add_modules): Likewise.
17754 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
17755 and finish EFI.
17756 (grub_bsd_unload): Unload tags.
17757 (grub_bsd_load_aout): Use relocator.
17758 (grub_bsd_elf32_size_hook): New function.
17759 (grub_bsd_elf32_hook): Use relocator.
17760 (grub_bsd_elf64_size_hook): New function.
17761 (grub_bsd_elf64_hook): Use relocator.
17762 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
17763 (grub_bsd_load): Zero-out openbsd_ramdisk.
17764 (grub_bsd_load): Use relocator.
17765 (grub_cmd_openbsd): Support serial.
17766 (grub_cmd_netbsd): Support modules.
17767 (grub_cmd_freebsd_module): Use relocator.
17768 (grub_netbsd_module_load): New function.
17769 (grub_cmd_netbsd_module): Likewise.
17770 (grub_cmd_openbsd_ramdisk): Likewise.
17771 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
17772 kopenbsd_ramdisk.
17773 (GRUB_MOD_FINI): Unregister new commands.
17774 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
17775 (grub_freebsd_load_elfmodule_obj): Use relocator.
17776 (grub_freebsd_load_elfmodule): Likewise.
17777 (grub_freebsd_load_elf_meta): Likewise.
17778 (grub_netbsd_load_elf_meta): New function.
17779 (grub_openbsd_find_ramdisk): Likewise.
17780 * grub-core/loader/i386/bsd_helper.S: Removed.
17781 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
17782 * grub-core/loader/i386/bsd_trampoline.S: Removed.
17783 * grub-core/loader/i386/efi/linux.c: Likewise.
17784 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
17785 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
17786 (DEFAULT_VIDEO_MODE): Likewise.
17787 (real_mode_target): New variable.
17788 (prot_mode_target): Likewise.
17789 (initrd_mem_target): Likewise.
17790 (relocator): Likewise.
17791 (efi_mmap_buf): Likewise.
17792 (efi_mmap_size): Likewise.
17793 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
17794 (free_pages): Use relocator.
17795 (allocate_pages): Account for efi_mmap and use relocator. Return error.
17796 (grub_linux_setup_video): Return error.
17797 (grub_linux_trampoline_start): Removed.
17798 (grub_linux_trampoline_end): Likewise.
17799 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
17800 andd video parameters depending on firmware.
17801 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
17802 [GRUB_MACHINE_EFI]: Pass EFI parameters.
17803 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
17804 (grub_cmd_initrd): Use relocator.
17805 * grub-core/loader/i386/linux_trampoline.S: Removed.
17806 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
17807 (elf_sec_entsize): Likewise.
17808 (elf_sec_shstrndx): Likewise.
17809 (elf_sections): Likewise.
17810 (grub_multiboot_load): Use relocator.
17811 (grub_multiboot_get_mbi_size): Account for sections.
17812 (grub_multiboot_make_mbi): Use relocator and support sections.
17813 (grub_multiboot_add_elfsyms): New function.
17814 (grub_multiboot_free_mbi): Free sections.
17815 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
17816 (grub_linux_real_target): Likewise.
17817 (grub_linux_real_chunk): Likewise.
17818 (grub_linux16_prot_size): Likewise.
17819 (grub_linux16_boot): Use relocator.
17820 (grub_linux_unload): Unload relocator.
17821 (grub_cmd_linux): Use relocator.
17822 (grub_cmd_initrd): Likewise.
17823 * grub-core/loader/i386/pc/ntldr.c: New file.
17824 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
17825 Don't try to guess CPU frequency.
17826 (grub_xnu_set_video): Stretch bitmap.
17827 (grub_xnu_boot): Use relocator.
17828 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
17829 (grub_linux_unload): Free relocator.
17830 (grub_linux_load32): Use relocator.
17831 (grub_linux_load64): Likewise.
17832 (grub_cmd_initrd): Likewise.
17833 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
17834 (grub_multiboot_unload): Unload relocator.
17835 (grub_cmd_multiboot): Use relocator.
17836 (grub_cmd_module): Likewise.
17837 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
17838 Use relocator and support sections.
17839 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
17840 (elf_sec_entsize): Likewise.
17841 (elf_sec_shstrndx): Likewise.
17842 (elf_sections): Likewise.
17843 (grub_multiboot_load): Use relocator.
17844 (grub_multiboot_get_mbi_size): Account for sections.
17845 (grub_multiboot_make_mbi): Use relocator and support sections.
17846 (grub_multiboot_add_elfsyms): New function.
17847 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
17848 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
17849 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
17850 Prototype changed. All users updated.
17851 (grub_xnu_align_heap): Simplified.
17852 (grub_xnu_writetree_toheap): Likewise.
17853 (grub_xnu_unload): Unload relocator.
17854 (grub_cmd_xnu_kernel): Use relocator.
17855 (grub_cmd_xnu_kernel64): Likewise.
17856 (grub_xnu_register_memory): Simplified.
17857 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
17858 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
17859 EFI is finished.
17860 (grub_console_checkkey): Likewise.
17861 (grub_console_getkey): Likewise.
17862 (grub_console_getwh): Likewise.
17863 (grub_console_getxy): Likewise.
17864 (grub_console_gotoxy): Likewise.
17865 (grub_console_cls): Likewise.
17866 (grub_console_setcolorstate): Likewise.
17867 (grub_console_setcursor): Likewise.
17868 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
17869 * grub-core/tests/boot/kbsd.init-i386.S: New file.
17870 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
17871 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
17872 * grub-core/tests/boot/kernel-8086.S: Likewise.
17873 * grub-core/tests/boot/kernel-i386.S: Likewise.
17874 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
17875 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
17876 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
17877 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
17878 * grub-core/tests/boot/knetbsd.cfg: Likewise.
17879 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
17880 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
17881 * grub-core/tests/boot/linux.cfg: Likewise.
17882 * grub-core/tests/boot/linux.init-i386.S: Likewise.
17883 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
17884 * grub-core/tests/boot/linux16.cfg: Likewise.
17885 * grub-core/tests/boot/multiboot.cfg: Likewise.
17886 * grub-core/tests/boot/multiboot2.cfg: Likewise.
17887 * grub-core/tests/boot/ntldr.cfg: Likewise.
17888 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
17889 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
17890 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
17891 New definition.
17892 * include/grub/dl.h (grub_dl_unload_all): Removed.
17893 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
17894 (grub_efi_finish_boot_services): Change prototype.
17895 (grub_efi_is_finished): New variable.
17896 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
17897 Changed prototype.
17898 (grub_efiemu_finish_boot_services): Removed.
17899 (grub_machine_efiemu_init_tables): New prototype.
17900 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
17901 (grub_elf64_phdr_iterate): Likewise.
17902 * include/grub/i386/bsd.h: Include relocator.h.
17903 (freebsd_tag_header): New struct.
17904 (grub_openbsd_bios_mmap): Removed.
17905 (grub_unix_real_boot): Removed.
17906 (grub_freebsd_load_elfmodule32): Changed prototype.
17907 (grub_freebsd_load_elfmodule_obj64): Likewise.
17908 (grub_freebsd_load_elf_meta32): Likewise.
17909 (grub_freebsd_load_elf_meta64): Likewise.
17910 (grub_freebsd_add_meta): Removed.
17911 (grub_netbsd_load_elf_meta32): New prototype.
17912 (grub_netbsd_load_elf_meta64): Likewise.
17913 (grub_bsd_add_meta): Likewise.
17914 (grub_openbsd_ramdisk_descriptor): New struct.
17915 (grub_openbsd_find_ramdisk32): New prototype.
17916 (grub_openbsd_find_ramdisk64): Likewise.
17917 * include/grub/i386/coreboot/loader.h: Removed.
17918 * include/grub/i386/efi/loader.h: Likewise.
17919 * include/grub/i386/ieee1275/loader.h: Likewise.
17920 * include/grub/i386/linux.h (linux_kernel_header): Change void *
17921 to grub_uint32_t.
17922 * include/grub/i386/loader.h: Removed.
17923 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
17924 value.
17925 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
17926 (grub_phys_addr_t): New type.
17927 (grub_vtop): New inline function.
17928 (grub_map_memory): Likewise.
17929 (grub_unmap_memory): Likewise.
17930 * include/grub/i386/multiboot/loader.h: Removed.
17931 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
17932 (NETBSD_BTINFO_CONSOLE): New definition.
17933 (NETBSD_BTINFO_SYMTAB): Likewise.
17934 (NETBSD_BTINFO_MODULES): Likewise.
17935 (NETBSD_BTINFO_FRAMEBUF): Likewise.
17936 (grub_netbsd_bootinfo): New struct.
17937 (grub_netbsd_btinfo_common): Use explicit bitsize.
17938 (grub_netbsd_btinfo_mmap_entry): Removed.
17939 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
17940 (grub_netbsd_btinfo_bootdisk): New struct.
17941 (grub_netbsd_btinfo_symtab): Likewise.
17942 (grub_netbsd_btinfo_serial): Likewise.
17943 (grub_netbsd_btinfo_modules): Likewise.
17944 (grub_netbsd_btinfo_framebuf): Likewise.
17945 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
17946 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
17947 Likewise.
17948 (grub_openbsd_bootargs): Use explicit bitsize.
17949 (grub_openbsd_bootarg_console): New struct.
17950 (GRUB_OPENBSD_COM_MAJOR): New definition.
17951 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
17952 * include/grub/i386/pc/efiemu.h: Removed.
17953 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
17954 * include/grub/i386/qemu/loader.h: Removed.
17955 * include/grub/i386/relocator.h: Rewritten.
17956 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
17957 * include/grub/mips/memory.h: New file.
17958 * include/grub/mips/multiboot.h: Rewritten.
17959 * include/grub/mips/relocator.h: Rewritten.
17960 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
17961 (grub_vtop): New function.
17962 (grub_map_memory): Likewise.
17963 (grub_unmap_memory): Likewise.
17964 * include/grub/misc.h (ALIGN_DOWN): New definition.
17965 * include/grub/mm.h (grub_mm_check_real): New proto.
17966 (GRUB_MM_CHECK): New definition.
17967 * include/grub/mm_private.h: New file.
17968 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
17969 (grub_multiboot_get_mbi_size): Removed.
17970 (grub_multiboot_make_mbi): Change prottype.
17971 (grub_multiboot_set_accepts_video): New proto.
17972 (grub_multiboot_add_elfsyms): Likewise.
17973 (grub_multiboot_payload_eip): New variable.
17974 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
17975 New prototype.
17976 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
17977 New definition.
17978 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
17979 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
17980 * include/grub/powerpc/ieee1275/loader.h: Removed.
17981 * include/grub/powerpc/memory.h: New file.
17982 * include/grub/powerpc/relocator.h: Likewise.
17983 * include/grub/relocator.h: Likewise.
17984 * include/grub/relocator_private.h: Likewise.
17985 * include/grub/sparc64/ieee1275/loader.h: Removed.
17986 * include/grub/x86_64/memory.h: New file.
17987 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
17988 (grub_xnu_heap_malloc): Likewise.
17989 (grub_xnu_heap_real_start): Removed.
17990 (grub_xnu_heap_start): Likewise.
17991 (grub_xnu_relocator): New variable.
17992 (grub_xnu_heap_target_start): Likewise.
17993 * tests/util/grub-shell.in: Support non-pc.
17994 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 17995
5303b85d
VS
179962010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17997
17998 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
17999 on malloc error.
18000 (grub_bidi_logical_to_visual): Check that malloc succeded.
18001 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18002 puts.
18003 (grub_xputs_normal): Likewise.
18004
d768d159
VS
180052010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18006
18007 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18008 extra_dist.
18009
180102010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18011
18012 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18013
5bf84df4
VS
180142010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18015
18016 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18017
3626810e
VS
180182010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18019
18020 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18021 dprintf.
18022
a7363f53
BC
180232010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18024
18025 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18026
902f75f6
VS
180272010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 * grub-core/normal/term.c (print_more): Fix a memory leak.
18030 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18031 (grub_xputs_normal): Likewise.
18032
3c707967
VS
180332010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18034
18035 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18036 the begining of the string
18037
2053cc07
VS
180382010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18039
18040 * grub-core/script/script.c (grub_script_parse): Free parsed on
18041 failure.
18042
46422ebf
VS
180432010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18044
18045 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18046 on failure.
18047
9e0fa3f6
VS
180482010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18049
18050 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18051 return.
18052
3393cf16
VS
180532010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18054
18055 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18056 (scroll_up): Fix a memory leak.
18057
b17540cb
VS
180582010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18059
18060 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18061 errors.
18062
67140446
VS
180632010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18064
18065 Handle USB pendrives exposed as floppies.
18066
18067 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18068 floppy.
18069 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18070 Check for partitions on all devices.
18071
e35e46fc
VS
180722010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18073
18074 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18075 (readkey): Likewise.
18076
d24c6190
BC
180772010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18078
18079 Multiple variable names support to "export" command.
18080
18081 * normal/context.c (grub_cmd_export): "export" command supports
18082 multiple variable names.
18083
04ddcc6a
ST
180842010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18085
18086 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18087 --target=drive output to Mach device name.
18088
0c8b61d8
BC
180892010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18090
18091 New Automake based build system for GRUB.
18092
18093 * ABOUT-NLS: New file.
18094 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18095 in Makefile.util.def file.
18096 * Makefile.util.def: New file. Autogen build definitions file for
18097 GRUB host utils.
18098 * conf/Makefile.common: New file. Common variables for GRUB host
18099 utils and target modules.
18100 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18101 * docs/Makefile.am: New file. Automake file for docs.
18102 * gentpl.py: New file. Python script to generate Autogen
18103 template.
18104 * grub-core/Makefile.am: New file. GRUB target modules' rules
18105 that doesn't fit in Makefile.core.def file.
18106 * grub-core/Makefile.core.def: New file. Autogen build
18107 definitions file for GRUB target modules.
18108 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18109 specific setjmp.S file.
18110 * po/Makefile.am: New file.
18111
18112 * .bzrignore: New ignores.
18113 * INSTALL: New requirements, without Ruby.
18114 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18115 * autogen.sh: Updated to invoke autogen as necessary.
18116 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18117 and defines for Automake conditionals.
18118 * geninit.sh: Refactoring.
18119
18120 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18121 necessary.
18122 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18123 New prototype.
18124
18125 * include/grub/test.h: Fix functional test modules' naming.
18126 * grub-core/tests/example_functional_test.c: Fix test module name.
18127
18128 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18129 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18130 * util/grub-editenv.c: Likewise.
18131 * util/grub-fstest.c: Likewise.
18132 * util/grub-mkdevicemap.c: Likewise.
18133 * util/grub-mkfont.c: Likewise.
18134 * util/grub-mkimage.c: Likewise.
18135 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18136 * util/grub-probe.c: Likewise.
18137 * util/grub-script-check.c: Likewise.
18138 * util/i386/pc/grub-setup.c: Likewise.
18139 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18140
18141 * tests/util/grub-shell.in: Fix override directory path.
18142 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18143 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18144
18145 * util/lvm.c: Update #includes.
18146 * util/raid.c: Likewise.
18147 * util/resolve.c: Likewise.
18148 * grub-core/bus/emu/pci.c: Likewise.
18149 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18150 * grub-core/lib/posix_wrap/string.h: Likewise.
18151 * grub-core/kern/emu/main.c: Likewise.
18152
18153 * grub-core/gensymlist.sh: New file. Script for generating kernel
18154 symbols file.
18155 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18156
18157 * grub-core/gentrigtables.c: Fix unused variable warnings.
18158
18159 * Makefile.in: Removed.
18160 * conf/any-emu.rmk: Removed.
18161 * conf/common.rmk: Removed.
18162 * conf/i386-coreboot.rmk: Removed.
18163 * conf/i386-efi.rmk: Removed.
18164 * conf/i386-ieee1275.rmk: Removed.
18165 * conf/i386-multiboot.rmk: Removed.
18166 * conf/i386-pc.rmk: Removed.
18167 * conf/i386-qemu.rmk: Removed.
18168 * conf/i386.rmk: Removed.
18169 * conf/mips-yeeloong.rmk: Removed.
18170 * conf/mips.rmk: Removed.
18171 * conf/powerpc-ieee1275.rmk: Removed.
18172 * conf/sparc64-ieee1275.rmk: Removed.
18173 * conf/tests.rmk: Removed.
18174 * conf/x86-efi.rmk: Removed.
18175 * conf/x86_64-efi.rmk: Removed.
18176 * gendistlist.sh: Removed.
18177 * geninitheader.sh: Removed.
18178 * genkernsyms.sh.in: Removed.
18179 * genmk.rb: Removed.
18180 * gensymlist.sh.in: Removed.
18181 * mkinstalldirs: Removed.
18182 * boot: Moved ...
18183 * grub-core/boot: ... to here.
18184 * bus: Moved ...
18185 * grub-core/bus: ... to here.
18186 * commands: Moved ...
18187 * grub-core/commands: ... to here.
18188 * disk: Moved ...
18189 * grub-core/disk: ... to here.
18190 * efiemu: Moved ...
18191 * grub-core/efiemu: ... to here.
18192 * font: Moved ...
18193 * grub-core/font: ... to here.
18194 * fs: Moved ...
18195 * grub-core/fs: ... to here.
18196 * gencmdlist.sh: Moved ...
18197 * grub-core/gencmdlist.sh: ... to here.
18198 * genemuinit.sh: Moved ...
18199 * grub-core/genemuinit.sh: ... to here.
18200 * genemuinitheader.sh: Moved ...
18201 * grub-core/genemuinitheader.sh: ... to here.
18202 * genfslist.sh: Moved ...
18203 * grub-core/genfslist.sh: ... to here.
18204 * genhandlerlist.sh: Moved ...
18205 * grub-core/genhandlerlist.sh: ... to here.
18206 * genmoddep.awk: Moved ...
18207 * grub-core/genmoddep.awk: ... to here.
18208 * genmodsrc.sh: Moved ...
18209 * grub-core/genmodsrc.sh: ... to here.
18210 * genpartmaplist.sh: Moved ...
18211 * grub-core/genpartmaplist.sh: ... to here.
18212 * genparttoollist.sh: Moved ...
18213 * grub-core/genparttoollist.sh: ... to here.
18214 * genterminallist.sh: Moved ...
18215 * grub-core/genterminallist.sh: ... to here.
18216 * gentrigtables.c: Moved ...
18217 * grub-core/gentrigtables.c: ... to here.
18218 * genvideolist.sh: Moved ...
18219 * grub-core/genvideolist.sh: ... to here.
18220 * gettext: Moved ...
18221 * grub-core/gettext: ... to here.
18222 * gfxmenu: Moved ...
18223 * grub-core/gfxmenu: ... to here.
18224 * gnulib: Moved ...
18225 * grub-core/gnulib: ... to here.
18226 * hello: Moved ...
18227 * grub-core/hello: ... to here.
18228 * hook: Moved ...
18229 * grub-core/hook: ... to here.
18230 * io: Moved ...
18231 * grub-core/io: ... to here.
18232 * kern: Moved ...
18233 * grub-core/kern: ... to here.
18234 * lib: Moved ...
18235 * grub-core/lib: ... to here.
18236 * loader: Moved ...
18237 * grub-core/loader: ... to here.
18238 * mmap: Moved ...
18239 * grub-core/mmap: ... to here.
18240 * normal: Moved ...
18241 * grub-core/normal: ... to here.
18242 * partmap: Moved ...
18243 * grub-core/partmap: ... to here.
18244 * parttool: Moved ...
18245 * grub-core/parttool: ... to here.
18246 * script: Moved ...
18247 * grub-core/script: ... to here.
18248 * term: Moved ...
18249 * grub-core/term: ... to here
18250 * tests/example_functional_test.c: Moved ...
18251 * grub-core/tests/example_functional_test.c: ... to here.
18252 * tests/lib/functional_test.c: Moved ...
18253 * grub-core/tests/lib/functional_test.c: ... to here.
18254 * tests/lib/test.c: Moved ...
18255 * grub-core/tests/lib/test.c: ... to here.
18256 * video: Moved ...
18257 * grub-core/video: ... to here.
18258
645586e6
BC
182592010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18260
18261 Replace --enable-grub-emu-modules with grub-emu-lite.
18262
18263 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18264 cache.S.
18265
18266 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18267 * kern/emu/full.c: New file. For grub-emu specific initialization.
18268 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18269 * kern/emu/main.c: Call initialization function grub_emu_init.
18270
18271 * Makefile.in: Include grub-emu-lite in install.
18272 * commands/parttool.c: Use grub_no_autoload to differentiate
18273 between grub-emu and grub-emu-lite.
18274 * include/grub/misc.h: New variable grub_no_autoload.
18275
18276 * conf/any-emu.rmk: New rules for grub-emu-lite.
18277 * configure.ac: Remove --enable-grub-emu-modules.
18278 * genmk.rb: Cleanup unnecessary rules.
18279 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18280
18281 * normal/main.c: Don't load list files on grub-emu-lite.
18282 * util/misc.c (grub_arch_sync_caches): Removed.
18283
f86a4030
CW
182842010-08-23 Colin Watson <cjwatson@ubuntu.com>
18285
18286 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18287 grub-mkimage rather than grub-mkelfimage.
18288 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18289
06776944
VS
182902010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18291
18292 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18293 a key after CapsLock or NumLock. It's just a qemu bug.
18294
df262419
VS
182952010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18296
18297 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18298 needed by libusb wrapper.
18299
b40ea81b
ST
183002010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18301
18302 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18303
dee50575
VS
183042010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18305
18306 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18307 --nounzip is passed.
18308
fb1d7b79
VS
183092010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18310
18311 USB hotunplugging and USB serial support.
18312
18313 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18314 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18315 (grub_uhci_transfer): Respect timeout and set *actual.
18316 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18317 non-standard length.
18318 (grub_usb_device_attach): Autoload modules.
18319 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18320 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18321 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18322 users updated.
18323 (grub_usb_add_hub): Fill nports and children.
18324 (attach_root_port): Receive hub instead of controller.
18325 All users updated. Fill hub->devices.
18326 (grub_usb_root_hub): Allocate hub->devices.
18327 (detach_device): New function.
18328 (poll_nonroot_hub): Fill children and detach devices.
18329 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18330 actual arguments. All users updated.
18331 (grub_usb_bulk_read_extended): New function.
18332 * bus/usb/serial/common.c: New file.
18333 * bus/usb/serial/ftdi.c: Likewise.
18334 * bus/usb/serial/pl2303.c: Likewise.
18335 * commands/terminal.c (handle_command): Support wildcard.
18336 * commands/usbtest.c: Output "Unknown" instead of empty string.
18337 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18338 (usbserial_common_mod_SOURCES): New variable.
18339 (usbserial_common_mod_CFLAGS): Likewise.
18340 (usbserial_common_mod_LDFLAGS): Likewise.
18341 (pkglib_MODULES): Add usbserial_pl2303.mod.
18342 (usbserial_pl2303_mod_SOURCES): New variable.
18343 (usbserial_pl2303_mod_CFLAGS): Likewise.
18344 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18345 (pkglib_MODULES): Add usbserial_ftdi.mod.
18346 (usbserial_ftdi_mod_SOURCES): New variable.
18347 (usbserial_ftdi_mod_CFLAGS): Likewise.
18348 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18349 (pkglib_MODULES): Add serial.mod.
18350 (serial_mod_SOURCES): New variable.
18351 (serial_mod_CFLAGS): Likewise.
18352 (serial_mod_LDFLAGS): Likewise.
18353 * conf/i386-pc.rmk: Likewise.
18354 * conf/mips-yeeloong.rmk: Likewise.
18355 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18356 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18357 * disk/usbms.c (first_available_slot): New variable.
18358 (grub_usbms_attach): Don't reuse free slots due to potential cache
18359 problems.
18360 * include/grub/serial.h: Moved to ..
18361 * include/grub/ns8250.h: ...this.
18362 * include/grub/serial.h: New file.
18363 * include/grub/term.h (grub_term_poll_usb): New variable.
18364 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18365 readkey. All users updated.
18366 (grub_terminfo_output_state): Pass term to put.
18367 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18368 (grub_usb_controller_dev): Add timeout and actual arguments to
18369 transfer. All users updated.
18370 (grub_usb_interface): New field detach_data.
18371 (grub_usb_device): New fields children and nports.
18372 (grub_usb_ep_type_t): New type.
18373 (grub_usb_get_ep_type): New function.
18374 (grub_usb_bulk_read_extended): Likewise.
18375 * include/grub/usbdesc.h (grub_usb_desc): New type.
18376 * include/grub/usbserial.h: New file.
18377 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18378 * kern/term.c (grub_term_poll_usb): New variable.
18379 (grub_getkey): Call grub_term_poll_usb if set.
18380 (grub_checkkey): Likewise.
18381 (grub_getkeystatus): Likewise.
18382 * term/serial.c: Moved controller-specific parts to ...
18383 * term/ns8250.c: ... here.
18384 * term/serial.c: Mostly rewritten.
18385 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18386 according to spec.
18387
21a313de
RM
183882010-08-20 Robert Millan <rmh@gnu.org>
18389
18390 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18391 a separate module and maybe other interesting combinations.
18392
18393 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18394 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18395 (kfreebsd_entry): Add generic filesystem module load routine.
18396 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18397
63c734a6
CW
183982010-08-20 Colin Watson <cjwatson@ubuntu.com>
18399
18400 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18401 "numcenter" (I misunderstood the purpose of this entry).
18402 * docs/grub.texi (sendkey): Likewise.
18403
c4d16542
CW
184042010-08-20 Colin Watson <cjwatson@ubuntu.com>
18405
18406 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18407 status flag options; simply omitting the option is equivalent and
18408 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18409 (keysym_table): Rename "num5numlock" to "numlock".
18410 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18411 can uniformly say that only the last of multiple `sendkey'
18412 invocations has any effect.
18413 * docs/grub.texi (sendkey): New section.
18414
93541d66
CW
184152010-08-19 Colin Watson <cjwatson@ubuntu.com>
18416
18417 * commands/i386/pc/sendkey.c (options): Fix three typos.
18418
b4ece5e1
VS
184192010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18420
18421 Implement sendkey support.
18422
18423 * commands/i386/pc/sendkey.c: New file.
18424 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18425 (sendkey_mod_SOURCES): New variable.
18426 (sendkey_mod_CFLAGS): Likewise.
18427 (sendkey_mod_LDFLAGS): Likewise.
18428
51f1f5af
CW
184292010-08-18 Colin Watson <cjwatson@ubuntu.com>
18430
18431 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18432 fix warnings from Autoconf.
18433
9da94e05
CW
184342010-08-18 Colin Watson <cjwatson@ubuntu.com>
18435
18436 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18437 to avoid false positives with some assemblers that output things
18438 like "someprefix_func" as part of their output.
18439
729a0f2e
RM
184402010-08-15 Robert Millan <rmh@gnu.org>
18441
18442 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18443 errors.
18444 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18445 grub_get_libzfs_handle() errors.
18446
f3710e08
RM
184472010-08-14 Robert Millan <rmh@gnu.org>
18448
18449 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18450 filesystem is not ZFS.
18451
7a3c13de
BC
184522010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18453
18454 Fix for misspelled color names defaulting to black/black (bug
18455 reported by Doug Nazar)
18456
18457 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18458 status to prototype.
18459 * normal/color.c (grub_parse_color_name_pair): Return failure
18460 status.
18461 (grub_env_write_color_normal): Ignore bad color names.
18462 (grub_env_write_color_highlight): Likewise.
18463 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18464
ab8ba50d
BC
184652010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18466
18467 "shift" command support to GRUB script.
18468
18469 * include/grub/script_sh.h (grub_script_shift): New prototype.
18470 * script/execute.c (grub_script_shift): New function.
18471 * script/main.c (grub_script_init): Register shift command.
18472 (grub_script_fini): Unregister shift command.
18473 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18474
18475 * tests/grub_script_shift.in: New testcase.
18476 * conf/tests.rmk: Rules for new testcase.
18477
4d61999e
BC
184782010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18479
18480 "continue" command support to GRUB script.
18481
18482 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18483 (grub_script_break): Continue support.
18484 * script/main.c (grub_script_init): Register continue command.
18485 (grub_script_fini): Unregister continue command.
18486
18487 * tests/grub_script_continue.in: New testcase.
18488 * conf/tests.rmk: Rules for new testcase.
18489
4df51e00
BC
184902010-08-12 BVK Chaitanya <bvk@dbook>
18491
18492 "break" command support to GRUB script.
18493
18494 * conf/common.rmk: Rule updates to grub-script-check.
18495 * include/grub/misc.h (grub_min): New function.
18496 * include/grub/script_sh.h (grub_script_init): New prototype.
18497 (grub_script_fini): New prototype.
18498 (grub_script_break): New prototype.
18499 * script/main.c (grub_script_init): New function.
18500 (grub_script_fini): New function.
18501 * script/execute.c (grub_script_break): New function.
18502 * normal/main.c: Calls to grub_script_{init,fini}.
18503 * util/grub-script-check.c (grub_script_break): New function.
18504
18505 * tests/grub_script_break.in: New testcase.
18506 * conf/tests.rmk: Rules for new test case.
18507
f12c8420
BC
185082010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18509
18510 Function parameters support to GRUB script.
18511
18512 * script/yylex.l (VARIABLE): Regular expression update.
18513 * script/function.c (grub_script_function_call): Moved ...
18514 * script/execute.c (grub_script_function_call): ... to here.
18515 (grub_script_execute_arglist_to_argv): Removed.
18516 (grub_script_arglist_to_argv): New function.
18517 * script/argv.c: New file.
18518 (grub_script_argv_free): New function.
18519 (grub_script_argv_next): Likewise.
18520 (grub_script_argv_append): Likewise.
18521 (grub_script_argv_split_append): Likewise.
18522 * include/grub/script_sh.h (grub_script_argv): New struct.
18523 (grub_script_argv_free): New function.
18524 (grub_script_argv_next): Likewise.
18525 (grub_script_argv_append): Likewise.
18526 (grub_script_argv_split_append): Likewise.
18527
18528 * conf/common.rmk (normal.mod): New source script/argv.c.
18529
18530 * tests/grub_script_echo1.in: More tests.
18531 * tests/grub_script_vars1.in: Likewise.
18532 * tests/grub_script_functions.in: New test case.
18533 * conf/tests.rmk: Rules for new testcase.
18534
8022b748
BC
185352010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18536
18537 Remove grub_script_cmdblock struct.
18538
18539 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18540 * script/parser.y: Likewise.
18541 * script/execute.c: Rename cmdblock suffix to cmdlist.
18542 * script/script.c: Likewise.
18543 * util/grub-script-check.c: Likewise.
18544
79a6ba61
YB
185452010-08-11 Yves Blusseau <blusseau@zetam.org>
18546
18547 * .bzrignore: add grub-macho2img
18548
d04b9414
VS
185492010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18550
18551 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18552
f947ab49
VS
185532010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18554
18555 Remove the dump of sm712 initialisation sequence.
18556
18557 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18558 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18559 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18560 (GRUB_VGA_CR_*): Added many registers.
18561 (GRUB_VGA_SR_*): Likewise.
18562 (GRUB_VGA_GR_*): Likewise.
18563 (grub_vga_write_arx): New function.
18564 (grub_video_hw_config): New struct.
18565 (grub_vga_set_geometry): New function.
18566 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18567 GRUB_PCI_CLASS_SUBCLASS_VGA.
18568 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18569 * video/sm712.c (grub_sm712_write_reg): New function
18570 (grub_sm712_read_reg): Likewise.
18571 (grub_sm712_sr_write): Likewise.
18572 (grub_sm712_gr_write): Likewise.
18573 (grub_sm712_cr_write): Likewise.
18574 (grub_sm712_write_arx): Likewise.
18575 (grub_sm712_cr_shadow_write): Likewise.
18576 (grub_sm712_write_dda_lookup): Likewise.
18577 (grub_video_sm712_setup): Initialise the video rather then
18578 blindly replay the dump.
18579 (main) [TEST]: Add a routine to be able to compile as standalone for
18580 tests.
18581 * video/sm712_init.c (sm712_init): Removed.
18582 (sm712_sr_seq1): New array.
18583 (sm712_sr_seq2): Likewise.
18584
f0206638
VS
185852010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18586
18587 * include/grub/vga.h: Add missing grub/pci.h include.
18588
2764da3b
YB
185892010-08-10 Yves Blusseau <blusseau@zetam.org>
18590
18591 * util/grub-macho2img.c (main): fix typo
18592
cf0c775e
VS
185932010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18594
18595 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18596 (grub_vga_gr_read): Likewise.
18597 (grub_vga_cr_write): Likewise.
18598 (grub_vga_cr_read): Likewise.
18599 (grub_vga_sr_write): Likewise.
18600 (grub_vga_sr_read): Likewise.
18601 (grub_vga_palette_read): Likewise.
18602 (grub_vga_palette_write): Likewise.
18603 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18604 (grub_sm712_sr_read): New function.
18605 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18606 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18607
07f360e9
RM
186082010-08-09 Robert Millan <rmh@gnu.org>
18609
18610 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18611 out unused variables on non-ZFS build.
18612
346c2072
RM
186132010-08-08 Robert Millan <rmh@gnu.org>
18614
18615 Fix path generation for sub-filesystems in ZFS.
18616
18617 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18618 missing slash.
18619
71175420
RM
186202010-08-08 Robert Millan <rmh@gnu.org>
18621
18622 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18623
0d8286f3
RM
186242010-08-08 Robert Millan <rmh@gnu.org>
18625
18626 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18627 exist, issue a proper error message (rely on `ls' for translated
18628 strings).
18629
55dd2924
RM
186302010-08-08 Robert Millan <rmh@gnu.org>
18631
18632 Fix grub-probe invocation.
18633
18634 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18635
d3dd9e80
RM
186362010-08-04 Robert Millan <rmh@gnu.org>
18637
18638 * configure.ac: Remove checks for getfsstat() and getmntany().
18639 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18640 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18641 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18642 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18643 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18644 function.
18645 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18646 via find_mount_point_from_dir() and getfsstat() / getmntany().
18647
0de22aa9
RM
186482010-08-04 Robert Millan <rmh@gnu.org>
18649
18650 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18651 (grub_find_zpool_from_mount_point): Merge into ...
18652 (grub_find_zpool_from_dir): ... this.
18653 * kern/emu/misc.c: Likewise.
18654
18655 * kern/emu/misc.c
18656 (grub_make_system_path_relative_to_its_root): Replace
18657 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18658 with grub_find_zpool_from_dir().
18659 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18660
62858144
RM
186612010-08-04 Robert Millan <rmh@gnu.org>
18662
18663 Support OpenSolaris in ZFS device resolution.
18664
18665 * configure.ac: Check for getmntany().
18666 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
18667 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
18668 support.
18669
9dd6fd50
RM
186702010-08-03 Robert Millan <rmh@gnu.org>
18671
18672 Fix grub-emu build.
18673
18674 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
18675 * include/grub/emu/misc.h: ... here.
18676
18677 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
18678 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
18679
18680 * util/misc.c: Remove `<grub/util/libzfs.h>'.
18681 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
18682 (grub_get_libzfs_handle): Move to ...
18683 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
18684 (grub_get_libzfs_handle): ... here.
18685
c9f7ff97
BC
186862010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
18687
18688 * script/execute.c (grub_script_execute_cmdline): Check for NULL
18689 as command name case.
18690
a870a783
CW
186912010-08-02 Colin Watson <cjwatson@ubuntu.com>
18692
18693 * disk/raid.c (insert_array): Select unique numbers for named arrays
18694 as well, for use as keys in the disk cache.
18695
c7db243b
RM
186962010-08-01 Robert Millan <rmh@gnu.org>
18697
18698 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
18699 kFreeBSD device name, except on ZFS where the filesystem label is
18700 used.
18701 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
18702 `/boot/zfs/zpool.cache'.
18703 Set mountfrom kernel variable using ${kfreebsd_device}.
18704
f7abdefb
RM
187052010-08-01 Robert Millan <rmh@gnu.org>
18706
18707 Make it even harder to use uninitialized `libzfs_handle' (and
18708 make the interface a bit simpler).
18709
18710 * include/grub/util/misc.h (grub_util_init_libzfs)
18711 (libzfs_handle): Remove.
18712 (grub_get_libzfs_handle): New prototype.
18713
18714 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
18715 attribute.
18716 (grub_util_init_libzfs): Remove.
18717 (grub_get_libzfs_handle): New function.
18718
18719 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
18720 grub_get_libzfs_handle() to obtain a libzfs handle instead of
18721 accessing `libzfs_handle' directly.
18722
c882acc0
RM
187232010-08-01 Robert Millan <rmh@gnu.org>
18724
18725 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18726 (grub_find_zpool_from_mount_point): New function prototypes.
18727
18728 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18729 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18730
18731 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18732 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18733 `static' attribute.
18734
18735 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18736 finding zpool from mount point into ...
18737 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18738
18739 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18740 requested path is part of a ZFS pool, use
18741 grub_find_zpool_from_mount_point() to detect its filesystem name,
18742 and generate a path with `/fsname@path' syntax.
18743
8bfe31d8
CW
187442010-08-01 Colin Watson <cjwatson@ubuntu.com>
18745
18746 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
18747 (void) rather than () so that this is a proper prototype.
18748
553df63d
VS
187492010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18750
18751 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
18752
8687cf07
VS
187532010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
18754
18755 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
18756 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
18757
ea9be8ea
CW
187582010-08-01 Colin Watson <cjwatson@ubuntu.com>
18759
18760 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
18761
6eea041a
CW
187622010-08-01 Colin Watson <cjwatson@ubuntu.com>
18763
18764 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
18765
2cfb45df
CW
187662010-08-01 Colin Watson <cjwatson@ubuntu.com>
18767
18768 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
18769 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
18770 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
18771 disable gfxpayload.
18772 (Shell-like scripting): Add real content.
18773 (Serial terminal): Suggest `terminal_input serial; terminal_output
18774 serial' rather than putting the two commands on separate lines,
18775 since console input will be inoperative after the first command.
18776 (menuentry): Document --class, --users, and --hotkey options.
18777 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
18778 Vladimir Serbinenko).
18779
7decd202
VS
187802010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
187812010-08-01 Colin Watson <cjwatson@ubuntu.com>
18782
18783 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
18784
c882acc0
RM
187852010-08-01 Robert Millan <rmh@gnu.org>
18786
18787 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18788 (grub_find_zpool_from_mount_point): New function prototypes.
18789
18790 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
18791 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
18792
18793 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
18794 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
18795 `static' attribute.
18796
18797 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
18798 finding zpool from mount point into ...
18799 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
18800
18801 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
18802 requested path is part of a ZFS pool, use
18803 grub_find_zpool_from_mount_point() to detect its filesystem name,
18804 and generate a path with `/fsname@path' syntax.
18805
deb0caa3
RM
188062010-08-01 Robert Millan <rmh@gnu.org>
18807
18808 Prevent accidental use of uninitialized libzfs_handle.
18809
18810 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
18811 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
18812 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
18813
ce04ef47
CW
188142010-08-01 Colin Watson <cjwatson@ubuntu.com>
18815
18816 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
18817 util/grub.d/10_linux.in). Fixes Debian bug #591093.
18818
ebf53056
RM
188192010-08-01 Robert Millan <rmh@gnu.org>
18820
18821 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 18822
3710bb6b
RM
188232010-07-31 Robert Millan <rmh@gnu.org>
18824
18825 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
18826
8072efeb
RM
188272010-07-31 Robert Millan <rmh@gnu.org>
18828
18829 * kern/emu/misc.c: Add missing license header.
18830
3169f4c7
RM
188312010-07-31 Robert Millan <rmh@gnu.org>
18832
18833 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
18834
18835 * include/grub/util/libnvpair.h: Include `<config.h>'.
18836 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
18837 declaring libnvpair prototypes ourselves.
18838 * include/grub/util/libzfs.h: Include `<config.h>'.
18839 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
18840 declaring libzfs prototypes ourselves.
18841
18842 (libzfs_handle): Moved to ...
18843 * include/grub/util/misc.h (libzfs_handle): ... here.
18844 Include `<grub/util/libzfs.h>'.
18845
c9a00aee
RM
188462010-07-30 Robert Millan <rmh@gnu.org>
18847
18848 * include/grub/emu/misc.h: Add missing license header.
18849
a184f9c8
RM
188502010-07-30 Robert Millan <rmh@gnu.org>
18851
18852 Enable `grub-probe -t device' resolution on ZFS.
18853
18854 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
18855 * include/grub/util/libnvpair.h: New file.
18856 * include/grub/util/libzfs.h: New file.
18857
18858 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
18859 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
18860 `<grub/util/libnvpair.h>'.
18861 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
18862
18863 (find_mount_point_from_dir): New static function.
18864 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
18865 function.
18866 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
18867 find_root_device_from_libzfs() before ressorting to find_root_device().
18868
18869 * include/grub/util/misc.h (grub_util_init_libzfs): New function
18870 prototype.
18871 * util/misc.c: Include `<grub/util/libzfs.h>'.
18872 (grub_util_init_libzfs): New function.
18873 [HAVE_LIBZFS] (libzfs_handle): New global variable.
18874 [HAVE_LIBZFS] (fini_libzfs): New static function.
18875 (grub_util_init_libzfs): New function.
18876 * util/grub-probe.c (main): Call grub_util_init_libzfs().
18877
f7790cdd
RM
188782010-07-30 Robert Millan <rmh@gnu.org>
18879
18880 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
18881 (xmalloc, xrealloc, xstrdup, xasprintf): Add
18882 `warn_unused_result' attribute.
18883 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
18884 (grub_xasprintf, grub_xvasprintf): Likewise.
18885 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
18886
0806b63c
RM
188872010-07-29 Robert Millan <rmh@gnu.org>
18888
18889 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
18890 (probe): Handle `PRINT_FS_LABEL'.
18891 (main): Handle `-t fs_label'.
18892
9f841f5c
RM
188932010-07-29 Robert Millan <rmh@gnu.org>
18894
18895 * configure.ac: Remove grub-mkisofs checks.
18896
46371121
VS
188972010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
18898
18899 * util/ieee1275/grub-install.in: Don't use empty grub_device.
18900 Reported by: Lennart Sorensen.
18901
189022010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18903
18904 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
18905 prior to terminal_input/terminal_output separation. It's been over 1.5
18906 years and those versions weren't widely deployed.
18907
a9600892
CW
189082010-07-22 Colin Watson <cjwatson@ubuntu.com>
18909
18910 * disk/raid.c (insert_array): Don't count named arrays when looking
18911 for unused array numbers.
697e053c 18912 Reported and tested by: Michael Guntsche.
a9600892 18913
c03507df
CW
189142010-07-20 Colin Watson <cjwatson@ubuntu.com>
18915
18916 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
18917 implementation of this so that grub-emu links again, with a note
18918 that this should support hotplugging in the future.
18919
b26f1c11
CW
189202010-07-20 Colin Watson <cjwatson@ubuntu.com>
18921
18922 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
18923
efc9d7f1
CW
189242010-07-20 Colin Watson <cjwatson@ubuntu.com>
18925
18926 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
18927 handle on failure.
18928 (grub_loopback_close): Remove empty function.
18929 (grub_loopback_dev): Remove close method.
18930
dd8ff5c9
CW
189312010-07-20 Colin Watson <cjwatson@ubuntu.com>
18932
18933 Disable EFI cursor when the EFI console becomes inactive.
18934
18935 * term/efi/console.c (grub_efi_console_init): New function.
18936 (grub_efi_console_fini): New function.
18937 (grub_console_term_output): Register init and fini methods.
18938
5e3bec67
VS
189392010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18940
18941 * tests/util/grub-shell-tester.in: Remove bashism and declare as
18942 sh script.
18943
afaec079
VS
189442010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18945
18946 * disk/loopback.c (grub_loopback): Replace filename with file.
18947 (delete_loopback): Handle new semantics.
18948 (grub_cmd_loopback): Likewise.
18949 (grub_loopback_iterate): Likewise.
18950 (grub_loopback_close): Likewise.
18951
a6a11f3c
VS
189522010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18953
18954 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
18955 with -p "".
18956 Reported by: Tito Keitel.
18957
64a638b0
VS
189582010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18959
18960 * docs/grub.texi (Naming convention): Document new naming convention.
18961
ab8ba957
VS
189622010-07-20 Vadim Solomin <vadic052@gmail.com>
189632010-07-20 Colin Watson <cjwatson@ubuntu.com>
18964
18965 Generate device.map in something closer to the old ordering.
18966
18967 * util/deviceiter.c (struct device): New declaration.
18968 (compare_file_names): Rename to ...
18969 (compare_devices): ... this. Sort by kernel name in preference to
18970 the stable by-id name, but keep the latter as a fallback comparison.
18971 Update header comment.
18972 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
18973 of `struct device' rather than of plain file names.
18974
a29d6a4b
TF
189752010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
18976
18977 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
18978 on i386.
18979
39d824e8
VS
189802010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
18981
18982 * commands/acpi.c (setup_common_tables): Use sizeof instead of
18983 hardcoding size.
18984 (setv1table): Likewise.
18985
f058276b
FZ
189862010-07-20 Colin Watson <cjwatson@ubuntu.com>
18987
18988 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
18989 removing the homehost if present.
18990 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
18991 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
18992 removing the homehost if present.
18993 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
18994 if possible.
18995 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
18996
18997 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
18998 parameter. Set its pointer target to 0.
18999 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19000 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19001 `data_offset' value from the superblock for 1.x metadata.
19002 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19003 data on the device.
19004 (insert_array): Record the start sector of data on the device.
19005 (grub_raid_register): Pass start_sector parameters to
19006 grub_raid_list->detect and insert_array.
19007 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19008 member.
19009 (struct grub_raid): Add start_sector parameter to `detect'.
19010
19011 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19012 __attribute__ ((packed)), leaving a comment.
19013 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19014 (grub_mdraid_detect_09): ... here and ...
19015 (grub_mdraid_detect_1x): ... here.
19016
190172010-07-20 Peter Henn <peter.henn@web.de>
19018
19019 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19020 chunk size and disk size, which are already given as sector counts
19021 as distinct from the 0.90 units. Fetch the correct device number
19022 from the role table instead of using the table index.
19023
190242010-07-20 Felix Zielcke <fzielcke@z-51.de>
19025
19026 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19027 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19028 (WriteMostly1): New macro.
19029 Set array->name to NULL for metadata format 0.90. Add support for
19030 metadata 1.x. Fix some comments.
19031 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19032 few comments.
19033 * util/getroot.c (grub_util_get_grub_dev): Add support for
19034 /dev/md/name style devices.
19035
4b761da9
CW
190362010-07-20 Colin Watson <cjwatson@ubuntu.com>
19037
19038 * .bzrignore: Ignore 20_linux_xen.
19039
5771289a
CW
190402010-07-17 Colin Watson <cjwatson@ubuntu.com>
19041
19042 * util/import_unicode.py: Remove unnecessary imports.
19043
5dab68df
AN
190442010-07-17 Aleš Nesrsta <starous@volny.cz>
19045
19046 Hotplugging and USB hub support.
19047
19048 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19049 (grub_ohci): Likewise.
19050 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19051 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19052 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19053 (GRUB_OHCI_CTRL_EDS): Likewise.
19054 (GRUB_OHCI_BULK_EDS): Likewise.
19055 (GRUB_OHCI_TDS): Likewise.
19056 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19057 (grub_ohci_ed_phys2virt): New function.
19058 (grub_ohci_virt_to_phys): Likewise.
19059 (grub_ohci_td_phys2virt): Likewise.
19060 (grub_ohci_td_virt2phys): Likewise.
19061 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19062 attachment.
19063 (grub_ohci_find_ed): New function.
19064 (grub_ohci_alloc_td): Likewise.
19065 (grub_ohci_free_td): Likewise.
19066 (grub_ohci_free_tds): Likewise.
19067 (grub_ohci_transfer): Use previously allocated memory.
19068 (grub_ohci_portstatus): Reset status changed bit.
19069 (grub_ohci_detect_dev): Supply status changed.
19070 (grub_ohci_fini_hw): Free memory.
19071 (grub_ohci_restore_hw): Reallocate memory.
19072 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19073 Reset status change.
19074 (grub_uhci_detect_dev): Supply status_change.
19075 * bus/usb/usb.c (attach_hooks): New var.
19076 (grub_usb_device_attach): New function.
19077 (grub_usb_register_attach_hook_class): Likewise.
19078 (grub_usb_unregister_attach_hook_class): Likewise.
19079 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19080 (grub_usb_add_hub): Reset connection changed bit.
19081 (attach_root_port): New function.
19082 (grub_usb_root_hub): Likewise.
19083 (poll_nonroot_hub): Likewise.
19084 (grub_usb_poll_devices): Likewise.
19085 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19086 * disk/usbms.c (grub_usbms_open): Use device hooks.
19087 (grub_usbms_iterate) :Poll devices.
19088 (grub_usbms_finddevs): Split into ...
19089 (grub_usbms_attach): ... this ...
19090 (grub_usbms_attach): ... and this.
19091 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19092 in detect_dev.
19093 (grub_usb_interface): New fields attached and detach_hook.
19094 (grub_usb_attach_hook_class): New type.
19095 (grub_usb_attach_desc): New struct.
19096 (grub_usb_register_attach_hook_class): New function.
19097 (grub_usb_unregister_attach_hook_class): Likewise.
19098 (grub_usb_poll_devices): Likewise.
19099 (grub_usb_device_attach): Likewise.
19100 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19101 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19102
3222efaf
VS
191032010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19104
19105 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19106 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19107 delta determination style. Works with most NetBSD partitions too.
19108
139b714a
VS
191092010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19110
19111 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19112 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19113
986aad56
VS
191142010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19115
19116 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19117
99be513c
AB
191182010-07-14 Anton Blanchard <anton@samba.org>
19119
19120 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19121 ET_DYN files.
19122
18075f62
GS
191232010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19124
19125 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19126
8d9a5b15
GS
191272010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19128
19129 * kern/partition.c (grub_partition_check_containment): New function to
19130 check that a partition is physically contained in a parent. Since
19131 offsets are relative (and non-negative), this reduces to checking that
19132 the partition ends before its parent.
19133 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19134 (grub_partition_iterate): Likewise.
19135 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19136 comments.
19137 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19138 partitions that start before their parent, and add debug printfs.
19139
19563c25
CW
191402010-07-13 Colin Watson <cjwatson@ubuntu.com>
19141
19142 * Makefile.in (.SUFFIX): Spell correctly, as ...
19143 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19144 bare module name without `.mod', e.g. `test') tried to invoke a
19145 Modula-2 compiler.
19146
1a1f1e67
CW
191472010-07-13 Colin Watson <cjwatson@ubuntu.com>
19148
19149 * README: Point to the Info manual.
19150
811b0dca
JS
191512010-07-13 Jiro SEKIBA <jir@unicus.jp>
19152
19153 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19154 2nd superblock position from partition size.
19155
e4f4eafc
CW
191562010-07-10 Colin Watson <cjwatson@ubuntu.com>
19157
19158 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19159 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19160 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19161 outputs.
19162
4274c30f
VS
191632010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19164
19165 Restructure SCSI .id handling.
19166 Reported and tested by: Aleš Nesrsta.
19167
19168 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19169 (grub_atapi_dev): Changed .name to "ata". New field .id.
19170 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19171 (grub_usbms_dev): New field .id.
19172 * disk/scsi.c (grub_scsi_iterate): Generate name.
19173 (grub_scsi_open): Parse name.
19174 * include/grub/scsi.h (grub_make_scsi_id): New function.
19175 (grub_scsi_dev): Change iterate and open to number instead of naming
19176 busses. All users updated.
19177 (grub_scsi): Remove name. Add .bus.
19178
5bc24388
VS
191792010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19180
19181 * commands/help.c (grub_cmd_help): Fix a typo.
19182
249975ba
VS
191832010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19184
19185 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19186 Reported and tested by: Colin Watson.
19187
3eaac1a1
VS
191882010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19189
19190 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19191 in this context.
19192
becce1b1
VS
191932010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19194
19195 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19196
f7bf0918
CW
191972010-07-07 Colin Watson <cjwatson@ubuntu.com>
19198
19199 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19200 indentation.
19201
0b0f9620
CW
192022010-07-06 Colin Watson <cjwatson@ubuntu.com>
19203
19204 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19205 and disk/raid6_recover.c.
19206 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19207 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19208
1e545469
CW
192092010-07-06 Colin Watson <cjwatson@ubuntu.com>
19210
19211 * term/gfxterm.c (repaint_schedulded): Rename to ...
19212 (repaint_scheduled): ... this. Update all callers.
19213 (repaint_was_schedulded): Rename to ...
19214 (repaint_was_scheduled): ... this. Update all callers.
19215
5357687a
CW
192162010-07-06 Colin Watson <cjwatson@ubuntu.com>
19217
19218 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19219 which we expect to be handled by upper layers.
19220
29d7e783
BC
192212010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19222
19223 * bus/usb/usbhub.c: #include time.h header.
19224
37582066
CW
192252010-07-06 Colin Watson <cjwatson@ubuntu.com>
19226
19227 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19228 entry_name also for entries without stat blocks (e.g. ".."); fixes
19229 corruption of the first entry in a directory.
19230
c8c06953
CW
192312010-07-06 Colin Watson <cjwatson@ubuntu.com>
19232
19233 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19234 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19235 doesn't work otherwise.
19236
e75056f1
CW
192372010-07-05 Colin Watson <cjwatson@ubuntu.com>
19238
19239 * docs/grub.texi (Features): Update list of supported file systems.
19240 (GNU/Linux): Update for GRUB 2.
19241 (Serial terminal): Remove mention of --disable-serial, which was a
19242 GRUB Legacy configure option. Update instructions to use
19243 `terminal_input' and `terminal_output' rather than `terminal'.
19244 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19245 configuration' and `Installing GRUB using grub-install'.
19246 (Menu entry editor): Update for GRUB 2.
19247 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19248 Document new -a, -u, and -v options.
19249 (initrd): New section.
19250 (initrd16): New section.
19251 (linux): New section.
19252 (linux16): New section.
19253 (search): The `var' argument to `--set' is optional.
19254 (GRUB only offers a rescue shell): Go into a little more detail on
19255 drive ordering.
19256
5cf69151
CW
192572010-07-05 Colin Watson <cjwatson@ubuntu.com>
19258
19259 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19260
e3f90044
CW
192612010-07-05 Colin Watson <cjwatson@ubuntu.com>
19262
19263 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19264 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19265
38d8f4f3
CW
192662010-07-05 Colin Watson <cjwatson@ubuntu.com>
19267
19268 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19269 install_prefix, in line with install_dos_part and install_bsd_part.
19270 Add new prefix variable, which is copied to install_prefix after
19271 comparing core.img in memory with the one read from disk in the
19272 no-embedding case, and use that rather than overwriting
19273 install_prefix immediately when installing to a partition.
19274 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19275 Bicakci.
19276
57ebd41e
GS
192772010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19278
19279 * configure.ac: Avoid == in test command, it's not portable.
19280 * util/grub.d/30_os-prober.in: Likewise.
19281
cb7f64b2
CW
192822010-07-04 Colin Watson <cjwatson@ubuntu.com>
19283
19284 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19285
6b654bb0
GS
192862010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19287
19288 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19289 multiple (top-level) partmaps.
19290
72a2026d
VS
192912010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19292
19293 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 19294 Reported by: Tino Keitel.
72a2026d 19295
df3eb88f
VS
192962010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19297
19298 Bidi and diacritics support.
19299
19300 * Makefile.in (widthspec.bin): New target.
19301 (widthspec.h): Likewise.
19302 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19303 * autogen.sh: Generate unidata.c.
19304 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19305 * commands/ls.c (grub_ls_list_devices): Likewise.
19306 (grub_ls_list_files): Likewise.
19307 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19308 (grub_mini_cmd_lsmod): Likewise.
19309 * commands/read.c: Likewise.
19310 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19311 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19312 * lib/arg.c (grub_arg_show_help): Likewise.
19313 * lib/crypto.c (grub_password_get): Likewise.
19314 * normal/auth.c (grub_username_get): Likewise.
19315 * normal/misc.c (grub_normal_print_device_info): Likewise.
19316 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19317 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19318 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19319 (normal/charset.c_DEPENDENCIES): New variable.
19320 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19321 (pkglib_MODULES): Remove charset.mod.
19322 (charset_mod_SOURCES): Removed.
19323 (charset_mod_CFLAGS): Likewise.
19324 (charset_mod_LDFLAGS): Likewise.
19325 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19326 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19327 and term/tparm.c.
19328 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19329 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19330 (kernel_img_HEADERS): Add terminfo.h.
19331 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19332 Fill ->font. Reverse ascii bitmaps.
19333 (grub_font_get_xheight): New function.
19334 * font/font.c (grub_font_get_string_width): Moved from here ...
19335 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19336 * font/font.c (grub_font_draw_string): Moved from here ...
19337 * gfxmenu/font.c (grub_font_draw_string): ... here.
19338 * font/font.c (grub_font_dup_glyph): New function.
19339 (grub_font_blit_glyph): Likewise.
19340 (grub_font_blit_glyph_mirror): Likewise.
19341 (blit_comb): Likewise.
19342 (grub_font_construct_dry_run): Likewise.
19343 (grub_font_get_constructed_device_width): Likewise.
19344 (grub_font_construct_glyph): Likewise.
19345 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19346 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19347 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19348 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19349 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19350 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19351 (grub_font_get_xheight): New proto.
19352 (grub_font_get_constructed_device_width): Likewise.
19353 (grub_font_construct_glyph): Likewise.
19354 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19355 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19356 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19357 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19358 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19359 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19360 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19361 (grub_console_getcharwidth): Likewise.
19362 * include/grub/misc.h (grub_xputs): New proto.
19363 (grub_puts): Inlined.
19364 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19365 (grub_normal_get_line_counter): Removed.
19366 (grub_install_newline_hook): Likewise.
19367 (grub_normal_get_char_counter): New proto.
19368 (grub_normal_reset_more): Likewise.
19369 (grub_xputs_normal): Likewise.
19370 * include/grub/powerpc/ieee1275/console.h: Removed.
19371 * include/grub/sparc64/ieee1275/console.h: Likewise.
19372 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19373 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19374 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19375 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19376 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19377 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19378 (grub_term_input): Pass reference to self. All users updated.
19379 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19380 Pass reference to self. New fields normal_color, highlight_color and
19381 data. All users updated.
19382 (grub_putchar): Removed.
19383 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19384 (grub_unicode_estimate_width): New function.
19385 (grub_term_getcharwidth): Add defaults.
19386 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19387 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19388 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19389 (grub_cls): Remove EXPORT_FUNC.
19390 (grub_setcolorstate): Inline.
19391 (grub_newline_hook): Removed.
19392 * include/grub/terminfo.h: Rewritten. All users updated.
19393 * include/grub/unicode.h: New file.
19394 * include/grub/video.h (grub_video_signed_rect): New type.
19395 * kern/emu/console.c (grub_console_highlight_color): Removed.
19396 (grub_console_normal_color): Likewise.
19397 (grub_console_standard_color): Made static.
19398 (grub_ncurses_putchar): Remove mapping.
19399 (grub_ncurses_getcharwidth): Removed.
19400 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19401 (grub_ncurses_setcolor): Removed.
19402 (grub_ncurses_getcolor): Likewise.
19403 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19404 (grub_console_putchar): ... this.
19405 (grub_console_putchar): Handle argument difference.
19406 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19407 console_init_early and console_init_lately.
19408 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19409 * kern/misc.c (grub_puts): Removed.
19410 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19411 (grub_vsnprintf_real): Remove str = NULL support.
19412 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19413 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19414 * kern/term.c (grub_putcode): Renamed to ...
19415 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19416 (grub_putchar): Removed.
19417 (grub_xputs_dumb): New function.
19418 (grub_xputs): New variable.
19419 * lib/charset.c: Move from here ...
19420 * normal/charset.c: ... to here.
19421 (grub_ucs4_to_utf8): New function.
19422 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19423 (join_types): New variable.
19424 (unpack_join): New function.
19425 (bidi_types): New variable.
19426 (unpack_bidi): New function.
19427 (get_bidi_type): Likewise.
19428 (get_join_type): Likewise.
19429 (is_mirrored): Likewise.
19430 (grub_unicode_get_comb_type): Likewise.
19431 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19432 (is_type_after): Likewise.
19433 (grub_unicode_aglomerate_comb): Likewise.
19434 (bidi_line_wrap): Likewise.
19435 (grub_bidi_line_logical_to_visual): Likewise.
19436 (grub_bidi_logical_to_visual): Likewise.
19437 (grub_unicode_mirror_code): Likewise.
19438 (grub_unicode_shape_code): Likewise.
19439 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19440 Don't use grub_putchar.
19441 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19442 (grub_normal_reader_init): Likewise.
19443 (grub_xputs_saved): New variable.
19444 (GRUB_MOD_INIT): Set grub_xputs.
19445 (GRUB_MOD_FINI): Restore grub_xputs.
19446 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19447 (menu_init): Avoid printing gfxmenu error.
19448 (show_menu): Use grub_normal_get_char_counter.
19449 * normal/menu_entry.c (update_screen): Fix out-of-array.
19450 (complete): Avoid NULL dereferencing.
19451 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19452 * normal/menu_text.c (print_spaces): Removed.
19453 (grub_print_ucs4): Likewise.
19454 (grub_print_message_indented): Use grub_print_ucs4.
19455 (print_message): Use grub_putcode.
19456 (print_entry): Hanlde diacritics.
19457 * normal/term.c (term_state): New type.
19458 (grub_more_lines): Removed.
19459 (term_states): New variable.
19460 (grub_normal_line_counter): Renamed to ..
19461 (grub_normal_char_counter): ...this. All users updated.
19462 (grub_normal_get_line_counter): Renamed to ...
19463 (grub_normal_get_char_counter): ... this.
19464 (grub_normal_reset_more): New function.
19465 (process_newline): Removed.
19466 (print_more): New function.
19467 (grub_install_newline_hook): Removed.
19468 (map_code): New function.
19469 (grub_puts_terminal): Use grub_print_ucs4.
19470 (putglyph): New function.
19471 (putcode_real): Likewise.
19472 (grub_putcode): Use putcode_real.
19473 (get_maxwidth): New function.
19474 (get_startwidth): Likewise.
19475 (print_ucs4_terminal): Likewise.
19476 (find_term_state): Likewise.
19477 (put_glyphs_terminal): Likewise.
19478 (print_backlog): Likewise.
19479 (print_ucs4_real): Likewise.
19480 (grub_print_ucs4): Likewise.
19481 (grub_xputs_normal): Likewise.
19482 * term/efi/console.c (grub_console_putchar): Output diacritics.
19483 (grub_console_getcharwidth): Removed.
19484 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19485 * term/gfxterm.c (clear_char): Free chars.
19486 (scroll_up): Avoid leaking memory.
19487 (grub_gfxterm_putchar): Support diacritics.
19488 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19489 * term/i386/pc/console.c (grub_console_term_output): Declare as
19490 GRUB_TERM_CODE_TYPE_VGA.
19491 * term/i386/pc/vga.c (grub_vga_term): Declare as
19492 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19493 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19494 GRUB_TERM_CODE_TYPE_VGA.
19495 * term/i386/vga_common.c (map_char): Removed.
19496 (grub_console_putchar): Likewise.
19497 (grub_console_getcharwidth): Likewise.
19498 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19499 (colors): Reordered to match terminfo.
19500 (grub_ofconsole_normal_color): Removed.
19501 (grub_ofconsole_writeesc): Likewise.
19502 (grub_ofconsole_highlight_color): Likewise.
19503 (grub_ofconsole_getcharwidth): Likewise.
19504 (grub_ofconsole_setcolorstate): Likewise.
19505 (grub_ofconsole_setcolor): Likewise.
19506 (grub_ofconsole_getcolor): Likewise.
19507 (grub_ofconsole_readkey): Renamed to ...
19508 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19509 key.
19510 (grub_ofconsole_checkkey): Removed.
19511 (grub_ofconsole_getkey): Likewise.
19512 (grub_ofconsole_getxy): Likewise.
19513 (grub_ofconsole_gotoxy): Likewise.
19514 (grub_ofconsole_cls): Likewise.
19515 (grub_ofconsole_refresh): Likewise.
19516 (grub_ofconsole_terminfo_input): New struct.
19517 (grub_ofconsole_terminfo_output): Likewise.
19518 (grub_ofconsole_term_input): Use terminfo.
19519 (grub_ofconsole_term_output): Likewise.
19520 (grub_console_init): Split into ...
19521 (grub_console_init_early): ...this and ...
19522 (grub_console_init_lately): ...this. Use terminfo.
19523 (grub_ofconsole_putchar): Renamed to ...
19524 (put): ... this. Remove mapping.
19525 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19526 * term/serial.c: Simplify using terminfo.
19527 (xpos): Removed.
19528 (ypos): Likewise.
19529 (keep_track): Likewise.
19530 (registered): Likewise.
19531 (input_buf): Likewise.
19532 (npending): Likewise.
19533 (serial_translate_key_sequence): Likewise.
19534 (fill_input_buf): Likewise.
19535 (grub_serial_checkkey): Likewise.
19536 (grub_serial_getkey): Likewise.
19537 (grub_serial_getxy): Likewise.
19538 (grub_serial_gotoxy): Likewise.
19539 (grub_serial_putchar): Likewise.
19540 (grub_serial_cls): Likewise.
19541 (grub_serial_setcolorstate): Likewise.
19542 (grub_serial_setcursor): Likewise.
19543 (serial_hw_init): Use serial_hw_fetch.
19544 (grub_serial_terminfo_input): New variable.
19545 (grub_serial_terminfo_output): Likewise.
19546 (grub_serial_term_input): Use terminfo.
19547 (grub_serial_term_output): Likewise.
19548 * term/terminfo.c (putstr): Use put.
19549 (grub_terminfo_all_free): New function
19550 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19551 (grub_terminfo_output_register): New function.
19552 (grub_terminfo_output_unregister): Likewise.
19553 (grub_terminfo_getxy): Likewise.
19554 (grub_terminfo_readkey): Likewise.
19555 (grub_terminfo_checkkey): Likewise.
19556 (grub_terminfo_getkey): Likewise.
19557 (grub_terminfo_input_init): Likewise.
19558 (print_terminfo): Likewise.
19559 (grub_cmd_terminfo): Handle encoding.
19560 (grub_terminfo_gotoxy): Track position.
19561 (grub_terminfo_cls): Likewise.
19562 (grub_terminfo_putchar): Likewise.
19563 (grub_terminfo_setcolorstate): Handle colors
19564 (grub_terminfo_cursor_on): This ...
19565 (grub_terminfo_cursor_off): ... and this merged into ...
19566 (grub_terminfo_setcursor): ... this.
19567 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19568 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19569 * unicode/BidiMirroring.txt: Likewise.
19570 * unicode/UnicodeData.txt: Likewise.
19571 * unicode/COPYING: Likewise.
19572 * util/grub-editenv.c (grub_putchar): Removed.
19573 (grub_xputs_real): New function.
19574 (grub_xputs): New variable.
19575 * util/grub-fstest.c (grub_putchar): Removed.
19576 (grub_xputs_real): New function.
19577 (grub_xputs): New variable.
19578 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19579 (grub_xputs_real): New function.
19580 (grub_xputs): New variable.
19581 * util/grub-probe.c (grub_putchar): Removed.
19582 (grub_xputs_real): New function.
19583 (grub_xputs): New variable.
19584 * util/grub-script-check.c (grub_putchar): Removed.
19585 (grub_xputs_real): New function.
19586 (grub_xputs): New variable.
19587 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19588 (grub_xputs_real): New function.
19589 (grub_xputs): New variable.
19590 * util/import_unicode.py: New file.
19591 * util/grub-mkfont.c (ft_errmsgs): New array.
19592 (grub_glyph_info): Make bitmap a pointer.
19593 (file_formats): New type WIDTH_SPEC.
19594 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19595 (options): Add width-spec.
19596 (help): Likewise.
19597 (add_char): Renamed to ...
19598 (add_glyph): ... this.
19599 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19600 (glyph_replace): New type.
19601 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19602 (add_char): New function.
19603 (add_subst): Likewise.
19604 (process_cursive): Likewise.
19605 (add_font): Handle GSUB.
19606 (write_font_width_spec): New function.
19607 (main): Sort glyphs.
19608 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19609 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19610 * kern/term.c (grub_cls): Moved from here...
19611 * normal/term.c (grub_cls): ... here.
19612
50f0bcda
CW
196132010-07-02 Colin Watson <cjwatson@ubuntu.com>
19614
19615 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19616 suitable for using within the format argument of printf when
19617 converting grub_size_t.
19618 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19619 "x" to convert grub_size_t arguments.
19620
40372103
VS
196212010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19622
19623 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19624 too long captions.
19625 (list_get_minimal_size): Take selection box into account.
19626
942a10c7
VS
196272010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19628
19629 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19630 NULL font.
19631
2bdb2892
CW
196322010-07-02 Colin Watson <cjwatson@ubuntu.com>
19633
19634 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19635 devices when iterating over /dev/disk/by-id; they will be handled
19636 later if appropriate, which they aren't always (e.g. LVM).
19637
e03ed6c1
CW
196382010-07-02 Colin Watson <cjwatson@ubuntu.com>
19639
19640 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19641 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19642 fails.
19643 (grub_halt): Likewise.
19644 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19645 reset-all fails.
19646 (grub_halt): Don't return, even if all of shut-down, power-off, and
19647 poweroff fail.
19648
47695765
CW
196492010-07-02 Colin Watson <cjwatson@ubuntu.com>
19650
19651 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19652 arguments, not three.
19653
507736c8
CW
196542010-07-02 Colin Watson <cjwatson@ubuntu.com>
19655
19656 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19657 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19658 LVM-on-RAID is handled correctly.
19659
e3c8cd37
CW
196602010-07-02 Colin Watson <cjwatson@ubuntu.com>
19661
19662 * docs/grub.texi (Changes from GRUB Legacy): New section.
19663 (Future): Fix typo.
19664
8d4a2fec
CW
196652010-07-02 Colin Watson <cjwatson@ubuntu.com>
19666
19667 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
19668 grub.d/README accidentally ends up executable for one reason or
19669 another. Ignore it.
19670
1c4827be
VS
196712010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
19674 (gpt_partition_map_iterate): Support non-512B sectors.
19675
d9a0c941
VS
196762010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19677
19678 * kern/efi/init.c (grub_efi_init): Disable watchdog.
19679 Tested by: Seth Goldberg.
19680
48f27e87
VS
196812010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19682
19683 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
19684 Properly align mbi.
19685 Reported by: Seth Goldberg.
19686
b0c4f956
VS
196872010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19688
19689 * util/grub-mkrescue.in: Avoid module duplication.
19690
105a2e8c
SF
196912010-07-01 Sean Finney <seanius@seanius.net>
19692
19693 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
19694
5944958c
SF
196952010-07-01 Sean Finney <seanius@seanius.net>
19696
19697 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
19698
196992010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19700
19701 * disk/lvm.c (grub_lvm_checkvalue): New function.
19702 (grub_lvm_check_flag): Likewise.
19703
b79889ba
RM
197042010-07-01 Robert Millan <rmh@gnu.org>
19705
19706 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
19707 Support 'p' as partition separator on kernel of FreeBSD (used
19708 with GPT labels).
19709 (grub_util_biosdisk_get_grub_dev): Likewise.
19710
ec1d04f1
VS
197112010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
19712
19713 Yeeloong firmware port.
19714
19715 * boot/mips/yeeloong/fwstart.S: New file.
19716 * bus/cs5536.c (gpiodump): New const.
19717 (set_io_space): New function.
19718 (set_iod): Likewise.
19719 (set_p2d): Likewise.
19720 (grub_cs5536_init_geode): Likewise.
19721 * commands/mips/yeeloong/lsspd.c: New file.
19722 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
19723 (serial_mod_SOURCES): New variable.
19724 (serial_mod_CFLAGS): Likewise.
19725 (serial_mod_LDFLAGS): Likewise.
19726 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
19727 term/terminfo.c and term/tparm.c.
19728 (pkglib_IMAGES): Add fwstart.img.
19729 (fwstart_img_SOURCES): New variable.
19730 (fwstart_img_CFLAGS): Likewise.
19731 (fwstart_img_ASFLAGS): Likewise.
19732 (fwstart_img_LDFLAGS): Likewise.
19733 (fwstart_img_FORMAT): Likewise.
19734 (pkglib_MODULES): Add lsspd.mod.
19735 (lsspd_mod_SOURCES): New variable.
19736 (lsspd_mod_CFLAGS): Likewise.
19737 (lsspd_mod_LDFLAGS): Likewise.
19738 (pkglib_MODULES): Add halt.mod.
19739 (halt_mod_SOURCES): New variable.
19740 (halt_mod_CFLAGS): Likewise.
19741 (halt_mod_LDFLAGS): Likewise.
19742 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
19743 (serial_mod_SOURCES): Removed.
19744 (serial_mod_CFLAGS): Likewise.
19745 (serial_mod_LDFLAGS): Likewise.
19746 * disk/ata.c (check_device): New function.
19747 (grub_ata_device_initialize): Use check_device.
19748 (grub_ata_iterate): Recheck devices.
19749 (grub_ata_open): Likewise.
19750 (grub_atapi_iterate): Likewise.
19751 (grub_atapi_open): Likewise.
19752 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
19753 (GRUB_ATA_CH1_PORT1): Likewise.
19754 (GRUB_ATA_CH0_PORT2): Likewise.
19755 (GRUB_ATA_CH1_PORT2): Likewise.
19756 * include/grub/mips/loongson.h: New file.
19757 * include/grub/mips/yeeloong/ec.h: Likewise.
19758 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
19759 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
19760 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
19761 * include/grub/misc.h (grub_halt): Declare as noreturn.
19762 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
19763 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
19764 (UART_ENABLE_FIFO_TRIGGER1): New definition.
19765 (UART_ENABLE_DTRRTS): Likewise.
19766 (UART_ENABLE_MODEM): Removed.
19767 (UART_ENABLE_OUT2): New const.
19768 * include/grub/term.h (grub_term_register_input_active): New function.
19769 (grub_term_register_output_active): Likewise.
19770 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
19771 argument.
19772 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
19773 (init_pci): New function.
19774 (grub_machine_init): Execute platform init when firmware. Init serial.
19775 (grub_halt): Implement.
19776 (grub_exit): Likewise.
19777 (grub_reboot): Likewise.
19778 * term/serial.c (serial_hw_init): Update macros.
19779 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
19780 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
19781 (image_targets): New target mipsel-yeeloong-flash.
19782 (generate_image): Support IMAGE_YEELOONG_FLASH.
19783 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
19784 (grub_video_sm712_setup): Init card.
19785 (grub_video_sm712_set_palette): Removed.
19786 * video/sm712_init.c: New file.
19787
ff4a70d2
CW
197882010-06-30 Colin Watson <cjwatson@ubuntu.com>
19789
19790 * Makefile.in (install-local): Temporarily prepend $(builddir) to
19791 PATH when running help2man and then run it on the unadorned
19792 executable names, rather than passing $(builddir)/* paths to
19793 help2man. This avoids the build directory ending up in generated
19794 manual pages.
19795
1246efeb
CW
197962010-06-29 Colin Watson <cjwatson@ubuntu.com>
19797
19798 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
19799 to avoid accidents when debugging with 'sh -x'.
19800 * util/grub-mkrescue.in: Likewise.
19801 * util/grub.d/00_header.in: Likewise.
19802 * util/grub.d/10_hurd.in: Likewise.
19803 * util/grub.d/10_kfreebsd.in: Likewise.
19804 * util/grub.d/10_linux.in: Likewise.
19805 * util/grub.d/10_netbsd.in: Likewise.
19806 * util/grub.d/10_windows.in: Likewise.
19807 * util/grub.d/20_linux_xen.in: Likewise.
19808 * util/grub.d/30_os-prober.in: Likewise.
19809 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19810
1ba9b889
CW
198112010-06-29 Colin Watson <cjwatson@ubuntu.com>
19812
19813 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
19814 last character in the buffer.
19815 Reported by: Vladimir Serbinenko.
19816
dccaf99d
RM
198172010-06-29 Robert Millan <rmh@gnu.org>
19818
19819 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
19820 (Command-line and menu entry commands): Document `badram' command.
19821
d500ed12
RM
198222010-06-28 Robert Millan <rmh@gnu.org>
19823
19824 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
19825 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
19826 command using ${GRUB_BADRAM} as parameter.
19827
20bc84a6
CW
198282010-06-28 Colin Watson <cjwatson@ubuntu.com>
19829
19830 * docs/grub.texi (Device map): New section.
19831 (Themes): New section (stub).
19832 * Makefile.in (docs/grub.info): The info documentation now builds
19833 without errors. Make sure it stays that way.
19834
4045dee1
VS
198352010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19836
19837 Use normal parser for menu entries.
19838 Reported by: Thomas Frauendorfer
19839
19840 * include/grub/parser.h (grub_parser_execute): Don't export.
19841 * normal/menu.c (grub_menu_execute_entry_real): New function.
19842 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
19843
bca58c7b
CW
198442010-06-28 Colin Watson <cjwatson@ubuntu.com>
19845
19846 * docs/grub.texi (Embedded configuration): New section (replacing
19847 old "Preset Menu" stub).
19848 (Images): New section.
19849 (configfile): Note that any menu entries defined in `file' are shown
19850 immediately.
19851
dec53e63
JT
198522010-06-28 Josh Triplett <josh@joshtriplett.org>
19853
19854 * mmap/i386/pc/mmap_helper.S: Set CF on return.
19855
c06e40f7
CW
198562010-06-28 Colin Watson <cjwatson@ubuntu.com>
19857
19858 * util/grub-install.in: Add --debug-image= option.
19859
cb88052b
CW
198602010-06-28 Colin Watson <cjwatson@ubuntu.com>
19861
19862 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
19863 possible on Linux.
19864
19865 * util/deviceiter.c (check_device): Rename to ...
19866 (check_device_readable_unique): ... this. Update all callers.
19867 Maintain and check a list of which devices (by canonicalized name)
19868 have already been seen.
19869 (clear_seen_devices): New function.
19870 (compare_file_names) [__linux__]: New function.
19871 (grub_util_iterate_devices): Clear the list of seen devices on exit
19872 and (just in case) on entry.
19873 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
19874 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
19875 seen-devices list, superseded by general code in check_device.
19876
bbe34652
CW
198772010-06-28 Colin Watson <cjwatson@ubuntu.com>
19878
19879 * commands/cat.c (options): New variable.
19880 (grub_cmd_cat): Parse options. If the --dos option is given, print
19881 DOS-style "\r\n" line endings as simple newlines (Debian bug
19882 #586358).
19883 (GRUB_MOD_INIT): Use extcmd.
19884 (GRUB_MOD_FINI): Likewise.
19885 * docs/grub.texi (cat): Document --dos.
19886
412e09f3
VS
198872010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
19888
19889 XEN with Linux grub-mkconfig support.
19890
19891 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
19892 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
19893 GRUB_CMDLINE_XEN_DEFAULT.
19894 * util/grub.d/20_linux_xen.in: New file.
19895
53f3ef38 198962010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
19897
19898 Initialise VGA video on qemu ourselves.
19899
19900 * boot/i386/qemu/boot.S: Don't call 0xc000.
19901 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
19902 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
19903 (kernel_img_HEADERS): Add pci.h.
19904 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
19905 * configure.ac: Force unifont on qemu and yeeloong.
19906 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
19907 (grub_vga_palette_write): Use correct register.
19908 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
19909 Call grub_qemu_init_cirrus.
19910 * kern/i386/qemu/init.c: New file.
19911 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
19912
19913 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
19914
c75be4fb
PR
199152010-06-26 Pavel Roskin <proski@gnu.org>
19916
19917 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
19918 13.
19919
d8034603
CW
199202010-06-26 Colin Watson <cjwatson@ubuntu.com>
19921
19922 * docs/grub.texi (Simple configuration): Explain that
19923 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
19924 set to `true' to disable their respective recovery entries, not
19925 merely set.
19926
3fa06487
CW
199272010-06-26 Colin Watson <cjwatson@ubuntu.com>
19928
19929 Make the `source' command slightly faster.
19930
19931 * normal/main.c (grub_normal_execute): Don't re-read list files when
19932 nested.
19933
e9b29642
CW
199342010-06-23 Colin Watson <cjwatson@ubuntu.com>
19935
19936 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
19937 field position and mask size to red fields from mode_info, not
19938 green.
19939 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
19940 Remove redundant tag->common.framebuffer_type assignment.
19941 Reported by: Seth Goldberg.
19942
e726542f
CW
199432010-06-23 Colin Watson <cjwatson@ubuntu.com>
19944
19945 Sync up other versions of the Linux loader with Robert Millan's
19946 change of 2010-01-09, "Make loader output a bit more user-friendly".
19947
19948 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
19949 grub_dprintf().
19950 (grub_cmd_linux): Likewise.
19951 (grub_cmd_initrd): Likewise.
19952 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
19953 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
19954
d6e98a17
CW
199552010-06-21 Colin Watson <cjwatson@ubuntu.com>
19956
19957 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
19958 larger than MEMORY_MAP_SIZE.
19959
14d3f08e
BC
199602010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
19961
19962 Fix parallel build.
19963
19964 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
19965 dependency.
19966 * script/parser.y: #include grub_script.tab.h header.
19967
4f9613a3
VS
199682010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19969
19970 Support >3GiB and <16MiB RAM in i386-qemu.
19971
19972 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
19973 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
19974 (grub_lower_mem): Removed.
19975 (grub_upper_mem): Likewise.
19976 (mem_size): Made static.
19977 (above_4g): New variable.
19978 (grub_machine_mmap_init): Detect small mem_size and above_4g.
19979 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
19980 support.
19981
05e51879
VS
199822010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
19983
19984 Cirrus 5446 and Bochs video cards support.
19985
19986 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
19987 video_bochs.mod
19988 (video_cirrus_mod_SOURCES): New variable.
19989 (video_cirrus_mod_CFLAGS): Likewise.
19990 (video_cirrus_mod_LDFLAGS): Likewise.
19991 (video_bochs_mod_SOURCES): Likewise.
19992 (video_bochs_mod_CFLAGS): Likewise.
19993 (video_bochs_mod_LDFLAGS): Likewise.
19994 * include/grub/vga.h: New file.
19995 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
19996 (grub_video_fb_set_page_t): New type.
19997 (grub_video_fb_setup): New prototype.
19998 (grub_video_fb_swap_buffers): Likewise.
19999 (grub_video_fb_get_info_and_fini): Likewise.
20000 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20001 (CRTC_DATA_PORT): Likewise.
20002 (CRTC_CURSOR): Likewise.
20003 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20004 (CRTC_CURSOR_ADDR_LOW): Likewise.
20005 (CRTC_CURSOR_DISABLE): Likewise.
20006 (update_cursor): Use grub_vga_cr_write.
20007 (grub_vga_text_setcursor): Likewise.
20008 * video/bochs.c: New file.
20009 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20010 (palette): Likewise.
20011 (palette_size): Likewise.
20012 (framebuffer): New variable.
20013 (grub_video_fb_init): Use 'framebuffer'.
20014 (grub_video_fb_fini): Likewise.
20015 (grub_video_fb_get_info): Likewise.
20016 (grub_video_fb_get_palette): Likewise.
20017 (grub_video_fb_set_palette): Likewise.
20018 (grub_video_fb_set_viewport): Likewise.
20019 (grub_video_fb_get_viewport): Likewise.
20020 (grub_video_fb_map_color): Likewise.
20021 (grub_video_fb_map_rgb): Likewise.
20022 (grub_video_fb_map_rgba): Likewise.
20023 (grub_video_fb_unmap_color): Likewise.
20024 (grub_video_fb_unmap_color_int): Likewise.
20025 (grub_video_fb_fill_rect): Likewise.
20026 (grub_video_fb_blit_bitmap): Likewise.
20027 (grub_video_fb_blit_render_target): Likewise.
20028 (grub_video_fb_scroll): Likewise.
20029 (grub_video_fb_create_render_target): Likewise.
20030 (grub_video_fb_doublebuf_blit_init): Likewise.
20031 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20032 (doublebuf_pageflipping_update_screen): New function.
20033 (doublebuf_pageflipping_init): Likewise.
20034 (grub_video_fb_setup): Likewise.
20035 (grub_video_fb_swap_buffers): Likewise.
20036 (grub_video_fb_get_info_and_fini): Likewise.
20037 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20038 All users updated.
20039 (doublebuf_pageflipping_commit): Restructured into ...
20040 (doublebuf_pageflipping_set_page): ... this.
20041 (doublebuf_pageflipping_update_screen): Removed.
20042 (doublebuf_pageflipping_init): Likewise.
20043 (double_buffering_init): Likewise.
20044 (grub_video_vbe_setup): Use grub_video_fb_setup.
20045 (grub_video_vbe_swap_buffers): Removed.
20046 (grub_video_vbe_set_active_render_target): Likewise.
20047 (grub_video_vbe_get_active_render_target): Likewise.
20048 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20049 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20050 grub_video_fb_set_active_render_target and
20051 grub_video_fb_get_active_render_target.
20052 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20053 (SEQUENCER_DATA_PORT): Likewise.
20054 (MAP_MASK_REGISTER): Likewise.
20055 (CRTC_ADDR_PORT): Likewise.
20056 (CRTC_DATA_PORT): Likewise.
20057 (START_ADDR_HIGH_REGISTER): Likewise.
20058 (START_ADDR_LOW_REGISTER): Likewise.
20059 (GRAPHICS_ADDR_PORT): Likewise.
20060 (GRAPHICS_DATA_PORT): Likewise.
20061 (READ_MAP_REGISTER): Likewise.
20062 (INPUT_STATUS1_REGISTER): Likewise.
20063 (INPUT_STATUS1_VERTR_BIT): Likewise.
20064 (get_map_mask): Use grub_vga_sr_read.
20065 (set_map_mask): Use grub_vga_sr_write.
20066 (set_read_map): Use grub_vga_gr_write.
20067 (set_start_address): Use grub_vga_cr_write.
20068 * video/sm712.c (framebuffer): Remove leftover fields.
20069
4321c64a
CW
200702010-06-20 Colin Watson <cjwatson@ubuntu.com>
20071
20072 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20073 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20074 instead. Replace the gfxterm backend check with a check that
20075 ${GRUB_PREFIX}/video.lst is non-empty.
20076 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20077 again.
20078 (load_video): New generated function. Call it before loading
20079 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20080 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20081 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20082 * docs/grub.texi (Simple configuration): Document
20083 GRUB_VIDEO_BACKEND.
20084
200852010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20086
20087 Use video functions in linux and xnu loaders.
20088
20089 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20090 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20091 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20092 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20093 loader/i386/pc/linux.c.
20094 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20095 (find_line_len): Removed.
20096 (find_framebuf): Likewise.
20097 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20098 * loader/i386/efi/xnu.c: Removed.
20099 * loader/i386/pc/xnu.c: Moved from here...
20100 * loader/i386/xnu.c: ...here.
20101
20102 Enable priorities in video drivers.
20103
20104 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20105 (grub_video_adapter): New field prio.
20106 (grub_video_register): Respect prio when inserting.
20107 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20108 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20109 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20110 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20111 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20112 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20113 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20114
20115 Fix SDL driver ID.
20116
20117 * include/grub/video.h (grub_video_driver_id_t): New value
20118 GRUB_VIDEO_DRIVER_SDL.
20119 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20120
7d24e434
CW
201212010-06-17 Colin Watson <cjwatson@ubuntu.com>
20122
20123 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20124 argument to printf.
20125 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20126
c88a83f6
CW
201272010-06-17 Colin Watson <cjwatson@ubuntu.com>
20128
20129 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20130 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20131
094dfb69
CW
201322010-06-17 Colin Watson <cjwatson@ubuntu.com>
20133
20134 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20135 directly, and recommend grub-install instead.
20136 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20137
2164da6b
CW
201382010-06-17 Colin Watson <cjwatson@ubuntu.com>
20139
20140 Fix i386-pc prefix handling with nested partitions (Debian bug
20141 #585068). Note that the case where the core image is booted using
20142 multiboot and relocated from its original location still requires
20143 more work.
20144
20145 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20146 with "(,", fill the boot drive in between those two characters, but
20147 expect that a full partition specification including partition map
20148 names will follow.
20149 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20150 specified, write a prefix without the drive name but including a
20151 full partition specification.
20152
044e2e60
CW
201532010-06-16 Colin Watson <cjwatson@ubuntu.com>
20154
20155 * util/grub-mkconfig.in: Ignore non-option arguments, for
20156 compatibility with older versions (before 2010-06-12) which did the
20157 same. In particular, this makes it easier to ship an update-grub
20158 wrapper which is compatible with that used with GRUB Legacy (Debian
20159 bug #586056).
20160
5591324f
GS
201612010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20162
20163 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20164 for manual page generation.
20165
662e24d5
GS
201662010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20167
20168 * po/POTFILES: Remove leftover commands/handler.c.
20169
8d70754e
CW
201702010-06-14 Colin Watson <cjwatson@ubuntu.com>
20171
20172 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20173 left this script non-functional.
20174
41160e2e
CW
201752010-06-14 Colin Watson <cjwatson@ubuntu.com>
20176
20177 * docs/man/grub-emu.h2m: New file.
20178
b5309cc1
CW
201792010-06-13 Colin Watson <cjwatson@ubuntu.com>
20180
20181 * docs/grub.texi (Commands): Document reduced command set in rescue
20182 mode.
20183 (cpuid): New section.
20184
fcb2d090
GS
201852010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20186
20187 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20188 new partition naming style.
20189 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20190
96e5c556
BC
201912010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20192
20193 Add "-o grub.iso" like cmdline options support.
20194
20195 * util/grub-install.in: Improve cmdline option parsing.
20196 * util/grub-mkconfig.in: Likewise.
20197 * util/grub-mkrescue.in: Likewise.
20198 * util/grub-reboot.in: Likewise.
20199 * util/grub-set-default.in: Likewise.
20200 * util/i386/efi/grub-install.in: Likewise.
20201 * util/ieee1275/grub-install.in: Likewise.
20202 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20203
c16be99b
CW
202042010-06-12 Colin Watson <cjwatson@ubuntu.com>
20205
20206 * .bzrignore: Ignore 41_custom.
20207
ce08a9fb
TS
202082010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20209
20210 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20211
7beac90c
CW
202122010-06-12 Colin Watson <cjwatson@ubuntu.com>
20213
20214 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20215 prototype declarations.
20216
20217 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20218 generating fs, partmap, and video lists.
20219 * include/grub/fs.h (grub_fs_register): Omit prototype if
20220 GRUB_LST_GENERATOR is defined.
20221 * include/grub/partition.h (grub_partition_map_register): Likewise.
20222 * include/grub/video.h (grub_video_register): Likewise.
20223
1c8f0f8d
JM
202242010-06-12 Javier Martín <lordhabbit@gmail.com>
20225
20226 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20227
a6085973
TS
202282010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20229
20230 * util/grub-mkrescue.in: Support --xorriso argument.
20231
25c56d29
VS
202322010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20233
20234 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20235 Suggested by: Thomas Schmitt.
20236
e03e4b24
VS
202372010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20238
20239 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20240 Suggested by: Thomas Schmitt.
20241
57711df6
VS
202422010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20243
20244 custom.cfg support.
20245
20246 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20247 * util/grub.d/41_custom.in: New file.
20248
ee62c427
CW
202492010-06-12 Colin Watson <cjwatson@ubuntu.com>
20250
20251 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20252 been merged back into normal.
20253
283af07a
CW
202542010-06-11 Colin Watson <cjwatson@ubuntu.com>
20255
20256 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20257 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20258
56a0d956
CW
202592010-06-11 Colin Watson <cjwatson@ubuntu.com>
20260
20261 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20262 when generating manual pages.
20263 * docs/man/grub-bin2h.h2m: New file.
20264 * docs/man/grub-editenv.h2m: New file.
20265 * docs/man/grub-fstest.h2m: New file.
20266 * docs/man/grub-install.h2m: New file.
20267 * docs/man/grub-macho2img.h2m: New file.
20268 * docs/man/grub-mkconfig.h2m: New file.
20269 * docs/man/grub-mkdevicemap.h2m: New file.
20270 * docs/man/grub-mkfont.h2m: New file.
20271 * docs/man/grub-mkimage.h2m: New file.
20272 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20273 * docs/man/grub-mkrelpath.h2m: New file.
20274 * docs/man/grub-mkrescue.h2m: New file.
20275 * docs/man/grub-ofpathname.h2m: New file.
20276 * docs/man/grub-pe2elf.h2m: New file.
20277 * docs/man/grub-probe.h2m: New file.
20278 * docs/man/grub-reboot.h2m: New file.
20279 * docs/man/grub-script-check.h2m: New file.
20280 * docs/man/grub-set-default.h2m: New file.
20281 * docs/man/grub-setup.h2m: New file.
20282
3a37e322
VS
202832010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20284
20285 Use FOR_* macros instead of *_iterate whenever possible.
20286
20287 * commands/handler.c: Removed.
20288 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20289 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20290 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20291 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20292 (grub_probe_SOURCES): Remove kern/parser.c.
20293 (util/grub-script-check.c_DEPENDENCIES): Removed.
20294 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20295 and grub_script_check_init.c.
20296 (grub_script_check_init.lst): Removed.
20297 (grub_script_check_init.h): Likewise.
20298 (grub_script_check_init.c): Likewise.
20299 (pkglib_MODULES): Remove handler.mod and sh.mod.
20300 (handler_mod_SOURCES): Removed.
20301 (handler_mod_CFLAGS): Likewise.
20302 (handler_mod_LDFLAGS): Likewise.
20303 (normal_mod_SOURCES): Remove normal/handler.c.
20304 Add script/main.c, script/script.c, script/execute.c,
20305 script/function.c, script/lexer.c, grub_script.tab.c
20306 and grub_script.yy.c.
20307 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20308 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20309 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20310 (grub_setup_SOURCES): Remove kern/parser.c.
20311 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20312 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20313 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20314 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20315 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20316 (grub_setup_SOURCES): Remove kern/parser.c.
20317 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20318 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20319 * include/grub/command.h (grub_command_iterate): Removed.
20320 (FOR_COMMANDS): New macro.
20321 * include/grub/dl.h (grub_dl): New member next.
20322 (grub_dl_iterate): Removed.
20323 (grub_dl_head): New variable declaration.
20324 (FOR_DL_MODULES): New macro.
20325 * include/grub/fs.h: Include list.h.
20326 (grub_fs): Make next first element.
20327 (grub_fs_list): New variable declaration.
20328 (grub_fs_register): Make inline.
20329 (grub_fs_unregister): Likewise.
20330 (grub_fs_iterate): Removed.
20331 (FOR_FILESYSTEMS): New macro.
20332 * include/grub/handler.h: Removed.
20333 * include/grub/list.h (grub_list_hook_t): Removed.
20334 (grub_list_test_t): Likewise.
20335 (grub_list_pop): Likewise.
20336 (grub_list_iterate): Likewise.
20337 (grub_list_insert): Likewise.
20338 (FOR_LIST_ELEMENTS): New macro.
20339 * include/grub/parser.h (grub_parser_class): Removed.
20340 (grub_parser_register): Likewise.
20341 (grub_parser_unregister): Likewise.
20342 (grub_parser_get_current): Likewise.
20343 (grub_parser_set_current): Likewise.
20344 (grub_register_rescue_parser): Likewise.
20345 (grub_rescue_parse_line): New function.
20346 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20347 * include/grub/script_sh.h (grub_script_function_list): New variable
20348 declaration.
20349 (FOR_SCRIPT_FUNCTIONS): New macro.
20350 (grub_script_function_iterate): Removed.
20351 (grub_normal_parse_line): New prototype.
20352 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20353 (FOR_DISABLED_TERM_INPUTS): Likewise.
20354 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20355 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20356 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20357 element.
20358 (grub_video_register): Inline.
20359 (grub_video_unregister): Likewise.
20360 (grub_video_adapter_list): New variable declaration.
20361 (grub_video_iterate): Removed.
20362 (FOR_VIDEO_ADAPTERS): New macro.
20363 * kern/dl.c (grub_dl_list): Removed. All users updated.
20364 (grub_dl_iterate): Removed.
20365 * kern/fs.c (grub_fs_list): Make global.
20366 (grub_fs_register): Removed.
20367 (grub_fs_unregister): Likewise.
20368 (grub_fs_iterate): Likewise.
20369 * kern/handler.c: Removed.
20370 * kern/list.c (grub_list_pop): Removed.
20371 (grub_list_iterate): Likewise.
20372 (grub_list_insert): Likewise.
20373 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20374 (grub_prio_list_insert): Don't use grub_list_insert.
20375 * kern/main.c (grub_register_rescue_parser): Don't call
20376 grub_register_rescue_parser.
20377 * kern/parser.c (grub_parser_class): Removed.
20378 (grub_parser_execute): Use grub_rescue_parse_line.
20379 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20380 (grub_rescue_parser): Removed.
20381 (grub_register_rescue_parser): Likewise.
20382 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20383 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20384 (grub_auth_check_authentication): Likewise.
20385 * normal/completion.c (iterate_command): Removed.
20386 (grub_normal_do_completion): Use FOR_COMMANDS.
20387 * normal/handler.c: Removed.
20388 * normal/main.c (read_config_file): Remove parser changing.
20389 (grub_normal_execute): Don't call read_handler_list.
20390 (grub_normal_read_line_real): Statically allocate prompt.
20391 (grub_cmdline_run): Use grub_normal_parse_line.
20392 (GRUB_MOD_FINI): Don't call free_handler_list.
20393 * normal/menu_entry.c (run): Likewise.
20394 * script/function.c (grub_script_function_list): Make global.
20395 (grub_script_function_iterate): Removed.
20396 * script/main.c (grub_normal_parse_line): Make global.
20397 (grub_sh_parser): Removed.
20398 (GRUB_MOD_INIT): Likewise.
20399 (GRUB_MOD_FINI): Likewise.
20400 * tests/lib/functional_test.c (grub_functional_test): Use
20401 FOR_LIST_ELEMENTS.
20402 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20403 (grub_test_run): Use FOR_LIST_ELEMENTS.
20404 * tests/lib/unit_test.c (main): Likewise.
20405 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20406 grub_list_pop.
20407 * util/grub-fstest.c (grub_term_input_class): Removed.
20408 (grub_term_output_class): Likewise.
20409 * util/grub-probe.c: Likewise.
20410 * util/i386/pc/grub-setup.c: Likewise.
20411 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20412 * util/grub-script-check.c (main): Don't call grub_init_all and
20413 grub_fini_all.
20414 * video/video.c (grub_video_adapter_list): Make global.
20415 (grub_video_register): Removed.
20416 (grub_video_unregister): Likewise.
20417 (grub_video_iterate): Likewise.
20418
6289c3a7
VS
204192010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20420
20421 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20422 reported by Henrique Ferreiro.
20423
91460247
RM
204242010-06-09 Robert Millan <rmh@gnu.org>
20425
20426 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20427 ones, when both are available.
20428
0ea7c4f9
GS
204292010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20430
20431 Make --version uniform and avoid hard-coded program name.
20432
20433 * util/grub-mkimage.c (main): Use `program_name' instead of
20434 hard-coded string.
20435 * util/i386/pc/grub-setup.c (main): Likewise.
20436 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20437 * util/grub-install.in: Save the basename of $0 in $self, and use the
20438 latter in informational messages. Use the same format for --version
20439 as the binary programs.
20440 * util/grub-mkconfig.in: Likewise.
20441 * util/grub-mkrescue.in: Likewise.
20442 * util/grub-reboot.in: Likewise.
20443 * util/grub-set-default.in: Likewise.
20444 * util/i386/efi/grub-install.in: Likewise.
20445 * util/ieee1275/grub-install.in: Likewise.
20446 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20447
e8a6f3b6
GS
204482010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20449
20450 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20451 embedding area. Use <= instead of == when checking for non-emptiness.
20452
f4d095d7
GS
204532010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20454
20455 * configure.ac: Add `.' to the directories searched for unifont.
20456
50e532ca
CW
204572010-06-08 Colin Watson <cjwatson@ubuntu.com>
20458
20459 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20460 grub_script.yy.h.
20461
d39f3dec
CW
204622010-06-08 Colin Watson <cjwatson@ubuntu.com>
20463
20464 * docs/grub.texi (History): Expand to cover GRUB 2.
20465 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20466 commands, not `terminal'.
20467 (serial): Likewise.
20468 (terminal_input): New section.
20469 (terminal_output): New section.
20470 (uppermem): New section (stub).
20471 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20472
6ef0ddb4
CW
204732010-06-08 Colin Watson <cjwatson@ubuntu.com>
20474
20475 * docs/grub.texi (Security): Menu entries are unrestricted by
20476 default, not restricted to superusers as I had previously thought.
20477 Reword to account for this.
20478
e0f4c438
CW
204792010-06-07 Colin Watson <cjwatson@ubuntu.com>
20480
20481 * kern/emu/misc.c (device_mapper_null_log): New function.
20482 (grub_device_mapper_supported): New function.
20483 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20484 prototype.
20485 * kern/emu/hostdisk.c (find_partition_start): Check whether
20486 device-mapper is supported before trying to use it.
20487 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20488
da908200
CW
204892010-06-07 Colin Watson <cjwatson@ubuntu.com>
20490
20491 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20492 (File name syntax): Likewise.
20493 (help): --all is no longer supported in GRUB 2. Be more precise
20494 about pattern matching.
20495
fb55c3ac
CW
204962010-06-07 Colin Watson <cjwatson@ubuntu.com>
20497
20498 * normal/completion.c (grub_normal_do_completion): When completing
20499 arguments to "set" and the current word contains an equals sign,
20500 skip to after the equals sign before starting completion.
20501
258c2573
CW
205022010-06-07 Colin Watson <cjwatson@ubuntu.com>
20503
20504 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20505
ee75515e
CW
205062010-06-07 Colin Watson <cjwatson@ubuntu.com>
20507
20508 * docs/grub.texi (Network): New section.
20509 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20510 `(nd)' as in GRUB Legacy.
20511 (pxe_unload): New section.
20512
a6a700aa
CW
205132010-06-07 Colin Watson <cjwatson@ubuntu.com>
20514
20515 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20516 in the rescue shell, so recommend using `set' instead. Thanks,
20517 Jordan Uggla.
20518
4003dd38
CW
205192010-06-07 Colin Watson <cjwatson@ubuntu.com>
20520
20521 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20522 (password): New section.
20523 (password_pbkdf2): New section.
20524 (search): New section.
20525 (Security): New section.
20526 (Troubleshooting): New section, currently very incomplete.
20527 (Invoking grub-mkpasswd-pbkdf2): New section.
20528 (Internals): New section, currently very incomplete.
20529
e1cbcc40
CW
205302010-06-07 Colin Watson <cjwatson@ubuntu.com>
20531
20532 * util/grub.d/00_header.in: Add some more quoting (of
20533 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20534 work again.
20535 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20536
db8fa1ad
CW
205372010-06-07 Colin Watson <cjwatson@ubuntu.com>
20538
20539 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20540 to `count', fixing variable shadowing that broke the -c option.
20541
205422010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
20543
20544 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20545 in case they contain spaces.
20546
f28a9212
CW
205472010-06-04 Colin Watson <cjwatson@ubuntu.com>
20548
20549 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20550 "part_" to partmap module names, in line with grub-install.
20551 Reported by: Jindřich Makovička (Debian bug #584426).
20552
9cdfe32f
CW
205532010-06-04 Colin Watson <cjwatson@ubuntu.com>
20554
20555 * util/grub-mkimage.c: Make target-related error messages slightly
20556 more helpful; -O talks about "format". Explicitly point to the use
20557 of -O if no target is specified.
20558 Reported by: Didier Raboud (Debian bug #584415).
20559
795b593a
CW
205602010-06-03 Colin Watson <cjwatson@ubuntu.com>
20561
20562 * INSTALL: Document several build requirements for optional features
20563 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20564
9d9b5833
GS
205652010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20566
20567 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20568 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20569 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20570
0819fec8
CW
205712010-06-02 Colin Watson <cjwatson@ubuntu.com>
20572
20573 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20574 Thanks to Jordan Uggla for spotting this.
20575
49396b4f
VS
205762010-06-02 Aleš Nesrsta <starous@volny.cz>
20577
20578 Finally make USB usable.
20579
20580 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20581 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20582 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20583 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20584 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20585 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20586 (GRUB_OHCI_FSMPS): Likewise.
20587 (GRUB_OHCI_PERIODIC_START): Likewise.
20588 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20589 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20590 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20591 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20592 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20593 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20594 (grub_ohci_transaction): Likewise.
20595 (grub_ohci_transfer): Improve condition detection algorithms.
20596 Handle toggle property. Program the transactions correctly.
20597 Improve error handling. Various important fixups.
20598 (grub_ohci_portstatus): Put register writes in right order.
20599 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20600 (grub_uhci_transfer): Don't show "failed" message on success.
20601 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20602 array.
20603 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20604 determine its size.
20605 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20606 before initialization is completed. Use IN direction for empty
20607 transfers. Use last_trans and compute toggle.
20608 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20609 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20610 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20611 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20612 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20613 (grub_usb_device): Increase toggle to 256.
20614 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20615 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20616 GRUB_USBMS_SUBCLASS_SFF8070.
20617 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20618 (grub_scsi_inquiry): New member page and alloc_length.
20619 (grub_scsi_request_sense): New structure.
20620 (grub_scsi_request_sense_data): Likewise.
20621 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20622 control.
20623 * disk/scsi.c (grub_scsi_request_sense): New function.
20624 (grub_scsi_test_unit_ready): Likewise.
20625 (grub_scsi_inquiry): Fill new fields.
20626 (grub_scsi_read_capacity): Likewise.
20627 (grub_scsi_read10): Add request sense at the end.
20628 (grub_scsi_read12): Likewise.
20629 (grub_scsi_write10): Likewise.
20630 (grub_scsi_write12): Likewise.
20631 (grub_scsi_open): Add Test Unit Ready.
20632 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20633 Support additional subclasses. Con't clear halt yet. Activate the
20634 proper config. Calculate LUNs correctly.
20635 (grub_usbms_transfer): Various important fixups.
20636
206372010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20638
20639 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20640 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20641 (grub_ohci_fini_hw): New function.
20642 (grub_ohci_restore_hw): Likewise.
20643 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20644 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20645 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20646
206472010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20648
20649 Dedicated DMA allocations.
20650
20651 * bus/pci.c (grub_memalign_dma32): New function
20652 (grub_dma_free): Likewise.
20653 (grub_dma_get_virt): Likewise.
20654 (grub_dma_get_phys): Likewise.
20655 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20656 (grub_ohci_pci_iter): Use dma32_alloc.
20657 (grub_ohci_transfer): Likewise.
20658 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20659 (grub_usb_bulk_readwrite): Likewise.
20660 * include/grub/pci.h: Add declarations.
20661
206622010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20663
20664 CS5536 support.
20665
20666 * bus/cs5536.c: New file.
20667 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
20668 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
20669 (cs5536_mod_SOURCES): New variable.
20670 (cs5536_mod_CFLAGS): Likewise.
20671 (cs5536_mod_LDFLAGS): Likewise.
20672 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
20673 machine/pci.h.
20674 (kernel_img_SOURCES): Add bus/cs5536.c.
20675 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
20676 usb_keyboard.mod.
20677 (usb_mod_SOURCES): New variable.
20678 (usb_mod_CFLAGS): New variable.
20679 (usb_mod_LDFLAGS): New variable.
20680 (usbtest_mod_SOURCES): New variable.
20681 (usbtest_mod_CFLAGS): New variable.
20682 (usbtest_mod_LDFLAGS): New variable.
20683 (ohci_mod_SOURCES): New variable.
20684 (ohci_mod_CFLAGS): New variable.
20685 (ohci_mod_LDFLAGS): New variable.
20686 (usbms_mod_SOURCES): New variable.
20687 (usbms_mod_CFLAGS): New variable.
20688 (usbms_mod_LDFLAGS): New variable.
20689 (usb_keyboard_mod_SOURCES): New variable.
20690 (usb_keyboard_mod_CFLAGS): New variable.
20691 (usb_keyboard_mod_LDFLAGS): New variable.
20692 * include/grub/smbus.h: New file.
20693 * include/grub/cs5536.h: New file.
20694
0b35b2a9
CW
206952010-06-02 Colin Watson <cjwatson@ubuntu.com>
20696
20697 * util/grub.d/00_header.in: Add safety check to make sure that
20698 ${locale_dir} exists before trying to probe it.
20699
ca0afd5b
CW
207002010-06-02 Colin Watson <cjwatson@ubuntu.com>
20701
20702 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
20703 per the GNU Coding Standards; this is now too obscure to be worth
20704 documenting.
20705 (QNX): Likewise.
20706 (chainloader): Remove cross-reference to `SCO UnixWare'.
20707
1c41aa78
CW
207082010-06-02 Colin Watson <cjwatson@ubuntu.com>
20709
20710 * docs/grub.texi (Chain-loading): New section.
20711 (DOS/Windows): New section, borrowed from GRUB Legacy with details
20712 adjusted for GRUB 2.
20713 (SCO UnixWare): Likewise.
20714 (QNX): Likewise.
20715 (chainloader): Add reference to `Block list syntax'.
20716 (drivemap): New section.
20717 (parttool): New section.
20718
bb8ea0f5
CW
207192010-06-02 Colin Watson <cjwatson@ubuntu.com>
20720
20721 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
20722 the grub shell'.
20723 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
20724 (Installing GRUB using grub-install): Remove reference to the grub
20725 shell; mention `grub-mkimage' and `grub-setup' instead.
20726 (Invoking grub-install): Likewise.
20727 (Interface): Add reference to `Menu entry editor'.
20728 (serial): Remove `--device' option.
20729
288dd6ed
CW
207302010-06-02 Colin Watson <cjwatson@ubuntu.com>
20731
20732 * docs/grub.texi (Configuration): New section, documenting
20733 configuration file generation using grub-mkconfig. I've left a slot
20734 for documenting the full shell scripting format but have not yet
20735 started on writing that up.
20736 (Invoking grub-mkconfig): New section.
20737
34c9f0e9
CW
207382010-06-02 Colin Watson <cjwatson@ubuntu.com>
20739
20740 * docs/grub.texi (direntry): Remove grub-terminfo reference.
20741 (GNU GRUB manual): Likewise.
20742 (General commands): Update description of `terminfo' for GRUB 2.
20743
9121567e
CW
207442010-06-02 Colin Watson <cjwatson@ubuntu.com>
20745
20746 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
20747 (GRUB_MOD_INIT): Fix capitalisation.
20748 * docs/grub.texi (Command-line and menu entry commands): Document
20749 gettext and gptsync commands.
20750
ab631611
CW
207512010-06-02 Colin Watson <cjwatson@ubuntu.com>
20752
20753 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
20754 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
20755
bde4a9ac
CW
207562010-06-01 Colin Watson <cjwatson@ubuntu.com>
20757
20758 Add btrfs probing support, currently only in the single-device case.
20759
20760 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
20761 function.
20762 (grub_guess_root_device): Call find_root_device_from_mountinfo
20763 before looking in /dev.
20764
b1d17e10
VS
207652010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20766
20767 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
20768 GRUB_DISK_SIZE_UNKNOWN.
20769 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
20770
dfbfe004
JS
207712010-05-31 Jiro SEKIBA <jir@unicus.jp>
20772
20773 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
20774 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
20775 corrupted or not synced properly.
20776
c2ffc8e9
VS
207772010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20778
20779 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
20780 Reported by: Seth Goldberg.
20781
56293166
VS
207822010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20783
20784 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
20785 addition of dest.
20786 Reported by: Seth Goldberg.
20787
7620e7de
VS
207882010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20789
20790 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
20791 Reported by: Seth Goldberg.
20792
c837af3f
VS
207932010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
20794
20795 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
20796 64-bit address as signed on MIPS.
20797
c7c75cf4
CW
207982010-05-28 Colin Watson <cjwatson@ubuntu.com>
20799
20800 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
20801 to the empty string.
20802
fa4b8490
BC
208032010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
20804
20805 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
20806
20807 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
20808 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
20809 * kern/misc.c (__enable_execute_stack): Disable on
20810 GRUB_MACHINE_EMU.
20811
a33075b9
CW
208122010-05-28 Colin Watson <cjwatson@ubuntu.com>
20813
20814 Make grub-probe work with symbolic links under /dev/mapper as well
20815 as with real block devices. The Linux world seems to be (at best)
20816 in transition here, and GRUB shouldn't get caught in the middle.
20817
20818 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
20819 /dev/mapper.
20820
d8708134
CW
208212010-05-27 Colin Watson <cjwatson@ubuntu.com>
20822
20823 * util/grub-script-check.c (main): Ensure defined behaviour on empty
20824 input files (in which case exit zero).
20825
db2102a0
CW
208262010-05-27 Colin Watson <cjwatson@ubuntu.com>
20827
20828 * kern/emu/misc.c (canonicalize_file_name): realpath can still
20829 return NULL for various reasons even if it has a maximum-length
20830 buffer: for example, there might be a symlink loop, or the path
20831 might exceed PATH_MAX. If this happens, return NULL.
20832
5fdba519
RM
208332010-05-27 Robert Millan <rmh@gnu.org>
20834
20835 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
20836 partmap module to handle cross-partmap setups.
20837 Reported by Orestes Mas. Gràcies!
20838
d1d368e4
CW
208392010-05-27 Colin Watson <cjwatson@ubuntu.com>
20840
20841 * util/grub-mkrescue.in: Initialise override_dir rather than
20842 assuming that it's unset or empty in the environment.
20843
95ac3c73
GS
208442010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
20845
20846 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
20847 variable index into p_index to suppress a warning with -Wshadow.
20848
7d8c0213
BC
208492010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
20850
20851 * INSTALL: Added flex >= 2.5.35 requirement.
20852
db4d5813
VS
208532010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20854
20855 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
20856
f24f4300
VS
208572010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20858
20859 cmostest support.
20860
20861 * commands/i386/cmostest.c: New file.
20862 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
20863 (cmostest_mod_SOURCES): New variable.
20864 (cmostest_mod_CFLAGS): Likewise.
20865 (cmostest_mod_LDFLAGS): Likewise.
20866 * conf/i386-pc.rmk: Likewise.
20867 * docs/grub.texi (Vendor power-on keys): New section.
20868 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
20869 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
20870 and GRUB_BUTTON_CMOS_ADDRESS.
20871 * util/grub.d/00_header.in: Handle powering-on by separate button.
20872
ad603f61
VS
208732010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20874
20875 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
20876 Removed drawing_scrollbar argument. All users updated
20877 Fixes #29792.
20878 Reported by Jo Shields
20879
3ecb080a
VS
208802010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20881
20882 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
20883 buffer since gfxterm handles double repaint.
20884
5f2316c1
VS
208852010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
20886
20887 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
20888 * term/gfxterm.c (real_scroll): Likewise.
20889
9a25f885
VS
208902010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20891
20892 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
20893 before calling BIOS.
20894
39fbb79a
VS
208952010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20896
20897 * include/grub/i18n.h: Always enable grub_gettext.
20898
228cfa97
VS
208992010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
20900
20901 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
20902 partition naming style.
20903
21717c8f
CW
209042010-05-21 Colin Watson <cjwatson@ubuntu.com>
20905
20906 * util/grub-mkconfig.in: Fix handling of -o so that it works when
20907 not the first option.
20908
c0f48e65
CW
209092010-05-20 Colin Watson <cjwatson@ubuntu.com>
20910
20911 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
20912
96779aec
CW
209132010-05-20 Colin Watson <cjwatson@ubuntu.com>
20914
20915 * util/misc.c: Move inclusion of <limits.h> to ...
20916 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
20917
fa9d256e
GS
209182010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
20919
20920 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
20921 Fix merge error in NetBSD code.
20922 (find_partition_start) [__NetBSD__]: Likewise.
20923
123b7a85
BC
209242010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
20925
20926 Fix grub-mkrescue usage unit testing.
20927
20928 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
20929
74276c0d
CF
209302010-05-18 Christian Franke <franke@computer.org>
20931
20932 * util/grub.d/10_windows.in: Use path names instead of
20933 drive letters to prevent warning from Cygwin 1.7.
20934 Add drivemap command to menuentry if needed.
20935
c4f7b523
ST
209362010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
20937
20938 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
20939 gnumach and gnumach.gz.
20940
95b97950
VS
209412010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20942
20943 * include/grub/i18n.h (gettext): Inline instead of using #define.
20944 (grub_gettext): Likewise.
20945 (_): Likewise.
20946
01b8d2d7
VS
209472010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
20950 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
20951 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
20952 (main): Add a slash after pkglibdirroot.
20953
654e1d1e
VS
209542010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20955
20956 * util/grub-install.in: Add missing "in" keyword.
20957
26966aeb
VS
209582010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20959
20960 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
20961 Reported by: Seth Goldberg.
20962
75006747
VS
209632010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
20964
20965 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
20966
74cbf5bd
CW
209672010-05-18 Colin Watson <cjwatson@ubuntu.com>
20968
20969 * configure.ac: Check for Linux device-mapper support.
20970
20971 * util/hostdisk.c (device_is_mapped): New function.
20972 (find_partition_start): New function, partly broken out from
20973 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
20974 device-mapper support added.
20975 (linux_find_partition): Use find_partition_start.
20976 (convert_system_partition_to_system_disk): Add `st' argument.
20977 Support Linux /dev/mapper/* devices if device-mapper support is
20978 available; only DM-RAID devices are understood at present.
20979 (find_system_device): Add `st' argument. Pass it to
20980 convert_system_partition_to_system_disk.
20981 (grub_util_biosdisk_get_grub_dev): Pass stat result to
20982 find_system_device and convert_system_partition_to_system_disk. Use
20983 find_partition_start.
20984
20985 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
20986 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
20987 * util/deviceiter.c [__linux__]: Define MINOR.
20988 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
20989 * util/mkdevicemap.c (grub_putchar): New function.
20990 (grub_getkey): New function.
20991 (grub_refresh): New function.
20992 (main): Set debug=all if -v -v is used.
20993
355b51e9
CW
209942010-05-18 Colin Watson <cjwatson@ubuntu.com>
20995
20996 Fix build with non-GNU libcs.
20997
20998 * util/misc.c (canonicalize_file_name): Move to ...
20999 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21000 grub_make_system_path_relative_to_its_root.
21001
7fb5c25f
CW
210022010-05-18 Colin Watson <cjwatson@ubuntu.com>
21003
21004 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21005 we handle finding grub-mkimage. Default to finding grub-mkimage in
21006 ${bindir} with program_transform_name applied, and provide a
21007 --grub-mkimage option to override this.
21008
1d3293d6
VS
210092010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21010
21011 Remove grub-mkisofs.
21012
21013 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21014 (grub_mkisofs_SOURCES): Removed.
21015 (grub_mkisofs_CFLAGS): Removed.
21016 * util/mkisofs/defaults.h: Removed.
21017 * util/mkisofs/eltorito.c: Likewise.
21018 * util/mkisofs/exclude.h: Likewise.
21019 * util/mkisofs/hash.c: Likewise.
21020 * util/mkisofs/include/: Likewise.
21021 * util/mkisofs/include/fctldefs.h: Likewise.
21022 * util/mkisofs/include/mconfig.h: Likewise.
21023 * util/mkisofs/include/prototyp.h: Likewise.
21024 * util/mkisofs/include/statdefs.h: Likewise.
21025 * util/mkisofs/iso9660.h: Likewise.
21026 * util/mkisofs/joliet.c: Likewise.
21027 * util/mkisofs/match.c: Likewise.
21028 * util/mkisofs/match.h: Likewise.
21029 * util/mkisofs/mkisofs.c: Likewise.
21030 * util/mkisofs/mkisofs.h: Likewise.
21031 * util/mkisofs/msdos_partition.h: Likewise.
21032 * util/mkisofs/multi.c: Likewise.
21033 * util/mkisofs/name.c: Likewise.
21034 * util/mkisofs/rock.c: Likewise.
21035 * util/mkisofs/tree.c: Likewise.
21036 * util/mkisofs/write.c: Likewise.
21037
5dde9afe
VS
210382010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21039
21040 Unify grub-mkimage accross platforms.
21041
21042 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21043 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21044 (grub_mkelfimage_SOURCES): Removed.
21045 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21046 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21047 (bin_UTILITIES): Add grub-mkimage.
21048 (grub_mkimage_SOURCES): New variable.
21049 (kernel_img_HEADERS): Remove machine/kernel.h.
21050 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21051 (pkglib_PROGRAMS): Add kernel.img.
21052 (kernel_img_HEADERS): Add machine/kernel.h.
21053 (kernel_img_FORMAT): Removed.
21054 (bin_UTILITIES): Remove grub-mkimage.
21055 (grub_mkimage_SOURCES): Removed.
21056 (grub_mkimage_CFLAGS): Likewise.
21057 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21058 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21059 (pkglib_PROGRAMS): Add kernel.img.
21060 (bin_UTILITIES): Remove grub-mkimage.
21061 (grub_mkimage_SOURCES): Removed.
21062 (grub_mkimage_CFLAGS): Likewise.
21063 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21064 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21065 (pkglib_PROGRAMS): Add kernel.img.
21066 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21067 (pkglib_PROGRAMS): Add kernel.img.
21068 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21069 (grub_mkimage_SOURCES): Removed.
21070 (grub_mkimage_CFLAGS): Likewise.
21071 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21072 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21073 (pkglib_PROGRAMS): Add kernel.img.
21074 (bin_UTILITIES): Remove grub-mkimage.
21075 (grub_mkimage_SOURCES): Removed.
21076 (grub_mkimage_CFLAGS): Likewise.
21077 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21078 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21079 (grub_mkimage_SOURCES): Removed.
21080 (grub_mkimage_CFLAGS): Likewise.
21081 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21082 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21083 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21084 (grub_pe32_optional_header): ... this.
21085 (grub_pe64_optional_header): ... and this. All users updated.
21086 (GRUB_PE32_PE32_MAGIC): Split into ..
21087 (GRUB_PE32_PE32_MAGIC): .. this.
21088 (GRUB_PE32_PE64_MAGIC): .. and this.
21089 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21090 * include/grub/elf.h (PT_GNU_STACK): New definition.
21091 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21092 * include/grub/i386/efi/kernel.h: Likewise.
21093 * include/grub/i386/kernel.h: Likewise.
21094 * include/grub/i386/pc/kernel.h: Likewise.
21095 * include/grub/i386/qemu/boot.h: Likewise.
21096 * include/grub/mips/kernel.h: Likewise.
21097 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21098 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21099 * include/grub/powerpc/kernel.h: Likewise.
21100 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21101 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21102 * include/grub/sparc64/kernel.h: Likewise.
21103 * include/grub/x86_64/efi/kernel.h: Likewise.
21104 * include/grub/x86_64/kernel.h: Likewise.
21105 * include/grub/offsets.h: New file.
21106 * include/grub/kernel.h (grub_module_info): Split into ...
21107 (grub_module_info32): ... this.
21108 (grub_module_info64): ... and this.
21109 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21110 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21111 (grub_boot_blocklist): Moved from here ...
21112 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21113 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21114 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21115 * include/grub/types.h (grub_target_to_host16): Removed.
21116 (grub_target_to_host32): Likewise.
21117 (grub_target_to_host64): Likewise.
21118 (grub_host_to_target16): Likewise.
21119 (grub_host_to_target32): Likewise.
21120 (grub_host_to_target64): Likewise.
21121 (grub_host_to_target_addr): Likewise.
21122
21123 Support grub-mkrescue for efi, coreboot and qemu.
21124
21125 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21126 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21127 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21128 * util/grub-mkrawimage.c: Moved from here ...
21129 * util/grub-mkimage.c: ... here. All users updated.
21130 (ALIGN_ADDR): Use image_target.
21131 (TARGET_NO_FIELD): New const.
21132 (image_target_desc): New type.
21133 (image_targets): New array.
21134 (grub_target_to_host64): Use image_target.
21135 (grub_target_to_host32): Likewise.
21136 (grub_target_to_host16): Likewise.
21137 (grub_host_to_target64): Likewise.
21138 (grub_host_to_target32): Likewise.
21139 (grub_host_to_target16): Likewise.
21140 (grub_host_to_target_addr): Likewise.
21141 (generate_image): Handle multiimage.
21142 (main): Require -O parameter. All users updated.
21143 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21144 util/efi/grub-mkimage.c
21145 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21146 New option --rom-directory.
21147 Use xorriso.
21148 * util/i386/efi/grub-mkimage.c: Removed.
21149 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21150 (grub_target_to_host32): Likewise.
21151 (grub_target_to_host64): Likewise.
21152 (grub_host_to_target16): Likewise.
21153 (grub_host_to_target32): Likewise.
21154 (grub_host_to_target64): Likewise.
21155 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21156 (grub_target_to_host32): Likewise.
21157 (grub_target_to_host64): Likewise.
21158 (grub_host_to_target16): Likewise.
21159 (grub_host_to_target32): Likewise.
21160 (grub_host_to_target64): Likewise.
21161
f4fc97d0
BC
211622010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21163
21164 Source tree is reorganized for emu build.
21165
21166 * include/grub/util/console.h: Move from here...
21167 * include/grub/emu/console.h: ...to here.
21168 * include/grub/util/getroot.h: Move from here...
21169 * include/grub/emu/getroot.h: ...to here.
21170 * include/grub/util/hostdisk.h: Move from here...
21171 * include/grub/emu/hostdisk.h: ...to here.
21172 * util/console.c: Move from here...
21173 * kern/emu/console.c: ...to here.
21174 * util/getroot.c: Move from here...
21175 * kern/emu/getroot.c: ...to here.
21176 * util/grub-emu.c: Move from here...
21177 * kern/emu/main.c: ...to here.
21178 * util/hostdisk.c: Move from here...
21179 * kern/emu/hostdisk.c: ...to here.
21180 * util/hostfs.c: Move from here...
21181 * kern/emu/hostfs.c: ...to here.
21182 * util/mm.c: Move from here...
21183 * kern/emu/mm.c: ...to here.
21184 * util/pci.c: Move from here...
21185 * bus/emu/pci.c: ...to here.
21186 * util/sdl.c: Move from here...
21187 * video/emu/sdl.c: ...to here.
21188 * util/time.c: Move from here...
21189 * kern/emu/time.c: ...to here.
21190 * util/usb.c: Move from here...
21191 * bus/usb/emu/usb.c: ...to here.
21192
21193 * include/grub/emu/misc.h: New header for grub-emu functions.
21194 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21195
21196 * conf/any-emu.rmk: Rule updates for above renames.
21197 * conf/common.rmk: Likewise.
21198 * conf/i386-pc.rmk: Likewise.
21199 * conf/i386-qemu.rmk: Likewise.
21200 * conf/mips.rmk: Likewise.
21201 * conf/sparc64-ieee1275.rmk: Likewise.
21202 * conf/x86-efi.rmk: Likewise.
21203
21204 * disk/lvm.h: #include updates for above renames.
21205 * util/grub-mkrelpath.c: Likewise.
21206 * util/grub-probe.c: Likewise.
21207 * util/i386/pc/grub-setup.c: Likewise.
21208 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21209 * kern/emu/console.c: Likewise.
21210 * kern/emu/getroot.c: Likewise.
21211 * kern/emu/hostdisk.c: Likewise.
21212 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21213
21214 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21215 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21216 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21217 * util/misc.c: Remove grub-emu functions.
21218
cced9145
VS
212192010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21220
21221 Fix gfxmenu crash.
21222 Reported by: Thorsten Grützmacher.
21223
21224 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21225 timeout hook.
21226 (circprog_set_property): Register and unregister timeout hook.
21227 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21228 (label_destroy): Free template. and unregister hook.
21229 (label_set_state): New function.
21230 (label_set_property): Handle templates and hooks.
21231 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21232 timeout hook.
21233 (progress_bar_set_property): Register and unregister timeout hook.
21234 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21235 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21236 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21237 (update_timeout_visit): Removed.
21238 (update_timeouts): New function.
21239 (redraw_timeouts): Likewise.
21240 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21241 (grub_gfxmenu_clear_timeout): Likewise.
21242 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21243 (grub_gfxmenu_timeout_notify): Likewise.
21244 (grub_gfxmenu_timeout_notifications): New external variable.
21245 (grub_gfxmenu_timeout_register): New function.
21246 (grub_gfxmenu_timeout_unregister): Likewise.
21247
c6e5caab
VS
212482010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21249
21250 Transform (broken) vga terminal into (working) vga video driver.
21251
21252 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21253 video/i386/pc/vga.c.
21254 * include/grub/video.h (grub_video_driver_id):
21255 Add GRUB_VIDEO_DRIVER_VGA.
21256 * term/i386/pc/vga.c: Renamed to ...
21257 * video/i386/pc/vga.c: ...this
21258 (DEBUG_VGA): Removed.
21259 (CHAR_WIDTH): Likewise.
21260 (CHAR_HEIGHT): Likewise.
21261 (TEXT_WIDTH): Likewise.
21262 (TEXT_HEIGHT): Likewise.
21263 (DEFAULT_FG_COLOR): Likewise.
21264 (DEFAULT_BG_COLOR): Likewise.
21265 (colored_char): Likewise.
21266 (xpos): Likewise.
21267 (ypos): Likewise.
21268 (cursor_state): Likewise.
21269 (fg_color): Likewise.
21270 (bg_color): Likewise.
21271 (text_buf): Likewise.
21272 (page): Likewise.
21273 (font): Likewise.
21274 (framebuffer): New variable.
21275 (set_read_map): Disabled.
21276 (setup): New variable.
21277 (is_target): Likewise.
21278 (grub_vga_mod_init): Likewise.
21279 (grub_vga_mod_fini): Likewise.
21280 (check_vga_mem): Likewise.
21281 (write_char): Likewise.
21282 (write_cursor): Likewise.
21283 (scroll_up): Likewise.
21284 (grub_vga_putchar): Likewise.
21285 (grub_vga_getcharwidth): Likewise.
21286 (grub_vga_getwh): Likewise.
21287 (grub_vga_getxy): Likewise.
21288 (grub_vga_gotoxy): Likewise.
21289 (grub_vga_cls): Likewise.
21290 (grub_vga_setcolorstate): Likewise.
21291 (grub_vga_setcursor): Likewise.
21292 (grub_video_vga_init): New function.
21293 (grub_video_vga_setup): Likewise.
21294 (grub_video_vga_fini): Likewise.
21295 (update_target): Likewise.
21296 (grub_video_vga_blit_bitmap): Likewise.
21297 (grub_video_vga_blit_render_target): Likewise.
21298 (grub_video_vga_set_active_render_target): Likewise.
21299 (grub_video_vga_get_active_render_target): Likewise.
21300 (grub_video_vga_swap_buffers): Likewise.
21301 (grub_video_vga_set_palette): Likewise.
21302 (grub_video_vga_get_info_and_fini): Likewise.
21303 (grub_vga_term): Removed.
21304 (grub_video_vga_adapter): New variable.
21305 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21306 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21307
2bf61a98
VS
213082010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21309
21310 * video/readers/jpeg.c: Indented.
21311
09ddcd11
VS
213122010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21313
21314 Various jpeg cleanups.
21315
21316 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21317 (grub_jpeg_decode_quan_table): Use sizeof.
21318 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21319
e5507505
PH
213202010-05-05 Peter Hurley <No e-mail available> (tiny change)
21321
21322 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21323 tables. Ignore non-last ac bit.
21324 (grub_jpeg_decode_quan_table): Likewise.
21325
7e720a9b
VS
213262010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21327
21328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21329 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21330 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21331 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21332 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21333 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21334
a7fc080b
VS
213352010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21336
21337 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21338 error.
21339
2bf6012d
VS
213402010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21341
21342 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21343
265d68cd
VS
213442010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21345
21346 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21347 condition.
21348
213492010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
21350
21351 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21352 part.
21353
265d68cd 213542010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
21355
21356 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21357 pointers.
21358
265d68cd 213592010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
21360
21361 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21362
d1b61374
CF
213632010-05-01 Christian Franke <franke@computer.org>
21364
21365 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21366 Remove broken Cygwin path conversion.
21367 * util/misc.c: [__CYGWIN__] Add include and define.
21368 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21369 for Cygwin 1.7.
21370 (make_system_path_relative_to_its_root): Simplify loop, replace early
21371 return by break.
21372 [__CYGWIN__] Add conversion to win32 path.
21373 Include "/" case in trailing slash removal.
21374
3558c6e9
VS
213752010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21376
21377 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21378 Reported by: Seth Goldberg
21379
f5f3ff93
VS
213802010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21381
21382 * commands/help.c (grub_cmd_help): Fix a typo.
21383 Reported by: Seth Goldberg
21384
d8b5cd40
VS
213852010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21386
21387 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21388 name and add N_.
21389 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21390 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21391 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21392 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21393 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21394 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21395 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21396 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21397 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21398 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21399 * normal/context.c (GRUB_MOD_INIT): Likewise.
21400 * normal/main.c (GRUB_MOD_INIT): Likewise.
21401 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21402 * term/serial.c (GRUB_MOD_INIT): Likewise.
21403 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21404
88c14915
VS
214052010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21406
21407 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21408 extra == 0.
21409
165134bc
VS
214102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21411
21412 * commands/iorw.c: New file.
21413 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21414 (iorw_mod_SOURCES): New variable.
21415 (iorw_mod_CFLAGS): Likewise.
21416 (iorw_mod_LDFLAGS): Likewise.
21417
c5ac9b32
VS
214182010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21419
21420 Hotkey support
21421
21422 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21423 * normal/main.c (hotkey_aliases): New variable.
21424 (grub_normal_add_menu_entry): Parse "--hotkey".
21425 * normal/menu_text.c (run_menu): Handle hotkeys.
21426
ce60689c
VS
214272010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21428
21429 * kern/i386/coreboot/init.c (grub_machine_init): Call
21430 grub_machine_mmap_init on qemu.
21431
0359d006
VS
214322010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21433
21434 * boot/i386/qemu/boot.S: Add a missing .code16.
21435
7819a456
VS
214362010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21437
21438 Use LBIO on coreboot.
21439
21440 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21441 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21442 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21443 New declaration.
21444 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21445 grub_machine_mmap_init on coreboot.
21446 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21447 GRUB_LINUXBIOS_MEMBER_LINK.
21448 (grub_machine_mmap_iterate): Fix declaration.
21449 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21450
7210dca9
VS
214512010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21452
21453 Split coreboot and multiboot ports.
21454
21455 * conf/i386-multiboot.rmk: New file.
21456 * configure.ac: Add multiboot port.
21457 * include/grub/i386/multiboot/boot.h: New file.
21458 * include/grub/i386/multiboot/console.h: Likewise.
21459 * include/grub/i386/multiboot/init.h: Likewise.
21460 * include/grub/i386/multiboot/kernel.h: Likewise.
21461 * include/grub/i386/multiboot/loader.h: Likewise.
21462 * include/grub/i386/multiboot/memory.h: Likewise.
21463 * include/grub/i386/multiboot/serial.h: Likewise.
21464 * include/grub/i386/multiboot/time.h: Likewise.
21465 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21466 * loader/multiboot.c: Likewise.
21467 * loader/multiboot_mbi2.c: Likewise.
21468 * util/grub-mkrescue.in: Generate multiboot rescue.
21469
6f8aaf68
VS
214702010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21471
3080f7a7
VS
21472 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21473
214742010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21475
21476 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
21477
21478 * commands/terminal.c (abstract_terminal): New struct.
21479 (handle_command): New function. Based on grub_cmd_terminal_input.
21480 (grub_cmd_terminal_input): Use handle_command.
21481 (grub_cmd_terminal_output): Use handle_command.
21482
a8ebb841
BC
214832010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21484
21485 Fix comment handling.
21486
21487 * tests/grub_script_comments.in: New testcase.
21488 * conf/tests.rmk: Rules for new testcase.
21489 * script/yylex.l: Updated flex rules.
21490
bb06ba08
ST
214912010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21492
21493 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
21494 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21495 if argc is 1.
bb06ba08 21496
cc9d2425
VS
214972010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21498
21499 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21500 autogen issues.
21501
460d8402
CF
215022010-04-26 Christian Franke <franke@computer.org>
21503
21504 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21505 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21506 (grub_get_prefix): Remove function.
21507 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21508 make_system_path_relative_to_its_root ().
21509 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21510
553c01f9
CF
215112010-04-24 Christian Franke <franke@computer.org>
21512
21513 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21514 (kernel_img_LDFLAGS): Remove -static-libgcc.
21515
2aec1692
CF
215162010-04-24 Christian Franke <franke@computer.org>
21517
21518 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21519 and CHECK_END_SYMBOL if grub-emu is built.
21520 Unset TARGET_OBJ2ELF if grub-emu is built
21521 without module support.
21522
f67dc308
JS
215232010-04-24 Jiro SEKIBA <jir@unicus.jp>
21524
21525 Nilfs2 support.
21526
21527 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21528 (grub_fstest_SOURCES): Likewise.
21529 (pkglib_MODULES): Add nilfs2.mod.
21530 (nilfs2_mod_SOURCES): New variable.
21531 (nilfs2_mod_CFLAGS): Likewise.
21532 (nilfs2_mod_LDFLAGS): Likewise.
21533 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21534 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21535 * fs/nilfs2.c: New file.
21536
4ba8d354
VS
215372010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21538
21539 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21540 is not supported.
21541
0d2c20c6
GS
215422010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21543
21544 Add grub-mkconfig support for NetBSD.
21545
21546 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21547 * util/grub-mkconfig.in: export new NetBSD specific variables.
21548 * po/POTFILES-shell: added 10_netbsd.in.
21549 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21550
bc4a2d83
BC
215512010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21552
21553 Fix emu build with grub-emu-pci and grub-emu-modules.
21554
21555 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21556 functions.
21557 * include/grub/libpciaccess.h: New file.
21558 * conf/any-emu.rmk: Update kernel headers for emu build.
21559
f48c87aa
VS
215602010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21561
21562 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21563
18959385
VS
215642010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21565
21566 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21567
0037de3f
VS
215682010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21569
21570 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21571 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21572 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21573 util/ieee1275/ofpath.c.
21574 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21575 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21576 * include/grub/sparc64/ieee1275/boot.h
21577 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21578 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21579 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21580 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21581 const char *.
21582 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21583 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21584 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21585 install.
21586
38e55e90
GS
215872010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21588
21589 * util/grub-mkconfig.in: Corrected two == equality tests.
21590 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21591 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21592 expect a number appended to it.
21593 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21594 expects a number appended to it.
21595
a9e6ff28
VS
215962010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21597
21598 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21599
0b830b8f
VS
216002010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21601
21602 * util/hostdisk.c (make_device_name): Change to new partition naming.
21603
0973daeb
VS
216042010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21605
21606 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21607
460d8402 216082010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
21609
21610 * Makefile.in: Add missing localedir setting.
21611
0b456309
CW
216122010-04-14 Colin Watson <cjwatson@ubuntu.com>
21613
21614 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21615 mistake in r2156. Noticed by Anthony Fok.
21616
21617 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21618 @localedir@.
21619 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21620
08f46d62
BC
216212010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21622
21623 Fix a spurious, uninitialized variable warning.
21624
21625 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21626 Initialize variable, shdr.
21627 (grub_freebsd_load_elfmodule): Likewise.
21628 (grub_freebsd_load_elf_meta): Likewise.
21629
8c4a72d4
BC
216302010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21631
21632 Fix for escaped dollar in double quoted strings.
21633
21634 * script/yylex.l: Updated flex rules.
21635 * conf/tests.rmk: Rule for new testcase.
21636 * tests/grub_script_dollar.in: New testcase.
21637
ce44826e
CPE
216382010-04-13 Carles Pina i Estany <carles@pina.cat>
216392010-04-13 Colin Watson <cjwatson@ubuntu.com>
21640
21641 Enclose all translated strings in grub.cfg in single quotes, and
21642 escape them appropriately (Ubuntu bug #552921).
21643
21644 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21645 * util/grub.d/10_hurd.in: Use it.
21646 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21647 * util/grub.d/10_linux.in (linux_entry): Likewise.
21648
4b0cd8f8
VS
216492010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21650
21651 Fix cygwin compilation.
21652
21653 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21654 * include/grub/misc.h (__register_frame_info)
21655 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21656 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21657 * kern/misc.c (__register_frame_info)
21658 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21659 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21660
01fcf061
VS
216612010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21662
21663 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
21664
5d04b11e
VS
216652010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21666
21667 Unify libgcc processing.
21668
21669 * Makefile.in (kernel_img_LDFLAGS): New variable.
21670 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
21671 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
21672 overwriting.
21673 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
21674 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
21675 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
21676 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
21677 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
21678 overwriting. Remove -lgcc and -static-libgcc
21679 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
21680 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21681 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
21682 (kernel_img_LDFLAGS): Append instead of overwriting.
21683 Remove -lgcc and -static-libgcc
21684 * conf/sparc64-ieee1275.rmk: Likewise.
21685 * include/grub/powerpc/libgcc.h: Move to ...
21686 * include/grub/libgcc.h: .. this.
21687 * include/grub/libgcc.h: Don't export most of the function on x86.
21688 (__bswapsi2): New export.
21689 (__bswapdi2): Likewise.
21690 * include/grub/mips/libgcc.h: Removed.
21691 * include/grub/sparc64/libgcc.h: Likewise.
21692
b7f3ac29
VS
216932010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21694
21695 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
21696 disk_info_msg (conflicts with gettexting into languages with cases).
21697
2c7031b1
GS
216982010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
21699
21700 Add grub-probe support for NetBSD.
21701
21702 * util/getroot.c (find_root_device): Convert block device to
21703 character device on NetBSD.
21704 * util/probe.c (probe): Require character device on NetBSD.
21705 * util/hostdisk.c: NetBSD specific headers.
21706 (configure_device_driver): new function to tune device driver
21707 parameters (currently only for NetBSD floppy driver).
21708 (grub_util_biosdisk_open): NetBSD specific code (get disk size
21709 via disklabel ioctl).
21710 (open_device): call configure_device_driver on NetBSD.
21711 (convert_system_partition_to_system_disk): NetBSD specific code.
21712 (device_is_wholedisk): Likewise.
21713 (grub_util_biosdisk_get_grub_dev): Likewise.
21714 (make_device_name): Fixed a typo in bsd_part_str.
21715 * configure.ac: check for opendisk() and getrawpartition() on
21716 NetBSD and set LIBUTIL.
21717 * Makefile.in: add LIBUTIL to LIBS.
21718
f516290c
BC
217192010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21720
21721 Documentation fix.
21722
21723 * util/grub-script-check.c: Better help message.
21724
d8dcc0df
BC
217252010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
21726
21727 Fix FreeBSD build.
21728
21729 * configure.ac: Flex version check.
21730 * conf/common.rmk: Add -Wno-error to sh.mod.
21731 * script/yylex.l: Remove all #pragma.
21732
6734334a
VS
217332010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21734
21735 * include/grub/util/misc.h (canonicalise_file_name): Add missing
21736 prototype.
21737 Reported by: Seth Goldberg.
21738
daea6abd
VS
217392010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21740
21741 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
21742 Rename "module" to "module2".
21743 Reported by: Seth Goldberg.
21744
f2fd9d2b
VS
217452010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21746
21747 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
21748 EXPORT_FUNC.
21749 Reported by: Seth Goldberg.
21750
be124579
VS
217512010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21752
21753 * lib/posix_wrap/locale.h: Add missing file.
21754 Reported by: Seth Goldberg.
21755
ef5da797
VS
217562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
21757
21758 grub-emu module load support.
21759
21760 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
21761 NO_DYNAMIC_MODULES switched to this.
21762 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
21763 (CFLAGS): Likewise.
21764 * conf/any-emu.rmk: Generate symlist.
21765 (kernel_img_HEADERS): Add util/datetime.h.
21766 (kernel_img_HEADERS) [sdl]: Add sdl.h.
21767 (kernel_img_HEADERS) [libusb]: Add libusb.h.
21768 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
21769 kern/$(target_cpu)/cache.S.
21770 * configure.ac (grub-emu-modules): New option.
21771 * genmk.rb: Handle multiple source lists.
21772 * include/grub/sdl.h: New file.
21773 * include/grub/libusb.h: Likewise.
21774 * util/grub-emu.c (main): Hanle (host) root.
21775 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
21776 GRUB_ERR_UNKNOWN_DEVICE.
21777 * util/misc.c: Move mm functions to ...
21778 * util/mm.c: ... here. All users updated.
21779
47822096
VS
217802010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21781
21782 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
21783 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
21784 missing files.
21785 (maintainer-clean): Remove libgcrypt-grub.
21786
5d7e7445
VS
217872010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21788
21789 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
21790
25f4e252
EC
217912010-04-09 EFI Coder <eficoder@hotmail.com>
21792
21793 * normal/menu_text.c (print_message): Clean up the message and show
21794 the Fn information when on EFI
21795 * term/efi/console.c (grub_console_checkkey): Add F4 support.
21796
027de555
VS
217972010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21798
21799 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
21800 All users updated.
21801 * normal/crypto.c (read_crypto_list): Likewise.
21802 * normal/dyncmd.c (read_command_list): Likewise.
21803 * normal/term.c (read_terminal_list): Likewise.
21804 * normal/main.c (read_lists): Use explicit prefix.
21805 (read_lists_hook): Use read_lists.
21806 (grub_normal_execute): Likewise.
21807
47779711
VS
218082010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21809
21810 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
21811 Reported by: Thomas Schmitt.
21812 Add -no-emul-boot to grub-mkisofs parameters.
21813
1118c32e
VS
218142010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21815
21816 * font/font.c: Indented.
21817
7d652447
BC
218182010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21819
21820 Elif support to GRUB script (by Deepak Vankadaru).
21821
21822 * tests/grub_script_if.in: New testcase.
21823 * conf/tests.rmk: Rule for new testcase.
21824 * script/parser.y: Grammar rules for elif.
21825
34bb22df
BC
218262010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
21827
21828 While and until loops support to GRUB script.
21829
21830 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
21831 (grub_script_create_cmdwhile): New function prototype.
21832 (grub_script_execute_cmdwhile): New function prototype.
21833 * script/execute.c (grub_script_execute_cmdwhile): New function.
21834 * script/parser.y (command): New commands.
21835 (whilecmd): New grammar rule.
21836 (untilcmd): New grammar rule.
21837 * script/script.c (grub_script_create_cmdwhile): New function.
21838 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
21839 function.
21840
21841 * tests/grub_script_while1.in: New testcase.
21842 * conf/tests.rmk: Rule for new testcase.
21843
e215d8e0
VS
218442010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21845
21846 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
21847 as *.jpg.
21848
d7c43ba1
MV
218492010-04-09 Mario Vazquez <mariovazq@gmail.com>
21850
21851 GRUB_BACKGROUND support.
21852
21853 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
21854 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
21855
d64795c0
VS
218562010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21857
21858 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 21859 Idea by: Mario Vazquez
d64795c0
VS
21860
21861 * util/grub.d/00_header.in: Load pf2 and image modules.
21862
f267f83a
VS
218632010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21864
21865 grub-mkconfig multiple terminal support.
21866
21867 * util/grub-mkconfig.in: Handle multiple terminals correctly.
21868 * util/grub.d/00_header.in: Likewise.
21869
b7841ceb
VS
218702010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
21871
21872 * Makefile.in: Specify files explicitly instead of using $< and $@ since
21873 we use cd $(srcdir).
21874
df60998c
CW
218752010-04-08 Colin Watson <cjwatson@ubuntu.com>
21876
21877 * util/grub.d/10_linux.in: Only use the first word of
21878 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
21879 spaces in GRUB_DISTRIBUTOR.
21880 * util/grub.d/10_kfreebsd.in: Likewise.
21881 * util/grub.d/10_hurd.in: Likewise.
21882
fa09c82e
BC
218832010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
21884
14e18ae3 21885 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
21886
21887 * tests/util/grub-shell.in: Remove -serial stdio option.
21888
daf892b3
BC
218892010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
21890
21891 POSIX header file wrappers.
21892
21893 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
21894 equivalents.
21895 * lib/posix_wrap/ctype.h: Likewise.
21896 * lib/posix_wrap/errno.h: Likewise.
21897 * lib/posix_wrap/langinfo.h: Likewise.
21898 * lib/posix_wrap/limits.h: Likewise.
21899 * lib/posix_wrap/localcharset.h: Likewise.
21900 * lib/posix_wrap/stdint.h: Likewise.
21901 * lib/posix_wrap/stdio.h: Likewise.
21902 * lib/posix_wrap/stdlib.h: Likewise.
21903 * lib/posix_wrap/string.h: Likewise.
21904 * lib/posix_wrap/sys/types.h: Likewise.
21905 * lib/posix_wrap/unistd.h: Likewise.
21906 * lib/posix_wrap/wchar.h: Likewise.
21907 * lib/posix_wrap/wctype.h: Likewise.
21908 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
21909 (grub_script.yy.h): Likewise.
21910 * script/yylex.l: Remove POSIX emulation #defines.
21911 * Makefile.in (POSIX_CFLAGS): New variable.
21912 (GNULIB_UTIL_CFLAGS): Likewise.
21913
21914 Regexp support.
21915
21916 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
21917 (regexp_mod_SOURCES): New variable.
21918 (regexp_mod_CFLAGS): Likewise.
21919 (regexp_mod_LDFLAGS): Likewise.
21920 * commands/regexp.c: New file.
21921 * gnulib/regcomp.c: New file. Imported from gnulib.
21922 * gnulib/regex.c: Likewise.
21923 * gnulib/regex_internal.c: Likewise.
21924 * gnulib/regex_internal.h: Likewise.
21925 * gnulib/regexec.c: Likewise.
21926 * gnulib/regex.h: Likewise.
21927
974ac4f7
VS
219282010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21929
21930 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
21931 unsupported video mode types.
21932
2622c3ff
VS
219332010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21934
21935 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
21936
064cb524
VS
219372010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
21938
21939 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
21940 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
21941
a8c3b552
VS
219422010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
21943
21944 Remove unused grub_vga_get_font.
21945
21946 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
21947 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
21948
187bbe3d
GS
219492010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21950
21951 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
21952 * include/grub/misc.h: Likewise.
21953
b9396631
GS
219542010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21955
21956 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
21957 for which failure is fatal.
21958
50479feb
GS
219592010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21960
21961 * util/grub-install.in: Use mkdir -p to create grub directory.
21962 * util/i386/efi/grub-install.in: Likewise.
21963 * util/ieee1275/grub-install.in: Likewise.
21964
b1654fdf
GS
219652010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21966
21967 * Makefile.in (LEX): new variable.
21968
bd5a6415
GS
219692010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
21970
21971 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
21972 `=' and added double quotes on operands of this equality test.
21973
3db3a82b
VS
219742010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21975
21976 * Makefile.in (uninstall): Remove a leftover debug echo.
21977 Reported by: Grégoire Sutre
21978
38023412
VS
219792010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
21980
21981 MIPS multiboot2 support.
21982
21983 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
21984 (multiboot2_mod_SOURCES): New variable.
21985 (multiboot2_mod_CFLAGS): Likewise.
21986 (multiboot2_mod_LDFLAGS): Likewise.
21987 (multiboot2_mod_ASFLAGS): Likewise.
21988 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
21989 definition.
21990 (MULTIBOOT_ENTRY_REGISTER): Likewise.
21991 (MULTIBOOT_MBI_REGISTER): Likewise.
21992 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
21993 (MULTIBOOT_ELF32_MACHINE): Likewise.
21994 (MULTIBOOT_ELF64_MACHINE): Likewise.
21995 * include/grub/mips/multiboot.h: New file.
21996 * include/grub/video.h (grub_video_driver_id): New type
21997 GRUB_VIDEO_DRIVER_SM712.
21998 (grub_video_get_info_and_fini): Export.
21999 (grub_video_get_palette): Likewise.
22000 (grub_video_get_driver_id): Likewise.
22001 * include/multiboot2.h: Resynced with spec.
22002 * loader/i386/multiboot.c: Moved from here ...
22003 * loader/multiboot.c: ... here. All users updated.
22004 (grub_multiboot_boot): Use platform-specific macros.
22005 * loader/i386/multiboot_elfxx.c: Moved from here ...
22006 * loader/multiboot_elfxx.c: ... here. All users updated.
22007 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22008 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22009 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22010
47674667
VS
220112010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22012
22013 Import gnulib argp module.
22014
22015 * gnulib/argp-ba.c: New file.
22016 * gnulib/argp-eexst.c: Likewise.
22017 * gnulib/argp-fmtstream.c: Likewise.
22018 * gnulib/argp-fmtstream.h: Likewise.
22019 * gnulib/argp-fs-xinl.c: Likewise.
22020 * gnulib/argp-help.c: Likewise.
22021 * gnulib/argp-namefrob.h: Likewise.
22022 * gnulib/argp-parse.c: Likewise.
22023 * gnulib/argp-pin.c: Likewise.
22024 * gnulib/argp-pv.c: Likewise.
22025 * gnulib/argp-pvh.c: Likewise.
22026 * gnulib/argp-version-etc.c: Likewise.
22027 * gnulib/argp-version-etc.h: Likewise.
22028 * gnulib/argp-xinl.c: Likewise.
22029 * gnulib/argp.h: Likewise.
22030
495442ed
VS
220312010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22032
22033 * kern/device.c (grub_device_iterate): Clear errors after failed
22034 opening device.
22035
f9fd65df
VS
220362010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22037
22038 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22039 returned by firmware.
22040
af09641e
VS
220412010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22042
22043 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22044 compilation on coreboot and qemu
22045
016883a5
VS
220462010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22047
22048 * include/multiboot2.h: Resync with spec.
22049
f97e1f7d
VS
220502010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22051
22052 Multiboot2 tag support
22053
22054 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22055 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22056 Remove loader/multiboot_loader.c.
22057 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22058 (grub_multiboot2_real_boot): Likewise.
22059 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22060 (grub_get_multiboot_mmap_count): New proto.
22061 (grub_fill_multiboot_mmap): Likewise.
22062 (grub_multiboot_set_video_mode): Likewise.
22063 (grub_multiboot_set_console): Likewise.
22064 (grub_multiboot_load): Likewise.
22065 (grub_multiboot_load_elf): Likewise.
22066 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22067 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22068 * include/multiboot.h: Resynced with specification.
22069 * include/multiboot2.h: Resynced with specification.
22070 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22071 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22072 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22073 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22074 users updated.
22075 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22076 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22077 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22078 Removed.
22079 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22080 Moved from here...
22081 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22082 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22083 Moved from here...
22084 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22085 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22086 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22087 All users updated.
22088 * loader/i386/multiboot_mbi2.c: New file.
22089
3506b90b
VS
220902010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22091
22092 Resync with gnulib.
22093
22094 * Makefile.in (GNULIB_CFLAGS): New variable.
22095 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22096 (grub_script_check_CFLAGS): New variable.
22097 * gnulib/alloca.h: Resync with gnulib.
22098 * gnulib/error.c: Likewise.
22099 * gnulib/error.h: Likewise.
22100 * gnulib/fnmatch.c: Likewise.
22101 * gnulib/fnmatch_loop.c: Likewise.
22102 * gnulib/getdelim.c: Likewise.
22103 * gnulib/getline.c: Likewise.
22104 * gnulib/getopt.c: Likewise.
22105 * gnulib/getopt1.c: Likewise.
22106 * gnulib/getopt_int.h: Likewise.
22107 * gnulib/gettext.h: Likewise.
22108 * gnulib/progname.c: Likewise.
22109 * gnulib/progname.h: Likewise.
22110
394a3120
GS
221112010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22112
22113 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22114 which is the case with --disabled-nls.
22115
22116 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22117 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22118 * util/misc.c: Likewise.
22119 * util/mkisofs/mkisofs.c: Likewise.
22120 * util/mkisofs/mkisofs.h: Likewise.
22121
969d1c78
VS
221222010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22123
22124 Simplify Apple CC support.
22125
22126 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22127 Add 0 byte at the end not to have a symbol with empty target.
22128 * mmap/i386/pc/mmap_helper.S: Likewise.
22129 * genmk.rb: Ignore errors 2030 and 2050.
22130 * kern/i386/pc/startup.S: Use LOCAL when possible.
22131
8d2977bb
BC
221322010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22133
22134 Testcase and the fix for final semicolon on cmdline.
22135
22136 * tests/grub_script_final_semicolon.in: New testcase.
22137 * conf/tests.rmk: Rules for the new testcase.
22138 * script/parser.y: Grammar fix.
22139
a7bd6915
BC
221402010-03-26 BVK Chaitanya <bvk@localhost>
22141
22142 Blank lines testcase for GRUB script.
22143
22144 * tests/grub_script_blanklines.in: New testcase.
22145 * conf/tests.rmk: Rules for the new testcase.
22146
e4ff6628
VS
221472010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22148
22149 Don't use __FILE__.
22150
22151 * genmk.rb: Add -DGRUB_FILE to all C targets.
22152 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22153 * include/grub/list.h: Likewise.
22154 * include/grub/misc.h: Likewise.
22155 * include/grub/mm.h: Likewise.
22156 * include/grub/test.h: Likewise.
22157 * kern/mm.c: Likewise.
22158 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22159
6a5cf6b6
VS
221602010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22161
22162 Sunpc partitions support.
22163
22164 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22165 (grub_fstest_SOURCES): Likewise.
22166 (pkglib_MODULES): Add part_sunpc.mod.
22167 (part_sunpc_mod_SOURCES): New variable.
22168 (part_sunpc_mod_CFLAGS): Likewise.
22169 (part_sunpc_mod_LDFLAGS): Likewise.
22170 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22171 * partmap/sunpc.c: New file.
22172
746d9045
BC
221732010-03-26 BVK Chaitanya <bvk@localhost>
22174
22175 For loop support to GRUB script.
22176
22177 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22178 (grub_script_create_cmdfor): New function prototype.
22179 (grub_script_execute_cmdfor): New function prototype.
22180 * script/execute.c (grub_script_execute_cmdfor): New function.
22181 * script/parser.y (command): New for command.
22182 (forcmd): New grammar rule.
22183 * script/script.c (grub_script_create_cmdfor): New function.
22184 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22185 function.
22186 * tests/grub_script_for1.in: New testcase.
22187 * conf/tests.rmk: Rules for new testcase.
22188
18486b18
VS
221892010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22190
22191 Nested partitions
22192
22193 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22194 'partition' is NULL, grub_partition_get_start already does that.
22195 * commands/loadenv.c (check_blocklists): Likewise.
22196 (write_blocklists): Likewise.
22197 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22198 (grub_fstest_SOURCES): Likewise.
22199 (pkglib_MODULES): Add part_bsd.mod.
22200 (part_bsd_mod_SOURCES): New variable.
22201 (part_bsd_mod_CFLAGS): Likewise.
22202 (part_bsd_mod_LDFLAGS): Likewise.
22203 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22204 (grub_emu_SOURCES): Likewise.
22205 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22206 * include/grub/bsdlabel.h: New file.
22207 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22208 'get_name'.
22209 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22210 (grub_partition_map_list): New variable.
22211 (grub_partition_map_register): Inline.
22212 (grub_partition_map_unregister): Likewise.
22213 (FOR_PARTITION_MAPS): New macro.
22214 (grub_partition_map_iterate): Removed.
22215 (grub_partition_get_start): Handle nested partitions.
22216 * include/grub/msdos_partition.h: Remove bsd-related entries.
22217 (grub_pc_partition): Remove.
22218 * kern/disk.c (grub_disk_close): Free partition data.
22219 (grub_disk_adjust_range): Handle nested partitions.
22220 * kern/partition.c (grub_partition_map_probe): New function.
22221 (grub_partition_probe): Parse name to number, handle subpartitions.
22222 (get_partmap): New function.
22223 (grub_partition_iterate): Handle subpartitions.
22224 (grub_partition_get_name): Likewise.
22225 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22226 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22227 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22228 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22229 Set 'number'.
22230 (acorn_partition_map_probe): Remove.
22231 (acorn_partition_map_get_name): Likewise.
22232 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22233 Set 'number'.
22234 Set 'index' to 0 since there can be only one partition entry per sector.
22235 (amiga_partition_map_probe): Remove.
22236 (amiga_partition_map_get_name): Likewise.
22237 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22238 Set 'number'.
22239 Set 'offset' and 'index' to real positions of partitions.
22240 (apple_partition_map_probe): Remove.
22241 (apple_partition_map_get_name): Likewise.
22242 * partmap/bsdlabel.c: New file.
22243 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22244 Set 'number'.
22245 Allocate 'data' so it can be correctly freed.
22246 Set 'index' to offset inside sector.
22247 (gpt_partition_map_probe): Remove.
22248 (gpt_partition_map_get_name): Likewise.
22249 * partmap/msdos.c (grub_partition_parse): Remove.
22250 (pc_partition_map_iterate): Don't force raw access.
22251 Set 'number'.
22252 Make 'ext_offset' a local variable.
22253 (pc_partition_map_probe): Remove.
22254 (pc_partition_map_get_name): Remove.
22255 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22256 Set 'number'.
22257 (sun_partition_map_probe): Remove.
22258 (sun_partition_map_get_name): Likewise.
22259 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22260 (grub_pcpart_type): Likewise.
22261 * util/hostdisk.c (open_device): Handle new numbering scheme.
22262 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22263 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22264 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22265 * util/grub-install.in: Insert all subpartition modules.
22266 * util/ieee1275/grub-install.in: Likewise.
22267
a3940f88
AG
222682010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22269
22270 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22271 grammar.
22272
21b99926 222732010-03-24 Colin Watson <cjwatson@ubuntu.com>
22274
22275 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22276
bed1d352
CW
222772010-03-21 Colin Watson <cjwatson@ubuntu.com>
22278
22279 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22280 match where 'make install' puts them.
22281 * util/i386/efi/grub-install.in: Likewise.
22282
c9f58427
CW
222832010-03-19 Colin Watson <cjwatson@ubuntu.com>
22284
22285 * .bzrignore: Add gentrigtables, grub-script-check,
22286 grub_script_check_init.c, grub_script_check_init.h, and
22287 trigtables.c.
22288
f84afb27
VS
222892010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22290
22291 * kern/parser.c: Indented.
22292
ed0e3d30
VS
222932010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22294
22295 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22296
0ea81d98
VS
222972010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22298
22299 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22300 alpha_mask_size == 0 case.
22301
0cdc2a09
BC
223022010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22303
22304 GRUB shell lexer and parser improvements.
22305
22306 * conf/any-emu.rmk: Build rule updates.
22307 * conf/common.rmk: Likewise.
22308 * conf/i386-coreboot.rmk: Likewise.
22309 * conf/i386-efi.rmk: Likewise.
22310 * conf/i386-ieee1275.rmk: Likewise.
22311 * conf/i386-pc.rmk: Likewise.
22312 * conf/powerpc-ieee1275.rmk: Likewise.
22313 * conf/x86_64-efi.rmk: Likewise.
22314
22315 * configure.ac: Configure check for flex.
22316
22317 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22318 types.
22319 (grub_lexer_param): Struct member updates.
22320 (grub_parser_param): Likewise.
22321 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22322 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22323 (grub_script_lexer_init): Prototype update.
22324 (grub_script_lexer_record_start): Likewise.
22325 (grub_script_lexer_record_stop): Likewise.
22326 (grub_script_lexer_yywrap): New function prototype.
22327 (grub_script_lexer_fini): Likewise.
22328 (grub_script_execute_argument_to_string): Removed by...
22329 (grub_script_execute_argument_to_argv): ...better version.
22330
22331 * script/execute.c (ROUND_UPTO): New macro.
22332 (grub_script_execute_cmdline): Out of memory fixes.
22333 (grub_script_execute_menuentry): Likewise.
22334 (grub_script_execute_argument_to_string): Removed. Update all
22335 users by...
22336 (grub_script_execute_argument_to_argv): ...better version.
22337 * script/function.c (grub_script_function_create): Use
22338 grub_script_execute_argument_to_argv instead of
22339 grub_script_execute_argument_to_string.
22340
22341 * script/lexer.c (check_varstate): Removed.
22342 (check_textstate): Removed.
22343 (grub_script_lexer_record_start): Likewise.
22344 (grub_script_lexer_record_stop): Likewise.
22345 (recordchar): Replaced with...
22346 (grub_script_lexer_record): ...new function.
22347 (nextchar): Removed.
22348 (grub_script_lexer_init): Rewritten.
22349 (grub_script_yylex): Rewritten.
22350 (append_newline): New function.
22351 (grub_script_lexer_yywrap): New function.
22352 (grub_script_lexer_fini): New function.
22353 (grub_script_yyerror): Sets error flag.
22354
22355 * script/yylex.l: New file.
22356 (grub_lexer_yyfree): Wrapper for flex yyffre.
22357 (grub_lexer_yyalloc): Likewise.
22358 (grub_lexer_yyrealloc): Likewise.
22359 * script/parser.y: Refactored.
22360
22361 * script/script.c (grub_script_arg_add): Out of memory fixes.
22362 (grub_script_add_arglist): Likewise.
22363 (grub_script_create_cmdline): Likewise.
22364 (grub_script_create_cmdmenu): Likewise.
22365 (grub_script_add_cmd): Likewise.
22366 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22367 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22368 unnecessary code.
22369
22370 * tests/grub_script_echo1.in: New testcase.
22371 * tests/grub_script_vars1.in: New testcase.
22372 * tests/grub_script_echo_keywords.in: New testcase.
22373
1d63a066
VS
223742010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22375
22376 Remove some redundancy in build system.
22377
22378 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22379 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22380 (TARGET_LDFLAGS): Add -nostdlib.
22381 (TARGET_IMG_LDFLAGS): Likewise.
22382 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22383 anything since mmap isn't available.
22384 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22385 Add util/time.c.
22386 (pkglib_MODULES): Remove reboot.mod.
22387 (reboot_mod_SOURCES): Removed.
22388 (reboot_mod_CFLAGS): Likewise.
22389 (reboot_mod_LDFLAGS): Likewise.
22390 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22391 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22392 (DEFSYMFILES): Add kernel_syms.lst.
22393 (kernel_img_HEADERS): Add common headers.
22394 (symlist.c): New target.
22395 (kernel_syms.lst): Likewise.
22396 (pkglib_MODULES): Add memdisk.mod.
22397 (memdisk_mod_SOURCES): New variable.
22398 (memdisk_mod_CFLAGS): Likewise.
22399 (memdisk_mod_LDFLAGS): Likewise.
22400 (pkglib_MODULES): Add reboot.mod.
22401 (reboot_mod_SOURCES): New variable.
22402 (reboot_mod_CFLAGS): Likewise.
22403 (reboot_mod_LDFLAGS): Likewise.
22404 (pkglib_MODULES): Add date.mod.
22405 (date_mod_SOURCES): New variable.
22406 (date_mod_CFLAGS): Likewise.
22407 (date_mod_LDFLAGS): Likewise.
22408 (pkglib_MODULES): Add datehook.mod.
22409 (datehook_mod_SOURCES): New variable.
22410 (datehook_mod_CFLAGS): Likewise.
22411 (datehook_mod_LDFLAGS): Likewise.
22412 (pkglib_MODULES): Add lsmmap.mod.
22413 (lsmmap_mod_SOURCES): New variable.
22414 (lsmmap_mod_CFLAGS): Likewise.
22415 (lsmmap_mod_LDFLAGS): Likewise.
22416 (pkglib_MODULES): Add boot.mod.
22417 (boot_mod_SOURCES): New variable.
22418 (boot_mod_CFLAGS): Likewise.
22419 (boot_mod_LDFLAGS): Likewise.
22420 * conf/i386-coreboot.rmk: Removed redundant parts.
22421 * conf/i386-ieee1275.rmk: Likewise.
22422 * conf/i386-pc.rmk: Likewise.
22423 * conf/mips-yeeloong.rmk: Likewise.
22424 * conf/mips.rmk: Likewise.
22425 * conf/powerpc-ieee1275.rmk: Likewise.
22426 * conf/sparc64-ieee1275.rmk: Likewise.
22427 * conf/x86_64-efi.rmk: Likewise.
22428 * conf/i386-coreboot.rmk: Moved qemu parts ..
22429 * conf/i386-qemu.rmk: ... here
22430 * conf/i386-efi.rmk: Moved common parts to...
22431 * conf/x86-efi.rmk: ... here.
22432 * conf/i386.rmk: Added modules common to all x86 variants.
22433 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22434 * disk/memdisk.c: Remove grub/machine/kernel.h.
22435 * gensymlist.sh.in: Include symbol.h.
22436 * hook/datehook.c: Correct module name.
22437 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22438 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22439 * include/grub/i386/efi/serial.h: New file.
22440 * include/grub/x86_64/efi/serial.h: Likewise.
22441 * util/time.c: Likewise.
22442 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22443
463ac55f
CK
224442010-03-14 Colin King <colin.king@ubuntu.com>
224452010-03-14 Colin Watson <cjwatson@ubuntu.com>
22446
22447 Shrink the pre-partition-table part of boot.img by eight bytes.
22448
22449 * boot/i386/pc/boot.S (ERR): New macro.
22450 (chs_mode): Use ERR.
22451 (geometry_error): Likewise.
22452 (hd_probe_error): Remove. This is only used once, so we wrwite
22453 it inline instead.
22454 (read_error): Instead of printing read_error_string, just set up
22455 %si and fall through to ...
22456 (error_message): ... this new function, also used by ERR.
22457
08e46ede
CW
224582010-03-14 Colin Watson <cjwatson@ubuntu.com>
22459
22460 Speed up consecutive hostdisk operations on the same device.
22461
22462 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22463 (grub_util_biosdisk_open): Initialise disk->data.
22464 (struct linux_partition_cache): New structure.
22465 (linux_find_partition): Cache partition start positions; these are
22466 expensive to compute on every read and write.
22467 (open_device): Cache open file descriptor in disk->data, so that we
22468 don't have to reopen it and flush the buffer cache for consecutive
22469 operations on the same device.
22470 (grub_util_biosdisk_close): New function.
22471 (grub_util_biosdisk_dev): Set `close' member.
22472
22473 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22474 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22475 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22476 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22477 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22478
4a6d2d06
VS
224792010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22480
22481 Compile parts of grub-emu as modules.
22482
22483 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22484 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22485 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22486 (all-local): Add $(GRUB_EMU).
22487 (install-local): Install $(GRUB_EMU).
22488 (uninstall): Uninstall $(GRUB_EMU).
22489 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22490 * kern/dl.c: Likewise.
22491 * commands/sleep.c: Not include machine/time.h.
22492 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22493 (COMMON_CFLAGS): Likewise.
22494 (sbin_UTILITIES): Remove grub-emu.
22495 (grub_emu_SOURCES): Removed.
22496 (kernel_img_RELOCATABLE): New variable.
22497 (pkglib_PROGRAMS): Add kernel.img.
22498 (kernel_img_SOURCES): New variable
22499 (kernel_img_CFLAGS): Likewise.
22500 (kernel_img_LDFLAGS): Likewise.
22501 (TARGET_NO_STRIP): Likewise.
22502 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22503 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22504 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22505 (grub-emu): New target.
22506 (GRUB_EMU): New variable.
22507 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22508 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22509 * loader/xnu.c: Likewise.
22510 * include/grub/pci.h: Likewise.
22511 * genemuinit.sh: New file.
22512 * genemuinitheader.sh: Likewise.
22513 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22514 Support TARGET_NO_DYNAMIC_MODULES.
22515 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22516 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22517 * disk/loopback.c: Likewise.
22518 * font/font_cmd.c: Likewise.
22519 * partmap/acorn.c: Likewise.
22520 * partmap/amiga.c: Likewise.
22521 * partmap/apple.c: Likewise.
22522 * partmap/gpt.c: Likewise.
22523 * partmap/msdos.c: Likewise.
22524 * partmap/sun.c: Likewise.
22525 * parttool/msdospart.c: Likewise.
22526 * term/gfxterm.c: Likewise.
22527 * video/bitmap.c: Likewise.
22528 * video/readers/jpeg.c: Likewise.
22529 * video/readers/png.c: Likewise.
22530 * video/readers/tga.c: Likewise.
22531 * video/video.c: Likewise.
22532 * util/grub-emu.c (read_command_list): Removed.
22533 (main): Don't call util_init_nls.
22534 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22535 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22536
91fdd2ed
VS
225372010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22538
22539 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22540 date.mod, datehook.mod.
22541 (datetime_mod_SOURCES): New variable.
22542 (datetime_mod_CFLAGS): Likewise.
22543 (datetime_mod_LDFLAGS): Likewise.
22544 (date_mod_SOURCES): Likewise.
22545 (date_mod_CFLAGS): Likewise.
22546 (date_mod_LDFLAGS): Likewise.
22547 (datehook_mod_SOURCES): Likewise.
22548 (datehook_mod_CFLAGS): Likewise.
22549 (datehook_mod_LDFLAGS): Likewise.
22550 * conf/sparc64-ieee1275.rmk: Likewise.
22551 * lib/ieee1275/datetime.c: New file.
22552
873ccae6
VS
225532010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22554
22555 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22556 (ieee1275_fb_mod_SOURCES): New variable.
22557 (ieee1275_fb_mod_CFLAGS): Likewise.
22558 (ieee1275_fb_mod_LDFLAGS): Likewise.
22559 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22560 New proto.
22561 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22562 (HEAP_MAX_ADDR): Likewise.
22563 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22564 type.
22565 Correct stop condition.
22566 (grub_ieee1275_devices_iterate): New function.
22567 * video/ieee1275.c: New file.
22568
601c97c0
VS
225692010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22570
22571 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22572
22573 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22574 as scratch.
22575 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22576 SCRATCH_PAD_DISKBOOT as scratch.
22577 (bootit): Pass Openfirmware pointer in %o4.
22578 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22579 of 0x200000.
22580 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22581 with util/grub-mkrawimage.c.
22582 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22583 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22584 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22585 (grub_aout_load) [GRUB_UTIL]: Likewise.
22586 * include/grub/kernel.h (grub_modules_get_end): New proto.
22587 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22588 (SCRATCH_PAD_BOOT): New definition.
22589 (SCRATCH_PAD_DISKBOOT): Likewise.
22590 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22591 * include/grub/sparc64/ieee1275/ieee1275.h
22592 (grub_ieee1275_original_stack): New variable
22593 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22594 New definition
22595 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22596 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22597 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22598 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22599 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22600 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22601 (grub_platform_image_format_t): New type.
22602 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22603 * kern/main.c (grub_modules_get_end)
22604 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22605 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22606 (codestart): Switch stacks.
22607 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22608 variable.
22609 (grub_heap_init): Use grub_modules_get_end.
22610 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22611 stack.
22612 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22613 (main): Likewise.
22614 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22615
d68b491e
TG
226162010-03-14 Thorsten Glaser <tg@mirbsd.org>
22617
22618 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22619
4e02ed50
MK
226202010-03-08 Matt Kraai <kraai@ftbfs.org>
22621
22622 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22623 bug #559005).
22624
1f15fc1e
VS
226252010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22626
22627 * genmoddep.awk: Output all missing symbols and not only first.
22628
fce5d8ff
VS
226292010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22630
22631 * NEWS: Put the date of 1.98 release.
22632
d1e8a02f
VS
226332010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22634
22635 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22636 ft2build.h.
22637
696fd607
VS
226382010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22639
22640 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22641 completition in the middle of string.
22642
33e2e6f3
VS
226432010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22644
22645 * util/grub-mkrescue.in: Use mktemp with explicit template.
22646
b1f6d291
VS
226472010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22650
2ac227c7
VS
226512010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22652
22653 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22654 right pointer.
22655
8f9a632b
VS
226562010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22657
22658 Fix FreeBSD compilation.
22659
22660 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22661 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22662
60b03859
VS
226632010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22664
22665 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
22666
48a5a769
VS
226672010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22668
22669 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
22670
3ab4bd77
VS
226712010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22672
22673 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
22674
d116e0d8
RM
226752010-03-04 Robert Millan <rmh.grub@aybabtu.com>
22676
22677 Support relative image path in theme file.
22678
22679 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
22680 (image_set_property): Handle theme_dir and relative path.
22681
c7ef54aa
VS
226822010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22683
22684 * configure.ac: Alias amd64 to x86_64.
22685
fcee14ed
VS
226862010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22687
22688 * NEWS: mention multiboot on EFI.
22689
d0780363
VS
226902010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22691
22692 * kern/main.c (grub_load_modules): Handle errors from init functions of
22693 embeded modules.
22694
41168ea4
VS
226952010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22696
22697 * normal/autofs.c (autoload_fs_module): Handle errors.
22698
b54d93ac
VS
226992010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22700
22701 Disable linux.mod on qemu-mips since it's not functional and leads
22702 to compilation failure.
22703
22704 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
22705 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
22706 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
22707 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
22708 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
22709 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
22710 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
22711 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
22712 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
22713 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
22714 Reported by: BVK Chaitanya
22715
fc8345da
JU
227162010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
22717
22718 * INSTALL: Add gettext as a dependency and add qemu to a new section
22719 "Prerequisites for make-check".
22720
4760f979
CF
227212010-03-04 Christian Franke <franke@computer.org>
22722
22723 * util/grub-pe2elf.c: Add missing include "progname.h".
22724
f209b5b2
VS
227252010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22726
22727 * normal/crypto.c (read_crypto_list): Fix a typo.
22728 Reported by: Seth Goldberg.
22729
b4b7be98
VS
227302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22731
22732 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 22733 Reported by: Seth Goldberg.
b4b7be98 22734
c0ee0385
VS
227352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22736
22737 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
22738 ascii.bitmaps.
22739
a8efbf64
VS
227402010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22741
22742 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 22743 Reported by: Seth Goldberg.
a8efbf64 22744
08dcd913
VS
227452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
22746
22747 * util/i386/efi/grub-install.in: Copy gettext files.
22748
c4d0b332
VS
227492010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22750
22751 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
22752
c6f2fe52
VS
227532010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22754
22755 Wait for user entry basing on presence of output rather than on errors.
22756
22757 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
22758 (grub_install_newline_hook): Likewise.
22759 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
22760 * normal/menu.c (show_menu): Check line_counter to determine presence
22761 of output.
22762 * normal/term.c (grub_normal_line_counter): New variable.
22763 (grub_normal_get_line_counter): New function.
22764 (grub_install_newline_hook): Likewise.
22765
5382b1e4
VS
227662010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22767
22768 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
22769
5519963b
VS
227702010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
22771
22772 * configure.ac: Update version to 1.98.
22773
72b28631
VS
227742010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22775
22776 * util/grub.d/10_linux.in (linux_entry): Don't default to
22777 gfxpayload=keep if Linux doesn't support video handover.
22778
c140a180
VS
227792010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
22780
22781 Don't compile video modules on yeeloong since video subsystem is part
22782 of kernel.
22783
22784 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
22785 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
22786 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
22787 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
22788 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
22789 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
22790 * include/grub/bitmap_scale.h: Likewise.
22791 * include/grub/bufio.h: Likewise.
22792 * include/grub/font.h: Likewise.
22793 * include/grub/gfxterm.h: Likewise.
22794 * include/grub/video.h: Likewise.
22795 * include/grub/vbe.h: Don't include video_fb.h.
22796 * video/i386/pc/vbe.c: Include video_fb.h.
22797 * commands/i386/pc/vbetest.c: Include video.h.
22798
a0ca21c2
CW
227992010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
22800
22801 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
22802 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
22803 default entry if GRUB_SAVEDEFAULT=true. This allows using
22804 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
22805 saving a new default on every boot.
22806
4a8a763c
VS
228072010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22808
22809 * normal/crypto.c (read_crypto_list): Fix a memory leak.
22810 * normal/term.c (read_terminal_list): Likewise.
22811 * normal/main.c (grub_normal_init_page): Likewise.
22812 (grub_normal_read_line_real): Likewise.
22813
607ffde2
VS
228142010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
22815
22816 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
22817 memory leak.
22818 Reported by: Seth Goldberg.
22819
2b8fa975
CW
228202010-02-24 Joey Korkames <joey+lists@kidfixit.com>
22821
22822 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
22823 duplicate declaration of `start'.
22824
618307dd
VS
228252010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22826
22827 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
22828 filename.
22829 Reported by: Georgy Buranov
22830
7dd05b96 228312010-02-20 Carles Pina i Estany <carles@pina.cat>
22832
22833 * util/grub-mkrawimage.c (usage): Change string formatting to
22834 improve gettext.
22835
d1484a42
MRA
228362010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22837
22838 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
22839 backspace keys.
22840
42b1d186
VS
228412010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
22842
22843 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
22844 Reported by: Michael Suchanek.
22845
228462010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
22847
22848 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
22849 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
22850
d9f31a41
VS
228512010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
22852
22853 Remove any reference to non-free fonts.
22854
22855 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
22856 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
22857 uses non-free components.
22858 * font/font.c (grub_font_get_name): Remove example name.
22859 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
22860 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22861 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
22862 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
22863
2793c71e
GB
228642010-02-16 Georgy Buranov <gburanov@gmail.com>
22865
22866 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
22867
402e3779
VS
228682010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22869
22870 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
22871 Double divisor.
22872 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
22873 features.
22874 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
22875
0dd1e0dd
VS
228762010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
22877
22878 * gensymlist.sh.in: Use TARGET_CC instead of CC.
22879
6fa7cfce
ST
228802010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22881
22882 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
22883 * docs/grub.texi (Command-line and menu entry commands): Document play
22884 command.
22885
37c8483b
ST
228862010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22887
22888 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
22889 parse arguments as inline tempo and notes. Move code for playing notes
22890 to...
22891 (play): ... new function.
22892
14da0fb7
ST
228932010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
22894
22895 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
22896 grub_uint16_t instead of short.
22897 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
22898 disk from little endian to cpu endianness.
22899
04459e70
ST
229002010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
22901
22902 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
22903 GRUB_TICKS_PER_SECOND instead of 120.
22904
a0876943
VS
229052010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22906
22907 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
22908 escape sequence after \e.
22909
e29f95dc
VS
229102010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22911
22912 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
22913 non-ASCII characters.
22914
d27859b2
VS
229152010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22916
22917 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
22918 set root in single quotes to prevent \, from being unescaped.
22919
bc028f2f
VS
229202010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22921
22922 Prevent unknown commands from stopping menuentry execution.
22923
22924 * script/execute.c (grub_script_execute_cmdline): Print error after
22925 unknown command.
22926
095f5f82
VS
229272010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
22928
22929 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
22930 Reported by: Pavel Pisa.
22931
8c717950
VS
229322010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22933
22934 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
22935
904935c3
VS
229362010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22937
22938 Merge grub_ieee1275_map_physical into grub_map and rename to
22939 grub_ieee1275_map
22940
22941 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
22942 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
22943 Remove.
22944 * kern/ieee1275/openfw.c (grub_map): Rename to ...
22945 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
22946 necessary.
22947 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
22948
5b59a4e3
VS
229492010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22950
22951 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
22952 opening and not after.
22953
69e137e8
VS
229542010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22955
22956 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
22957 constants.
22958
2c0fcc36
VS
229592010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22960
22961 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
22962 (alloc_phys): Use ALIGN_UP instead of align_addr.
22963
8c6052ce
VS
229642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22965
22966 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
22967
17cec782
VS
229682010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22969
22970 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
22971
e0128bbd
VS
229722010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22973
22974 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
22975 verbose dprintf.
22976
ca62070b
VS
229772010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22978
22979 Fix over-4GiB seek on sparc64.
22980
22981 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
22982 Replace pos_i and pos_lo with pos. All users updated.
22983 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22984 New constant.
22985 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
22986 Likewise.
22987 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
22988 and pos_lo.
22989
bdca2607
VS
229902010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22991
22992 * util/grub-mkrawimage.c (main): Call set_program_name.
22993
da278c4d
VS
229942010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
22995
22996 Properly align 64-bit targets.
22997
22998 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
22999 (generate_image): Use ALIGN_ADDR.
23000
b274d734
VS
230012010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23002
23003 Properly create cross-endian images.
23004
23005 * include/grub/types.h (grub_host_to_target_addr): New macro
23006 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23007
82da2062
VS
230082010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23009
23010 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23011
7cae4377
VS
230122010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23013
23014 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23015
23016 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23017 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23018 (grub_linux_boot): Divide by 64K when on VESA.
23019
65a533e7
VS
230202010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23021
23022 Support GRUB_GFXPAYLOAD_LINUX.
23023
23024 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23025 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23026
dd01d397
VS
230272010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23028
23029 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23030 to show messages instead of discarding them.
23031 Process errors after executing command and not before. Keep old method
23032 too as precaution.
23033
660960d6
VS
230342010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23035
23036 * configure.ac: Check for ft2build.h.
23037
62509f04
VS
230382010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23039
23040 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23041
473df63d
VS
230422010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23043
23044 * genkernsyms.sh.in: Use TARGET_CC.
23045
c98d2a13
CW
230462010-02-07 Colin Watson <cjwatson@ubuntu.com>
23047
23048 * NEWS: Update.
23049
6e14234c
VS
230502010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23051
23052 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
23053 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23054 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 23055
b255e9cf
YB
230562010-02-07 Yves Blusseau <blusseau@zetam.org>
23057
6e14234c 23058 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 23059
98e6959d
VS
230602010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23061
23062 Fix warnings in grub-emu when compiling with maximum warning options.
23063
23064 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23065 (grub_arch_modules_addr): Return 0 and not NULL.
23066 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 23067 (xstrdup): Use newstr instead of dup.
f88d801b
VS
23068 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23069 of disk to dsk to avoid shadowing.
74e4934e
VS
23070 (find_free_slot): Fix prototype.
23071 * util/getroot.c (grub_util_is_dmraid): Make static.
23072 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23073 Add missing prototype.
23074 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 23075
74e31b5c
VS
230762010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23077
23078 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23079 appropriately.
23080
6b2ad14b
VS
230812010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23082
23083 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23084 code out.
23085
8f891adc
VS
230862010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23087
23088 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23089 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23090 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23091 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23092 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23093 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23094
74b45184
VS
230952010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23096
23097 * include/grub/err.h (grub_err_printf): Don't export.
23098
a4bced77
VS
230992010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23100
23101 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23102
007d0695
VS
231032010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23104
23105 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23106 * kern/misc.c (grub_gettext_dummy): Make static.
23107
b6c0d9c2
VS
231082010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23109
23110 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23111 by non-valid ones.
23112 * kern/term.c (grub_putchar): Likewise.
23113
f51a90d0
VS
231142010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23115
23116 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23117 buggy hook call and memory leak.
23118
6846cec5
VS
231192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23120
23121 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23122
468d69fe
VS
231232010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23124
23125 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23126
51906b8c
VS
231272010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23128
23129 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23130 modevar.
23131 Return grub_errno on allocation error.
23132
09706ce5
VS
231332010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23134
23135 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23136
911df80c
YB
231372010-02-06 Yves Blusseau <blusseau@zetam.org>
23138
23139 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23140 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23141
3746a6bc
VS
231422010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23143
23144 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23145 non-pxe disk.
23146 (grub_pxefs_open): Likewise.
23147
09706ce5
VS
231482010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23149
23150 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23151 * util/grub.d/10_kfreebsd.in: Likewise.
23152 * util/grub.d/10_linux.in: Likewise.
23153
7cc192d9
VS
231542010-02-06 Colin D Bennett <colin@gibibit.com>
23155
23156 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23157 (gfxmenu_mod_SOURCES): New variable.
23158 (gfxmenu_mod_CFLAGS): Likewise.
23159 (gfxmenu_mod_LDFLAGS): Likewise.
23160 * include/grub/term.h (grub_term_set_current_output): Declare
23161 argument as const.
23162 * docs/gfxmenu-theme-example.txt: New file.
23163 * gfxmenu/gfxmenu.c: Likewise.
23164 * gfxmenu/gui_box.c: Likewise.
23165 * gfxmenu/gui_canvas.c: Likewise.
23166 * gfxmenu/gui_circular_progress.c: Likewise.
23167 * gfxmenu/gui_image.c: Likewise.
23168 * gfxmenu/gui_label.c: Likewise.
23169 * gfxmenu/gui_list.c: Likewise.
23170 * gfxmenu/gui_progress_bar.c: Likewise.
23171 * gfxmenu/gui_string_util.c: Likewise.
23172 * gfxmenu/gui_util.c: Likewise.
23173 * gfxmenu/icon_manager.c: Likewise.
23174 * gfxmenu/model.c: Likewise.
23175 * gfxmenu/named_colors.c: Likewise.
23176 * gfxmenu/theme_loader.c: Likewise.
23177 * gfxmenu/view.c: Likewise.
23178 * gfxmenu/widget-box.c: Likewise.
23179 * include/grub/gfxmenu_model.h: Likewise.
23180 * include/grub/gfxmenu_view.h: Likewise.
23181 * include/grub/gfxwidgets.h: Likewise.
23182 * include/grub/gui.h: Likewise.
23183 * include/grub/gui_string_util.h: Likewise.
23184 * include/grub/icon_manager.h: Likewise.
23185
231862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23187
23188 Agglomerate scrolling in gfxterm.
23189
23190 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23191 (grub_virtual_screen_setup): Initialise 'total_screen'.
23192 (write_char): Split to ...
23193 (paint_char): ... this ...
23194 (write_char): ... and this.
23195 (paint_char): Handle delayed scrolling.
23196 (draw_cursor): Likewise.
23197 (scroll_up): Split to ...
23198 (real_scroll): ... this ...
23199 (scroll_up): ... and this.
23200 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23201 characters.
23202 (grub_gfxterm_refresh): Call real_scroll.
23203
232042010-02-06 Colin D Bennett <colin@gibibit.com>
23205
23206 * include/grub/misc.h (grub_iscntrl): New inline function.
23207 (grub_isalnum): Likewise.
23208 (grub_strtol): Likewise.
23209
232102010-02-06 Colin D Bennett <colin@gibibit.com>
23211
23212 * normal/menu_text.c (get_entry_number): Move from here ...
23213 * normal/menu.c (get_entry_number): ... moved here.
23214 * include/grub/menu.h (grub_menu_get_default_entry_index):
23215 New prototype.
23216 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23217 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23218 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23219 (grub_menu_viewer_should_return): Likewise.
23220 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23221 * normal/menu_text.c (run_menu): Enable menu switching.
23222 * normal/menu_viewer.c (should_return): New variable.
23223 (menu_viewer_changed): Likewise.
23224 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23225 (grub_menu_viewer_should_return): New function.
23226 (menuviewer_write_hook): Likewise.
23227 (grub_menu_viewer_init): Likewise.
23228
232292010-02-06 Colin D Bennet <colin@gibibit.com>
232302010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23231
23232 Support for gfxterm in a window.
23233
23234 * include/grub/gfxterm.h: New file.
23235 * include/grub/video.h (struct grub_video_rect): New declaration.
23236 (grub_video_rect_t): Likewise.
23237 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23238 (refcount): New variable.
23239 (render_target): Likewise.
23240 (window): Likewise.
23241 (repaint_callback): Likewise.
23242 (grub_virtual_screen_setup): Use 'render_target'.
23243 (init_window): New function.
23244 (grub_gfxterm_init_window): Likewise.
23245 (grub_gfxterm_init): Check reference counter.
23246 Use init_window.
23247 (destroy_window): New function.
23248 (grub_gfxterm_destroy_window): Likewise.
23249 (grub_gfxterm_fini): Check reference counter.
23250 Use destroy_window.
23251 (redraw_screen_rect): Restore viewport.
23252 Use 'render_target' and 'window'.
23253 Call 'repaint_callback'.
23254 (write_char): Use 'render_target'.
23255 (draw_cursor): Likewise.
23256 (scroll_up): Restore viewport.
23257 Use 'render_target' and 'window'.
23258 Call 'repaint_callback'.
23259 (grub_gfxterm_cls): Likewise.
23260 (grub_gfxterm_refresh): Use 'window'.
23261 (grub_gfxterm_set_repaint_callback): New function.
23262 (grub_gfxterm_background_image_cmd): Use 'window'.
23263 (grub_gfxterm_get_term): New function.
23264 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23265
232662010-02-06 Colin D Bennett <colin@gibibit.com>
23267
23268 Bitmap scaling support.
23269
23270 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23271 (bitmap_scale_mod_SOURCES): New variable.
23272 (bitmap_scale_mod_CFLAGS): Likewise.
23273 (bitmap_scale_mod_LDFLAGS): Likewise.
23274 * include/grub/bitmap_scale.h: New file.
23275 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23276 (background_image_cmd_options): New variable.
23277 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23278 (cmd): Rename and change type to ...
23279 (background_image_cmd_handle): ... this. All users updated.
23280 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23281 * video/bitmap_scale.c: New file.
23282
232832010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23284
23285 SDL support.
23286
23287 * Makefile.in (LIBSDL): New variable.
23288 (enable_grub_emu_sdl): Likewise.
23289 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23290 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23291 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23292 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23293 * util/sdl.c: New file.
23294
232952010-02-06 Colin D Bennett <colin@gibibit.com>
232962010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23297
23298 Double buffering support.
23299
23300 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23301 * include/grub/video.h: Update comment.
23302 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23303 New type.
23304 (grub_video_fb_doublebuf_blit_init): New prototype.
23305 * term/gfxterm.c (scroll_up): Support double buffering.
23306 (grub_gfxterm_refresh): Likewise.
23307 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23308 (grub_video_fb_doublebuf_blit_init): Likewise.
23309 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23310 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23311 'displayed_page', 'render_page' and 'update_screen'.
23312 (grub_video_vbe_fini): Free offscreen buffer.
23313 (doublebuf_pageflipping_commit): New function.
23314 (doublebuf_pageflipping_update_screen): Likewise.
23315 (doublebuf_pageflipping_init): Likewise.
23316 (double_buffering_init): Likewise.
23317 (grub_video_vbe_setup): Enable doublebuffering.
23318 (grub_video_vbe_swap_buffers): Implement.
23319 (grub_video_vbe_set_active_render_target): Handle double buffering.
23320 (grub_video_vbe_get_active_render_target): Likewise.
23321 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23322 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23323 (grub_video_vbe_enable_double_buffering): Likewise.
23324 (grub_video_vbe_swap_buffers): Use update_screen.
23325 (grub_video_set_mode): Use double buffering.
23326
233272010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23328
23329 * maintainance/gentrigtables.py: Remove.
23330 * lib/trig.c: Likewise.
23331
23332 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23333
23334 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23335 `trigtables.c'.
23336 (trigtables.c): New rule.
23337 (gentrigtables): Likewise.
23338 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23339
233402010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23341
23342 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23343 integer constants.
23344
233452010-02-06 Colin D Bennet <colin@gibibit.com>
23346
23347 Trigonometry support.
23348
23349 * include/grub/trig.h: New file.
23350 * lib/trig.c: Likewise.
23351 * maintainance/gentrigtables.py: Likewise.
23352 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23353 (trig_mod_SOURCES): New variable.
23354 (trig_mod_CFLAGS): Likewise.
23355 (trig_mod_LDFLAGS): Likewise.
23356
5562834e
VS
233572010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23358
23359 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23360 disk devices.
23361
4f8528fc
VS
233622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23363
23364 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23365 error.
23366
2b4068e9
VS
233672010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23368
23369 * util/hostdisk.c (open_device): Don't use partition device when reading
23370 before the partition.
23371 (grub_util_biosdisk_read): Don't read from partition and before the
23372 partition in single operation.
23373 (grub_util_biosdisk_write): Don't write to partition and before the
23374 partition in single operation.
23375
399f6e4d
TL
233762010-02-03 Torsten Landschoff <torsten@debian.org>
23377
23378 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23379 last sectors.
23380
996649b0
VS
233812010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23382
23383 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23384 CDROM reads.
23385 (grub_biosdisk_write): Refuse to write to CDROM.
23386
3b205d4d
VS
233872010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23388
23389 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23390
61e89d9d
VS
233912010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23392
23393 * font/font.c (find_glyph): Check that bmp_idx is available before
23394 using it.
23395 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23396 with (font == NULL).
23397
bf7fcba2
CS
233982010-01-28 Christian Schmitt <chris@ilovelinux.de>
23399
23400 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23401
f45d2663
BC
234022010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23403
23404 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23405 * util/grub-script-check.c (getline): Fix empty lines case.
23406
ec1444e6
RM
234072010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23408
23409 * Makefile.in (check): Exit with fail status when one of the tests
23410 fails.
23411 * tests/example_functional_test.c (example_test): Fix reversed assert.
23412 * tests/example_unit_test.c (example_test): Likewise.
23413
2e1cb9bb
CW
234142010-01-28 Colin Watson <cjwatson@ubuntu.com>
23415
23416 * util/grub.d/10_linux.in: This script does not use any of the
23417 contents of gettext.sh, only the external command `gettext', so stop
23418 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23419 the same prefix as GRUB.)
23420 * util/grub.d/10_kfreebsd.in: Likewise.
23421
63533ab0
VS
234222010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23423
23424 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23425 of the line.
23426
989e1f93
VS
234272010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23428
23429 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23430 last sectors.
23431
e709ebe2
VS
234322010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23433
23434 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23435 having a 4KiB and not 32KiB buffer size.
23436
27dea7ed
RM
234372010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23438
23439 * util/hostfs.c: Include `<errno.h>'.
23440 (grub_hostfs_read): Handle errors from fseeko() and fread().
23441
67667b9c
RM
234422010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23443
23444 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23445 loop when using read hooks on files whose size isn't sector-aligned.
23446
c294d9d8
RM
234472010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23448
23449 Remove unused parameter.
23450
23451 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23452 (grub_iso9660_open): Remove initialization of `data->length'.
23453
af75a9f1
RM
234542010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23455
23456 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23457 memleak conditions.
23458
254e2ce5 234592010-01-27 Carles Pina i Estany <carles@pina.cat>
23460
23461 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23462 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23463
b510928c 234642010-01-26 Carles Pina i Estany <carles@pina.cat>
23465
23466 * util/bin2h.c (usage): Fix warning (space after backslash).
23467
aa2f9dd2 234682010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 23469
23470 * font/font.c: Include `grub/fontformat.h.
23471 Remove font file format constants.
23472 (grub_font_load): Use the new macros.
23473 * include/grub/fontformat.h: New file.
23474 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23475 (write_font_pf2): Use the new macros.
23476
94e7e712
RM
234772010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23478
23479 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23480 does.
23481
3973a59a
RM
234822010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23483
23484 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23485
23486 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23487 (_start): Macroify `0x7F'.
23488
23489 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23490 (make_install_device): Use "(pxe)" as fallback prefix when booting
23491 via PXE.
23492
42e0cba3
GS
234932010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23494
23495 * configure.ac: Reset LIBS after check for libgcc symbols.
23496
847effd8
CW
234972010-01-25 Colin Watson <cjwatson@ubuntu.com>
23498
23499 * util/hostdisk.c (open_device): Add trailing newline to debug
23500 message.
23501
ea4a7e35
GS
235022010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23503
23504 * configure.ac: Check for `limits.h'.
23505 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23506
67951a53
RM
235072010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23508
23509 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23510 capitalize error strings.
23511
c273d4ce
ST
235122010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23513
23514 * util/grub.d/10_hurd.in: Add a recovery mode.
23515
69be5b74
VS
235162010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23517
23518 * configure.ac: Check for libgcc symbols with -nostdlib.
23519
fc9e5810
BC
235202010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23521
23522 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23523
4b358c0a
VS
235242010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23525
23526 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23527 stack since heap may be unavailable at that point.
23528 (grub_ofconsole_gotoxy): Likewise.
23529
454fcd1c
VS
235302010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23531
23532 * configure.ac: Check for _restgpr_14_x.
23533 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23534 and _savegpr_* prototypes.
23535
566863ca
RM
235362010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23537
23538 Use generic grub_reboot() for i386-efi.
23539
23540 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23541 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23542 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23543
bf86e59a
VS
235442010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23545
23546 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23547 presence of "prefix" variable as it breaks when normal.mod is
23548 embedded.
23549
d645e0f8
VS
235502010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23551
23552 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23553 stack since heap is unavailable at that point.
23554
f9ab2e25
VS
235552010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23556
23557 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23558 (grub_freebsd_bootinfo): Rewritten.
23559 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23560
01fc7054
VS
235612010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23562
23563 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23564
caab4fd6
RM
235652010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23566
23567 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23568 domain now.
23569
67eb1427
FZ
235702010-01-20 Felix Zielcke <fzielcke@z-51.de>
23571
23572 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23573 around for handling "/" to the correct fix. Fix a memory leak. Use
23574 xstrdup instead of strdup.
23575
a9ed4ff3
VS
235762010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23577
23578 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23579
235802010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
23581
23582 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23583
23584 * font/font.c (struct grub_font): New member 'bmp_idx'.
23585 (font_init): Initialise 'bmp_idx'.
23586 (load_font_index): Fill 'bmp_idx'.
23587 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23588
48209f4f
VS
235892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23590
23591 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23592 unnecessary calls.
23593
9f0a4bb7
VS
235942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23595
23596 Move context handling out of the kernel.
23597
23598 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23599 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23600 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23601 * conf/i386-efi.rmk: Likewise.
23602 * conf/i386-ieee1275.rmk: Likewise.
23603 * conf/i386-pc.rmk: Likewise.
23604 * conf/powerpc-ieee1275.rmk: Likewise.
23605 * conf/sparc64-ieee1275.rmk: Likewise.
23606 * conf/x86_64-efi.rmk: Likewise.
23607 * include/grub/env.h: Include grub/menu.h.
23608 (grub_env_var_type): Removed.
23609 (grub_env_var): Replaced field 'type' with 'global'.
23610 (grub_env_find): New prototype.
23611 (grub_env_context_open): Remove EXPORT_FUNC.
23612 (grub_env_context_close): Likewise.
23613 (grub_env_export): Likewise.
23614 (grub_env_set_data_slot): Removed.
23615 (grub_env_get_data_slot): Likewise.
23616 (grub_env_unset_data_slot): Likewise.
23617 (grub_env_unset_menu): New prototype.
23618 (grub_env_set_menu): Likewise.
23619 (grub_env_get_menu): Likewise.
23620 * include/grub/env_private.h: New file.
23621 * include/grub/normal.h (grub_context_init): New prototype.
23622 (grub_context_fini): Likewise.
23623 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23624 * normal/context.c (grub_cmd_export): ... to here.
23625 * kern/env.c: Include env_private.h.
23626 (HASHSZ): Moved to include/grub/env_private.h.
23627 (grub_env_context): Likewise.
23628 (grub_env_sorted_var): Likewise.
23629 (current_context): Renamed from this ...
23630 (grub_current_context): ...to this. 'static' removed. All users updated.
23631 (grub_env_find): Removed 'static'.
23632 (grub_env_context_open): Moved to normal/context.c.
23633 (grub_env_context_close): Likewise.
23634 (grub_env_export): Likewise.
23635 (mangle_data_slot_name): Removed.
23636 (grub_env_set_data_slot): Likewise.
23637 (grub_env_get_data_slot): Likewise.
23638 (grub_env_unset_data_slot): Likewise.
23639 * kern/main.c (grub_set_root_dev): Don't export root.
23640 It will be done later.
23641 (grub_main): Don't export prefix.
23642 It will be done later.
23643 * normal/context.c: New file.
23644 * normal/main.c (free_menu): Use grub_env_unset_menu.
23645 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23646 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23647 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23648 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23649
8dd35b8c
VS
236502010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23651
23652 setpci support.
23653
23654 * commands/setpci.c: New file.
23655 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23656 (setpci_mod_SOURCES): New variable.
23657 (setpci_mod_CFLAGS): Likewise.
23658 (setpci_mod_LDFLAGS): Likewise.
23659
449193d5
VS
236602010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23661
23662 Byte-addressable PCI configuration space.
23663
23664 * bus/pci.c (grub_pci_make_address): Use byte address instead of
23665 dword address.
23666 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
23667 GRUB_PCI_REG_CACHELINE.
23668 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
23669 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
23670 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
23671 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
23672 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
23673 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
23674 grub_pci_make_address.
23675 (lock_rom_area): Likewise.
23676 * commands/lspci.c (grub_lspci_iter): Use macroses
23677 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
23678 of grub_pci_make_address.
23679 * disk/ata.c (grub_ata_pciinit): Likewise.
23680 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
23681 (GRUB_PCI_REG_VENDOR): Likewise.
23682 (GRUB_PCI_REG_DEVICE): Likewise.
23683 (GRUB_PCI_REG_COMMAND): Likewise.
23684 (GRUB_PCI_REG_STATUS): Likewise.
23685 (GRUB_PCI_REG_REVISION): Likewise.
23686 (GRUB_PCI_REG_CLASS): Likewise.
23687 (GRUB_PCI_REG_CACHELINE): Likewise.
23688 (GRUB_PCI_REG_LAT_TIMER): Likewise.
23689 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
23690 (GRUB_PCI_REG_BIST): Likewise.
23691 (GRUB_PCI_REG_ADDRESSES): Likewise.
23692 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23693 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23694 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23695 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23696 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23697 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
23698 (GRUB_PCI_REG_CIS_POINTER): Likewise.
23699 (GRUB_PCI_REG_SUBVENDOR): Likewise.
23700 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
23701 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
23702 (GRUB_PCI_REG_CAP_POINTER): Likewise.
23703 (GRUB_PCI_REG_IRQ_LINE): Likewise.
23704 (GRUB_PCI_REG_IRQ_PIN): Likewise.
23705 (GRUB_PCI_REG_MIN_GNT): Likewise.
23706 (GRUB_PCI_REG_MAX_LAT): Likewise.
23707 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
23708 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
23709 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 23710 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
23711 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
23712 space.
23713
96d73208
RM
237142010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23715
23716 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
23717 can be reliably determined to be supported.
23718
d4484482
RM
237192010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23720
23721 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
23722 that VESA is supported.
23723 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
23724 supported.
23725
00308ecf
VS
237262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23727
23728 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
23729
f66924a4
RM
237302010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23731
23732 * util/misc.c (make_system_path_relative_to_its_root): Work around
23733 special-casing of "/", as previous incarnation of this routine did.
23734
cbca0ada
VS
237352010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23736
23737 Fix any-emu compilation.
23738
23739 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
23740 * grub_bin2h_SOURCES: New variable.
23741
34a66d99
RM
237422010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23743
23744 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
23745
94fabf58
RM
237462010-01-20 Robert Millan <rmh.grub@aybabtu.com>
23747
23748 * util/grub.d/00_header.in: Fix handling of locale_dir.
23749
02cf98ca
VS
237502010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23751
23752 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
23753 as possible unifont location (Gentoo).
23754 Reported by: Alexander Brüning
23755
327dbcd7
VS
237562010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23757
23758 Don't try to generate lists for kernel.img.
23759
23760 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
23761 (pkglib_MODULES): Remove kernel.img.
23762 (kernel_img_EXPORTS): Removed.
23763 (kernel_img_RELOCATABLE): New variable.
23764 * conf/x86_64-efi.rmk: Likewise.
23765 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
23766
ca467290
VS
237672010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23768
23769 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
23770 grub_xasprintf or grub_snprintf.
23771 (grub_vsprintf): Likewise.
23772 (grub_snprintf): New proto.
23773 (grub_vsnprintf): Likewise.
23774 (grub_xasprintf): Likewise.
23775 (grub_xvasprintf): Likewise.
23776 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
23777 (grub_sprintf): Removed.
23778 (grub_vsnprintf): New function.
23779 (grub_snprintf): Likewise.
23780 (grub_xvasprintf): Likewise.
23781 (grub_xasprintf): Likewise.
23782 (grub_vsprintf): Renamed to ...
23783 (grub_vsnprintf_real): ...this. New argument max_len.
23784
aca655fd
BC
237852010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
23786
23787 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
23788 fix grub-script-check warning.
23789
7ee92c32
VS
237902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23791
23792 * include/grub/font.h (grub_font_load): Fix prototype.
23793
f80927ca
VS
237942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23795
23796 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
23797
119c50ea
VS
237982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23799
23800 * include/grub/x86_64/at_keyboard.h: New file.
23801
47d5f3c1
VS
238022010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23803
23804 * loader/mips/linux.c: Include missing grub/i18n.h.
23805
55ff5266
RM
238062009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23807
23808 * normal/menu.c (notify_execution_failure): Clarify error message.
23809
c893cc87
RM
238102009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23811
23812 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
23813 return value (and revert all return statements). Update users.
23814
917dd370
CW
238152010-01-20 Dan Merillat <debian@dan.merillat.org>
23816
23817 * kern/device.c (grub_device_iterate): Allocate new part_ent
23818 structure based on sizeof (*p) rather than sizeof (p->next), to
23819 account for structure padding.
23820
23821 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
23822 disk is NULL, which might happen for LVM physical volumes with no
23823 LVM signature.
23824
d4a4ee57
RM
238252009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23826
23827 * loader/mips/linux.c (grub_cmd_initrd)
23828 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
23829
238302009-12-20 Robert Millan <rmh.grub@aybabtu.com>
23831
23832 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
23833 (grub_video_video_init, grub_video_bitmap_init)
23834 (grub_font_manager_init, grub_term_gfxterm_init)
23835 (grub_at_keyboard_init): New extern declarations.
23836 (grub_machine_init): Initialize gfxterm and at_keyboard.
23837
23838 * kern/main.c (grub_main): Revert grub_printf delay kludge.
23839
23840 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
23841 `gfxterm.mod' into core image.
23842
23843 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23844 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23845 (kernel_img_FORMAT): Copy to ...
23846
23847 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23848 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23849 (kernel_img_FORMAT): ... here, and ...
23850
23851 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
23852 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
23853 (kernel_img_FORMAT): ... here.
23854
23855 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
23856 and input (at_keyboard) terminals in kernel.
23857 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
23858
23859 (pkglib_MODULES): Remove `pci.mod'.
23860 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
23861 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
23862 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
23863 (at_keyboard_mod_LDFLAGS): Remove variables.
23864
238652010-01-11 Felix Zielcke <fzielcke@z-51.de>
23866
23867 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
23868
238692009-12-10 Robert Millan <rmh.grub@aybabtu.com>
23870
23871 * include/grub/mips/libgcc.h: Only export symbols for functions
23872 that libgcc provides.
23873
238742009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
23875
23876 MIPS support.
23877
23878 * bus/bonito.c: New file.
23879 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
23880 GRUB_PCI_NUM_DEVICES.
23881 * term/i386/pc/serial.c: Move to ...
23882 * term/serial.c: ... here. All users updated.
23883 * util/i386/pc/grub-mkimage.c: Move to ...
23884 * util/grub-mkrawimage.c: ... here. All users updated.
23885 * term/i386/pc/at_keyboard.c: Move to ...
23886 * term/at_keyboard.c: ... here. All users updated.
23887 * conf/mips-qemu-mips.rmk: New file.
23888 * conf/mips-yeeloong.rmk: Likewise.
23889 * conf/mips.rmk: Likewise.
23890 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
23891 mipsel-qemu-mips.
23892 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
23893 to port addresses.
23894 (grub_ata_pciinit): Support CS5536.
23895 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
23896 * font/font_cmd.c (loadfont_command): Open file before passing it to
23897 grub_font_load.
23898 (pseudo_file_read): New function.
23899 (pseudo_file_close): Likewise.
23900 (pseudo_fs): New structure.
23901 (load_font_module): New function.
23902 (GRUB_MOD_INIT(font_manager)): Load embedded font.
23903 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
23904 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
23905 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
23906 * include/grub/i386/at_keyboard.h: Split into ...
23907 * include/grub/at_keyboard.h: ... this ...
23908 * include/grub/i386/at_keyboard.h: ... and this.
23909 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
23910 New prototype.
23911 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
23912 updated.
23913 (grub_elf64_size): Likewise.
23914 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
23915 filename.
23916 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
23917 * include/grub/i386/coreboot/serial.h: Rewritten.
23918 * include/grub/i386/ieee1275/serial.h: Include
23919 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
23920 * include/grub/i386/pc/serial.h: Moved from here ...
23921 * include/grub/serial.h: ... to here. All users updated.
23922 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
23923 (GRUB_PCI_NUM_BUS): Likewise.
23924 (GRUB_PCI_NUM_DEVICES): Likewise.
23925 (grub_pci_device_map_range): Add missing volatile keyword.
23926 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
23927 * include/grub/mips/at_keyboard.h: New file.
23928 * include/grub/mips/cache.h: Likewise.
23929 * include/grub/mips/io.h: Likewise.
23930 * include/grub/mips/kernel.h: Likewise.
23931 * include/grub/mips/libgcc.h: Likewise.
23932 * include/grub/mips/pci.h: Likewise.
23933 * include/grub/mips/qemu-mips/boot.h: Likewise.
23934 * include/grub/mips/qemu-mips/kernel.h: Likewise.
23935 * include/grub/mips/qemu-mips/loader.h: Likewise.
23936 * include/grub/mips/qemu-mips/memory.h: Likewise.
23937 * include/grub/mips/qemu-mips/serial.h: Likewise.
23938 * include/grub/mips/qemu-mips/time.h: Likewise.
23939 * include/grub/mips/relocator.h: Likewise.
23940 * include/grub/mips/time.h: Likewise.
23941 * include/grub/mips/types.h: Likewise.
23942 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
23943 * include/grub/mips/yeeloong/boot.h: Likewise.
23944 * include/grub/mips/yeeloong/kernel.h: Likewise.
23945 * include/grub/mips/yeeloong/loader.h: Likewise.
23946 * include/grub/mips/yeeloong/memory.h: Likewise.
23947 * include/grub/mips/yeeloong/pci.h: Likewise.
23948 * include/grub/mips/yeeloong/serial.h: Likewise.
23949 * include/grub/mips/yeeloong/time.h: Likewise.
23950 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
23951 * kern/elf.c (grub_elf32_size): New parameter. All users
23952 updated.
23953 (grub_elf64_size): Likewise.
23954 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
23955 Load modules before saying "Welcome to GRUB!".
23956 Call grub_refresh after saying "Welcome to GRUB!".
23957 * kern/mips/cache.S: New file.
23958 * kern/mips/cache_flush.S: Likewise.
23959 * kern/mips/dl.c: Likewise.
23960 * kern/mips/init.c: Likewise.
23961 * kern/mips/qemu-mips/init.c: Likewise.
23962 * kern/mips/startup.S: Likewise.
23963 * kern/mips/yeeloong/init.c: Likewise.
23964 * kern/term.c (grub_putcode): Handle NULL terminal.
23965 (grub_getcharwidth): Likewise.
23966 (grub_getkey): Likewise.
23967 (grub_checkkey): Likewise.
23968 (grub_getkeystatus): Likewise.
23969 (grub_getxy): Likewise.
23970 (grub_getwh): Likewise.
23971 (grub_gotoxy): Likewise.
23972 (grub_cls): Likewise.
23973 (grub_setcolorstate): Likewise.
23974 (grub_setcolor): Likewise.
23975 (grub_getcolor): Likewise.
23976 (grub_refresh): Likewise.
23977 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
23978 (write_jump): Add hatch nop.
23979 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
23980 * lib/mips/setjmp.S: New file.
23981 * loader/mips/linux.c: Likewise.
23982 * term/i386/pc/at_keyboard.c: Move from here ...
23983 * term/at_keyboard.c: ... to here.
23984 * term/i386/pc/serial.c: Moved from here ...
23985 * term/serial.c: ... to here. All users updated.
23986 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
23987 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
23988 (serial_translate_key_sequence): Avoid deadlock.
23989 (grub_serial_getkey): Handle backspace.
23990 (grub_serial_putchar): Fix newline handling.
23991 * util/i386/pc/grub-mkimage.c: Move from here ...
23992 * util/grub-mkrawimage.c: ... to here. All users updated.
23993 (generate_image): New parameters 'font_path' and 'format'.
23994 Support embedding font.
23995 Use grub_host_to_target* instead of grub_cpu_to_le*.
23996 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
23997 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
23998 (options): New option "--font".
23999 (usage): Likewise.
24000 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24001 (main): Handle "--font".
24002 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24003 (grub_virtual_screen_setup): Set bg_color_display.
24004 (redraw_screen_rect): Use bg_color_display instead of incorrect
24005 bg_color.
24006 (grub_gfxterm_cls): Likewise.
24007 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24008 Support embedding config file.
24009 (add_segments): Likewise.
24010 (options): New option "--config".
24011 (main): Handle "--config".
24012 * video/sm712.c: New file.
24013
25c2b5b3
RM
240142010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24015
24016 Fix parallel builds.
24017
24018 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24019 font.c depend on ascii.h).
24020
240212010-01-12 Carles Pina i Estany <carles@pina.cat>
24022
24023 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24024
240252010-01-11 Carles Pina i Estany <carles@pina.cat>
24026
24027 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24028 By default: disabled.
24029 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24030 parameter.
24031
240322010-01-10 Carles Pina i Estany <carles@pina.cat>
24033
24034 * font/font.c: Update copyright years.
24035 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24036
240372010-01-10 Carles Pina i Estany <carles@pina.cat>
24038
24039 * font/font.c: Include `ascii.h'.
24040 (ASCII_BITMAP_SIZE): New macro.
24041 (ascii_font_glyph): Define.
24042 (ascii_glyph_lookup): New function.
24043 (grub_font_get_string_width): Change comment. If glyph not found, use
24044 ascii_glyph_lookup.
24045 (grub_font_get_glyph_with_fallback): If glyph not available returns
24046 ascii_glyph_lookup.
24047 * util/grub-mkfont.c (file_formats): New enum.
24048 (options): Add `ascii-bitmaps' new option.
24049 (usage): Add `asii-bitmaps' new option.
24050 (write_font_ascii_bitmap): New function.
24051 (write_font): Rename to ...
24052 (write_font_p2): ... this. Remove print_glyphs call.
24053 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24054 used. Call print_glyphs.
24055 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24056
240572010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24058
24059 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24060 (grub_bin2h_SOURCES): New variable.
24061 * util/bin2h.c: New file.
24062
915fc1b8
VS
240632010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24064
24065 * include/multiboot.h: Resynced with spec.
24066 * include/multiboot2.h: Likewise.
24067 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24068 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24069
9444b678
RM
240702010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24071
24072 * include/grub/term.h (grub_term_register_input,
24073 grub_term_register_output): Check return of terminal init()
24074 routines, and abort if errors are raised.
24075
24076 * commands/terminal.c: Update copyright year.
24077
cba98e8d
RM
240782010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24079
24080 * commands/terminal.c (grub_cmd_terminal_input)
24081 (grub_cmd_terminal_output): Check return of terminal init()
24082 routines, and abort if errors are raised.
24083
6f7db5d6
VS
240842010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24085
24086 * include/grub/i386/bsd.h: Fix include pathes.
24087
262bff8d
VS
240882010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24089
24090 Add missing *BSD copyright headers.
24091
24092 * include/grub/aout.h: Add BSD licence.
24093 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24094 * include/grub/i386/freebsd_linker.h: ... here,
24095 * include/grub/i386/freebsd_reboot.h: ... here,
24096 * include/grub/i386/netbsd_bootinfo.h: ... here,
24097 * include/grub/i386/netbsd_reboot.h: ... here,
24098 * include/grub/i386/openbsd_bootarg.h: ... here,
24099 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24100 licence to each file.
24101
b2cab848
RM
241022010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24103
24104 * acinclude.m4: Remove `nop' assembly instruction; it's not
24105 implemented by all architectures.
24106
2cb6be4b
RM
241072010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24108
24109 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24110 ELILO. This is no longer necessary.
24111
a2eaee15
BC
241122010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24113
24114 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24115
24116 * util/grub-script-check.c: grub-script-check tool.
24117 * conf/common.rmk: Make rules for grub-script-check.
24118
88d17012
RM
241192010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24120
24121 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24122 spotting it back in 2008. Shame on me for forgetting he did.
24123
24124 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24125
8040619d
RM
241262010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24127
24128 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24129 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24130 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24131 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24132 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24133 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24134
a0c2a0f6
RM
241352010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24136
24137 * include/grub/test.h: Add license header.
24138 * tests/example_functional_test.c: Likewise.
24139 * tests/example_unit_test.c: Likewise.
24140 * tests/lib/functional_test.c: Likewise.
24141 * tests/lib/test.c: Likewise.
24142 * tests/lib/unit_test.c: Likewise.
24143
b0b13907
VS
241442010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24145
24146 Use flag-based instead of hook-based video mode selection and "auto"
24147 keyword.
24148
24149 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24150 (grub_video_set_mode): Changed prototype. All users updated.
24151 (grub_video_check_mode_flag): New inline function.
24152 * video/video.c (parse_modespec): New function.
24153 (grub_video_set_mode): Parse flags and keywords.
24154
ea379330 241552010-01-17 Carles Pina i Estany <carles@pina.cat>
24156
24157 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24158 fprintf call.
24159
e15c215e
FZ
241602010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24161
24162 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24163
409ae1c9 241642010-01-16 Carles Pina i Estany <carles@pina.cat>
24165
24166 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24167 string.
24168 * util/grub-emu.c (usage): Likewise.
24169 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24170 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24171 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24172 * util/i386/pc/grub-setup.c (usage): Likewise.
24173
70a14d3d 241742010-01-16 Carles Pina i Estany <carles@pina.cat>
24175
24176 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24177 the message.
24178 (grub_util_info): Likewise.
24179 (grub_util_error): Likewise.
24180 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24181 and/or new lines in `grub_util_warna', `grub_util_info',
24182 `grub_util_error' calls.
24183 * util/getroot.c: Likewise.
24184 * util/grub-editenv.c: Likewise.
24185 * util/grub-emu.c: Likewise.
24186 * util/grub-fstest.c: Likewise.
24187 * util/grub-mkdevicemap.c: Likewise.
24188 * util/grub-mkfont.c: Likewise.
24189 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24190 * util/grub-mkrelpath.c: Likewise.
24191 * util/grub-pe2elf.c: Likewise.
24192 * util/grub-probe.c: Likewise.
24193 * util/hostdisk.c: Likewise.
24194 * util/i386/efi/grub-mkimage.c: Likewise.
24195 * util/i386/pc/grub-mkimage.c: Likewise.
24196 * util/i386/pc/grub-setup.c: Likewise.
24197 * util/ieee1275/ofpath.c: Likewise.
24198 * util/mkisofs/eltorito.c: Likewise.
24199 * util/mkisofs/rock.c: Likewise.
24200 * util/mkisofs/write.c: Likewise.
24201 * util/raid.c: Likewise.
24202 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24203 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24204
a0b766fc
VS
242052010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24206
24207 Enable multiboot on non-pc.
24208
24209 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24210 multiboot.mod and multiboot2.mod to ...
24211 * conf/i386.rmk (pkglib_MODULES): ... here.
24212 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24213 Moved to ...
24214 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24215 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24216 Moved to ...
24217 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24218 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24219 Moved to ...
24220 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24221 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24222 Moved to ...
24223 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24224 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24225 relocator.mod.
24226 (ata_mod_SOURCES): Removed.
24227 (ata_mod_CFLAGS): Likewise.
24228 (ata_mod_LDFLAGS): Likewise.
24229 (relocator_mod_SOURCES): Removed.
24230 (relocator_mod_CFLAGS): Likewise.
24231 (relocator_mod_ASFLAGS): Likewise.
24232 (relocator_mod_LDFLAGS): Likewise.
24233 Include i386.mk.
24234 * include/grub/x86_64/multiboot.h: New file.
24235 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24236 Terminate EFI.
24237
884ade56
VS
242382010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24239
24240 Video multiboot support.
24241
24242 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24243 New prototype.
24244 * include/multiboot.h: Resynced with multiboot specification.
24245 * include/multiboot2.h: Likewise.
24246 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24247 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24248 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24249 (HAS_VGA_TEXT): Likewise.
24250 (accepts_video): New variable.
24251 (grub_multiboot_set_accepts_video): New function.
24252 (grub_multiboot_get_mbi_size): Account for video structures.
24253 (set_video_mode): New function.
24254 (retrieve_video_parameters): Likewise.
24255 (grub_multiboot_make_mbi): Fill video fields.
24256
0d90e8a6
VS
242572010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24258
24259 Video driver ids.
24260
24261 * include/grub/video.h (grub_video_driver_id): New type.
24262 (grub_video_adapter): New member 'id'. All users updated.
24263 (grub_video_get_driver_id): New proto.
24264 * video/video.c (grub_video_get_driver_id): New function.
24265
5c71db1b 242662010-01-14 Carles Pina i Estany <carles@pina.cat>
24267
24268 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24269 `var=val'.
24270
cca15b52 242712010-01-14 Carles Pina i Estany <carles@pina.cat>
24272
24273 * normal/cmdline.c (print_completion): Gettextizze.
24274
c586fbb2 242752001-01-14 Carles Pina i Estany <carles@pina.cat>
24276
24277 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24278
ba2f6848 242792010-01-14 Carles Pina i Estany <carles@pina.cat>
24280
24281 * gettext/gettext.c (grub_gettext_translate): Push and pop
24282 grub_errno.
24283 (grub_gettext_delete_list): Change comment style.
24284 * kern/err.c (grub_error): Gettextizze.
24285 (grub_fatal): Gettextizze.
24286
0a46429a
RM
242872010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24288
24289 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24290 (grub_linux16_real_boot): ... this.
24291 * kern/i386/loader.S: Likewise.
24292 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24293 (grub_linux16_boot): New function. Switches to text mode and calls
24294 grub_linux16_real_boot().
24295
24296 * loader/i386/bsd.c: Include `<grub/video.h>'.
24297 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24298 text mode before calling grub_unix_real_boot().
24299
24300 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24301 (grub_multiboot_boot): Switch to text mode before calling
24302 grub_relocator32_boot().
24303
24304 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24305 (grub_chainloader_boot): Switch to text mode before calling
24306 grub_chainloader_real_boot().
24307
d6f93a66
RM
243082010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
243092010-01-05 Colin Watson <cjwatson@ubuntu.com>
24310
24311 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24312 non-empty value.
24313
243142010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
243152010-01-05 Colin Watson <cjwatson@ubuntu.com>
24316
24317 * util/grub.d/00_header.in: Define a "savedefault" function for use
24318 in menu entries.
24319 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24320
243212010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
243222010-01-05 Colin Watson <cjwatson@ubuntu.com>
24323
24324 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24325 saved_entry if boot_once is unset.
24326 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24327 previous saved entry (i.e. grub-reboot).
24328
243292009-12-08 Colin Watson <cjwatson@ubuntu.com>
24330
24331 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24332
243332009-12-08 Colin Watson <cjwatson@ubuntu.com>
24334
24335 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24336 `var=val'.
24337 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24338
243392009-12-08 Colin Watson <cjwatson@ubuntu.com>
24340
24341 * util/grub-reboot.in: Fix --version output.
24342 * util/grub-set-default.in: Likewise.
24343
243442009-12-08 Colin Watson <cjwatson@ubuntu.com>
24345
24346 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24347 blocks.
24348
243492009-12-08 Colin Watson <cjwatson@ubuntu.com>
24350
24351 * util/grub.d/00_header.in: Quote the value assigned to `default',
24352 in case it contains spaces.
24353
243542009-12-08 Colin Watson <cjwatson@ubuntu.com>
24355
24356 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24357 `save_default_entry' call from the macosx case to the linux case.
24358
243592009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
243602009-10-25 Colin Watson <cjwatson@ubuntu.com>
24361
24362 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24363 in `chosen' environment variable.
24364 * normal/menu_text.c (get_entry_number): Check if the variable
24365 matches the title of a menu entry.
24366 (run_menu): Pass menu to get_entry_number.
24367
24368 * util/grub-reboot.in: New file.
24369 * util/grub-set-default.in: New file.
24370 * conf/common.rmk (grub-reboot): New utility.
24371 (grub-set-default): New utility.
24372
24373 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24374 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24375 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24376 move it to `saved_entry' for the next boot. Load environment on
24377 initialisation.
24378 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24379 * util/grub.d/10_hurd.in: Likewise.
24380 * util/grub.d/10_linux.in (linux_entry): Likewise.
24381 * util/grub.d/10_windows.in: Likewise.
24382 * util/grub.d/30_os-prober.in: Likewise.
24383
24384 * util/grub-install.in: Create environment block.
24385 * util/i386/efi/grub-install.in: Likewise.
24386 * util/ieee1275/grub-install.in: Likewise.
24387 * util/sparc64/ieee1275/grub-install.in: Likewise.
24388
0934d184
BC
243892010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24390
24391 Unit testing framework for GRUB.
24392
24393 * Makefile.in: Test framework build rules for 'make check'.
24394 * conf/tests.rmk: Build rules for individual tests and framework.
24395
24396 * include/grub/test.h: Header file for whitebox tests.
24397 * tests/lib/functional_test.c: Framework support for whitebox
24398 functional tests.
24399 * tests/lib/test.c: Common whitebox testing code for unit and
24400 functional tests.
24401 * tests/lib/unit_test.c: Framework support for whitebox unit
24402 tests.
24403
24404 * tests/util/grub-shell-tester.in: Support utility for grub-script
24405 tests.
24406 * tests/util/grub-shell.in: Utility to execute grub-script
24407 commands in a Qemu instance.
24408
24409 * tests/example_functional_test.c: Example whitebox functional
24410 test.
24411 * tests/example_grub_script_test.in: Example grub-script test.
24412 * tests/example_scripted_test.in: Example scripted test.
24413 * tests/example_unit_test.c: Example whitebox unit test.
24414
9c4ffeeb
VS
244152010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24416
24417 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24418 Add loader/i386/multiboot_mbi.c.
24419 (multiboot2_mod_SOURCES): Likewise.
24420 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24421 (multiboot2_mod_SOURCES): Likewise.
24422 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24423 (grub_multiboot_make_mbi): Likewise.
24424 (grub_multiboot_free_mbi): Likewise.
24425 (grub_multiboot_init_mbi): Likewise.
24426 (grub_multiboot_add_module): Likewise.
24427 (grub_multiboot_set_bootdev): Likewise.
24428 * loader/i386/multiboot.c (mbi): Removed.
24429 (mbi_dest): Likewise.
24430 (alloc_mbi): New variable.
24431 (grub_multiboot_payload_size): Removed. All users updated.
24432 (grub_multiboot_pure_size): New variable.
24433 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24434 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24435 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24436 (grub_fill_multiboot_mmap): Likewise.
24437 (grub_multiboot_get_bootdev): Likewise.
24438 (grub_multiboot): Use multiboot_mbi functions.
24439 * loader/i386/multiboot_mbi.c: New file.
24440
17383dfe
VS
244412010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24442
24443 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24444 it would result in module crash.
24445
c1f28820
VS
244462010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24447
24448 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24449 (grub_ofconsole_getwh): Split to ...
24450 (grub_ofconsole_getwh): ... this.
24451 (grub_ofconsole_dimensions): ...and this.
24452 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24453
58655a16
RM
244542010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24455
24456 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24457
10891398
VS
244582010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24459
24460 * loader/i386/pc/multiboot2.c: Removed stalled file.
24461
0b8a223c
VS
244622010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24463
24464 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24465 Reported by: Grégoire Sutre
24466
92ab12b0
RM
244672010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24468
24469 * util/misc.c (canonicalize_file_name): New function.
24470 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24471 instead of realpath().
24472
a788afb6
CW
244732010-01-11 Colin Watson <cjwatson@ubuntu.com>
24474
24475 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24476 and make it clearer that it's optional. Based on confusion
24477 witnessed on IRC.
24478
ffa8e3d2
VS
244792010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24480
24481 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24482 in premature implicit newline.
24483
e9060a9d
VS
244842010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24485
24486 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24487 which resulted in garbled command line at the end of screen.
24488
f0d0c0b7
RM
244892010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24490
24491 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24492 initialization with similar approach as with other Linux loaders.
24493
0e60bae7
RM
244942010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24495
24496 Fix i386-ieee1275 build.
24497
24498 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24499 and grub_term_height() for video_{width,height} initialization.
24500
245012010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
24502
24503 Fix grub-emu build.
24504
24505 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24506
cdb3f378
RM
245072010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
245082010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24509
24510 Support for multiple terminals.
24511
24512 * Makefile.in (pkglib_DATA): terminal.lst.
24513 (terminal.lst): New target.
24514 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24515 (GRUB_MOD_INIT(handler)): Likewise.
24516 (GRUB_MOD_FINI(handler)): Likewise.
24517 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24518 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24519 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24520 (grub_cmd_sleep): Use grub_term_save_pos.
24521 * commands/terminal.c: New file.
24522 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24523 commands/terminal.c and lib/charset.c.
24524 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24525 (pkglib_MODULES): Add terminal.mod.
24526 (terminal_mod_SOURCES): New variable.
24527 (terminal_mod_CFLAGS): Likewise.
24528 (terminal_mod_LDFLAGS): Likewise.
24529 * genhandlerlist.sh: Don't handle terminals.
24530 * genmk.rb: Generate terminal-*.lst.
24531 * genterminallist.sh: New file.
24532 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24533 (grub_is_valid_utf8): Likewise.
24534 (grub_utf8_to_ucs4_alloc): Likewise.
24535 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24536 (grub_menu_register_viewer): Changed argument.
24537 (grub_menu_try_text): New proto.
24538 (grub_gfxmenu_try_hook): New declaration.
24539 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24540 (grub_menu_init_page): Additional argument term.
24541 (grub_normal_init_page): Likewise.
24542 (grub_cmdline_get): Arguments simplified.
24543 (grub_utf8_to_ucs4_alloc): Removed.
24544 (grub_print_ucs4): Additional argument term.
24545 (grub_getstringwidth): Likewise.
24546 (grub_print_message_indented): Likewise.
24547 (grub_menu_text_register_instances): New proto.
24548 (grub_show_menu): Likewise.
24549 (read_terminal_list): Likewise.
24550 (grub_set_more): Likewise.
24551 * include/grub/parser.h: Include handler.h.
24552 * include/grub/reader.h: Rewritten.
24553 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24554 (GRUB_TERM_WIDTH): Changed to function.
24555 (GRUB_TERM_HEIGHT): Likewise.
24556 (GRUB_TERM_BORDER_WIDTH): Likewise.
24557 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24558 (GRUB_TERM_NUM_ENTRIES): Likewise.
24559 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24560 (GRUB_TERM_CURSOR_X): Likewise.
24561 (grub_term_input_class): Likewise.
24562 (grub_term_output_class): Likewise.
24563 (grub_term_outputs_disabled): New declaration.
24564 (grub_term_inputs_disabled): Likewise.
24565 (grub_term_outputs): Likewise.
24566 (grub_term_inputs): Likewise.
24567 (grub_term_register_input): Rewritten.
24568 (grub_term_register_output): Likewise.
24569 (grub_term_unregister_input): Likewise.
24570 (grub_term_unregister_output): Likewise.
24571 (FOR_ACTIVE_TERM_INPUTS): New macro.
24572 (FOR_DISABLED_TERM_INPUTS): Likewise.
24573 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24574 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24575 * include/grub/terminfo.h: Add oterm argument to all protypes.
24576 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24577 Use grub_rescue_run.
24578 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24579 All users updated.
24580 * kern/reader.c: Removed. All users updated.
24581 * kern/rescue_reader.c (grub_rescue_init): Removed.
24582 (grub_rescue_reader): Likewise.
24583 (grub_register_rescue_reader): Likewise.
24584 (grub_rescue_run): New function based on kern/reader.c.
24585 * kern/term.c: Adapted for multiterm.
24586 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24587 (grub_is_valid_utf8): Likewise.
24588 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24589 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24590 right terminal.
24591 * loader/i386/linux.c (grub_linux_boot): Likewise.
24592 * normal/auth.c (grub_username_get): New function.
24593 (grub_auth_check_authentication): Use grub_username_get.
24594 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24595 * normal/color.c: Adapt for multiterm.
24596 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24597 (grub_normal_init_page): Additional argument term.
24598 (read_lists): Call read_terminal_lists.
24599 (grub_enter_normal_mode): Call grub_cmdline_run.
24600 Handle grub_normal_exit_level.
24601 (grub_cmd_normal): Make reentrant.
24602 (grub_cmd_normal_exit): New function.
24603 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24604 * normal/menu.c: Adapt for multiterm.
24605 * normal/menu_entry.c: Likewise.
24606 * normal/menu_text.c: Likewise.
24607 * normal/menu_viewer.c: Removed. All users updated.
24608 * normal/term.c: New file.
24609 * util/console.c: Change order of includes to workaround a bug in
24610 ncurses headers.
24611 * term/terminfo.c: New argument oterm on all exported functions.
24612 All users updated.
24613 * util/grub-editenv.c (grub_term_input_class): Removed.
24614 (grub_term_output_class): Likewise.
24615
1a064917
RM
246162010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24617
24618 Make loader output a bit more user-friendly.
24619
24620 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24621 is being loaded. Likewise for the Hurd.
24622
24623 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24624 that kernel of FreeBSD ${version} is being loaded.
24625
24626 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24627 grub_dprintf().
24628 (grub_cmd_initrd): Likewise.
24629 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24630 that Linux ${version} is being loaded. Likewise for initrd.
24631
5ce0a83a 246322010-01-09 Carles Pina i Estany <carles@pina.cat>
24633
24634 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24635
809bbfeb 246362010-01-08 Carles Pina i Estany <carles@pina.cat>
24637
24638 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24639 (GRUB_MOD_INIT): Gettextizze.
24640 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24641 (GRUB_MOD_INIT): Gettextizze.
24642 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24643 (grub_cmd_linux): Capitalise Linux.
24644 (GRUB_MOD_INIT): Gettextizze.
24645 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24646 (grub_cmd_linux): Capitalise Linux.
24647 (GRUB_MOD_INIT): Gettextizze.
24648 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24649 (grub_cmd_linux): Capitalise Linux.
24650 (GRUB_MOD_INIT): Gettextizze.
24651 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24652 (GRUB_MOD_INIT): Gettextizze.
24653 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24654 (grub_cmd_linux): Capitalise Linux.
24655 (GRUB_MOD_INIT): Gettextizze.
24656 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24657 (grub_cpu_xnu_init): Gettextizze.
24658 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24659 (GRUB_MOD_INIT): Gettextizze.
24660 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24661 (GRUB_MOD_INIT): Gettextizze.
24662 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24663 (grub_linux_load64): Capitalise Linux.
24664 (GRUB_MOD_INIT): Gettextizze.
24665 * loader/xnu.c: Include `<grub/i18n.h>'.
24666 (GRUB_MOD_INIT): Gettextizze.
24667 * po/POTFILES: Add `loader/efi/appleloader.c',
24668 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
24669 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
24670 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
24671 `loader/i386/xnu.c', `loader/multiboot_loader.c',
24672 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
24673 and `loader/xnu.c'.
24674
b394b2ca
RM
246752010-01-08 Robert Millan <rmh.grub@aybabtu.com>
24676
24677 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
24678
246792010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
24680
24681 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
24682 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
24683 * util/mkisofs/mkisofs.c (main): Readjust --version output.
24684
bc8b32b3
RM
246852010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24686
24687 Reset Multiboot 2 support. New loader implements the draft in
24688 /branches/multiboot2 and shares as much code as possible with the
24689 production Multiboot 1 implementation.
24690
24691 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
24692 * loader/multiboot2.c: Likewise.
24693 * loader/i386/multiboot_helper.S: Likewise.
24694 * include/multiboot2.h: Replace with latest version from the draft
24695 in /branches/multiboot2.
24696
24697 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
24698 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
24699 and `loader/multiboot2.c'.
24700 (pkglib_MODULES): Add `multiboot2.mod'.
24701 (multiboot2_mod_SOURCES): New variable.
24702 (multiboot2_mod_LDFLAGS): Likewise.
24703 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
24704
24705 * conf/i386-pc.rmk: Likewise.
24706
24707 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
24708 (multiboot_mod_SOURCES): Remove variable.
24709 (multiboot_mod_LDFLAGS): Likewise.
24710 (multiboot_mod_CFLAGS): Likewise.
24711
24712 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
24713 `<multiboot2.h>' instead of `<multiboot.h>'.
24714 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
24715 (MULTIBOOT_HEADER_MAGIC): New macros.
24716
24717 * loader/multiboot_loader.c (module_version_status): Remove variable.
24718 (find_multi_boot2_header): Remove function.
24719 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
24720 logic. Always check for the Multiboot version we're compiling for.
24721 (grub_cmd_module_loader): Likewise.
24722 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
24723 command instead of `multiboot'.
24724
5d2c52b8
RM
247252010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24726
24727 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
24728 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
24729 all users.
24730
53108d92
RM
247312010-01-07 Robert Millan <rmh.grub@aybabtu.com>
247322010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24733
24734 Fix breakage introduced with previous commit.
24735
24736 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
24737 commands.
24738 * normal/handler.c (read_handler_list): Revert part of previous commit
24739 affecting this file.
24740 * normal/main.c (read_lists): Move read_handler_list() call back to ...
24741 (grub_normal_execute): ... here.
24742
e2e936b2
RM
247432010-01-07 Robert Millan <rmh.grub@aybabtu.com>
24744
24745 Merge prefix-redefinition-fix branch.
24746
24747 * normal/autofs.c (read_fs_list): Make function capable of being
24748 run multiple times, gracefuly replacing the previous data
24749 structures.
24750 * normal/dyncmd.c (read_command_list): Likewise.
24751 * normal/handler.c (read_handler_list): Likewise.
24752 * normal/main.c (read_lists): New function. Calls all the
24753 list reading functions.
24754 (grub_normal_execute): Use read_lists() instead of calling all
24755 list reading functions explicitly. Register read_lists() as a
24756 variable hook attached to ${prefix}.
24757
607a3701
VS
247582010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24759
24760 Merge crypto branch.
24761
24762 * Makefile.in (pkglib_DATA): Add crypto.lst.
24763 (crypto.lst): New target.
24764 * commands/hashsum.c: New file.
24765 * commands/password.c (check_password): Use grub_crypto_memcmp.
24766 * commands/password_pbkdf2.c: New file.
24767 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
24768 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
24769 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
24770 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
24771 -I$(srcdir)/lib/libgcrypt_wrap.
24772 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
24773 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
24774 password_pbkdf2.mod.
24775 (crypto_mod_SOURCES): New variable.
24776 (crypto_mod_CFLAGS): Likewise.
24777 (crypto_mod_LDFLAGS): Likewise.
24778 (hashsum_mod_SOURCES): New variable.
24779 (hashsum_mod_CFLAGS): Likewise.
24780 (hashsum_mod_LDFLAGS): Likewise.
24781 (pbkdf2_mod_SOURCES): New variable.
24782 (pbkdf2_mod_CFLAGS): Likewise.
24783 (pbkdf2_mod_LDFLAGS): Likewise.
24784 (password_pbkdf2_mod_SOURCES): New variable.
24785 (password_pbkdf2_mod_CFLAGS): Likewise.
24786 (password_pbkdf2_mod_LDFLAGS): Likewise.
24787 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
24788 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
24789 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
24790 Include conf/gcry.rmk.
24791 * include/grub/auth.h: Rewritten.
24792 * include/grub/crypto.h: New file.
24793 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
24794 * include/grub/normal.h (read_crypto_list): New prototype.
24795 * lib/crypto.c: New file.
24796 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
24797 * lib/pbkdf2.c: Likewise.
24798 * normal/auth.c (grub_auth_strcmp): Removed.
24799 (grub_iswordseparator): Likewise.
24800 (grub_auth_strword): Likewise.
24801 (is_authenticated): Use grub_strword.
24802 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
24803 and grub_strword. Pass entered password to authentication callback.
24804 * normal/crypto.c: New file.
24805 * normal/main.c: Call read_crypto_list.
24806 * util/grub-mkpasswd-pbkdf2.c: New file.
24807 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
24808
42841caa
VS
248092010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
24810
24811 Fix descent and ascent calculation.
24812
24813 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
24814 (options): New option "asce".
24815 (usage): Likewise.
24816 (add_char): Ignore invalid glyphs for descent calculation.
24817 Calculate ascent from actual content.
24818 (print_glyphs): Use 'asce'.
24819 (write_font): Likewise. Allow ascent override.
24820 (main): Handle "asce" option.
24821
e7730de7 248222010-01-06 Carles Pina i Estany <carles@pina.cat>
24823
24824 * kern/err.c: Include `<grub/i18n.h>'.
24825 (grub_print_error): Add full stop. Gettextizze.
24826 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
24827 (grub_bsd_load_elf): Capitalise ELF.
24828 (grub_cmd_freebsd_loadenv): Add `s' in error string.
24829 (grub_cmd_freebsd_module): Likewise.
24830 (grub_cmd_freebsd_module_elf): Likewise.
24831 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
24832
40e3a41f 248332010-01-06 Carles Pina i Estany <carles@pina.cat>
24834
24835 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
24836 * commands/search_file.c (HELP_MESSAGE): New macro.
24837 * commands/search_label.c (HELP_MESSAGE): Likewise.
24838 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
24839 * po/POTFILES: Add `commands/search_file.c',
24840 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
24841 `commands/search.c'.
24842
83507e68
RM
248432010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24844
24845 * config.rpath: Update from Gnulib.
24846
465c787b
YB
248472010-01-05 Yves Blusseau <blusseau@zetam.org>
24848
24849 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
24850
6581dd3a
YB
248512010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
24852
24853 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
24854
3bff18c5
CW
248552010-01-05 Colin Watson <cjwatson@ubuntu.com>
24856
24857 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
24858 arguments to fread so that we get a return value in bytes, rather
24859 than something that will normally be rounded down to 0.
24860 Adjust error handling to avoid producing garbage when size_t is not
24861 the same size as long long.
24862
a1368118
CW
248632010-01-05 Colin Watson <cjwatson@ubuntu.com>
24864
24865 * util/mkisofs/write.c (padblock_write): Check return value of
24866 fread.
24867
7c302978
RM
248682010-01-05 Robert Millan <rmh.grub@aybabtu.com>
24869
24870 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
24871 floppy images now.
24872
24873 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
24874
e33ace06
RM
248752010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24876
24877 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
24878 instead of manual alignment.
24879 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
24880 verbose). Avoid attempts to read past end of the device
24881 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
24882 but GRUB_DISK_CACHE_SIZE may exceed that).
24883
4b856776
RM
248842010-01-04 Robert Millan <rmh.grub@aybabtu.com>
24885
24886 * commands/crc.c (grub_cmd_crc): Abort on read errors.
24887 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
24888 it to upper layer.
24889
52c2d97f
VS
248902010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24891
24892 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
24893 New constant.
24894 (grub_efi_piwg_device_path): New structure
24895 (grub_efi_piwg_device_path_t): New type.
24896 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
24897 (devpath_1): Transform to a structure. All users updated.
24898 (devpath_2): Likewise.
24899 (devpath_3): Likewise.
24900 (devpath_4): Likewise.
24901 (devpath_5): Likewise.
24902
98ff6a54
VS
249032010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
24904
24905 * loader/efi/appleloader.c: Restored. Update all users.
24906
3a73dcb6
RM
249072010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24908
24909 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
24910
24911 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
24912 (struct boot_blocklist): Move from here ...
24913 * include/grub/i386/pc/boot.h [ASM_FILE]
24914 (struct grub_boot_blocklist): ... to here. Update all users.
24915 (setup): Only initialize `start' member of `first_block'
24916 structure. Add assert() calls to verify the other members.
24917
24918 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
24919 (generate_image): Fix broken blocklist length initialization.
24920 Add assert() call to verify blocklist `segment' field.
24921
ab0eeb0c
RM
249222010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24923
24924 * loader/efi/appleloader.c: Remove. Update all users.
24925
58bc8bd5
RM
249262010-01-03 Robert Millan <rmh.grub@aybabtu.com>
24927
24928 * boot/i386/pc/boot.S: Update copyright year.
24929 * boot/i386/pc/cdboot.S: Likewise.
24930 * boot/i386/pc/diskboot.S: Likewise.
24931 * boot/i386/pc/lnxboot.S: Likewise.
24932 * boot/i386/pc/pxeboot.S: Likewise.
24933 * bus/pci.c: Likewise.
24934 * commands/cmp.c: Likewise.
24935 * commands/help.c: Likewise.
24936 * commands/hexdump.c: Likewise.
24937 * commands/i386/pc/halt.c: Likewise.
24938 * commands/i386/pc/play.c: Likewise.
24939 * commands/i386/pc/vbeinfo.c: Likewise.
24940 * commands/ls.c: Likewise.
24941 * commands/test.c: Likewise.
24942 * disk/dmraid_nvidia.c: Likewise.
24943 * disk/i386/pc/biosdisk.c: Likewise.
24944 * disk/ieee1275/nand.c: Likewise.
24945 * disk/ieee1275/ofdisk.c: Likewise.
24946 * disk/lvm.c: Likewise.
24947 * disk/raid.c: Likewise.
24948 * disk/raid6_recover.c: Likewise.
24949 * disk/scsi.c: Likewise.
24950 * fs/affs.c: Likewise.
24951 * fs/cpio.c: Likewise.
24952 * fs/ext2.c: Likewise.
24953 * fs/hfs.c: Likewise.
24954 * fs/iso9660.c: Likewise.
24955 * fs/ntfs.c: Likewise.
24956 * fs/sfs.c: Likewise.
24957 * fs/udf.c: Likewise.
24958 * fs/ufs.c: Likewise.
24959 * fs/xfs.c: Likewise.
24960 * gencmdlist.sh: Likewise.
24961 * genmk.rb: Likewise.
24962 * include/grub/disk.h: Likewise.
24963 * include/grub/efi/api.h: Likewise.
24964 * include/grub/efi/efi.h: Likewise.
24965 * include/grub/efi/pe32.h: Likewise.
24966 * include/grub/elf.h: Likewise.
24967 * include/grub/fs.h: Likewise.
24968 * include/grub/i386/at_keyboard.h: Likewise.
24969 * include/grub/i386/pc/memory.h: Likewise.
24970 * include/grub/i386/pc/vbe.h: Likewise.
24971 * include/grub/i386/pci.h: Likewise.
24972 * include/grub/i386/tsc.h: Likewise.
24973 * include/grub/ieee1275/ieee1275.h: Likewise.
24974 * include/grub/ntfs.h: Likewise.
24975 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
24976 * include/grub/sparc64/libgcc.h: Likewise.
24977 * include/grub/symbol.h: Likewise.
24978 * include/grub/types.h: Likewise.
24979 * include/multiboot2.h: Likewise.
24980 * io/gzio.c: Likewise.
24981 * kern/device.c: Likewise.
24982 * kern/disk.c: Likewise.
24983 * kern/efi/efi.c: Likewise.
24984 * kern/efi/mm.c: Likewise.
24985 * kern/elf.c: Likewise.
24986 * kern/file.c: Likewise.
24987 * kern/i386/dl.c: Likewise.
24988 * kern/i386/pc/init.c: Likewise.
24989 * kern/i386/pc/startup.S: Likewise.
24990 * kern/ieee1275/ieee1275.c: Likewise.
24991 * kern/ieee1275/init.c: Likewise.
24992 * kern/main.c: Likewise.
24993 * kern/mm.c: Likewise.
24994 * kern/powerpc/dl.c: Likewise.
24995 * kern/sparc64/dl.c: Likewise.
24996 * kern/x86_64/dl.c: Likewise.
24997 * lib/hexdump.c: Likewise.
24998 * loader/efi/appleloader.c: Likewise.
24999 * loader/i386/ieee1275/linux.c: Likewise.
25000 * loader/i386/pc/chainloader.c: Likewise.
25001 * loader/i386/pc/linux.c: Likewise.
25002 * loader/i386/pc/multiboot2.c: Likewise.
25003 * loader/ieee1275/multiboot2.c: Likewise.
25004 * loader/multiboot2.c: Likewise.
25005 * loader/multiboot_loader.c: Likewise.
25006 * loader/powerpc/ieee1275/linux.c: Likewise.
25007 * normal/completion.c: Likewise.
25008 * normal/menu_entry.c: Likewise.
25009 * partmap/apple.c: Likewise.
25010 * util/grub.d/10_hurd.in: Likewise.
25011 * util/hostfs.c: Likewise.
25012 * video/readers/png.c: Likewise.
25013
e2d70b5c
CW
250142010-01-03 Colin Watson <cjwatson@ubuntu.com>
25015
25016 * include/grub/misc.h (GNUC_PREREQ): New macro.
25017 (ATTRIBUTE_ERROR): New macro.
25018 * include/grub/list.h (grub_bad_type_cast_real): Use
25019 ATTRIBUTE_ERROR.
25020
a173283f 250212010-01-03 Carles Pina i Estany <carles@pina.cat>
25022
25023 * normal/menu_text.c (print_message): Change messages.
25024
7fa7ff74 250252010-01-03 Carles Pina i Estany <carles@pina.cat>
25026
25027 * normal/menu_entry.c (store_completion): Gettextizze.
25028
136d24f6 250292010-01-03 Carles Pina i Estany <carles@pina.cat>
25030
25031 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25032
f936862e 250332010-01-03 Carles Pina i Estany <carles@pina.cat>
25034
25035 * po/POTFILES: Sort correctly.
25036
29c44ad1 250372010-01-03 Carles Pina i Estany <carles@pina.cat>
25038
25039 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25040 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25041 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25042 full stop.
25043 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25044 summary. Gettextizze the strings.
25045 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25046 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25047 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25048 full stop.
25049 (GRUB_MOD_INIT): Remove command name from summary.
25050 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25051 summary.
25052 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25053 * term/i386/pc/serial.c (options): Add full stops.
25054 (GRUB_MOD_INIT): Remove command name from the summary.
25055
77a79592 250562010-01-03 Carles Pina i Estany <carles@pina.cat>
25057
25058 * commands/acpi.c: Gettextizze help strings and/or options. Include
25059 `grub/i18n.h' if needed.
25060 * commands/blocklist.c: Likewise.
25061 * commands/boot.c: Likewise.
25062 * commands/cat.c: Likewise.
25063 * commands/cmp.c: Likewise.
25064 * commands/configfile.c: Likewise.
25065 * commands/crc.c: Likewise.
25066 * commands/date.c: Likewise.
25067 * commands/echo.c: Likewise.
25068 * commands/efi/fixvideo.c: Likewise.
25069 * commands/efi/loadbios.c: Likewise.
25070 * commands/gptsync.c: Likewise.
25071 * commands/halt.c: Likewise.
25072 * commands/handler.c: Likewise.
25073 * commands/hdparm.c: Likewise.
25074 * commands/hexdump.c: Likewise.
25075 * commands/i386/cpuid.c: Likewise.
25076 * commands/i386/pc/drivemap.c: Likewise.
25077 * commands/i386/pc/halt.c: Likewise.
25078 * commands/i386/pc/pxecmd.c: Likewise.
25079 * commands/i386/pc/vbeinfo.c: Likewise.
25080 * commands/i386/pc/vbetest.c: Likewise.
25081 * commands/ieee1275/suspend.c: Likewise.
25082 * commands/keystatus.c: Likewise.
25083 * commands/loadenv.c: Likewise.
25084 * commands/ls.c: Likewise.
25085 * commands/lsmmap.c: Likewise.
25086 * commands/lspci.c: Likewise.
25087 * commands/memrw.c: Likewise.
25088 * commands/minicmd.c: Likewise.
25089 * commands/parttool.c: Likewise.
25090 * commands/password.c: Likewise.
25091 * commands/probe.c: Likewise.
25092 * commands/read.c: Likewise.
25093 * commands/reboot.c: Likewise.
25094 * commands/search.c: Likewise.
25095 * commands/sleep.c: Likewise.
25096 * commands/test.c: Likewise.
25097 * commands/true.c: Likewise.
25098 * commands/usbtest.c: Likewise.
25099 * commands/videotest.c: Likewise.
25100 * commands/xnu_uuid.c: Likewise.
25101 * disk/loopback.c: Likewise.
25102 * hello/hello.c: Likewise.
25103 * loader/i386/bsd.c: Likewise.
25104 * term/i386/pc/serial.c: Likewise.
25105 * po/POTFILES: Add new files.
25106
da8d5c53
CW
251072010-01-02 Colin Watson <cjwatson@ubuntu.com>
25108
25109 * term/i386/pc/at_keyboard.c
25110 (keyboard_controller_wait_untill_ready): Rename to ...
25111 (keyboard_controller_wait_until_ready): ... this. Update all users.
25112
33937904 251132010-01-01 Carles Pina i Estany <carles@pina.cat>
25114
25115 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25116 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25117 string using string width.
25118 * normal/menu_text.c (grub_print_message_indented): Use
25119 grub_print_spaces and not print_spaces.
25120 (print_timeout): Likewise.
25121 (print_spaces): Move to...
25122 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25123
3fd3b8d8
RM
251242010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25125
25126 Import from Gnulib.
25127
25128 * gnulib/getdelim.c: New file.
25129 * gnulib/getline.c: Likewise.
25130
33433555
VS
251312009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25132
25133 * include/grub/list.h (grub_assert_fail): Removed.
25134 (grub_bad_type_cast_real): New function.
25135 (grub_bad_type_cast): New macro.
25136 (GRUB_AS_LIST): Use grub_bad_type_cast.
25137 (GRUB_AS_LIST_P): Likewise.
e44721e8 25138 (GRUB_AS_NAMED_LIST): Likewise.
33433555 25139 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 25140 (GRUB_AS_PRIO_LIST): Likewise.
33433555 25141 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 25142 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 25143
f5a51306
VS
251442009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25145
25146 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25147 Fix syntax error.
25148
90d1e879
RM
251492009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25150
25151 * configure.ac: Check for TARGET_CFLAGS initialization before we
25152 initialize it ourselves (sigh).
25153 Move a few modifications to TARGET_CFLAGS to be unconditional
25154 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25155 eh_frame)
25156
25157 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25158 * term/i386/pc/at_keyboard.c
25159 (keyboard_controller_wait_untill_ready): Likewise.
25160 (keyboard_controller_led): Rename `led_status' paramter to avoid
25161 name conflict.
25162
465b5a81 251632009-12-28 Carles Pina i Estany <carles@pina.cat>
25164
25165 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25166 quotes.
25167
c181849b
VS
251682009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25169
25170 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25171
9c8739a4
VS
251722009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25173
25174 * normal/menu_text.c (grub_print_message_indented): Prevent
25175 past-the-end-of-array dereference.
25176
3e74249c
VS
251772009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25178
25179 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25180 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25181
64fd18ed 251822009-12-27 Carles Pina i Estany <carles@pina.cat>
25183
25184 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25185 * normal/main.c (grub_normal_read_line): Remove a space from the
25186 default prompt.
25187
714af9b9 251882009-12-27 Carles Pina i Estany <carles@pina.cat>
25189
25190 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25191 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25192 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25193 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25194 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25195 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25196 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25197
82f3e412 251982009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 25199
25200 * video/readers/jpeg.c (cmd): Declare.
25201 (grub_cmd_jpegtest): Use `grub_command_t' type.
25202 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25203 Assign to `cmd'.
25204 (GRUB_MOD_FINI): Use `cmd' to unregister.
25205 * video/readers/png.c (cmd): Declare.
25206 (grub_cmd_pngtest): Use `grub_command_t' type.
25207 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25208 Assign to `cmd'.
25209 (GRUB_MOD_FINI): Use `cmd' to unregister.
25210 * video/readers/tga.c (cmd): Declare.
25211 (grub_cmd_tgatest): Use `grub_command_t' type.
25212 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25213 Assign to `cmd'.
25214 (GRUB_MOD_FINI): Use `cmd' to unregister.
25215
82f3e412 252162009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 25217
25218 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25219 stops.
25220 * kern/corecmd.c (grub_register_core_commands): Likewise.
25221 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25222 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25223 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25224 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25225 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25226 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25227 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25228 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25229 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25230 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25231 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25232 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25233 * normal/handler.c (insert_handler): Likewise.
25234 * normal/main.c (GRUB_MOD_INIT): Likewise.
25235 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25236
fdcdbb66 252372009-12-26 Carles Pina i Estany <carles@pina.cat>
25238
25239 * commands/help.c (grub_cmd_help): Print the command name before the
25240 summary.
25241 (GRUB_MOD_INIT): Remove command name from the summary.
25242 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 25243 string as summary.
fdcdbb66 25244 * lib/arg.c (find_long): Print the command name before the summary.
25245 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25246 summary.
25247 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25248 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25249 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25250 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25251 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25252 * commands/date.c (GRUB_MOD_INIT): Likewise.
25253 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25254 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25255 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25256 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25257 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25258 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25259 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25260 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25261 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25262 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25263 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25264 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25265 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25266 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25267 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25268 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25269 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25270 * commands/password.c (GRUB_MOD_INIT): Likewise.
25271 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25272 * commands/read.c (GRUB_MOD_INIT): Likewise.
25273 * commands/search.c (GRUB_MOD_INIT): Likewise.
25274 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25275 * commands/test.c (GRUB_MOD_INIT): Likewise.
25276 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25277 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25278 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25279 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25280 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25281 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25282 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25283 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25284 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25285 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25286 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25287 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25288 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25289 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25290
9c288be2
VS
252912009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25292
25293 Use search command for preliminar UUID search.
25294
25295 * commands/search.c: Split into ...
25296 * commands/search_wrap.c: ...this
25297 * commands/search.c: ...and this.
25298 * commands/search_file.c: New file.
25299 * commands/search_label.c: New file.
25300 * commands/search_uuid.c: New file.
25301 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25302 Add commands/search_wrap.c, commands/search_file.c,
25303 commands/search_label.c and commands/search_uuid.c.
25304 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25305 (search_mod_SOURCES): Set to commands/search_wrap.c.
25306 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25307 search_label.mod.
25308 (search_fs_file_mod_SOURCES): New variable.
25309 (search_fs_file_mod_CFLAGS): Likewise.
25310 (search_fs_file_mod_LDFLAGS): Likewise.
25311 (search_label_mod_SOURCES): Likewise.
25312 (search_label_mod_CFLAGS): Likewise.
25313 (search_label_mod_LDFLAGS): Likewise.
25314 (search_fs_uuid_mod_SOURCES): New variable.
25315 (search_fs_uuid_mod_CFLAGS): Likewise.
25316 (search_fs_uuid_mod_LDFLAGS): Likewise.
25317 (fs_file_mod_SOURCES): Removed.
25318 (fs_file_mod_CFLAGS): Likewise.
25319 (fs_file_mod_LDFLAGS): Likewise.
25320 (fs_uuid_mod_SOURCES): Removed.
25321 (fs_uuid_mod_CFLAGS): Likewise.
25322 (fs_uuid_mod_LDFLAGS): Likewise.
25323 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25324 Set to util/grub-install.in.
25325 * disk/fs_file.c: Removed.
25326 * disk/fs_uuid.c: Likewise.
25327 * include/grub/search.h: New file.
25328 * util/grub-install.in: Handle sparc64.
25329 Create and use load.cfg.
25330 * util/sparc64/ieee1275/grub-install.in: Removed.
25331
db943399
VS
253322009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25333
25334 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25335 Ignore return status if CF is cleared.
25336 (grub_biosdisk_get_diskinfo_standard): Likewise.
25337
3fdae612
RM
253382009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25339
25340 * term/i386/pc/at_keyboard.c
25341 (keyboard_controller_wait_untill_ready): New function.
25342 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25343 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25344 for keyboard polling, rather than duplicate the same loop. This
25345 saves a few bytes in code size.
25346
7ebaa2b4
VS
253472009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25348
25349 Support for (pxe[:server[:gateway]]) syntax and
25350 use environment variable for PXE.
25351
25352 * commands/i386/pc/pxecmd.c (options): Removed.
25353 (print_ip): Removed.
25354 (grub_cmd_pxe): Removed
25355 (grub_cmd_pxe_unload): New function.
25356 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25357 (grub_pxe_your_ip): Made static.
25358 (grub_pxe_default_server_ip): Likewise.
25359 (grub_pxe_default_gateway_ip): Likewise.
25360 (grub_pxe_blksize): Likewise.
25361 (parse_ip): New function.
25362 (grub_pxe_open): Support server and gateway specification.
25363 (grub_pxe_close): Free disk->data.
25364 (grub_pxefs_open): Use disk->data.
25365 (grub_pxefs_read): Likewise.
25366 (grub_env_write_readonly): New function.
25367 (set_mac_env): Likewise.
25368 (set_env_limn_ro): Likewise.
25369 (parse_dhcp_vendor): Likewise.
25370 (grub_pxe_detect): Set the environment variables.
25371 (set_ip_env): New function.
25372 (write_ip_env): Likewise.
25373 (grub_env_write_pxe_default_server): Likewise.
25374 (grub_env_write_pxe_default_gateway): Likewise.
25375 (grub_env_write_pxe_blocksize): Likewise.
25376 (GRUB_MOD_INIT(pxe)): Set environment variables.
25377 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25378 (grub_pxe_mac_addr_t): ... this. All users updated.
25379 (grub_pxe_your_ip): Removed.
25380 (grub_pxe_server_ip): Likewise.
25381 (grub_pxe_gateway_ip): Likewise.
25382 (grub_pxe_blksize): Likewise.
25383
ec5f98ab 253842009-12-25 Carles Pina i Estany <carles@pina.cat>
25385
25386 * commands/help.c: Include `<grub/i18n.h>'.
25387 (grub_cmd_help): Gettextizze.
25388 (GRUB_MOD_INIT): Likewise.
25389 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25390 (GRUB_MOD_INIT): Gettextizze.
25391 * commands/search.c: Include `<grub/i18n.h>'.
25392 (options): Gettextizze.
25393 (GRUB_MOD_INIT): Gettextizze.
25394 * lib/arg.c: Include `<grub/i18n.h>'.
25395 (help_options): Gettextizze.
25396 (find_long): Likewise.
25397 (grub_arg_show_help): Likewise.
25398 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25399 (read_command_list): Gettextizze.
25400 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 25401 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 25402
22815526
RM
254032009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25404
25405 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25406 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25407 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25408 (led_status): New variable.
25409 (keyboard_controller_led): New function.
25410 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25411 update led status for caps lock, num lock and scroll lock.
25412
0ad46fd7
FZ
254132009-12-25 Felix Zielcke <fzielcke@z-51.de>
25414
25415 * util/hostdisk.c (open_device): Fix a comment.
25416
d0e158c2
RM
254172009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25418
25419 * util/grub-install.in (host_os): New variable.
25420 * util/i386/efi/grub-install.in (host_os): Likewise.
25421
401c0ad6
RM
254222009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25423
25424 * util/mkisofs/write.c (padblock_write): Abort when given an
25425 excedingly large embed image, instead of silently truncating it.
25426
d14d3370
RM
254272009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25428
25429 * include/multiboot.h: Indentation fixes.
25430
eeed10b4
RM
254312009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25432
25433 * include/multiboot.h (struct multiboot_aout_symbol_table)
25434 (struct multiboot_elf_section_header_table): New structure
25435 declarations (stolen from GRUB Legacy).
25436 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25437 table information.
25438
25439 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25440 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25441 type aliases.
25442
681c70ab
RM
254432009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25444
25445 * include/multiboot.h: Make comments src2texi-friendly.
25446
e4d47d8d
RM
254472009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25448
25449 For consistency with [multiboot]/docs/boot.S.
25450
25451 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25452 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25453 (MULTIBOOT_MAGIC2): Rename from this ...
25454 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25455
a0b70bda
RM
254562009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25457
25458 * include/multiboot.h: Remove `<grub/types.h>'.
25459 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25460 types. Update all users.
25461
61ba42be 254622009-12-25 Carles Pina i Estany <carles@pina.cat>
25463
25464 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25465 `couldn't' and `can not' by `cannot'.
25466 * commands/i386/pc/drivemap.c: Likewise.
25467 * disk/ata.c: Likewise.
25468 * disk/ieee1275/nand.c: Likewise.
25469 * fs/affs.c: Likewise.
25470 * fs/fat.c: Likewise.
25471 * fs/hfs.c: Likewise.
25472 * fs/hfsplus.c: Likewise.
25473 * fs/iso9660.c: Likewise.
25474 * fs/jfs.c: Likewise.
25475 * fs/minix.c: Likewise.
25476 * fs/reiserfs.c: Likewise.
25477 * fs/sfs.c: Likewise.
25478 * fs/udf.c: Likewise.
25479 * fs/ufs.c: Likewise.
25480 * fs/xfs.c: Likewise.
25481 * loader/powerpc/ieee1275/linux.c: Likewise.
25482 * loader/sparc64/ieee1275/linux.c: Likewise.
25483 * util/grub-probe.c: Likewise.
25484 * util/misc.c: Likewise.
25485
7fd0baee 254862009-12-24 Carles Pina i Estany <carles@pina.cat>
25487
25488 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25489 grub_errno calls.
25490 * commands/acpi.c: Likewise.
25491 * commands/blocklist.c: Likewise.
25492 * commands/efi/loadbios.c: Likewise.
25493 * commands/i386/pc/drivemap.c: Likewise.
25494 * commands/loadenv.c: Likewise.
25495 * commands/memrw.c: Likewise.
25496 * commands/password.c: Likewise.
25497 * commands/videotest.c: Likewise.
25498 * disk/ata.c: Likewise.
25499 * disk/ata_pthru.c: Likewise.
25500 * disk/dmraid_nvidia.c: Likewise.
25501 * disk/ieee1275/nand.c: Likewise.
25502 * disk/ieee1275/ofdisk.c: Likewise.
25503 * disk/loopback.c: Likewise.
25504 * disk/lvm.c: Likewise.
25505 * disk/mdraid_linux.c: Likewise.
25506 * disk/raid.c: Likewise.
25507 * disk/raid6_recover.c: Likewise.
25508 * disk/scsi.c: Likewise.
25509 * efiemu/main.c: Likewise.
25510 * efiemu/mm.c: Likewise.
25511 * efiemu/pnvram.c: Likewise.
25512 * efiemu/symbols.c: Likewise.
25513 * font/font.c: Likewise.
25514 * fs/cpio.c: Likewise.
25515 * fs/hfsplus.c: Likewise.
25516 * fs/iso9660.c: Likewise.
25517 * fs/jfs.c: Likewise.
25518 * fs/minix.c: Likewise.
25519 * fs/ntfs.c: Likewise.
25520 * fs/ntfscomp.c: Likewise.
25521 * fs/reiserfs.c: Likewise.
25522 * fs/ufs.c: Likewise.
25523 * fs/xfs.c: Likewise.
25524 * gettext/gettext.c: Likewise.
25525 * include/grub/auth.h: Likewise.
25526 * kern/elf.c: Likewise.
25527 * kern/file.c: Likewise.
25528 * kern/ieee1275/init.c: Likewise.
25529 * kern/ieee1275/mmap.c: Likewise.
25530 * kern/ieee1275/openfw.c: Likewise.
25531 * kern/powerpc/dl.c: Likewise.
25532 * kern/sparc64/dl.c: Likewise.
25533 * lib/arg.c: Likewise.
25534 * loader/i386/bsd.c: Likewise.
25535 * loader/i386/bsdXX.c: Likewise.
25536 * loader/i386/efi/linux.c: Likewise.
25537 * loader/i386/efi/xnu.c: Likewise.
25538 * loader/i386/ieee1275/linux.c: Likewise.
25539 * loader/i386/linux.c: Likewise.
25540 * loader/i386/multiboot.c: Likewise.
25541 * loader/i386/pc/linux.c: Likewise.
25542 * loader/i386/pc/multiboot2.c: Likewise.
25543 * loader/i386/xnu.c: Likewise.
25544 * loader/ieee1275/multiboot2.c: Likewise.
25545 * loader/macho.c: Likewise.
25546 * loader/machoXX.c: Likewise.
25547 * loader/multiboot2.c: Likewise.
25548 * loader/multiboot_loader.c: Likewise.
25549 * loader/powerpc/ieee1275/linux.c: Likewise.
25550 * loader/sparc64/ieee1275/linux.c: Likewise.
25551 * loader/xnu.c: Likewise.
25552 * loader/xnu_resume.c: Likewise.
25553 * mmap/i386/pc/mmap.c: Likewise.
25554 * normal/menu_viewer.c: Likewise.
25555 * partmap/acorn.c: Likewise.
25556 * partmap/amiga.c: Likewise.
25557 * partmap/apple.c: Likewise.
25558 * script/lexer.c: Likewise.
25559 * term/gfxterm.c: Likewise.
25560 * term/i386/pc/serial.c: Likewise.
25561 * term/i386/pc/vga.c: Likewise.
25562 * term/ieee1275/ofconsole.c: Likewise.
25563 * term/terminfo.c: Likewise.
25564 * video/bitmap.c: Likewise.
25565 * video/efi_gop.c: Likewise.
25566 * video/efi_uga.c: Likewise.
25567 * video/fb/video_fb.c: Likewise.
25568 * video/i386/pc/vbe.c: Likewise.
25569 * video/readers/tga.c: Likewise.
25570 * video/video.c: Likewise.
25571
0ad46fd7 255722009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
25573
25574 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25575 * commands/lspci.c: Likewise.
25576 * commands/probe.c: Likewise.
25577 * commands/xnu_uuid.c: Likewise.
25578 * conf/i386-coreboot.rmk: Likewise.
25579 * conf/i386-efi.rmk: Likewise.
25580 * conf/i386-ieee1275.rmk: Likewise.
25581 * conf/i386-pc.rmk: Likewise.
25582 * conf/powerpc-ieee1275.rmk: Likewise.
25583 * conf/sparc64-ieee1275.rmk: Likewise.
25584 * conf/x86_64-efi.rmk: Likewise.
25585 * fs/i386/pc/pxe.c: Likewise.
25586 * gettext/gettext.c: Likewise.
25587 * include/grub/efi/graphics_output.h: Likewise.
25588 * include/grub/i386/pc/memory.h: Likewise.
25589 * kern/env.c: Likewise.
25590 * kern/i386/qemu/startup.S: Likewise.
25591 * lib/i386/pc/biosnum.c: Likewise.
25592 * lib/i386/relocator.c: Likewise.
25593 * lib/i386/relocator_asm.S: Likewise.
25594 * lib/relocator.c: Likewise.
25595 * loader/i386/bsd.c: Likewise.
25596 * loader/i386/multiboot.c: Likewise.
25597 * loader/i386/pc/chainloader.c: Likewise.
25598 * loader/i386/xnu.c: Likewise.
25599 * loader/xnu.c: Likewise.
25600 * normal/main.c: Likewise.
25601 * normal/menu_text.c: Likewise.
25602 * util/getroot.c: Likewise.
25603 * util/grub-mkconfig_lib.in: Likewise.
25604 * util/grub.d/00_header.in: Likewise.
25605 * util/i386/pc/grub-mkimage.c: Likewise.
25606 * util/mkisofs/eltorito.c: Likewise.
25607 * util/mkisofs/exclude.h: Likewise.
25608 * util/mkisofs/hash.c: Likewise.
25609 * util/mkisofs/iso9660.h: Likewise.
25610 * util/mkisofs/joliet.c: Likewise.
25611 * util/mkisofs/mkisofs.c: Likewise.
25612 * util/mkisofs/mkisofs.h: Likewise.
25613 * util/mkisofs/multi.c: Likewise.
25614 * util/mkisofs/name.c: Likewise.
25615 * util/mkisofs/rock.c: Likewise.
25616 * util/mkisofs/tree.c: Likewise.
25617 * util/mkisofs/write.c: Likewise.
25618 * video/efi_gop.c: Likewise.
25619
009ec743
VS
256202009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25621
25622 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25623 size counting.
25624
0ad46fd7 256252009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
25626
25627 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25628 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25629
d3d30ea0
VS
256302009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25631
25632 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25633 (GRUB_MOD_INIT(memrw)): Update help line.
25634
a34f5c70
VS
256352009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25636
25637 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25638 Use grub_extcmd_t. All users updated.
25639 (options): New variable.
25640 (grub_cmd_read): Restructure for readability. Support "-v" option.
25641 (grub_cmd_write): Restructure for readability.
25642
0ad46fd7 256432009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
25644
25645 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25646
0ad46fd7 256472009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
25648
25649 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25650 with the actual contents of the correspondending make variable.
25651 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25652 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25653 specifying `*.lst' and `efiemu??.o'
25654
0ad46fd7 256552009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
25656
25657 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25658 after function name.
25659 Noticed by Rene Engelhard <rene@debian.org>.
25660
dc77a799
VS
256612009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25662
25663 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25664 (options): New variable.
25665 (iospace): Likewise.
25666 (grub_lspci_iter): List IO spaces if "-i" was given.
25667 (grub_cmd_lspci): Parse options.
25668 (GRUB_MOD_INIT(lspci)): Use extcmd.
25669 (GRUB_MOD_FINI(lspci)): Likewise.
25670
0ad46fd7 256712009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
25672
25673 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
25674 `function' keyword.
25675 Patch by Tony Mancill <tmancill@debian.org>.
25676
b5d5993b
VS
256772009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25678
25679 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
25680 (grub_uhci_portstatus): Likewise.
25681 (grub_uhci_portstatus): Add necessary delay.
11d18281 25682 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 25683
941903f2 256842009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 25685
941903f2 25686 * commands/acpi.c (options): Fix capitalizations and/or full stops.
25687 (GRUB_MOD_INIT): Likewise.
25688 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 25689 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
25690 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 25691 * commands/efi/loadbios.c (enable_rom_area): Likewise.
25692 (enable_rom_area): Likewise.
25693 (GRUB_MOD_INIT): Likewise.
25694 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25695 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
25696 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25697 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
25698 * commands/hexdump.c (options): Likewise.
25699 * commands/i386/cpuid.c (options): Likewise.
25700 (GRUB_MOD_INIT): Likewise.
25701 * commands/i386/pc/drivemap.c (options): Likewise.
25702 (GRUB_MOD_INIT): Likewise.
25703 * commands/i386/pc/halt (options): Likewise.
25704 (GRUB_MOD_INIT): Likewise.
25705 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25706 * commands/i386/pc/pxecmd.c (options): Likewise.
25707 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
25708 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
25709 * commands/keystatus.c (options): Likewise.
25710 (GRUB_MOD_INIT): Likewise.
25711 * commands/loadenv.c (options): Likewise.
25712 * commands/ls.c (options): Likewise.
25713 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25714 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25715 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25716 * commands/parttool.c (helpmsg): Likewise.
25717 * commands/probe.c (options): Likewise.
25718 * commands/read.c (GRUB_MOD_INIT): Likewise.
25719 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
25720 * commands/search.c (options): Likewise.
25721 * commands/sleep.c (options): Likewise.
25722 * commands/test.c (GRUB_MOD_INIT): Likewise.
25723 * commands/true.c (GRUB_MOD_INIT): Likewise.
25724 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
25725 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
25726 * lib/arg.c (help_options): Likewise.
e9bbb4e7 25727 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
25728 `$(XGETTEXT)'.
98a50553 25729 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 25730
0ad46fd7 257312009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 25732
ef3c2c3a 25733 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
25734 instead of specifying them explicit.
25735
7922f68b
RM
257362009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25737
25738 * NEWS: Add grub-probe support for GNU/Hurd.
25739
537ce47f
RM
257402009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25741
25742 * NEWS: gettext was added after 1.97.
25743
9b214e3a
RM
257442009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25745
25746 * util/mkisofs/msdos_partition.h: New file (based on
25747 include/grub/msdos_partition.h).
25748 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
25749 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
25750 (ld_options, main): Recognize --protective-msdos-label.
25751 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
25752 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
25753 (padblock_write): If `use_protective_msdos_label' is set, patch a
25754 protective DOS-style label in the output image.
25755
25756 * util/grub-mkrescue.in: Use --protective-msdos-label.
25757
e9309813
RM
257582009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25759
25760 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
25761 boot.
25762
0ae56929
RM
257632009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25764
25765 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
25766 variables.
25767 (ld_options, main): Recognize `--embedded-boot'.
25768 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
25769 declarations.
25770 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
25771 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
25772 (padblock_write): Likewise. Rewrite to support embedded boot image.
25773
25774 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
25775 for BIOS-based disk boot instead of only ElTorito.
25776
b15937b1
RM
257772009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25778
25779 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
25780 build (not needed for bootstrap).
25781
52cc3ce0
RM
257822009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25783
25784 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
25785 from i386-pc build (not needed for bootstrap).
25786 Rewrite a pair of strings.
25787
36f5ff04
RM
257882009-12-21 Robert Millan <rmh.grub@aybabtu.com>
25789
25790 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
25791
973c6c85 257922009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
25793
25794 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
25795
05d21547
AB
257962009-12-21 Andreas Born <futur.andy@googlemail.com>
25797
25798 * kern/env.c (grub_env_context_open): Mark exported variable for
25799 reexport.
25800
0175d51f
AB
258012009-12-21 Andreas Born <futur.andy@googlemail.com>
25802
25803 * kern/env.c (grub_env_export): Create nonexistent variables before
25804 exporting.
25805
7f39d92f 258062009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 25807
7f39d92f 25808 * include/grub/auth.h: Include `<grub/i18n.h>'.
25809 (GRUB_GET_PASSWORD): Gettextizze string.
25810 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
25811 menu_text.c.
25812 (grub_utf8_to_ucs4_alloc): Fix indentation.
25813 (grub_print_ucs4): Likewise.
25814 (grub_getstringwidth): Likewise.
25815 (print_message_indented): New declaration.
25816 * normal/auth.c: Include `<grub/i18n.h>'.
25817 (grub_auth_check_authentication): Gettexttize string.
25818 * normal/cmdline.c: Include `<grub/i18n.h>'.
25819 (grub_cmdline_get): Gettextizze.
25820 * normal/color.c: Include `<grub/i18n.h>'.
25821 (grub_parse_color_name_pair): Gettexttize strings.
25822 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
25823 string (use `print_message_indented').
25824 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
25825 `include/grub/normal.h'.
25826 (print_message_indented): Renamed to ...
25827 (grub_print_message_indented): ... this. Remove `static' qualifer (now
25828 used in normal/main.c).
25829 (print_message): Use `grub_print_message_indented' instead of
25830 `print_message_indented'.
25831 (print_timeout): Likewise.
25832 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
25833 (grub_normal_print_device_info): Gettexttize strings.
25834 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
25835
3041d898
VS
258362009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25837
25838 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
25839 of arguments. Return number of tokens and not arguments. All users
25840 updated.
25841
de15bf8e
VS
258422009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
25843
25844 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
25845 non-MSDOS paritions.
25846
e0a6ca52
VS
258472009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
25848
25849 * include/grub/types.h (UNUSED): Removed since it conflicts with
25850 NetBSD headers. All users changed to direct __attribute__ ((unused)).
25851 Reported by Grégoire Sutre.
25852
b99518d1 258532009-12-19 Carles Pina i Estany <carles@pina.cat>
25854
25855 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
25856 (grub_print_ucs4_alloc): Likewise.
25857 (grub_getstringwidth): Likewise.
25858 * normal/main.c (grub_normal_init_page): Gettextize version string.
25859 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
25860 (getstringwidth): Renamed to ...
25861 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
25862 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
25863 (grub_print_ucs4): Remove `static' qualifer (now used in
25864 normal/main.c).
25865 * po/POTFILES: Add normal/main.c.
25866
bfd5e52b 258672009-12-19 Carles Pina i Estany <carles@pina.cat>
25868
25869 * normal/menu_text.c (STANDARD_MARGIN): New macro.
25870 (print_message_indented): Add `margin_left' and `margin_right'
25871 parameters.
25872 (print_message): Update `print_message_indented' calls. Adds '\n' to the
25873 strings.
25874 (print_timeout): Use `print_message_indented' to print the message.
25875 Deletes `second_stage' parameter.
25876 (run_menu): Update `print_timeout' calls.
25877
5a1ad2b9
VS
258782009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25879
25880 Fix console palette on OpenFirmware.
25881
25882 * term/ieee1275/ofconsole.c (MAX): Removed.
25883 (colors): Redone based on VGA palette.
25884 (grub_ofconsole_setcolor): Discard brightness bit since only 8
25885 colors are supported.
25886 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
25887
b045f00a
VS
258882009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
25889
25890 Fix potential EfiEmu double prepare.
25891
25892 * efiemu/main.c (prepared): New variable
25893 (grub_efiemu_unload): Set prepare to '0'.
25894 (grub_efiemu_prepare): Return if already prepared. Set prepared.
25895
25896 set_virtual_address_map support.
25897
25898 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
25899 prototype.
25900 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
25901 prototype.
25902 (grub_efiemu_crc32): Likewise.
25903 (grub_efiemu_crc64): Likewise.
25904 (grub_efiemu_set_virtual_address_map): Likewise.
25905 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
25906 New definition.
25907 (grub_autoefi_set_virtual_address_map): Likewise.
25908 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
25909 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
25910 Restructure flow to accomodate it.
25911 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
25912 (grub_efiemu_crc): Recompute CRC32.
25913 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
25914 (efiemu_ptv_relocated): ... this. Made global. All users updated.
25915 * efiemu/symbols.c (relocated_handle): New variable.
25916 (grub_efiemu_free_syms): Free relocated_handle.
25917 (grub_efiemu_alloc_syms): Allocate relocated_handle.
25918 (grub_efiemu_write_sym_markers): New function.
25919 (grub_efiemu_set_virtual_address_map): Likewise.
25920
25921 Newer XNU parameters.
25922
25923 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
25924 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
25925 (grub_xnu_fill_devicetree): New prototype.
25926 (grub_xnu_heap_real_start): New variable.
25927 * loader/xnu.c (get_name_ptr): New function.
25928 (grub_xnu_load_driver): Fill namelen and name.
25929
25930 64-bit xnu support.
25931
25932 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
25933 and 'loader/macho64.c'.
25934 * conf/i386-pc.rmk: Likewise.
25935 * conf/x86_64-efi.rmk: Likewise.
25936 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
25937 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
25938 * include/grub/macho.h (grub_macho_segment64): New structure.
25939 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
25940 (grub_macho_size32): ... to this.
25941 (grub_macho32_get_entry_point): Renamed from ...
25942 (grub_macho_get_entry_point32): ... to this.
25943 (grub_macho_contains_macho64): New prototype.
25944 (grub_macho_size64): Likewise.
25945 (grub_macho_get_entry_point64): Likewise.
25946 (grub_macho32_load): Renamed from ...
25947 (grub_macho_load32): ... to this.
25948 (grub_macho32_filesize): Renamed from ...
25949 (grub_macho_filesize32): ... to this.
25950 (grub_macho32_readfile): Renamed from ...
25951 (grub_macho_readfile32): ... to this.
25952 (grub_macho_filesize64): New prototype.
25953 (grub_macho_readfile64): Likewise.
25954 (grub_macho_parse32): Likewise.
25955 (grub_macho_parse64): Likewise.
25956 * loader/macho.c: Split into ...
25957 * loader/machoXX.c: ... and this. Replace 32 with XX.
25958 * loader/macho32.c: New file.
25959 * loader/macho64.c: Likewise.
25960 * loader/xnu.c (grub_xnu_is_64bit): New variable.
25961 (grub_cmd_xnu_kernel): Make 32-bit only.
25962 (grub_cmd_xnu_kernel64): New function.
25963 (grub_xnu_load_driver): Support Mach-O 64.
25964 (grub_cmd_xnu_mkext): Likewise.
25965 * util/grub.d/30_os-prober.in (osx_entry): New function.
25966 Generate entries for 64-bit boot too.
25967
25968 Eliminate ad-hoc tree format in XNU and EfiEmu.
25969
25970 * efiemu/main.c (grub_efiemu_prepare): Update comment.
25971 * efiemu/pnvram.c: Rewritten to use environment variables.
25972 All users updated.
25973
25974 Inline utf16_to_utf8.
25975
25976 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
25977 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
25978 All users updated.
25979 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
25980
25981 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
25982 * commands/usbtest.c (grub_usb_get_string): ... move here.
25983 (usb_print_str): Fix error handling.
25984 * include/grub/usb.h (grub_usb_get_string): Remove.
25985
25986 UTF-8 to UTF-16 transformation.
25987
25988 * conf/common.rmk (pkglib_MODULES): Add charset.mod
25989 (charset_mod_SOURCES): New variable.
25990 (charset_mod_CFLAGS): Likewise.
25991 (charset_mod_LDFLAGS): Likewise.
25992 * include/grub/utf.h: New file.
25993 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
25994
25995 Support for device properties.
25996
25997 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
25998 (grub_xnu_devprop_device_header): Likewise.
25999 (grub_xnu_devprop_device_descriptor): Likewise.
26000 (grub_xnu_devprop_add_device): New prototype.
26001 (grub_xnu_devprop_remove_device): Likewise.
26002 (grub_xnu_devprop_remove_property): Likewise.
26003 (grub_xnu_devprop_add_property_utf8): Likewise.
26004 (grub_xnu_devprop_add_property_utf16): Likewise.
26005 (grub_cpu_xnu_init): Likewise.
26006 (grub_cpu_xnu_fini): Likewise.
26007 (grub_cpu_xnu_unload): Likewise.
26008 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26009 (property_descriptor): Likewise.
26010 (devices): New variable.
26011 (grub_xnu_devprop_remove_property): New function.
26012 (grub_xnu_devprop_add_device): Likewise.
26013 (grub_xnu_devprop_remove_device): Likewise.
26014 (grub_xnu_devprop_add_property): Likewise.
26015 (grub_xnu_devprop_add_property_utf8): Likewise.
26016 (grub_xnu_devprop_add_property_utf16): Likewise.
26017 (hextoval): Likewise.
26018 (grub_cpu_xnu_fill_devprop): Likewise.
26019 (grub_cmd_devprop_load): Likewise.
26020 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26021 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26022 (cmd_devprop_load): New variable.
26023 (grub_cpu_xnu_init): New function.
26024 (grub_cpu_xnu_fini): Likewise.
26025 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26026 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26027 (grub_cmd_xnu_devtree): Likewise.
26028 (hextoval): New function.
26029 (unescape): Likewise.
26030 (grub_xnu_fill_devicetree): Likewise.
26031
26032 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26033 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26034
0945f181
VS
260352009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26036
26037 Workaround for broken ATI VBE.
26038
26039 * video/i386/pc/vbe.c (last_set_mode): New variable.
26040 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26041 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26042 (grub_video_vbe_setup): Don't check for reserved flag.
26043
0ad46fd7 260442009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
26045
26046 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26047 the `find' command.
26048
c179ebe4
VS
260492009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26050
26051 UUID support for HFS.
26052
26053 * fs/hfs.c (grub_hfs_uuid): New function.
26054 (grub_hfs_fs): New value .uuid.
26055 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26056
0ad46fd7 260572009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
26058
26059 Fix a segfault with parsing unknown long options.
26060
26061 * util/grub-mkrelpath.c (options): Zero terminate it.
26062
c4a3e41a
CPE
260632009-12-13 Carles Pina i Estany <carles@pina.cat>
26064
26065 * include/grub/misc.h (grub_puts): New declaration.
26066 (grub_puts_): Likewise.
a22008a6 26067 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
26068 (grub_puts_): Likewise.
26069
2e8a7602
RM
260702009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26071
26072 * util/grub-probe.c (probe): Improve error message.
26073
b50b77b9
RM
260742009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26075
26076 * loader/i386/multiboot_elfxx.c
26077 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26078 initialization.
26079
260802009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26081
26082 Relocator framework
26083
26084 * loader/i386/xnu_helper.S: Removed. All users updated.
26085 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26086 (relocator_mod_SOURCES): New variable.
26087 (relocator_mod_CFLAGS): Likewise.
26088 (relocator_mod_LDFLAGS): Likewise.
26089 (relocator_mod_ASFLAGS): Likewise.
26090 * conf/x86_64.rmk: Likewise.
26091 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26092 (grub_multiboot_payload_entry_offset): Likewise.
26093 (grub_multiboot_forward_relocator): Likewise.
26094 (grub_multiboot_forward_relocator_end): Likewise.
26095 (grub_multiboot_backward_relocator): Likewise.
26096 (grub_multiboot_backward_relocator_end): Likewise.
26097 (grub_multiboot_payload_eip): New variable.
26098 (grub_multiboot_payload_orig): Likewise.
26099 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26100 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26101 * include/grub/i386/memory.h
26102 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26103 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26104 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26105 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26106 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26107 * include/grub/i386/relocator.h: New file.
26108 * include/grub/x86_64/relocator.h: Likewise.
26109 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26110 (XNU_RELOCATOR): New macro.
26111 (grub_xnu_launcher_start): Remove.
26112 (grub_xnu_launcher_end): Likewise.
26113 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26114 (grub_xnu_heap_real_start): Remove.
26115 (grub_xnu_heap_start): Change to void *. All users updated.
26116 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26117 * lib/i386/relocator.c: New file.
26118 * lib/i386/relocator_asm.S: Likewise.
26119 * lib/i386/relocator_backward.S: Likewise.
26120 * lib/mips/relocator.c: Likewise.
26121 * lib/mips/relocator_asm.S: Likewise.
26122 * lib/relocator.c: Likewise.
26123 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26124 (entry): Removed.
26125 (playground): Likewise.
26126 (grub_multiboot_payload_orig): New variable.
26127 (grub_multiboot_payload_dest): Likewise.
26128 (grub_multiboot_payload_size): Likewise.
26129 (grub_multiboot_payload_eip): Likewise.
26130 (grub_multiboot_payload_esp): Likewise.
26131 (grub_multiboot_boot): Use grub_relocator32_boot.
26132 (grub_multiboot_unload): Free relocators.
26133 (grub_multiboot): Setup stack. Use relocators.
26134 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26135 (grub_multiboot_load_elfXX): Use relocators.
26136 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26137 (grub_multiboot_payload_size): Likewise.
26138 (grub_multiboot_payload_dest): Likewise.
26139 (grub_multiboot_payload_entry_offset): Likewise.
26140 (grub_multiboot_forward_relocator): Likewise.
26141 (grub_multiboot_backward_relocator): Likewise.
26142 (grub_multiboot_real_boot): Likewise.
26143 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26144 (grub_xnu_entry_point): Likewise.
26145 (grub_xnu_arg1): Likewise.
26146 (grub_xnu_stack): Likewise.
26147 (grub_xnu_launch): Removed.
26148 (grub_xnu_boot_resume): New function.
26149 (grub_xnu_boot): Use relocators.
26150 * loader/i386/xnu_helper.S: Removed.
26151 * loader/xnu.c (grub_xnu_heap_start): New variable.
26152 (grub_xnu_heap_size): Likewise.
26153 (grub_xnu_heap_malloc): Use relocators.
26154 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26155
29eb90c6
VS
261562009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26157
26158 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26159 anything.
26160
31027430
CPE
261612009-12-13 Carles Pina i Estany <carles@pina.cat>
26162
26163 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26164 GRUB_ERR_NONE before calling grub_env_set.
26165
dc0c71d9
RM
261662009-12-12 Robert Millan <rmh@aybabtu.com>
26167
26168 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26169 * genmk.rb (video): New variable.
26170 (CLEANFILES, VIDEOFILES): Add #{video}.
26171 (#{video}): New target rule.
26172 * genvideolist.sh: New file.
26173 * Makefile.in (pkglib_DATA): Add video.lst.
26174 (video.lst): New target rule.
26175 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26176 `video.lst'.
26177 * util/grub.d/30_os-prober.in: Replace `vbe' with
26178 ${GRUB_VIDEO_BACKEND}.
26179
2a4bfcf0
RM
261802009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26181
26182 * THANKS: Add David Miller.
26183
2a3aa4d5
RM
261842009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26185
26186 libpciaccess support.
26187
26188 * Makefile.in (LIBPCIACCESS): New variable.
26189 (enable_grub_emu_pci): Likewise.
26190 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26191 util/pci.c and commands/lspci.c.
26192 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26193 * configure.ac (grub-emu-pci): New option.
26194 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26195 (grub_pci_device_unmap_range): Likewise.
26196 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26197 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26198 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26199 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26200 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26201 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26202 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26203 * include/grub/pciutils.h: New file.
26204 * util/pci.c: Likewise.
26205
0ad46fd7 262062009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
26207
26208 * util/misc.c: Don't include <errno.h> twice.
26209
0ad46fd7 262102009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
26211
26212 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26213 name in an error message.
26214 (grub_biosdisk_rw): Likewise.
26215
2e59983c
VS
262162009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26217
26218 Eliminate NTFS 4Gib barrier.
26219
26220 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26221 (read_run_data): Likewise.
26222 (grub_ntfs_read_run_list): Likewise.
26223 (grub_ntfs_read_block): Likewise.
26224 (grub_ntfs_iterate_dir): Likewise.
26225 (read_mft): Likewise.
26226 (read_data): Likewise.
26227 Use COM_LOG_LEN.
26228 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26229 to avoid 64-bit division
26230 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26231 (grub_ntfs_rlst): Use grub_disk_addr_t.
26232
71ee178a
VS
262332009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26234
26235 Eliminate grub-fstest 4Gib barrier.
26236
26237 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26238 (read_file): Fix error reporting.
26239
2520d4b8
VS
262402009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26241
26242 Eliminate hexdump 4Gib barrier.
26243
26244 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26245 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26246
e1f27065
VS
262472009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26248
26249 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26250 Fixes amarsh bug.
26251
1a0f7f45
RM
262522009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26253
26254 Remove miscellaneous files in distclean target.
26255
26256 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26257
c631d9fb
CW
262582009-12-09 Colin Watson <cjwatson@ubuntu.com>
26259
26260 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26261 if they're already set. This resolves the conflict between my
26262 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26263 fixing the --grub-probe option again.
26264 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26265 change on 2009-10-06, so that we now once again source
26266 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26267
7c7b6106
RM
262682009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26269
26270 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26271 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26272 `util/devicemap.c'.
26273
e3069ec1
CPE
262742009-12-08 Carles Pina i Estany <carles@pina.cat>
26275
26276 * include/grub/misc.h (grub_printf_): New declaration.
26277 * kern/misc.c (grub_printf_): New definition.
26278 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26279 instead of `grub_printf' and `_'.
26280 * normal/menu_entry.c (store_completion): Likewise.
26281 (run): Likewise.
26282 (grub_menu_entry_run): Likewise.
26283 * normal/menu_text.c (grub_wait_after_message): Likewise.
26284 (notify_booting): Likewise.
26285 (notify_fallback): Likewise.
26286 (notify_execution_failure): Likewise.
26287
d6ceebf1
CW
262882009-12-07 Colin Watson <cjwatson@ubuntu.com>
26289
26290 * configure.ac: Check for vasprintf.
26291 * util/misc.c (asprintf): Move allocation from here ...
26292 (vasprintf): ... to here. New function.
26293 (xasprintf): New function.
26294 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26295 prototypes.
26296 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26297 * util/grub-mkfont.c (write_font): Likewise.
26298 * util/grub-probe.c (probe): Likewise.
26299 * util/hostdisk.c (make_device_name): Likewise.
26300
de6daa8b
DM
263012009-12-06 David S. Miller <davem@sunset.davemloft.net>
26302
26303 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26304 anything even prefixed with 'cdrom' as a cdrom.
26305
0ad46fd7 263062009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
26307
26308 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26309 mount points.
26310
98d3dc02
CPE
263112009-12-05 Carles Pina i Estany <carles@pina.cat>
26312
26313 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26314 grub_gettext_msg_list.
26315 (grub_gettext_gettranslation_from_position): Return const char *
26316 and not char *.
a2c1332b 26317 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
26318 returns from the list if existing there.
26319 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26320 (grub_gettext_delete_list): Delete the list.
26321 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26322 lang environment variable is changed.
26323 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26324
b283f108
VS
263252009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26326
26327 Rename kernel.mod to kernel.img.
26328
26329 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26330 (kernel_mod_EXPORTS): Rename to ...
26331 (kernel_img_EXPORTS): ... this.
26332 (kernel_mod_SOURCES): Rename to ...
26333 (kernel_img_SOURCES): ... this.
26334 (kernel_mod_HEADERS): Rename to ...
26335 (kernel_img_HEADERS): ... this. All users updated.
26336 (kernel_mod_CFLAGS): Rename to ...
26337 (kernel_img_CFLAGS): ... this.
26338 (kernel_mod_ASFLAGS): Rename to ...
26339 (kernel_img_ASFLAGS): ... this.
26340 (kernel_mod_LDFLAGS): Rename to ...
26341 (kernel_img_LDFLAGS): ... this.
26342 * conf/x86_64-efi.rmk: Likewise.
26343 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26344 (read_kernel_image): ... this. All users updated.
26345 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26346
69055f8a
CPE
263472009-12-05 Carles Pina i Estany <carles@pina.cat>
26348
26349 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26350 (print_spaces): New function.
26351 (grub_print_ucs4): New function.
26352 (getstringwidth): New function.
26353 (print_message_indented): New function.
26354 (print_message): Gettexttize strings using print_message_indented.
26355 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26356 width.
26357 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 26358 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
26359 Gettextize.
26360 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26361 string.
26362 (run): Likewise.
26363 (grub_menu_entry_run): Likewise.
26364 * PO/POTFILES: Add normal/menu_entry.c.
26365
f616f51c
VS
263662009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26367
26368 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26369
57bbe3be
CPE
263702009-12-05 Carles Pina i Estany <carles@pina.cat>
26371
26372 * util/grub-install.in: Install gettext .mo files.
26373 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26374
013d67a1
CPE
263752009-12-05 Carles Pina i Estany <carles@pina.cat>
26376
26377 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26378 grub_dprintf.
26379
fb954db0
RM
263802009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26381
26382 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26383 non-firmware-dependant one in realmode.S takes precedence.
26384
6b8474f8
RM
263852009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26386
26387 * commands/halt.c: Replace misc arch-specific headers with
26388 `<grub/misc.h>'.
26389 * commands/reboot.c: Likewise.
26390 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26391 `<grub/misc.h>'.
26392 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26393 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26394 (kernel_img_SOURCES): ... to here.
26395
26396 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26397 * include/grub/i386/pc/init.h: Likewise.
26398 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26399 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26400
26401 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26402
26403 * include/grub/i386/halt.h: Remove.
26404 * include/grub/i386/reboot.h: Likewise.
26405
26406 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26407
4b2e6ca2
DM
264082009-12-03 David S. Miller <davem@sunset.davemloft.net>
26409
26410 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26411 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26412 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26413 "progname.h"
26414 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26415 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26416 (usage): Add missing comma in printf.
26417
5239348f
RM
264182009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26419
26420 Use the same reboot approach on i386 coreboot and qemu as we do on
26421 BIOS.
26422
26423 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26424 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26425 * kern/i386/reboot.c: Remove.
26426 * include/grub/i386/reboot.h (grub_reboot): Export function.
26427 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26428 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26429 0xf000:0xfff0 instead of 0xffff:0x0000.
26430 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26431 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26432
ef34cbd4
RM
264332009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26434
26435 Fix $srcdir != $objdir build.
26436
26437 * Makefile.in (po/%.po): Rewrite as ...
26438 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26439
dc9837ea
ST
264402009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26441
26442 Fix GNU/Hurd grub-install crash.
26443 * util/grub-probe.c (probe): Try to access `path' only when it is not
26444 NULL.
26445
2f857f98
VS
264462009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26447
26448 Correct module naming.
26449
26450 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26451 (GRUB_MOD_INIT(efi_uga)): ... to this
26452 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26453 (GRUB_MOD_FINI(efi_uga)): ... to this
26454 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26455 (GRUB_MOD_INIT(efi_gop)): ... to this
26456 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26457 (GRUB_MOD_FINI(efi_gop)): ... to this
26458
c5448046
RM
264592009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26460
26461 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26462 translatable.
26463 (usage): Translate `arg' strings using gettext().
26464 Thanks to Jordi Mallach for the suggestion.
26465
c85184ad
VS
264662009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26467
26468 GOP support. Based on patch from Bean
26469 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26470
26471 * video/efi_gop.c: New file.
26472 * include/grub/efi/graphics_output.h: Likewise.
26473 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26474 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26475 variables.
26476 * conf/x86_64-efi.rmk: Likewise.
26477
8a4c48d8
VS
264782009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26479
26480 Rename efi_fb to efi_uga.
26481
26482 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26483 'efi_uga.mod'.
26484 (efi_fb_mod_SOURCES): Rename this ...
26485 (efi_uga_mod_SOURCES): ... to this.
26486 (efi_fb_mod_CFLAGS): Rename this ...
26487 (efi_uga_mod_CFLAGS): ... to this.
26488 (efi_fb_mod_LDFLAGS): Rename this ...
26489 (efi_uga_mod_LDFLAGS): ... to this.
26490 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26491 'efi_uga.mod'.
26492 (efi_fb_mod_SOURCES): Rename this ...
26493 (efi_uga_mod_SOURCES): ... to this.
26494 (efi_fb_mod_CFLAGS): Rename this ...
26495 (efi_uga_mod_CFLAGS): ... to this.
26496 (efi_fb_mod_LDFLAGS): Rename this ...
26497 (efi_uga_mod_LDFLAGS): ... to this.
26498 * video/efi_fb.c: Move this ...
26499 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26500
fb6c1a7b
RM
265012009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26502
26503 * po/README: New file. Explain our PO file workflow.
26504
3bc7896c
RM
265052009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26506
26507 * po/ChangeLog: Remove. Move relevant entries back to ...
26508 * ChangeLog: ... here.
26509 * po/ca.po: Remove (now handled by TLP).
26510 * po/id.po: Likewise.
26511 * po/zh_CN.po: Likewise.
26512 * Makefile.in (LINGUAS): Initialize in a way that supports
26513 empty set.
26514
9ed4841d
RM
265152009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26516
26517 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26518 reliing on po/LINGUAS.
26519 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26520 (po/%.po): ... this.
26521
0ad46fd7 265222009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
26523
26524 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26525 (main): Use `program_name' instead of nonexistent `progname'.
26526
e30dd392
FZ
265272009-11-26 Felix Zielcke <fzielcke@z-51.de>
26528
26529 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26530 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26531
7656de4f
RM
265322009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26533
26534 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26535 commit.
26536 * conf/i386-efi.rmk: Likewise.
26537 * conf/i386-ieee1275.rmk: Likewise.
26538 * conf/powerpc-ieee1275.rmk: Likewise.
26539 * conf/sparc64-ieee1275.rmk: Likewise.
26540 * conf/x86_64-efi.rmk: Likewise.
26541
db77c4d4
FZ
265422009-11-26 Felix Zielcke <fzielcke@z-51.de>
26543
26544 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26545
a755bb04
FZ
265462009-11-26 Felix Zielcke <fzielcke@z-51.de>
26547
26548 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26549
8a4c07fd
RM
265502009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26551
26552 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26553 (grub_mkdevicemap_SOURCES): New variable.
26554 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26555 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26556 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26557 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26558 (grub_mkdevicemap_SOURCES): Remove.
26559 * conf/i386-efi.rmk: Likewise.
26560 * conf/i386-ieee1275.rmk: Likewise.
26561 * conf/i386-pc.rmk: Likewise.
26562 * conf/powerpc-ieee1275.rmk: Likewise.
26563 * conf/sparc64-ieee1275.rmk: Likewise.
26564 * conf/x86_64-efi.rmk: Likewise.
26565 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26566 (usage): Fix strings to use `program_name'.
26567 (main): Initialize gettext.
26568 * util/grub-editenv.c: Likewise.
26569 * util/grub-emu.c: Likewise.
26570 * util/grub-fstest.c: Likewise.
26571 * util/grub-mkdevicemap.c: Likewise.
26572 * util/grub-mkfont.c: Likewise.
26573 * util/grub-mkrelpath.c: Likewise.
26574 * util/grub-pe2elf.c: Likewise.
26575 * util/grub-probe.c: Likewise.
26576 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26577 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26578 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26579
26580 * util/misc.c: Include `"progname.h"'.
26581 (progname): Remove variable.
26582 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26583
6f61ed55
FZ
265842009-11-25 Felix Zielcke <fzielcke@z-51.de>
26585
26586 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26587 printf and print a newline after the menuentry header line.
26588 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26589
f022876b
FZ
265902009-11-25 Felix Zielcke <fzielcke@z-51.de>
26591
26592 autoconf >= 2.60 support $(localedir).
26593
26594 * INSTALL: Note that autoconf 2.60 is required.
26595 * configure.ac (AC_PREREQ): Bump to 2.60.
26596 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26597 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26598
6717926e
YB
265992009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26600
26601 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26602 aclocal is run.
26603
08806a54
RM
266042009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26605
26606 * normal/main.c (grub_normal_read_line): Fix off-by-one
26607 buffer overflow.
26608
13b33fba
RM
266092009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26610
26611 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26612 "parser.grub" in grub_command_execute() call.
26613
4a8572e9
CPE
266142009-11-24 Carles Pina i Estany <carles@pina.cat>
26615
26616 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26617 * conf/i386-efi.rmk: Likewise.
26618 * conf/i386-ieee1275.rmk: Likewise.
26619 * conf/i386-pc.rmk: Likewise.
26620 * conf/powerpc-ieee1275.rmk: Likewise.
26621 * conf/sparc64-ieee1275.rmk: Likewise.
26622 * conf/x86_64-efi.rmk: Likewise.
26623 * gettext/gettex.c: Include <grub/i18n.h>.
26624 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26625 here ...
26626 * include/grub/i18n.h: ... to here
26627 * include/grub/i18n.h: ... to here.
26628 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 26629 (grub_gettext_dummy): Move above user.
4a8572e9 26630
bee48093
FZ
266312009-11-24 Felix Zielcke <fzielcke@z-51.de>
26632
26633 * util/Makefile.in (install-local): Convert a `for' into a normal
26634 shell expansion.
26635
a031e91c
RM
266362009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26637
26638 * autogen.sh: Add automake call.
26639 * config.guess: Remove.
26640 * config.sub: Likewise.
26641 * install-sh: Likewise.
26642
26bec39d
FZ
266432009-11-24 Felix Zielcke <fzielcke@z-51.de>
26644
26645 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26646
8e2532fd
FZ
266472009-11-24 Felix Zielcke <fzielcke@z-51.de>
26648
26649 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26650 function to a normal shell `for'.
26651
fefa1b7d
FZ
266522009-11-24 Felix Zielcke <fzielcke@z-51.de>
26653
26654 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26655
4501250b
FZ
266562009-11-24 Felix Zielcke <fzielcke@z-51.de>
26657
26658 * util/grub-mkrelpath.c: New file.
26659 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26660 (grub_mkrelpath_SOURCES): New variable.
26661 * include/grub/util/misc.h: New function prototype.
26662 * util/misc.c (make_system_path_relative_to_its_root): New function.
26663
26664 * util/grub-mkconfig_lib.in (bindir): New variable.
26665 (grub_mkrelpath): Likewise.
26666 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
26667
26668 * util/probe.c (probe): Make the file path relative to its root.
26669 Change a info message to use the GRUB path. Enable again the
26670 check if we can read the file with GRUB facilities.
26671
26672 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
26673 to its root.
26674
11d9778b
FZ
266752009-11-24 Felix Zielcke <fzielcke@z-51.de>
26676
26677 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
26678 platform.
26679
4465287d
FZ
266802009-11-24 Felix Zielcke <fzielcke@z-51.de>
26681
26682 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
26683 strncmp().
26684
62b47f22
FZ
266852009-11-24 Felix Zielcke <fzielcke@z-51.de>
26686
26687 * util/getroot.c (grub_util_is_dmraid): New function.
26688 (grub_util_get_dev_abstraction): Treat dmraid and multipath
26689 devices as normal ones, not as LVM.
26690
1eafb9b9 266912009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
26692
26693 * conf/common.rmk: Add grub-gettext_lib target and updates
26694 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
26695 LDFLAGS.
26696 * gettext/gettext.c: New file. (Reads mo files).
26697 * include/grub/file.h (grub_file_pread): New prototype.
26698 * include/grub/i18n.h (_): New prototype.
26699 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
26700 prototypes.
26701 * kern/misc.c (grub_gettext_dummy): New function.
26702 * normal/menu_text.c: Include <grub/i18n.h>.
26703 * normal/menu_text.c (print_timeout): Gettexttize string.
26704 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
26705 * po/POTFILES: Add `normal/menu_text.c'.
26706 * po/ca.po: Add new translations.
c3ea6bd4
CPE
26707 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
26708 gettext module and defines locale_dir and lang in grub.cfg.
26709 * NEWS: Add gettext support.
26710
0fdb2568
RM
267112009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26712
26713 * util/hostdisk.c: Include `<grub/i18n.h>'.
26714 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
26715 (make_device_name): Rewrite using asprintf.
26716 (convert_system_partition_to_system_disk): Replace 0 with NULL.
26717 (find_system_device): If a device is not found, generate one just
26718 by reusing the OS path name.
26719 (read_device_map): Make it permissible for device.map not to exist.
26720
f515aa62
RM
267212009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26722
26723 * script/sh/execute.c: Move from here ...
26724 * script/execute.c: ... to here. Update all users.
26725 * script/sh/function.c: Move from here ...
26726 * script/function.c: ... to here. Update all users.
26727 * script/sh/lexer.c: Move from here ...
26728 * script/lexer.c: ... to here. Update all users.
26729 * script/sh/main.c: Move from here ...
26730 * script/main.c: ... to here. Update all users.
26731 * script/sh/parser.y: Move from here ...
26732 * script/parser.y: ... to here. Update all users.
26733 * script/sh/script.c: Move from here ...
26734 * script/script.c: ... to here. Update all users.
26735
f84b481b
RM
267362009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26737
26738 * configure.ac: Detect all `emu' platforms. Define
26739 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
26740 --enable-grub-emu logic. Disable include/grub/machine
26741 symlink on `emu' platforms.
26742
26743 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
26744 * gensymlist.sh.in: Likewise.
26745
26746 * include/grub/i386/coreboot/machine.h: Remove file.
26747 * include/grub/i386/efi/machine.h: Likewise.
26748 * include/grub/i386/ieee1275/machine.h: Likewise.
26749 * include/grub/i386/pc/machine.h: Likewise.
26750 * include/grub/i386/qemu/machine.h: Likewise.
26751 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26752 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26753 * include/grub/x86_64/efi/machine.h: Likewise.
26754
26755 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
26756 * commands/halt.c: Likewise.
26757 * commands/reboot.c: Likewise.
26758 * include/grub/autoefi.h: Likewise.
26759 * include/grub/i386/at_keyboard.h: Likewise.
26760 * include/grub/i386/kernel.h: Likewise.
26761 * include/grub/i386/loader.h: Likewise.
26762 * include/grub/i386/pc/memory.h: Likewise.
26763 * kern/dl.c: Likewise.
26764 * kern/i386/coreboot/init.c: Likewise.
26765 * loader/i386/bsd.c: Likewise.
26766 * loader/i386/linux.c: Likewise.
26767 * loader/multiboot_loader.c: Likewise.
26768 * term/i386/pc/serial.c: Likewise.
26769 * term/usb_keyboard.c: Likewise.
26770
26771 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
26772 `<grub/machine/machine.h>'
26773 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
26774 * util/misc.c: Remove `<grub/machine/machine.h>' and
26775 `<grub/machine/time.h>'.
26776
26777 * Makefile.in (enable_grub_emu): Remove variable.
26778 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
26779
26780 * conf/any-emu.rmk: New file.
26781 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
26782 (grub_emu_init.c): Move from here ...
26783 * conf/any-emu.rmk: ... to here.
26784
26785 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
26786 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
26787 * conf/any-emu.rmk: ... to here.
26788
4efeab03
RM
267892009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26790
26791 * include/grub/parser.h (grub_parser_register): Document need
26792 of `name' parameter.
26793 * normal/main.c (grub_normal_read_line): Simplify prompt string.
26794 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
26795 "sh" to "grub".
26796
ea1dd8bf
RM
267972009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26798
26799 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
26800 `$(XGETTEXT)'.
26801 * include/grub/i18n.h (N_): New macro.
26802 * util/mkisofs/mkisofs.h: Likewise.
26803 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
26804 around N_().
26805 (usage): Use gettext() to translate help strings when printing them.
26806
0c140626
RM
268072009-11-23 Robert Millan <rmh.grub@aybabtu.com>
26808
26809 Based on patch from Bean
26810 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26811
26812 * video/efi_fb.c: New file.
26813 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
26814 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26815 variables.
26816 * conf/x86_64-efi.rmk: Likewise.
26817
87d58298
RM
268182009-11-22 Robert Millan <rmh.grub@aybabtu.com>
26819
26820 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
26821 * util/i386/pc/grub-setup.c: Likewise.
26822
994cc3a3
ST
268232009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
26824
26825 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
26826 <hurd/fs.h>
26827 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
26828 file_get_storage_info to implement grub_guess_root_device.
26829
26a61d6a
FZ
268302009-11-21 Felix Zielcke <fzielcke@z-51.de>
26831
26832 * Makefile.in (target): Use make's builtin $(shell) function
26833 instead of calling directly $(SHELL) to create the locale directories,
26834 inside the $(foreach) function.
26835
74ff1dd5
FZ
268362009-11-21 Felix Zielcke <fzielcke@z-51.de>
26837
26838 * util/grub-mkrescue.in: Print an error and usage if output option
26839 has not been given.
26840
0b787d0e
FZ
268412009-11-21 Felix Zielcke <fzielcke@z-51.de>
26842
26843 Patch from Loïc Minier <loic.minier@ubuntu.com>.
26844 * util/grub.d/30_os-prober.in: Cope with Linux entries where
26845 root and /boot are on different devices.
26846
1164b270
RM
268472009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26848
26849 Fix build for srcdir != objdir.
26850
26851 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
26852 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
26853 $(srcdir).
26854 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
26855 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
26856 reference for input.
26857
13774a2f
RM
268582009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26859
26860 * util/grub-mkrescue.in: Use source directory direcly (without copiing
26861 or hardlinking it). Remove -J option, Joliet is not compatible with
26862 multiple source directories.
26863
efda854e
RM
268642009-11-21 Carles Pina i Estany <carles@pina.cat>
268652009-11-21 Robert Millan <rmh.grub@aybabtu.com>
26866
26867 * util/grub-mkrescue.in: Recognize `--override-directory' option.
26868 (process_input_dir): New function. Process an arbitrary input
26869 directory.
26870 Misc adjustments to support both "override mode" and system-wide mode.
26871
6c09890c
FZ
268722009-11-20 Felix Zielcke <fzielcke@z-51.de>
26873
26874 * configure.ac (UNIFONT_BDF): Rename to ...
26875 (FONT_SOURCE): ... this. Update all users.
26876
a797824f
FZ
268772009-11-20 Felix Zielcke <fzielcke@z-51.de>
26878
26879 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
26880 to the list of unifont files to look for.
26881
cd4f42b0
RM
268822009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26883
26884 Patch from Joe Auricchio <jauricchio@gmail.com>
26885 * commands/minicmd.c (grub_mini_cmd_clear): New function.
26886 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
26887 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
26888
393c783d
FZ
268892009-11-19 Felix Zielcke <fzielcke@z-51.de>
26890
26891 * Makefile.in (install-local): Add a missing backslash.
26892
b2f1e327
FZ
268932009-11-19 Felix Zielcke <fzielcke@z-51.de>
26894
26895 * include/grub/x86_64/io.h: New file.
26896
f577f7a0
RM
268972009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26898
26899 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
26900 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
26901 Include `"progname.h"'.
26902 (main): Initialize gettext.
26903 * util/i386/pc/grub-setup.c: Gettexttize.
26904 * util/i386/pc/grub-mkimage.c: Likewise.
26905
26906 * Makefile.in (po/*.po): Redefine as ...
26907 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
26908
3bc7896c
RM
26909 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
26910
c37943b6
RM
269112009-11-19 Robert Millan <rmh.grub@aybabtu.com>
26912
26913 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
26914 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
26915 (program_name): Remove.
26916 (main): Initialize gettext support.
6323f705
RM
26917 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
26918 Include `<libintl.h>'.
26919 (_): New macro.
c37943b6
RM
26920
26921 * util/mkisofs/eltorito.c: Gettexttize.
26922 * util/mkisofs/joliet.c: Likewise.
26923 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
26924 * util/mkisofs/multi.c: Likewise.
26925 * util/mkisofs/rock.c: Likewise.
26926 * util/mkisofs/tree.c: Likewise.
26927 * util/mkisofs/write.c: Likewise.
26928
3bc7896c
RM
26929 * po/POTFILES: Update with new files.
26930
5ce77c6e
RM
269312009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26932
26933 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
26934 * util/mkisofs/iso9660.h: Likewise.
26935 * util/mkisofs/joliet.c: Likewise.
26936 * util/mkisofs/mkisofs.c: Likewise.
26937 * util/mkisofs/mkisofs.h: Likewise.
26938 * util/mkisofs/rock.c: Likewise.
26939 * util/mkisofs/tree.c: Likewise.
26940 * util/mkisofs/write.c: Likewise.
26941
26942 * util/mkisofs/eltorito.c (rcsid): Remove.
26943 * util/mkisofs/hash.c: Likewise.
26944 * util/mkisofs/joliet.c: Likewise.
26945 * util/mkisofs/name.c: Likewise.
26946 * util/mkisofs/rock.c: Likewise.
26947 * util/mkisofs/tree.c: Likewise.
26948 * util/mkisofs/write.c: Likewise.
26949
1dabbc77
RM
269502009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26951
26952 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
26953 instead of static allocation.
26954 * util/mkisofs/match.h: Likewise.
26955
633877cb
RM
269562009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26957
3bc7896c
RM
26958 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
26959 and `util/grub.d/10_linux.in'.
633877cb
RM
26960 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
26961 translatable Shell files.
26962
af1c0c85
RM
269632009-11-18 Robert Millan <rmh.grub@aybabtu.com>
26964
26965 * Makefile.in ($(srcdir)/aclocal.m4): New target.
26966
769ae37b
RM
269672009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26968
26969 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 26970 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
26971 * util/grub.d/10_kfreebsd.in (bindir): New variable.
26972 Add gettext initialization.
26973 (kfreebsd_entry): Make menuentry output translatable.
26974
269752009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26976
26977 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
26978 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
26979 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
26980 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
26981 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 26982 * po/LINGUAS: New file.
769ae37b
RM
26983
269842009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26985
26986 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
26987 other things).
26988 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
26989 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
26990 bindtextdomain() calls for gettext initialization.
26991
269922009-11-17 Robert Millan <rmh.grub@aybabtu.com>
26993
26994 * gnulib/progname.c: New file (imported from Gnulib).
26995 * gnulib/progname.h: Likewise.
26996 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26997 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
26998 (usage): Replace `progname' with `program_name'.
26999 (main): Use set_program_name() for program name initialization.
27000
270012009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27002
27003 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27004 from here ...
27005 * Makefile.in (CPPFLAGS): ... to here.
27006
270072009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27008
27009 * aclocal.m4: Move from here ...
27010 * acinclude.m4: ... to here.
27011 * autogen.sh: Add call to `aclocal'.
27012 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27013
270142009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27015
27016 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27017 (LINGUAS): New variable.
27018 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27019 (install-local): Install MO files.
27020 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27021 * include/grub/i18n.h: New file.
3bc7896c
RM
27022 * po/POTFILES: New file.
27023 * po/ca.po: New file.
769ae37b
RM
27024 * util/grub.d/10_linux.in (bindir): New variable.
27025 Add gettext initialization.
27026 (linux_entry): Make menuentry output translatable.
27027 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27028 (usage): Make --help output translatable.
27029 (main): Initialize gettext.
27030
02c0a6ad
RM
270312009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27032
27033 * import_gcry.py: New file (written by Vladimir with minor
27034 adjustments).
27035 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27036 ciphers.
27037 * INSTALL: Document that Python is required for bootstrap.
27038
270392009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27040
27041 Import ciphers from libgcrypt 1.4.4.
27042
27043 * lib/libgcrypt/cipher/ChangeLog
27044 * lib/libgcrypt/cipher/ac.c
27045 * lib/libgcrypt/cipher/arcfour.c
27046 * lib/libgcrypt/cipher/bithelp.h
27047 * lib/libgcrypt/cipher/blowfish.c
27048 * lib/libgcrypt/cipher/camellia-glue.c
27049 * lib/libgcrypt/cipher/camellia.c
27050 * lib/libgcrypt/cipher/camellia.h
27051 * lib/libgcrypt/cipher/cast5.c
27052 * lib/libgcrypt/cipher/cipher.c
27053 * lib/libgcrypt/cipher/crc.c
27054 * lib/libgcrypt/cipher/des.c
27055 * lib/libgcrypt/cipher/dsa.c
27056 * lib/libgcrypt/cipher/ecc.c
27057 * lib/libgcrypt/cipher/elgamal.c
27058 * lib/libgcrypt/cipher/hash-common.c
27059 * lib/libgcrypt/cipher/hash-common.h
27060 * lib/libgcrypt/cipher/hmac-tests.c
27061 * lib/libgcrypt/cipher/md.c
27062 * lib/libgcrypt/cipher/md4.c
27063 * lib/libgcrypt/cipher/md5.c
27064 * lib/libgcrypt/cipher/primegen.c
27065 * lib/libgcrypt/cipher/pubkey.c
27066 * lib/libgcrypt/cipher/rfc2268.c
27067 * lib/libgcrypt/cipher/rijndael-tables.h
27068 * lib/libgcrypt/cipher/rijndael.c
27069 * lib/libgcrypt/cipher/rmd.h
27070 * lib/libgcrypt/cipher/rmd160.c
27071 * lib/libgcrypt/cipher/rsa.c
27072 * lib/libgcrypt/cipher/seed.c
27073 * lib/libgcrypt/cipher/serpent.c
27074 * lib/libgcrypt/cipher/sha1.c
27075 * lib/libgcrypt/cipher/sha256.c
27076 * lib/libgcrypt/cipher/sha512.c
27077 * lib/libgcrypt/cipher/tiger.c
27078 * lib/libgcrypt/cipher/twofish.c
27079 * lib/libgcrypt/cipher/whirlpool.c
27080
af2f93ac
RM
270812009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27082
27083 Fix build for systems without error().
27084
27085 * gnulib/error.c: New file (imported from Gnulib).
27086 * gnulib/error.h: Likewise.
27087 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27088 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27089 (this variable is now used by error()).
27090
73fb3dd5
FZ
270912009-11-16 Felix Zielcke <fzielcke@z-51.de>
27092
814f5e96
FZ
27093 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27094 instead of relying that char is signed.
73fb3dd5 27095
a691ca33
VS
270962009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27097
27098 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27099 blocksize different from specified.
27100 (grub_pxefs_read): Likewise.
27101
2af8f0f4
FZ
271022009-11-16 Felix Zielcke <fzielcke@z-51.de>
27103
27104 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27105
27106 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27107 (grub_ata_readwrite): Likewise. Update 2 format strings.
27108 (grub_atapi_read): Likewise.
27109
27110 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27111 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27112 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27113 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27114 (ata_mod_LDFLAGS): Move from here ...
27115 * conf/i386.rmk: ... to here ...
27116 * conf/x86_64-efi.rmk: ... and here.
27117 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27118 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27119
83bdecaf
RM
271202009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27121
27122 Relicense multiboot.h, with RMS' blessing.
27123
27124 * include/multiboot.h: Change to X11 license.
27125
fd6fd3d7
RM
271262009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27127
27128 Support --version in grub-mkisofs.
27129
27130 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27131 (OPTION_VERSION): New macro.
27132 (ld_options): Recognize --version.
27133 (usage): Move `program_name' from here ...
27134 (program_name): ... to here. Add `static' qualifier.
27135 (main): Recognize `OPTION_VERSION'.
27136
16a88c49
FZ
271372009-11-15 Felix Zielcke <fzielcke@z-51.de>
27138
27139 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27140 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27141
a4158476
RM
271422009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27143
27144 Fix help2man generation for mkisofs.
27145
27146 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27147 (usage): Send output to stdout (rather than stderr).
27148
fc2208b0
RM
271492009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27150
27151 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27152 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27153 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27154 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27155 (bin_SCRIPTS): Add `grub-mkfloppy'.
27156 (grub_mkfloppy_SOURCES): New variable.
27157
27158 * util/grub-mkrescue.in: New file.
27159 * util/i386/pc/grub-mkfloppy.in: New file.
27160
27161 * util/i386/coreboot/grub-mkrescue.in: Remove.
27162 * util/i386/pc/grub-mkrescue.in: Remove.
27163
8d0edf4a
RM
271642009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27165
27166 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27167 from here ...
27168 * include/multiboot.h (struct multiboot_header): ... to here. Update
27169 all users.
27170 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27171 from here ...
27172 * include/multiboot.h (struct multiboot_info): ... to here. Update
27173 all users.
27174 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27175 from here ...
27176 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27177 Update all users.
27178 * include/grub/multiboot.h (struct grub_mod_list): Move
27179 from here ...
27180 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27181 Update all users.
27182
a73f5969
RM
271832009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27184
27185 * include/multiboot2.h (multiboot_word): Rename from this ...
27186 (multiboot2_word): ... to this. Update all users.
27187 (multiboot_header): Rename from this ...
27188 (multiboot2_header): ... to this. Update all users.
27189 (multiboot_tag_header): Rename from this ...
27190 (multiboot2_tag_header): ... to this. Update all users.
27191 (multiboot_tag_start): Rename from this ...
27192 (multiboot2_tag_start): ... to this. Update all users.
27193 (multiboot_tag_name): Rename from this ...
27194 (multiboot2_tag_name): ... to this. Update all users.
27195 (multiboot_tag_module): Rename from this ...
27196 (multiboot2_tag_module): ... to this. Update all users.
27197 (multiboot_tag_memory): Rename from this ...
27198 (multiboot2_tag_memory): ... to this. Update all users.
27199 (multiboot_tag_unused): Rename from this ...
27200 (multiboot2_tag_unused): ... to this. Update all users.
27201 (multiboot_tag_end): Rename from this ...
27202 (multiboot2_tag_end): ... to this. Update all users.
27203
1c8927f0
RM
272042009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27205
27206 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27207 this platform we should support Multiboot1 first.
27208
27209 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27210 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27211 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27212
6e1e0d89
RM
272132009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27214
27215 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27216 of write calls (converting them to fwrite() if they aren't already).
27217 (get_torito_desc): Likewise.
27218 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27219
7f2b34d8
RM
272202009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27221
27222 * util/i386/pc/grub-install.in: Move from here ...
27223 * util/grub-install.in: ... to here. Update all users.
27224
c0ef3311
CW
272252009-11-11 Colin Watson <cjwatson@ubuntu.com>
27226
27227 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27228
e1f240ff
RM
272292009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27230
27231 Support for El Torito without floppy emulation.
27232
27233 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27234 (init_boot_catalog): Improve error handling.
27235 (get_torito_desc): Don't use floppy emulation unless requested by
27236 user. Patch boot information table when requested via
27237 `-boot-info-table'.
27238 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27239 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27240 (use_boot_info_table): New variables.
27241 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27242 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27243 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27244 `--eltorito-emul-floppy'.
27245 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27246 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27247 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27248 (use_boot_info_table, get_731): New prototypes.
27249 * util/mkisofs/write.c (get_731): New function.
27250
af7d4de5
FZ
272512009-11-11 Felix Zielcke <fzielcke@z-51.de>
27252
27253 Fix the generation of the man page.
27254
27255 * util/pc/i386/grub-install.in: Source
27256 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27257
2c55dbc0
RM
272582009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27259
27260 Large file support for grub-mkisofs.
27261
27262 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27263 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27264 (session_start): Upgrade type to `uint64_t'. Update all users.
27265 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27266 (struct directory_entry): Upgrade type of `starting_block' and
27267 `size' to `uint64_t'. Update all users.
27268 (struct deferred): Remove unused structure.
27269 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27270 Update all users.
27271 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27272 file is larger than `UINT32_MAX'.
27273 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27274 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27275 return value.
27276 (struct deferred_write): Upgrade type of `extent' and `size' to
27277 `uint64_t'. Update all users.
27278 (last_extent_written): Upgrade type to `uint64_t'. Update all
27279 users.
27280 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27281 Update all users. Upgrade type of `remain' to `int64_t' and
27282 `use' to `size_t'. Use error() to handle fread() errors.
27283 (write_files): Rely on write_one_file() rather than calling
27284 xfwrite() directly.
27285
6a9cead5
FZ
272862009-11-09 Felix Zielcke <fzielcke@z-51.de>
27287
27288 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27289
4825d790
RM
272902009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27291
27292 * util/mkisofs/fnmatch.c: Remove.
27293 * util/mkisofs/getopt1.c: Likewise.
27294 * util/mkisofs/getopt.c: Likewise.
27295 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27296 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27297 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27298 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27299 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27300
27301 * configure.ac: Detect `mingw32msvc' host_os.
27302 Check for lstat(), getuid() and getgid().
27303
27304 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27305 instances of `u_char' with `uint8_t'.
27306
27307 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27308 [!HAVE_GETUID] (getuid): New function (stub).
27309 [!HAVE_GETGID] (getgid): Likewise.
27310 [!HAVE_LSTAT] (lstat): Likewise.
27311 [!S_IROTH] (S_IROTH): New macro (dummy).
27312 [!S_IRGRP] (S_IRGRP): Likewise.
27313
84b860d8
RM
273142009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27315
27316 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27317 conditional expression).
27318
66e9b712
RM
273192009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27320
27321 Import from Gnulib.
27322
27323 * gnulib/fnmatch.c: New file.
27324 * gnulib/fnmatch.h: Likewise.
27325 * gnulib/fnmatch_loop.c: Likewise.
27326 * gnulib/getopt.c: Likewise.
27327 * gnulib/getopt.h: Likewise.
27328 * gnulib/getopt1.c: Likewise.
27329 * gnulib/getopt_int.h: Likewise.
27330 * gnulib/gettext.h: Likewise.
27331
34f4a5b0
RM
273322009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27333
27334 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27335 * normal/handler.c (read_handler_list): Likewise.
27336
ac451143
RM
273372009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27338
27339 Misc cleanup.
27340
27341 * kern/command.c (grub_register_command_prio): Use
27342 grub_zalloc() instead of explicitly zeroing data.
27343 * kern/list.c: Include `<grub/mm.h>'.
27344 (grub_named_list_find): Replace `0' with `NULL'.
27345 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27346 (fs_module_list): Change type to `grub_named_list_t'. Update all
27347 users.
27348 * normal/dyncmd.c (read_command_list): Add space between function
27349 call and parenthesis.
27350 * normal/handler.c (read_handler_list): Likewise.
27351
4089b167
RM
273522009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27353
27354 * normal/auth.c (punishment_delay): Moved from here ...
27355 (grub_auth_strcmp): ... to here (inside function).
27356
325f5037
RM
273572009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27358
27359 * include/grub/list.h (struct grub_named_list): Remove `const'
27360 qualifier from `name'.
27361 (struct grub_prio_list): Likewise.
27362
7aea29a3
RM
273632009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27364
27365 * normal/auth.c: Include `<grub/time.h>'.
27366 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27367
3fd6f044
RM
273682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27369
27370 * normal/auth.c (punishment_delay): New variable.
27371 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27372 (grub_auth_check_authentication): Punish failed login attempts with
27373 an incremental (2^N) delay.
27374
a4cd68e4
RM
273752009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27376
27377 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27378 path with $(srcdir).
27379
7ad12f43
VS
273802009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27381
27382 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27383
c1129f03
RM
273842009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27385
27386 * util/i386/coreboot/grub-mkrescue.in: New file.
27387 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27388 variables.
27389
27390 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27391 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27392 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27393 requirements.
27394 * util/mkisofs/defaults.h: New file.
27395 * util/mkisofs/eltorito.c: Likewise.
27396 * util/mkisofs/exclude.h: Likewise.
27397 * util/mkisofs/fnmatch.c: Likewise.
27398 * util/mkisofs/getopt.c: Likewise.
27399 * util/mkisofs/getopt1.c: Likewise.
27400 * util/mkisofs/hash.c: Likewise.
27401 * util/mkisofs/include/fctldefs.h: Likewise.
27402 * util/mkisofs/include/mconfig.h: Likewise.
27403 * util/mkisofs/include/prototyp.h: Likewise.
27404 * util/mkisofs/include/statdefs.h: Likewise.
27405 * util/mkisofs/iso9660.h: Likewise.
27406 * util/mkisofs/joliet.c: Likewise.
27407 * util/mkisofs/match.c: Likewise.
27408 * util/mkisofs/match.h: Likewise.
27409 * util/mkisofs/mkisofs.c: Likewise.
27410 * util/mkisofs/mkisofs.h: Likewise.
27411 * util/mkisofs/multi.c: Likewise.
27412 * util/mkisofs/name.c: Likewise.
27413 * util/mkisofs/rock.c: Likewise.
27414 * util/mkisofs/tree.c: Likewise.
27415 * util/mkisofs/write.c: Likewise.
27416
ec8bb77d
VS
274172009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27418
27419 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27420 being insecure.
27421
3716b12c
RM
274222009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27423
27424 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27425 `grub-mkimage' (and use $0 when possible).
27426
b97b7b91
RM
274272009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27428
27429 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27430 error message for excessively large memory map.
27431
04114812
RM
274322009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27433
27434 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27435 executable bit.
27436
e4eb2373
RM
274372009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27438
27439 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27440 message for coreboot users.
27441
c926e1d5 274422009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27443
27444 Fix build with GNU gold.
27445
27446 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27447 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27448 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27449 link addresses.
27450 * aclocal.m4: Likewise.
27451
86e5b1db 274522009-11-04 Felix Zielcke <fzielcke@z-51.de>
27453
27454 * configure.ac (AC_PREREQ): Bump to 2.59d.
27455 * INSTALL: Make it more clear when Autoconf and Ruby are
27456 needed and when to run `./autogen.sh'.
27457
246cd78f 274582009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27459
27460 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27461 OSes.
27462
4f9dfb37 274632009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27464
27465 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27466
b82bd5e1 274672009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27468
27469 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27470 giving it to GNU Mach.
27471
ff1a9bca 274722009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27473
27474 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27475 GNU partition number to get internal GRUB partition number.
27476
61697d9c 274772009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27478
27479 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27480 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27481
a50569e1 274822009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27483
27484 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27485 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27486 case.
27487
5b153867 274882009-11-01 Felix Zielcke <fzielcke@z-51.de>
27489
27490 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27491
d9e2cd70 274922009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27493
27494 Fix build problem.
27495
27496 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27497 `-isystem=$(srcdir)/include'.
27498
805111a4 274992009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27500
27501 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27502 checked (grub-install doesn't currently rely on it).
27503
fa6e945f 275042009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27505
27506 Revert SVN r2660.
27507
27508 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27509 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27510 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27511 * conf/i386-ieee1275.rmk: Likewise.
27512 * conf/i386-pc.rmk: Likewise.
27513 * conf/powerpc-ieee1275.rmk: Likewise.
27514 * conf/sparc64-ieee1275.rmk: Likewise.
27515 * conf/x86_64-efi.rmk: Likewise.
27516
cee15086 275172009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27518
27519 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27520
95b9239e 275212009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27522
27523 * include/grub/misc.h: Stop checking for APPLE_CC.
27524
2ed19dfd 275252009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27526
27527 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27528 doesn't cause an infinite call loop.
27529
fdcdde19 275302009-10-28 Felix Zielcke <fzielcke@z-51.de>
27531
27532 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27533 strings.
27534
cefabfe1 275352009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27536
27537 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27538 variable.
27539 * Makefile.in: Likewise.
27540
ed96ab6d 275412009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27542
27543 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27544
0579b753 275452009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27546
27547 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27548
478df409 275492009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27550
27551 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27552
083d1679 275532009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27554
27555 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27556 from here ...
27557 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27558
5947ae32 275592009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27560
27561 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27562 in $(MAKEINFO) invocation. This makes it clear in output that
27563 errors are being ignored.
27564
94180ff6 275652009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27566
27567 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27568 from here ...
27569 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27570 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27571 * conf/i386-ieee1275.rmk: Likewise.
27572 * conf/i386-pc.rmk: Likewise.
27573 * conf/powerpc-ieee1275.rmk: Likewise.
27574 * conf/sparc64-ieee1275.rmk: Likewise.
27575 * conf/x86_64-efi.rmk: Likewise.
27576
9031b03a 275772009-10-26 Colin Watson <cjwatson@ubuntu.com>
27578
27579 * util/grub-editenv.c (main): If only a command is given, use
27580 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27581 (usage): FILENAME is now optional and has a default.
27582
e4f6809b 275832009-10-26 Colin Watson <cjwatson@ubuntu.com>
27584
27585 Improve grub-mkconfig performance when there are several menu
27586 entries on a single filesystem.
27587
27588 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27589 prepare_grub_to_access_device.
27590 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27591 * util/grub.d/30_os-prober.in: Likewise.
27592
67937d4d 275932009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27594
27595 * util/grub.d/10_freebsd.in: Remove.
27596 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27597 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27598
ee3756cc 275992009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27600
5c35048e 27601 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 27602
4dea1c6f 276032009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27604
27605 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27606 grub_util_error() call.
27607
042484d7 276082009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27609
27610 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27611 `reserved_first_sector' member.
27612 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27613 `reserved_first_sector' to 1.
27614 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27615 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27616 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27617 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27618 filesystems which begin at first sector.
27619 (options): New option --skip-fs-probe.
27620 (main): Handle --skip-fs-probe and pass it to setup().
27621
d64448a7 276222009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27623
27624 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27625 (memset): Fix function prototype.
27626
508d42ec 276272009-10-25 Robert Millan <rmh.grub@aybabtu.com>
276282009-10-25 Vasily Averin <vvs@parallels.com>
27629
27630 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27631 `dirent.direntlen == 0'.
27632
b240e30c 276332009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27634
27635 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27636 `cpio'.
27637 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27638
346e7fbe 276392009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27640
27641 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27642 `__trampoline_setup' and `__ucmpdi2'.
27643 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27644 that libgcc provides.
27645
cdb308b0 276462009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27647
27648 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27649 * include/grub/sparc64/libgcc.h (memset): Likewise.
27650 * include/grub/misc.h (memset, memcmp): New function prototypes.
27651
fb26abc2 276522009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27653
27654 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27655 `cpio'.
27656 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27657
f6693890 276582009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27659
27660 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27661 * docs/grub.cfg: Compensate for recent change in multiboot
27662 loader (since 2009-08-14 it won't pass filename to payload).
27663 * util/grub.d/10_hurd.in: Likewise.
27664
0933cdc0 276652009-10-21 Felix Zielcke <fzielcke@z-51.de>
27666
27667 * config.guess: Update to latest version from config git
27668 repository.
27669 * config.sub: Likewise.
27670
3b2fe8c2 276712009-10-20 Robert Millan <rmh.grub@aybabtu.com>
27672
27673 Fix build on sparc64.
27674
27675 * configure.ac: Perform checks for libgcc symbols before
27676 adding `-nostdlib' to LDFLAGS.
27677
46695a62 276782009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27679
27680 Let user specify OpenBSD root device.
27681
27682 * loader/i386/bsd.c (openbsd_root): New variable.
27683 (openbsd_opts): New option 'root'.
27684 (OPENBSD_ROOT_ARG): New macro.
27685 (grub_openbsd_boot): Use 'openbsd_root'.
27686 (grub_cmd_openbsd): Fill 'openbsd_root'.
27687
d2b6b7fc 276882009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27689
27690 * NEWS: Misc adjustments.
27691
421bd7ac 276922009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
27693
27694 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
27695
f1d29d87 276962009-10-16 Robert Millan <rmh.grub@aybabtu.com>
27697
27698 * configure.ac: Bump version to 1.97.
27699
6f3cd880 277002009-10-16 Colin Watson <cjwatson@ubuntu.com>
27701
27702 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
27703 -mno-3dnow on x86 architectures. Some toolchains enable these
27704 features by default, but they rely on registers that aren't enabled
27705 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
27706
035f7122 277072009-10-15 Robert Millan <rmh.grub@aybabtu.com>
27708
27709 Make entry text a bit more readable.
27710
27711 * util/grub.d/10_linux.in: Add `with' before `Linux'.
27712
44998e58 277132009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27714
27715 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
27716
cd2851b3 277172009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27718
27719 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
27720 operations.
27721
c6f3b249 277222009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27723
27724 * configure.ac: Add missing dollar.
27725
6b5886ba 277262009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
27727
27728 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
27729
27730 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
27731 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
27732 exports.
27733 * include/grub/sparc64/libgcc.h: Likewise. Use
27734 preprocessor conditionals.
27735
e9d66f6d 277362009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27737
27738 * conf/common.rmk (grub-dumpbios): Remove rule.
27739 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
27740 * util/grub-dumpbios.in: Remove file.
27741
9155bc17 277422009-10-14 Robert Millan <rmh.grub@aybabtu.com>
27743
27744 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
27745 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
27746
27747 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
27748 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
27749 users.
27750
27751 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
27752 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
27753 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
27754 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
27755 users.
27756
bf7f7a18 277572009-10-12 Robert Millan <rmh.grub@aybabtu.com>
27758
27759 * term/tparm.c: Switch to GPLv3.
27760
86564c26 277612009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27762
27763 * include/grub/i386/cpuid.h: Add header protection.
27764
5c936493 277652009-10-09 Robert Millan <rmh.grub@aybabtu.com>
27766
27767 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
27768
27769 * include/grub/i386/cpuid.h: New file.
27770 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
27771 (has_longmode): Rename to ...
27772 (grub_cpuid_has_longmode): ... this. Update all users. Remove
27773 `static' attribute.
27774 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
27775 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
27776 on a CPU that doesn't implement AMD64 instruction set.
27777
186e7cf2 277782009-10-06 Colin Watson <cjwatson@ubuntu.com>
27779
27780 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
27781 that version.texi is rebuilt on version number changes.
27782
83b65c4a 277832009-10-06 Colin Watson <cjwatson@ubuntu.com>
27784
27785 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
27786 Fixes bug #27602.
27787
d244281c 277882009-10-06 Colin Watson <cjwatson@ubuntu.com>
27789
27790 * util/i386/pc/grub-install.in: Source
27791 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
27792 that the --grub-probe option will work.
27793 * util/sparc64/ieee1275/grub-install.in: Likewise.
27794
da25306d 277952009-10-05 Robert Millan <rmh.grub@aybabtu.com>
27796
27797 * configure.ac: Bump version to 1.97~beta4.
27798
e8ee83c0 277992009-10-03 Robert Millan <rmh.grub@aybabtu.com>
27800
27801 Resync grub-mkdevicemap in x86_64-efi.
27802
27803 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
27804 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
27805 `util/devicemap.c'.
27806
50dcabcf 278072009-10-01 Colin Watson <cjwatson@ubuntu.com>
27808
27809 * util/grub-editenv.c (create_envblk_file): Write new block with a
27810 .new suffix and then rename it into place, to ensure atomic
27811 creation.
27812
0e51c3a7 278132009-09-28 Robert Millan <rmh.grub@aybabtu.com>
27814
27815 Do not automatically install headers.
27816
27817 * Makefile.in (include_DATA): Remove. Update all users.
27818
31299a95 278192009-09-26 Robert Millan <rmh.grub@aybabtu.com>
27820
27821 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
27822 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
27823
27824 * util/osdetect.lua: Remove.
27825 * script/lua/lauxlib.c: Likewise.
27826 * script/lua/ldebug.c: Likewise.
27827 * script/lua/grub_main.c: Likewise.
27828 * script/lua/lauxlib.h: Likewise.
27829 * script/lua/ldebug.h: Likewise.
27830 * script/lua/ltablib.c: Likewise.
27831 * script/lua/liolib.c: Likewise.
27832 * script/lua/lstrlib.c: Likewise.
27833 * script/lua/lualib.h: Likewise.
27834 * script/lua/ldo.c: Likewise.
27835 * script/lua/ldump.c: Likewise.
27836 * script/lua/ldo.h: Likewise.
27837 * script/lua/loslib.c: Likewise.
27838 * script/lua/lundump.c: Likewise.
27839 * script/lua/grub_lib.c: Likewise.
27840 * script/lua/ldblib.c: Likewise.
27841 * script/lua/lundump.h: Likewise.
27842 * script/lua/lmem.c: Likewise.
27843 * script/lua/grub_lib.h: Likewise.
27844 * script/lua/lmathlib.c: Likewise.
27845 * script/lua/lstate.c: Likewise.
27846 * script/lua/ltm.c: Likewise.
27847 * script/lua/lvm.c: Likewise.
27848 * script/lua/lmem.h: Likewise.
27849 * script/lua/lstate.h: Likewise.
27850 * script/lua/ltm.h: Likewise.
27851 * script/lua/ltable.c: Likewise.
27852 * script/lua/lvm.h: Likewise.
27853 * script/lua/llex.c: Likewise.
27854 * script/lua/lgc.c: Likewise.
27855 * script/lua/grub_lua.h: Likewise.
27856 * script/lua/loadlib.c: Likewise.
27857 * script/lua/lfunc.c: Likewise.
27858 * script/lua/lopcodes.c: Likewise.
27859 * script/lua/lparser.c: Likewise.
27860 * script/lua/ltable.h: Likewise.
27861 * script/lua/llex.h: Likewise.
27862 * script/lua/lgc.h: Likewise.
27863 * script/lua/lfunc.h: Likewise.
27864 * script/lua/lbaselib.c: Likewise.
27865 * script/lua/lopcodes.h: Likewise.
27866 * script/lua/lparser.h: Likewise.
27867 * script/lua/lzio.c: Likewise.
27868 * script/lua/linit.c: Likewise.
27869 * script/lua/lobject.c: Likewise.
27870 * script/lua/llimits.h: Likewise.
27871 * script/lua/lstring.c: Likewise.
27872 * script/lua/lzio.h: Likewise.
27873 * script/lua/lapi.c: Likewise.
27874 * script/lua/lcode.c: Likewise.
27875 * script/lua/lua.h: Likewise.
27876 * script/lua/lobject.h: Likewise.
27877 * script/lua/lstring.h: Likewise.
27878 * script/lua/lapi.h: Likewise.
27879 * script/lua/lcode.h: Likewise.
27880 * script/lua/luaconf.h: Likewise.
27881
cb8a2c38 278822009-09-26 Colin Watson <cjwatson@ubuntu.com>
27883
27884 * docs/grub.texi (Command-line and menu entry commands): Document
27885 date and echo commands.
27886
6b9b6276 278872009-09-24 Pavel Roskin <proski@gnu.org>
27888
27889 * include/grub/kernel.h (struct grub_module_header): Remove
27890 `grub_module_header_types'. Make `type' unsigned. Make `size'
27891 32-bit on all platforms.
27892 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
27893 8-bit field. Use grub_host_to_target32() for `size'.
27894 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
27895 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
27896 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
27897
4e5a02a7 278982009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27899
27900 Fix "lost keypress" bug in at_keyboard.
27901
27902 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
27903 Checks for readyness of input buffer (without flushing it).
27904 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
27905 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
27906
c6dcedf6 279072009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27908
27909 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
27910 size check within GRUB_MACHINE_PCBIOS section.
27911
74c958b1 279122009-09-24 Robert Millan <rmh.grub@aybabtu.com>
27913
27914 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
27915 return value.
27916 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
27917 KEYBOARD_ISREADY check.
27918 (grub_at_keyboard_checkkey): Rename to ...
27919 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
27920 Remove gratuitous cast.
27921
ff420223 279222009-09-23 Colin Watson <cjwatson@ubuntu.com>
27923
27924 * configure.ac: Call AC_PROG_MKDIR_P.
27925 * Makefile.in (docs/stamp-vti): Create docs directory. Create
27926 version.texi in $(builddir) rather than $(srcdir).
27927 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
27928 to makeinfo's @include search path.
27929
d96875df 279302009-09-23 Felix Zielcke <fzielcke@z-51.de>
27931
27932 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
27933
9b3f8365 279342009-09-23 Felix Zielcke <fzielcke@z-51.de>
27935
27936 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
27937 for `*.dpkg-new'.
27938
c44c90db 279392009-09-21 Colin Watson <cjwatson@ubuntu.com>
27940
27941 Build info documentation. Some code borrowed from Automake.
27942
27943 * configure.ac: Check for makeinfo.
27944 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
27945 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
27946 docs/version.texi.
27947 (MOSTLYCLEANFILES): Add vti.tmp.
27948 (docs/version.texi, docs/stamp-vti): Update automatically.
27949 (docs/grub.info): Build info documentation. Use --force and ignore
27950 errors for now.
27951 (all-local): Add $(INFOS).
27952 (install-local): Install info files.
27953 (uninstall): Uninstall info files.
27954 * docs/version.texi: Remove from revision control. This file is
27955 automatically generated on build now.
27956 * gendistlist.sh: Add `*.info'.
27957
e0b37bb5 279582009-09-21 Felix Zielcke <fzielcke@z-51.de>
27959
27960 * kern/term.c: Fix indentation.
27961
5a78865b 279622009-09-21 Felix Zielcke <fzielcke@z-51.de>
27963
27964 * util/hostdisk.c: Fix a comment.
27965
dace7e8a 279662009-09-20 Robert Millan <rmh.grub@aybabtu.com>
27967
27968 Fix regression introduced in r2539.
27969
27970 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
27971 to 0xA1.
27972
a83d079b 279732009-09-19 Colin Watson <cjwatson@ubuntu.com>
27974
27975 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 27976 os-prober. Under normal operation, it does not print anything to
27977 stderr; if it does, we need to debug it, and throwing away stderr
27978 makes that excessively difficult.
a83d079b 27979
be94a509 279802009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
27981
27982 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
27983
63f745e8 279842009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27985
27986 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
27987 AC_LANG_PROGRAM from autoconf.
27988 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
27989 prototypes (fixes warning).
27990
27991 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
27992 `--disable-werror' was used.
27993
bbb2a70f 279942009-09-16 Robert Millan <rmh.grub@aybabtu.com>
27995
27996 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
27997 uninitialized `lastaddr'.
27998
77c24f1d 279992009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28000
0f0b8c87 28001 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 28002
07197f23 280032009-09-14 Colin Watson <cjwatson@ubuntu.com>
28004
28005 * commands/test.c (get_fileinfo): Return immediately if
28006 grub_fs_probe fails.
28007
dabf1798 280082009-09-14 José Martínez <xosemp@gmail.com>
28009
28010 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28011
d52109a7 280122009-09-14 Colin Watson <cjwatson@ubuntu.com>
28013
28014 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28015 output.
28016
56532179 280172009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28018
28019 * configure.ac: Remove --enable-grub-pe2elf. Only build
28020 grub-pe2elf when needed by the build system itself.
28021 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28022
8ef070f5 280232009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28024
28025 * configure.ac: Bump version to 1.97~beta3.
28026 * docs/version.texi: Likewise.
28027
61229557 280282009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28029
28030 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28031 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28032 from here ...
28033 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28034 (grub_linux_setup_video): ... to here (with some adjustments).
28035
5c9f8d84 280362009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28037
28038 Fix memory corruption issue (spotted by Colin Watson).
28039
28040 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28041 causing returned size to be stored in an incorrect memory location.
28042 Fix use of uninitialized value when storing the returned size.
28043
e8f5d6e9 280442009-09-12 Yves Blusseau <blusseau@zetam.org>
28045
28046 Change clean rules to properly remove files
28047
28048 * genmk.rb: add new clean rules
28049 * Makefile.in (clean): add the new targets
28050 (mostlyclean): likewise
28051
cda2a409 280522009-09-11 Colin Watson <cjwatson@ubuntu.com>
28053
28054 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28055 to grub_uint64_t.
28056 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28057 non-resident files.
28058
86695375 280592009-09-11 Colin Watson <cjwatson@ubuntu.com>
28060
28061 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28062 part of bug #27349.
28063
8aa1541a 280642009-09-10 Felix Zielcke <fzielcke@z-51.de>
28065
28066 * util/grub-mkconfig.in: Make the created config mode 400 and
28067 print a warning if it fails.
28068
48d9bb0a 280692009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28070
28071 * util/grub.d/40_custom.in: Ask user to type custom entries below
28072 comment, rather than below 'exec tail' line.
28073
3b0521be 280742009-09-10 Colin Watson <cjwatson@ubuntu.com>
28075
28076 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28077 visible in grub.cfg.
28078
50051d55 280792009-09-10 Colin Watson <cjwatson@ubuntu.com>
28080
28081 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28082 file.
28083
c0d34387 280842009-09-10 Felix Zielcke <fzielcke@z-51.de>
28085
28086 * docs/grub.cfg: Add an example menu entry for memtest86+.
28087
80a608f3 280882009-09-09 Felix Zielcke <fzielcke@z-51.de>
28089
a2094832 28090 * config.guess: Update to latest version from config git.
80a608f3 28091 * config.sub: Likewise.
28092
99423078 280932009-09-08 Colin Watson <cjwatson@ubuntu.com>
28094
28095 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28096 unknown-command case. Fixes bug #27320.
28097
44454e4c 280982009-09-08 Felix Zielcke <fzielcke@z-51.de>
28099
28100 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28101 `help' if the command exists.
28102
e30d87ad 281032009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28104
28105 * INSTALL: Require GCC 4.1.3 or later.
28106
9a86f1ec 281072009-09-06 Yves Blusseau <blusseau@zetam.org>
28108
28109 * Makefile.in (RMKFILES): add i386-qemu.rmk
28110 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28111 $(srcdir)/stamp-h.in
28112
7f26d466 281132009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28114
28115 * util/grub-probe.c (probe): Comment out buggy codepath, which
28116 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28117 should be re-enabled after 1.97.
28118
3a613259 281192009-09-05 Felix Zielcke <fzielcke@z-51.de>
28120
28121 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28122 find searches for.
28123
197f76c7 281242009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28125
28126 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28127 unnecessary calls to grub_error.
28128
70ba68ce 281292009-09-04 Colin Watson <cjwatson@ubuntu.com>
28130
28131 * NEWS: Mention `keystatus' and Unicode fonts.
28132
4ff0d7a4 281332009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28134
28135 * configure.ac: Bump version to 1.97~beta2.
28136 * docs/version.texi: Likewise.
28137
77c55a87 281382009-09-03 Colin Watson <cjwatson@ubuntu.com>
28139
28140 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28141 containing unwind information in some cases where it previously did
28142 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28143 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28144 discussion.
28145
f79572cd 281462009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28147
28148 Embedding loadenv module into grub-emu
28149
28150 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28151 commands/loadenv.c
28152 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28153 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28154 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28156 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28157 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28158
93a81088 281592009-09-03 Magnus Granberg <zorry@ume.nu>
28160
28161 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28162 include -fPIE in the default specs.
28163 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28164 to TARGET_CFLAGS.
28165
160034b2 281662009-09-03 Felix Zielcke <fzielcke@z-51.de>
28167
28168 * INSTALL: Note that GNU Bison 2.3 or later is required.
28169
087c07c4 281702009-09-03 Colin Watson <cjwatson@ubuntu.com>
28171
28172 * kern/i386/pc/startup.S: Fix typo.
28173
cbf978c0 281742009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28175
28176 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28177 according to GCS.
28178
281792009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 28180
28181 * docs/grub.texi (Naming convention): Describe one-based partition
28182 numbering.
28183 (Device syntax): Likewise.
28184 (File name syntax): Likewise.
28185 (Block list syntax): Likewise.
28186 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28187 menu.lst.
28188 (File name syntax): Likewise.
28189 (Command-line and menu entry commands): Document acpi, blocklist,
28190 crc, export, insmod, keystatus, ls, set, and unset commands.
28191
f3e8cdfd 281922009-09-02 Colin Watson <cjwatson@ubuntu.com>
28193
28194 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28195 to avoid implying that only one of --shift, --ctrl, or --alt may be
28196 used.
28197
c0bc232b 281982009-09-02 Colin Watson <cjwatson@ubuntu.com>
28199
28200 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28201 rather than comparing against S_IFREG, which will almost never work.
28202
aa0f752d 282032009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28204
28205 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28206 (write_blocklists): Likewise.
28207
ecb3166a 282082009-09-01 Colin Watson <cjwatson@ubuntu.com>
28209
28210 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28211 argument to grub_printf.
28212
c403a125 282132009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 28214
28215 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 28216 non GNU test.
31aba781 28217
b5e7312c 282182009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28219
28220 * kern/file.c (grub_file_read): Spelling fix
28221
fe00f472 282222009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28223
28224 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28225 loading of headers in some cases.
28226
cc55302e 282272009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28228
28229 * configure.ac: Bump version to 1.97~beta1.
28230 * docs/version.texi: Likewise.
28231
5c90cdd2 282322009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 28233
28234 * include/grub/i386/xnu.h: Add license header.
28235 include grub/err.h explicitly.
28236
c90edae4 282372009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28238
28239 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28240 to `ufs' in the vfs.root.mountfrom kernel parameter.
28241
d8888b5c 282422009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28243
28244 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28245
28246 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28247 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28248
28249 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28250 `ARRAY_SIZE' macro.
28251
6f07b921 282522009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28253
28254 * kern/file.c (grub_file_read): Check offset.
28255 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28256 * fs/jfs.c (grub_jfs_read_file): Likewise.
28257 * fs/ntfs.c (grub_ntfs_read): Likewise.
28258 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28259 * fs/minix.c (grub_minix_read_file): Correct offset check.
28260 * fs/ufs.c (grub_ufs_read_file): Likewise.
28261
b4f34077 282622009-08-28 Colin Watson <cjwatson@ubuntu.com>
28263
28264 * term/i386/pc/console.c (bios_data_area): Cast
28265 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28266
e7c69859 282672009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28268
28269 1-bit optimised blitters.
28270
28271 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28272 prototype.
28273 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28274 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28275 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28276 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28277 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28278 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28279 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28280 function.
28281 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28282 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28283 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28284 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28285 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28286 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28287 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28288 when possible.
28289 * video/video.c (grub_video_get_blit_format): Return
28290 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28291
a57da43f 282922009-08-28 Colin Watson <cjwatson@ubuntu.com>
28293
28294 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28295 the first argument to grub_printf.
28296
4cbe67e5 282972009-08-28 Colin Watson <cjwatson@ubuntu.com>
282982009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28299
28300 Add `getkeystatus' terminal method. Add a new `keystatus' command
28301 to query it.
28302
28303 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28304 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28305 modifier key bitmasks.
28306 (struct grub_term_input): Add `getkeystatus' member.
28307 (grub_getkeystatus): Add prototype.
28308 * kern/term.c (grub_getkeystatus): New function.
28309
28310 * include/grub/i386/pc/memory.h
28311 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28312 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28313 Data Area layout.
28314 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28315 (grub_console_term_input): Set `getkeystatus' member.
28316 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28317 constants.
28318 (grub_usb_keyboard_getreport): Likewise.
28319 (grub_usb_keyboard_checkkey): Likewise.
28320 (grub_usb_keyboard_getkeystatus): New function.
28321 (grub_usb_keyboard_term): Set `getkeystatus' member.
28322
28323 * commands/keystatus.c: New file.
28324 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28325 (keystatus_mod_SOURCES): New variable.
28326 (keystatus_mod_CFLAGS): Likewise.
28327 (keystatus_mod_LDFLAGS): Likewise.
28328 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28329 commands/keystatus.c.
28330 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28331 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28332 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28334 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28335 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 28336
6e2a9085 283372009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28338
28339 Split befs.mod and afs.mod into *_be.mod and *.mod
28340
28341 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28342 (grub_fstest_SOURCES): Likewise.
28343 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28344 (afs_be_mod_SOURCES): New variable.
28345 (afs_be_mod_CFLAGS): Likewise.
28346 (afs_be_mod_LDFLAGS): Likewise.
28347 (befs_be_mod_SOURCES): Likewise.
28348 (befs_be_mod_CFLAGS): Likewise.
28349 (befs_be_mod_LDFLAGS): Likewise.
28350 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28351 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28352 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28353 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28354 (grub_emu_SOURCES): Likewise.
28355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28356 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28357 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28358 * fs/afs_be.c: New file.
28359 * fs/befs_be.c: New file.
28360 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28361 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28362 (U16): Replaced with ...
28363 (grub_afs_to_cpu16): ...this. All users updated.
28364 (U32): Replaced with ...
28365 (grub_afs_to_cpu32): ...this. All users updated.
28366 (U64): Replaced with ...
28367 (grub_afs_to_cpu64): ...this. All users updated.
28368 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28369 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 28370 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 28371 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28372 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28373 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28374 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28375 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28376 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28377 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28378 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28379
32a71655 283802009-08-26 Bean <bean123ch@gmail.com>
28381
28382 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28383 64-bit number.
28384 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28385 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28386 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28387
552bf6c5 283882009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28389
28390 NetBSD memory map support.
28391
28392 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28393 (grub_netbsd_btinfo_mmap_header): New structure.
28394 (grub_netbsd_btinfo_mmap_entry): Likewise.
28395 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28396
1ae2078c 283972009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28398
28399 Enable bsd.mod on coreboot.
28400
28401 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28402 (bsd_mod_SOURCES): New variable.
28403 (bsd_mod_CFLAGS): Likewise.
28404 (bsd_mod_LDFLAGS): Likewise.
28405 (bsd_mod_ASFLAGS): Likewise.
28406 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28407 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28408
beefc598 284092009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28410
28411 Cleanup NetBSD root support.
28412
28413 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28414 grub_bsd_get_device.
28415 Fix typo.
28416
3b76e68b 284172009-08-25 Felix Zielcke <fzielcke@z-51.de>
28418
28419 * util/grub.d/00_header.in: Move check for the video backend of
28420 gfxterm from here ...
28421 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28422 a suitable video backend.
28423
aea664ea 284242009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28425
28426 Fix breakage in grub-setup.
28427
28428 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28429 "msdos_partition_map".
28430
ff747d50 284312009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28432
28433 Fix breakage in normal/auth.c.
28434
28435 * normal/auth.c (grub_iswordseparator): New function.
28436
e7e1f93f 284372009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28438
28439 Authentication support.
28440
28441 * commands/password.c: New file.
28442 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28443 (password_mod_SOURCES): New variable.
28444 (password_mod_CFLAGS): Likewise.
28445 (password_mod_LDFLAGS): Likewise.
28446 (normal_mod_SOURCES): Add normal/auth.c.
28447 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28448 normal/auth.c.
28449 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28450 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28451 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28452 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28453 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28454 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28455 * include/grub/auth.h: New file.
28456 * include/grub/err.h (grub_err_t): New enum value
28457 GRUB_ERR_ACCESS_DENIED.
28458 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28459 'users'.
28460 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28461 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28462 users updated.
28463 * normal/auth.c: New file.
28464 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28465 (grub_cmdline_run): Don't allow to go to command line without
28466 authentication.
28467 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28468 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28469 menuentry without superuser rights.
28470 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28471 user isn't a superuser.
28472
70f1161d 284732009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28474
28475 Save space by inlining misc.c functions.
28476
28477 * kern/misc.c (grub_iswordseparator): Made static.
28478 * kern/misc.c (grub_strcat): Moved from here ...
28479 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28480 * kern/misc.c (grub_strncat): Moved from here ...
28481 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28482 * kern/misc.c (grub_strcasecmp): Moved from here ...
28483 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28484 * kern/misc.c (grub_strncasecmp): Moved from here ...
28485 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28486 * kern/misc.c (grub_isalpha): Moved from here ...
28487 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28488 * kern/misc.c (grub_isdigit): Moved from here ...
28489 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28490 * kern/misc.c (grub_isgraph): Moved from here ...
28491 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28492 * kern/misc.c (grub_tolower): Moved from here ...
28493 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28494
48e40bff 284952009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28496
28497 * script/sh/function.c (grub_script_function_find): Cut error message
28498 not to flood terminal.
28499 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28500 limit.
28501 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28502
c385bfc3 285032009-08-24 Colin Watson <cjwatson@ubuntu.com>
28504
28505 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28506 `report' grub_uint8_t *.
28507 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28508 Use a 50-millisecond timeout rather than just repeating
28509 grub_usb_keyboard_getreport 50 times.
28510 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28511
2d21e3e8 285122009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28513
28514 Rename *_partition_map to part_*
28515
28516 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28517 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28518 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28519 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28520 All users updated.
28521 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28522 All users updated.
28523 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28524 * util/grub-probe.c (probe_partmap): Don't transform partition name
28525 to get module name.
28526
dd103c4e 285272009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28528
28529 Fix OpenBSD and NetBSD support.
28530
28531 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28532 memory address conflict.
28533 (OPENBSD_MMAP_ACPI): New definition.
28534 (OPENBSD_MMAP_NVS): Likewise.
28535 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28536 and OPENBSD_MMAP_NVS.
28537 Add memory map terminator
28538 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 28539 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 28540
16c84d74 285412009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28542
28543 Let user specify NetBSD root device.
28544
28545 * loader/i386/bsd.c (netbsd_root): New variable.
28546 (netbsd_opts): New option 'root'.
28547 (NETBSD_ROOT_ARG): New macro.
28548 (grub_netbsd_boot): Use 'netbsd_root'.
28549 (grub_bsd_unload): Free 'netbsd_root'.
28550 (grub_cmd_netbsd): Fill 'netbsd_root'.
28551
adb29902 285522009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28553
28554 Support for 64-bit NetBSD.
28555
28556 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28557 point when booting non-FreeBSD.
28558
f5ae9f74 285592009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28560
28561 Support --no-smp and --no-acpi for NetBSD.
28562
28563 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28564 (NETBSD_AB_NOACPI): Likewise.
28565 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28566 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28567
de74f136 285682009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28569
28570 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28571 errors.
28572 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28573 errors. Call grub_error when needed.
28574
e9a925da 285752009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28576
28577 * commands/search.c (search_fs): Try searching without autoload first.
28578 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28579 filesystem module explicitly for faster booting.
28580
5174302b 285812009-08-23 Colin Watson <cjwatson@ubuntu.com>
28582
28583 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28584
c8c80635 285852009-08-23 Colin Watson <cjwatson@ubuntu.com>
28586
28587 * util/grub.d/30_os-prober.in: Disable os-prober if
28588 `GRUB_DISABLE_OS_PROBER' was set to true.
28589
71acf5e5 285902009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28591
28592 * partmap/pc.c: Rename to ...
28593 * partmap/msdos.c: ... this. Update all users.
28594 (grub_pc_partition_map): Rename to ...
28595 (grub_msdos_partition_map): ... this. Update all users.
28596
28597 * parttool/pcpart.c: Rename to ...
28598 * parttool/msdospart.c: ... this. Update all users.
28599
28600 * include/grub/pc_partition.h: Rename to ...
28601 * include/grub/msdos_partition.h: ... this. Update all users.
28602 (grub_pc_partition_bsd_entry): Rename to ...
28603 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28604 (grub_pc_partition_disk_label): Rename to ...
28605 (grub_msdos_partition_disk_label): ... this. Update all users.
28606 (grub_pc_partition_entry): Rename to ...
28607 (grub_msdos_partition_entry): ... this. Update all users.
28608 (grub_pc_partition_mbr): Rename to ...
28609 (grub_msdos_partition_mbr): ... this. Update all users.
28610 (grub_pc_partition): Rename to ...
28611 (grub_msdos_partition): ... this. Update all users.
28612 (grub_pc_partition_is_empty): Rename to ...
28613 (grub_msdos_partition_is_empty): ... this. Update all users.
28614 (grub_pc_partition_is_extended): Rename to ...
28615 (grub_msdos_partition_is_extended): ... this. Update all users.
28616 (grub_pc_partition_is_bsd): Rename to ...
28617 (grub_msdos_partition_is_bsd): ... this. Update all users.
28618
28619 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28620 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28621 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28622 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28623 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28624 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28625 (gpt_mod_LDFLAGS): Rename to ...
28626 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28627 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28628 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28629 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28630 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28631 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28632 (part_gpt_mod_LDFLAGS): ... this.
28633 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28634 `pcpart.mod' to `msdospart.mod'.
28635 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28636 to ...
28637 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28638 (msdospart_mod_LDFLAGS): ... this.
28639
c11fded5 286402009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28641
28642 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28643 (openbsd_opts): Likewise.
28644 (netbsd_opts): Likewise.
28645 (freebsd_flags): Added 0 terminator.
28646 (openbsd_flags): Likewise.
28647 (netbsd_flags): Likewise.
28648 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28649 (grub_cmd_freebsd): Transformed into extended command.
28650 (grub_cmd_openbsd): Likewise.
28651 (grub_cmd_netbsd): Likewise.
28652 (cmd_freebsd): Changed type to grub_extcmd_t.
28653 (cmd_openbsd): Likewise.
28654 (cmd_netbsd): Likewise.
28655 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28656 grub_cmd_openbsd as extended commands.
28657 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28658 cmd_netbsd and cmd_openbsd
28659
11d1c769 286602009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28661
28662 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28663
7a9094e5 286642009-08-21 Pavel Roskin <proski@gnu.org>
28665
5496c37e 28666 * Makefile.in (install-local): When checking if a file is in the
28667 build directory, use "test -e" to detect symlinks.
28668
7a9094e5 28669 * Makefile.in (install-local): Remove all files in
28670 $(DESTDIR)$(pkglibdir) before installing new files there.
28671
e53cea11 286722009-08-18 Felix Zielcke <fzielcke@z-51.de>
28673
28674 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
28675 grub-mkelfimage.
28676
9aced544 286772009-08-18 Felix Zielcke <fzielcke@z-51.de>
28678
28679 * util/grub-mkconfig.in: Don't use gfxterm by default if not
28680 explicitly specified by the user.
28681
b7da6bab 286822009-08-18 Pavel Roskin <proski@gnu.org>
28683
28684 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
28685 grub_uint8_t pointer for data.
28686 * include/grub/fbutil.h (struct grub_video_fbblit_info):
28687 Likewise.
28688 * video/fb/fbutil.c: Remove unnecessary casts.
28689
19f1b335 286902009-08-17 Michal Suchanek <hramrach@centrum.cz>
28691
28692 VBE cleanup.
28693
28694 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
28695 (grub_vbe_set_video_mode): Save active mode info
28696 only after setting the mode.
28697 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
28698 second argument.
28699
2f467aa9 287002009-08-17 Michal Suchanek <hramrach@centrum.cz>
28701
28702 Rename variables for clarity.
28703
28704 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
28705 (active_vbe_mode_info): ... this. All users updated.
28706 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
28707 All users updated.
28708 (initial_mode): Rename to ...
28709 (initial_vbe_mode): ... this. All users updated.
28710 (mode_in_use): Rename to ..
28711 (vbe_mode_in_use): ... this. All users updated.
28712 (mode_list): Rename to ..
28713 (vbe_mode_list): ... this. All users updated.
28714 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
28715 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
28716 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
28717 'mode_list_size' to 'vbe_mode_list_size'.
28718 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
28719 'best_mode_info' to 'best_vbe_mode_info' and
28720 'best_mode' to 'best_vbe_mode'
28721
6025fcd7 287222009-08-17 Michal Suchanek <hramrach@centrum.cz>
28723
28724 Remove duplicate grub_video_fb_get_video_ptr.
28725
28726 * include/grub/fbutil.h (get_data_ptr): Rename to ...
28727 (grub_video_fb_get_video_ptr): ... this.
28728 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
28729 * video/fb/fbutil.c: Add comment about addressing.
28730 (get_data_ptr): Rename to ...
28731 (grub_video_fb_get_video_ptr): ... this. All users updated.
28732 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
28733
cc8c6faf 287342009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28735
28736 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
28737 grub_dprintf() that was just added.
28738
08aa61f0 287392009-08-17 Robert Millan <rmh.grub@aybabtu.com>
28740
28741 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
28742 (DEFAULT_VIDEO_MODE): Remove macros.
28743 (grub_linux_boot): Remove assumption that Linux has FB support,
28744 and use "text" as default video mode.
28745
7cef4f75 287462009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
28747
28748 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
28749 grub_dprintf.
28750 * fs/fat.c (grub_fat_read_data): Likewise.
28751
e1f39873 287522009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28753
28754 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
28755 payload.
28756 (grub_module): Likewise.
28757
c166d79e 287582009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28759
28760 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
28761 mbi->cmdline but free playground.
28762
c60cee8e 287632009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28764
28765 Handle group offset on UFS1.
28766
28767 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
28768 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
28769
c0d8b5d4 287702009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28771
28772 Split ufs.mod into ufs1.mod and ufs2.mod.
28773
28774 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
28775 (grub_fstest_SOURCES): Likewise.
28776 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
28777 (ufs_mod_SOURCES): Remove.
28778 (ufs_mod_CFLAGS): Likewise.
28779 (ufs_mod_LDFLAGS): Likewise.
28780 (ufs1_mod_SOURCES): New variable.
28781 (ufs1_mod_CFLAGS): Likewise.
28782 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 28783 (ufs2_mod_SOURCES): New variable.
28784 (ufs2_mod_CFLAGS): Likewise.
28785 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 28786 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
28787 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28788 Likewise.
28789 (grub_emu_SOURCES): Likewise.
28790 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28791 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28792 (grub_setup_SOURCES): Likewise.
28793 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28794 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
28795 (grub_setup_SOURCES): Likewise.
28796 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
28797 Likewise.
28798 * fs/ufs2.c: New file.
28799 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
28800
d3539132 288012009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
28802
28803 Framebuffer split.
28804
28805 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
28806 subsystem at the end.
28807 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
28808 (video_fb_mod_SOURCES): New variable.
28809 (video_fb_mod_CFLAGS): Likewise.
28810 (video_fb_mod_LDFLAGS): Likewise.
28811 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
28812 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
28813 * video/i386/pc/vbeblit.c: Moved from here ...
28814 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
28815 * video/i386/pc/vbefill.c: Moved from here ...
28816 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
28817 * video/i386/pc/vbeutil.c: Moved from here ...
28818 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
28819 * include/grub/i386/pc/vbeblit.h: Moved from here ...
28820 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
28821 * include/grub/i386/pc/vbefill.h: Moved from here ...
28822 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
28823 * include/grub/i386/pc/vbeutil.h: Moved from here ...
28824 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
28825 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
28826 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
28827 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
28828 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
28829 (grub_video_adapter): Added 'get_info_and_fini'.
28830 (grub_video_get_info_and_fini): New prototype.
28831 (grub_video_set_mode): make modestring const char *.
28832 * loader/i386/linux.c (grub_linux_setup_video): Use
28833 grub_video_get_info_and_fini.
28834 (grub_linux_boot): Move modesetting just before booting.
28835 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
28836 grub_video_get_info_and_fini.
28837 * video/i386/pc/vbe.c: Moved framebuffer part ...
28838 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
28839 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
28840 grub_video_fbstd_colors and grub_video_fb_set_palette.
28841 (grub_video_vbe_init): Clear 'framebuffer' variable and use
28842 grub_video_fb_init.
28843 (grub_video_vbe_fini): Use grub_video_fb_fini.
28844 (grub_video_vbe_setup): Use framebuffer.render_target instead of
28845 render_target and use grub_video_fb_set_active_render_target and
28846 grub_video_fb_set_palette.
28847 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
28848 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
28849 (grub_video_vbe_adapter): Use framebuffer.
28850 * video/video.c (grub_video_get_info_and_fini): New function.
28851 (grub_video_set_mode): Make modestring const char *.
28852 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
28853 values are already initialised.
28854
d404ee56 288552009-08-14 Pavel Roskin <proski@gnu.org>
28856
28857 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
28858 ABS and APPLE_CC.
28859 * boot/i386/pc/diskboot.S: Likewise.
28860 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
28861 sectors allow compilation on MacOSX.
28862 * conf/i386-pc.rmk: Enable unconditional compilation of
28863 lnxboot.img.
28864
9a10df16 288652009-08-13 Colin Watson <cjwatson@ubuntu.com>
28866
28867 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
28868 * util/grub.d/00_header.in: Enter interruptible sleep if
28869 GRUB_HIDDEN_TIMEOUT is set.
28870
be3c9ca7 288712009-08-13 Yves Blusseau <blusseau@zetam.org>
28872
28873 * include/grub/symbol.h: Add the LOCAL macro.
28874 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
28875 starting with "L_".
28876
1f9e557e 288772009-08-13 Pavel Roskin <proski@gnu.org>
28878
9ca62843 28879 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
28880 any modern compilers we support.
28881
1f9e557e 28882 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
28883 Use local labels starting with "L_" so that Apple assembler
28884 knows they are local.
28885
81623db6 288862009-08-10 Robert Millan <rmh.grub@aybabtu.com>
28887
28888 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
28889 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
28890 (bsd_kernel_types): ... this enum.
28891
28892 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
28893 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
28894 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
28895
28896 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
28897 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
28898 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
28899 messages.
28900
f5d35e7a 289012009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28902
28903 * util/grub-dumpdevtree: Moved from here ...
28904 * util/i386/efi/grub-dumpdevtree: ... to here.
28905 (hexify): New function. Converts a string to its hex version.
28906 Generate hex versions of "efi" and "device-properties" by calling
28907 hexify() on the ASCII strings rather than by hardcoding numbers.
28908
d1e1d527 289092009-08-08 Robert Millan <rmh.grub@aybabtu.com>
28910
28911 * fs/jfs.c: Update copyright year.
28912
1ebbe064 289132009-08-08 Felix Zielcke <fzielcke@z-51.de>
28914
28915 * util/grub.d/00_header.in: Fix a comment.
28916 * util/grub.d/10_linux.in: Likewise.
28917 * util/grub.d/10_windows.in: Likewise.
28918 * util/grub.d/10_hurd.in: Likewise.
28919
a78c8d24 289202009-08-08 Felix Zielcke <fzielcke@z-51.de>
28921
28922 * util/grub-mkconfig.in: Allow the user to specify the used font
28923 with GRUB_FONT.
28924
29a6b9e8 289252009-08-08 Pavel Roskin <proski@gnu.org>
28926
b5f16cc4 28927 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
28928 available, xfs.mod needs it now.
28929
2f5cb827 28930 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
28931 the "g" modifier in sed when the intention is to strip something
28932 once. This fixes comparison of kernels with multiple dashes.
28933
29a6b9e8 28934 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
28935 on it. Add missing space before closing bracket. Fix
28936 misleading formatting.
28937
892a3d98 289382009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28939
28940 * docs/grub.texi: Major overhaul. Remove all sections that are
28941 specific to GRUB Legacy, or mostly composed of Legacy-specific
28942 information.
28943
ed94253f 289442009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28945
28946 * docs/version.texi: New file. Provides version information for
28947 grub.texi.
28948
126d6628 289492009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28950
28951 * docs/grub.texi: Update CVS information to SVN.
28952 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
28953
998b5aa9 289542009-08-07 Felix Zielcke <fzielcke@z-51.de>
28955
28956 * util/grub-mkconfig.in: Remove a wrong `fi'.
28957
818e094a 289582009-08-07 Felix Zielcke <fzielcke@z-51.de>
28959
28960 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
28961 (grub_jfs_uuid): New function.
28962 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
28963
b969c52f 289642009-08-07 Felix Zielcke <fzielcke@z-51.de>
28965
28966 * util/grub-mkconfig_lib.in (font_path): Move the functionality
28967 of it to ...
28968 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
28969 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
28970
7a4894cc 289712009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28972
28973 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
28974 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
28975 Update all users.
28976
28977 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
28978 not just "vmlinu[zx]".
28979 Moved from here ...
28980 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
28981 all users.
28982
28983 * util/grub.d/10_linux.in (find_latest): Moved from here ...
28984 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
28985 all users.
28986
4e2171f8 289872009-08-07 Robert Millan <rmh.grub@aybabtu.com>
28988
28989 * util/grub.d/10_freebsd.in: Use an absolute device path for
28990 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
28991
6dcfcb32 289922009-08-06 Felix Zielcke <fzielcke@z-51.de>
28993
28994 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
28995 handling of multiple abstraction modules.
28996
f56a8756 289972009-08-04 Robert Millan <rmh.grub@aybabtu.com>
28998
28999 Fix a bug resulting in black screen when loading Linux using a
29000 packed video mode.
29001
29002 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29003 function.
29004
29005 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29006 (grub_vbe_bios_getset_dac_palette_width): New function.
29007 (grub_vbe_bios_get_dac_palette_width)
29008 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29009 grub_vbe_bios_getset_dac_palette_width()).
29010
29011 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29012 check for return status.
29013 (grub_vbe_get_video_mode_info): When getting information for a packed
29014 mode (<= 8 bpp), obtain DAC palette width using
29015 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29016 {red,green,blue}_mark_size.
29017
222671b2 290182009-08-04 Felix Zielcke <fzielcke@z-51.de>
29019
ecb1a6d9 29020 * commands/search.c (options): Fix help output to match actual code.
222671b2 29021
f84114f5 290222009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29023
29024 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29025 of homegrown code.
29026
bd288a20 290272009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 29028
29029 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29030 on XFS or ReiserFS.
29031
8aab5e25 290322009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29033
29034 Support Apple partition map with sector size different from 512 bytes.
29035
29036 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29037 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29038 and 'apart.partmap_size'.
29039
6ad6258a 290402009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
290412009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29042
29043 Fix cpuid command.
29044
29045 * commands/i386/cpuid.c (options): New variable.
29046 (grub_cmd_cpuid): Return real error.
29047 (GRUB_MOD_INIT(cpuid)): Declare options.
29048
67459bc6 290492009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29050
29051 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29052 valid.
29053
fbc6ab54 290542009-07-31 Bean <bean123ch@gmail.com>
29055
29056 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29057 log2_inode.
29058 (grub_fshelp_node): Move inode field to the end.
29059 (grub_xfs_data): Remove inode field.
29060 (grub_xfs_inode_block): Calculate inode size using sblock.
29061 (grub_xfs_inode_offset): Likewise.
29062 (grub_xfs_read_inode): Calculate inode size using sblock.
29063 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29064 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29065 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29066 to match inode size.
29067 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29068 not accessible when data is null.
29069 (grub_xfs_open): Likewise.
29070
f45d6cfc 290712009-07-31 Bean <bean123ch@gmail.com>
29072
29073 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29074 Don't change pv->disk if it's already set.
29075
29076 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29077 (grub_raid_register): ... here.
29078 (grub_raid_rescan): Removed.
29079
29080 * include/grub/raid.h (grub_raid_rescan): Removed.
29081
29082 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29083 (fstest): Replace grub_raid_rescan with module fini function followed
29084 by init function.
29085
29086 * util/grub-probe.c: Add include file <grub/raid.h>.
29087 (probe_raid_level): New function.
29088 (probe): Detect abstraction by walking the disk device, support two
29089 level of abstraction (LVM on RAID) when detecting partition map.
29090
24443b5a 290912009-07-31 Pavel Roskin <proski@gnu.org>
29092
29093 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29094 to grub_zalloc(), it was erroneous.
29095 Reported by Bean <bean123ch@gmail.com>
29096
a275d9e7 290972009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29098
29099 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 29100 embedding zone, not only the first one.
a275d9e7 29101
56c5a47f 291022009-07-29 Joe Auricchio <jauricchio@gmail.com>
29103
29104 * term/gfxterm.c (clear_char): New function.
29105 (grub_virtual_screen_setup): Use clear_char.
29106 (scroll_up): Likewise.
29107 (grub_virtual_screen_cls): Likewise.
29108
67bb323a 291092009-07-29 Felix Zielcke <fzielcke@z-51.de>
29110
29111 * util/deviceiter.c (get_acceleraid_disk_name): New static
29112 function.
29113 (grub_util_iterate_devices): Handle Accelraid devices.
29114 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29115
388a7c75 291162009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29117
29118 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29119 separator for the suggested gfxpayload string (';' collides with the
29120 parser and needs escaping).
29121
3bb7abcf 291222009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29123
29124 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29125 Clear direction flag before jumping to OS.
29126 (grub_multiboot2_real_boot): Likewise.
29127
2ddd36d7 291282009-07-28 Felix Zielcke <fzielcke@z-51.de>
29129
29130 * util/i386/pc/grub-install: Fix parsing of --disk-module
29131 option.
29132
c521b62b 291332009-07-28 Felix Zielcke <fzielcke@z-51.de>
29134
29135 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29136 when embedding.
29137
880e0a0c 291382009-07-26 Felix Zielcke <fzielcke@z-51.de>
29139
29140 * util/grub-mkconfig.in (package_version): New variable.
29141 Use it do display the version.
29142
2366e356 291432009-07-25 Felix Zielcke <fzielcke@z-51.de>
29144
29145 * kern/file.c (grub_file_open): Revert to previous check with
29146 grub_errno.
29147
7ad8c80e 291482009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29149
29150 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29151 from help line. It's out of sync with code.
29152
72b9658b 291532009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29154
29155 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29156 entries on failed boot.
29157
77435277 291582009-07-25 Felix Zielcke <fzielcke@z-51.de>
29159
29160 * kern/file.c (grub_file_open): Fix an error check.
29161
fcaa8b21 291622009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29163
35d16c74 29164 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29165 partition map couldn't be identified.
fcaa8b21 29166
48904cd1 291672009-07-23 Pavel Roskin <proski@gnu.org>
29168
ef3c317f 29169 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29170 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29171 case of little endian words becomes just an optimization.
29172 Respect const modifier.
ad8ea1f4 29173 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 29174
48904cd1 29175 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29176 to avoid loss of upper bits if align is unsigned and shorter
29177 than addr.
29178
260c9a89 291792009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29180
29181 UUID support for UFS
29182
29183 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29184 (grub_ufs_uuid): New function.
29185 (grub_ufs_fs): add .uuid
29186
f76ce889 291872009-07-21 Pavel Roskin <proski@gnu.org>
29188
29189 * kern/dl.c (grub_dl_check_header): Make static.
29190
6a6cbcaf 291912009-07-21 Felix Zielcke <fzielcke@z-51.de>
29192
29193 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29194 add drivemap for Vista. It breaks Windows 7.
29195
cffcddb2 291962009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29197
29198 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29199 128 bytes
29200
1ef44b80 292012009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29202
29203 Add BFS support
29204
29205 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29206 (grub_fstest_SOURCES): Likewise.
29207 (pkglib_MODULES): Add befs.mod.
29208 (befs_mod_SOURCES): New variable.
29209 (befs_mod_CFLAGS): Likewise.
29210 (befs_mod_LDFLAGS): Likewise.
29211 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29212 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29213 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29214 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29215 (grub_setup_SOURCES): Likewise.
29216 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29217 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29218 (grub_setup_SOURCES): Likewise.
29219 * fs/befs.c: New file.
29220 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29221 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29222 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29223 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29224 (B_KEY_INDEX_ALIGN): New declaration.
29225 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29226 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29227 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29228 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29229 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29230 (grub_afs_mount) [MODE_BFS]: Likewise.
29231 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29232 (grub_afs_fs): Use GRUB_AFS_FSNAME
29233 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29234 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29235 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29236 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29237
4f253044 292382009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29239
29240 * util/getroot.c (find_root_device): Add support for MacOSX.
29241 * util/hostdisk.c: Likewise.
29242
57a55913 292432009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29244
29245 * font/font.c (find_glyph): Check whether a font is present to avoid
29246 segmentation fault.
75421ca9 29247
292482009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 29249
29250 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29251
e98cd0c2 292522009-07-20 Pavel Roskin <proski@gnu.org>
29253
29254 * configure.ac: Trim excessively wordy excuses.
29255
1d2d169a 292562009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29257
29258 Add symlink, mtime and label support to AtheFS.
29259
29260 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29261 (grub_afs_iterate_dir): Handle symlinks.
29262 (grub_afs_open): Use grub_afs_read_symlink.
29263 (grub_afs_dir): Likewise.
29264 Pass mtime.
29265 (grub_afs_label): New function.
29266 (grub_afs_fs): Add grub_afs_label.
29267 (grub_afs_read_symlink): New function.
29268
186f3189 292692009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29270
29271 Fix AtheFS support.
29272
29273 * fs/afs.c: Fix comments style.
29274 (grub_afs_blockrun): Declare as packed.
29275 (grub_afs_datastream): Likewise.
29276 (grub_afs_bnode): Likewise.
29277 (grub_afs_btree): Likewise.
29278 (grub_afs_sblock): Likewise.
29279 Declare `name' as char.
29280 (grub_afs_inode): Declare as packed.
29281 Change void *vnode to grub_uint32_t unused.
29282 (grub_afs_iterate_dir): Check that key_size is positive.
29283 (grub_afs_mount): Don't read superblock twice.
75421ca9 29284 (grub_afs_dir): Don't free node in case of error,
186f3189 29285 grub_fshelp_find_file already handles this.
29286 (grub_afs_open): Likewise.
29287
5680109e 292882009-07-19 Pavel Roskin <proski@gnu.org>
29289
29290 * Makefile.in: Remove LIBLZO and enable_lzo.
29291 * conf/i386-pc.rmk: Remove lzo support.
29292 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29293 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29294 support.
29295 * kern/i386/pc/lzo1x.S: Remove.
29296 * kern/i386/pc/startup.S: Remove lzo support.
29297 * util/i386/pc/grub-mkimage.c: Likewise.
29298
ac70fa32 292992009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29300
29301 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29302 * fs/xfs.c (grub_xfs_dir): Likewise.
29303 * fs/afs.c (grub_afs_dir): Likewise.
29304 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29305 (grub_iso9660_open): Likewise.
29306 * fs/jfs.c (grub_jfs_open): Likewise.
29307 * fs/ext2.c (grub_ext2_dir): Likewise.
29308 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29309 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 29310
eab58da2 293112009-07-16 Pavel Roskin <proski@gnu.org>
29312
d2838156 29313 * configure.ac: Never add "-c" to CFLAGS.
29314
55c70904 29315 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29316
43e6200c 29317 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29318 grub_cv_cc_efiemu should be used.
29319
ce7a733d 29320 * configure.ac: Typo fixes.
29321
eab58da2 29322 * kern/mm.c (grub_zalloc): New function.
29323 (grub_debug_zalloc): Likewise.
29324 * include/grub/mm.h: Declare grub_zalloc() and
29325 grub_debug_zalloc().
29326 * util/misc.c (grub_zalloc): New function.
29327 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29328 instead of grub_malloc(), remove unneeded initializations.
29329 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29330 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29331 * commands/parttool.c (grub_cmd_parttool): Likewise.
29332 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29333 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29334 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29335 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29336 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29337 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29338 (grub_cmd_efiemu_pnvram): Likewise.
29339 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29340 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29341 (grub_iso9660_iterate_dir): Likewise.
29342 * fs/jfs.c (grub_jfs_opendir): Likewise.
29343 * fs/ntfs.c (list_file): Likewise.
29344 (grub_ntfs_mount): Likewise.
29345 * kern/disk.c (grub_disk_open): Likewise.
29346 * kern/dl.c (grub_dl_load_core): Likewise.
29347 * kern/elf.c (grub_elf_file): Likewise.
29348 * kern/env.c (grub_env_context_open): Likewise.
29349 (grub_env_set): Likewise.
29350 (grub_env_set_data_slot): Likewise.
29351 * kern/file.c (grub_file_open): Likewise.
29352 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29353 * loader/i386/multiboot.c (grub_module): Likewise.
29354 * loader/xnu.c (grub_xnu_create_key): Likewise.
29355 (grub_xnu_create_value): Likewise.
29356 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29357 (read_config_file): Likewise.
29358 * normal/menu_entry.c (make_screen): Likewise.
29359 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29360 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29361 * script/sh/script.c (grub_script_parse): Likewise.
29362 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29363 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29364 * video/readers/png.c (grub_png_output_byte): Likewise.
29365 (grub_video_reader_png): Likewise.
29366
830afef7 293672009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 29368
29369 Enable all targets that can be built by default
29370
830afef7 29371 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 29372 grub-mkfont and grub-fstest if they can be built
29373
ee293aee 293742009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29375
29376 Fix hang and segmentation fault in grub-emu-usb
29377
29378 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29379 * util/usb.c (grub_libusb_devices): likewise
29380 (grub_libusb_init): rename to ...
29381 (GRUB_MOD_INIT (libusb)):...this
29382 (grub_libusb_fini): rename to ..
29383 (GRUB_MOD_FINI (libusb)):...this
29384 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29385 * include/grub/disk.h (grub_raid_init): removed, it's useless
29386 (grub_raid_fini): likewise
29387 (grub_lvm_init): likewise
29388 (grub_lvm_fini): likewise
29389 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29390 by grub_init_all
29391
94414221 293922009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29393
29394 Fix libusb
29395
29396 * Makefile.in (LIBUSB): new macro
29397 * genmk.rb (Utility/print_tail): new method
29398 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29399 (top level): call util.print_tail at the end.
29400
59ade63d 294012009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29402
29403 Make FreeBSD accept zpool.cache
29404
29405 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29406 type is /boot/zfs/zpool.cache
29407
a58da8c7 294082009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29409
29410 Fix 64-bit efiemu
29411
29412 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29413 correct wrong typedef
29414 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29415
20591577 294162009-07-15 Pavel Roskin <proski@gnu.org>
29417
560ca572 29418 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29419 * kern/disk.c (struct grub_disk_cache): Likewise.
29420
e8e8e4fd 29421 * commands/probe.c (options): Typo fix.
29422
fde24e10 29423 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29424 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29425 accordingly.
29426 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29427
379c54c1 29428 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29429 the end of "Error" to make the message more readable.
29430
7bd8f5bf 29431 * boot/i386/pc/boot.S (kernel_segment): Remove.
29432 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29433 for destination.
29434
40b132c5 29435 * boot/i386/pc/boot.S (boot_version): Remove.
29436 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29437 Remove.
29438
20591577 29439 * include/grub/i386/pc/boot.h: Sort all offsets.
29440 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29441 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29442 * boot/i386/pc/boot.S: Assert location of every offset listed in
29443 include/grub/i386/pc/boot.h.
29444
2df32b2c 294452009-07-13 Pavel Roskin <proski@gnu.org>
29446
44b5d879 29447 * include/grub/i386/coreboot/machine.h: Rename
29448 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29449 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29450 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29451
17dc3751 29452 * kern/dl.c: Force native word size to suppress warnings when
29453 compiling grub-emu.
29454
2df32b2c 29455 * kern/device.c (grub_device_iterate): Change struct part_ent to
29456 hold the name, not a pointer to it. Use one grub_malloc() per
29457 partition, not two. Free partition_name if grub_malloc() fails.
29458 Set ents to NULL only before grub_partition_iterate() is called.
29459
75c59f59 294602009-07-11 Bean <bean123ch@gmail.com>
29461
29462 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29463 childname.
29464
0ae1bf88 294652009-07-10 Bean <bean123ch@gmail.com>
294662009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29467
29468 * kern/ieee1275/openfw.c (grub_children_iterate)
29469 (grub_devalias_iterate): Fix size evaluation for property or path
29470 strings, which was broken since r2132.
29471
8279cade 294722009-07-07 Pavel Roskin <proski@gnu.org>
29473
7d8a52d3 29474 * commands/search.c (search_file): Merge into ...
29475 (search_fs): ... this. Accept search type as argument.
29476 (grub_cmd_search): Pass search type to search_fs().
29477
25f9a05a 29478 * include/grub/util/console.h: New file.
29479 * util/console.c: Use it instead of grub/machine/console.h.
29480 * util/grub-emu.c: Likewise.
29481
8279cade 29482 * lib/arg.c (find_long_option): Remove.
29483 (find_long): Add `len' argument, make `s' const char *.
29484 (grub_arg_parse): Parse long options in place, not in a
29485 temporary buffer.
29486
4a11b60f 294872009-07-06 Pavel Roskin <proski@gnu.org>
29488
99f68041 29489 * commands/search.c (search_fs): Fix potential NULL pointer
29490 dereference.
29491
4a11b60f 29492 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29493 function pointer.
29494
e110f4de 294952009-07-06 Daniel Mierswa <impulze@impulze.org>
29496
29497 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29498 comparison.
29499
46eeb6a2 295002009-07-05 Pavel Roskin <proski@gnu.org>
29501
bab74958 29502 * include/grub/i386/linux.h (struct linux_kernel_params):
29503 Restore padding3, it's still needed.
29504
46eeb6a2 29505 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29506 FreeBSD.
29507 * util/osdetect.lua: Likewise.
29508
b4a1dc79 295092009-07-05 Bean <bean123ch@gmail.com>
29510
29511 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29512
29513 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29514 (grub_lua_getenv): Likewise.
29515 (grub_lua_setenv): Likewise.
29516 (save_errno): New function.
29517 (push_result): Likewise.
29518 (grub_lua_enum_device): Likewise.
29519 (grub_lua_enum_file): Likewise.
29520 (grub_lua_file_open): Likewise.
29521 (grub_lua_file_close): Likewise.
29522 (grub_lua_file_seek): Likewise.
29523 (grub_lua_file_read): Likewise.
29524 (grub_lua_file_getline): Likewise.
29525 (grub_lua_file_getsize): Likewise.
29526 (grub_lua_file_getpos): Likewise.
29527 (grub_lua_file_eof): Likewise.
29528 (grub_lua_file_exist): Likewise.
29529 (grub_lua_add_menu): Likewise.
29530
29531 * script/lua/grub_lua.h (isupper): New inline function.
29532 (islower): Likewise.
29533 (ispunct): Likewise.
29534 (isxdigit): Likewise.
29535 (strcspn): Change to normal function.
29536 (strpbkr): New function declaration.
29537 (memchr): Likewise.
29538
29539 * script/lua/grub_main.c (scan_str): New function.
29540 (strcspn): Likewise.
29541 (strpbrk): Likewise.
29542 (memchr): Likewise.
29543
29544 * script/lua/linit.c (lualibs): Enable the string library.
29545
29546 * util/osdetect.lua: New file.
29547
2da92295 295482009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29549
29550 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29551 `capabilities' member.
29552
b2582ec9 295532009-07-02 Pavel Roskin <proski@gnu.org>
29554
29555 * genparttoollist.sh: Add missing newline at the end.
29556
32622956 295572009-07-01 Pavel Roskin <proski@gnu.org>
29558
87a7339e 29559 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29560
d23af54e 29561 * util/hostdisk.c (open_device): Remove `const' from
29562 `sysctl_size', as sysctlbyname() can change it (in this case it
29563 doesn't actually happen).
29564
c94b18a9 29565 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29566 using signed long int constants.
29567
c6cd3ef0 29568 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29569 constant to avoid a warning on FreeBSD.
29570
0df63420 29571 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29572 where it's needed.
29573
999577f1 29574 * Makefile.in: Install include/grub/machine symlink.
29575
6f41557f 29576 * Makefile.in: When installing symlinks, use "cp -fR", which
29577 works on FreeBSD and MacOSX.
29578 From Yves Blusseau <cl7m42e02@sneakemail.com>
29579
c8d22988 29580 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29581 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29582
1b96e952 29583 * util/misc.c: Move grub_reboot() and grub_halt() ...
29584 * util/grub-emu.c: ... here. Make main_env static.
29585 * include/grub/util/misc.h: Remove main_env.
29586
2ef0084d 29587 * kern/mm.c: Use correct format to print size_t.
29588
32622956 29589 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29590 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29591 * kern/powerpc/dl.c: Likewise.
29592 * kern/sparc64/dl.c: Likewise.
29593 * kern/x86_64/dl.c: Likewise.
29594
3f7f0cd0 295952009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29596
29597 Fix grub-emu build on sparc64-ieee1275.
29598
75421ca9 29599 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 29600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29601
211d06b5 296022009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29603
29604 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29605 (grub_reboot, grub_halt): New functions.
29606
29607 * util/i386/pc/misc.c: Delete. Update all users.
29608 * util/sparc64/ieee1275/misc.c: Likewise.
29609 * util/powerpc/ieee1275/misc.c: Likewise.
29610
aaf53e3c 296112009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29612
29613 * conf/i386.rmk (setjmp_mod_SOURCES)
29614 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29615 * conf/common.rmk (setjmp_mod_SOURCES)
29616 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29617 to use $(target_cpu).
29618 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29619 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29620 * conf/powerpc-ieee1275.rmk: Likewise.
29621 * conf/sparc64-ieee1275.rmk: Likewise.
29622
29623 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29624 $(target_cpu) for kern/$(target_cpu)/dl.c.
29625 * conf/i386-efi.rmk: Likewise.
29626 * conf/i386-ieee1275.rmk: Likewise.
29627 * conf/x86_64-efi.rmk: Likewise.
29628 * conf/i386-coreboot.rmk: Likewise.
29629 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29630 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29631 kern/$(target_cpu)/cache.S.
29632 * conf/sparc64-ieee1275.rmk: Likewise.
29633
a337130b 296342009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29635
29636 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29637 type to `grub_uint8_t', and adjust `padding9' accordingly.
29638
c6fe4d53 296392009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29640
b09db61d 29641 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29642
c6fe4d53 29643 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29644 assembly in final jump, using register constraints.
29645
b09db61d 29646 (grub_linux_boot): For text mode, initialize `have_vga' using
29647 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29648
29649 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29650 right before the final jump.
29651
29652 Set `video_mode' to 0x3.
29653
29654 Document initialization of `video_page', `video_mode' and
29655 `video_ega_bx'.
29656
28333ad0 296572009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29658
29659 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29660 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 29661 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 29662
02164e1b 296632009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29664
29665 Fix build on Debian / sparc.
29666
29667 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
29668
18b6c557 296692009-06-28 Pavel Roskin <proski@gnu.org>
29670
85f2aab6 29671 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
29672 fix a warning.
29673
18b6c557 29674 * util/grub.d/10_linux.in: Match SUSE style initrd names.
29675
ad760f81 296762009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29677
29678 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
29679 `err'.
29680
87a4623b 296812009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29682
29683 Revert r2338.
29684
29685 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
29686 file can't be opened. grub_file_open() is already supposed to set
75421ca9 29687 grub_errno / grub_errmsg appropriately.
87a4623b 29688 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29689
8231fb77 296902009-06-27 Pavel Roskin <proski@gnu.org>
296912009-06-27 Robert Millan <rmh.grub@aybabtu.com>
29692
29693 * include/grub/dl.h: Include grub/elf.h.
29694 (struct grub_dl): Add symtab field.
29695 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
29696 GRUB_MODULES_MACHINE_READONLY.
29697 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
29698 of the header for read-only modules.
29699 (grub_dl_unload): Free mod->symtab for read-only modules.
29700 * kern/i386/dl.c: Use mod->symtab.
29701 * kern/powerpc/dl.c: Likewise.
29702 * kern/sparc64/dl.c: Likewise.
29703 * kern/x86_64/dl.c: Likewise.
29704
29705 * conf/i386-qemu.rmk: New file.
29706 * kern/i386/qemu/startup.S: Likewise.
29707 * kern/i386/qemu/mmap.c: Likewise.
29708 * boot/i386/qemu/boot.S: Likewise.
29709 * include/grub/i386/qemu/time.h: Likewise.
29710 * include/grub/i386/qemu/serial.h: Likewise.
29711 * include/grub/i386/qemu/kernel.h: Likewise.
29712 * include/grub/i386/qemu/console.h: Likewise.
29713 * include/grub/i386/qemu/boot.h: Likewise.
29714 * include/grub/i386/qemu/init.h: Likewise.
29715 * include/grub/i386/qemu/machine.h: Likewise.
29716 * include/grub/i386/qemu/loader.h: Likewise.
29717 * include/grub/i386/qemu/memory.h: Likewise.
29718
29719 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
29720 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
29721 [qemu] (pkglib_IMAGES): Add `boot.img'.
29722 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
29723 [qemu] (boot_img_FORMAT): New variables.
29724 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
29725 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
29726 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
29727 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
29728 [qemu] (kernel_img_FORMAT): New variables.
29729
29730 * configure.ac: Recognise `i386-qemu'.
29731
29732 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
29733 (for no compression).
29734 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
29735 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
29736 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
29737 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
29738 ifdefs).
29739
97fe384e 297402009-06-27 Pavel Roskin <proski@gnu.org>
29741
29742 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
29743 read.
29744 * efiemu/prepare32.c: Likewise.
29745 * efiemu/prepare64.c: Likewise.
29746
c402ab17 297472009-06-26 Pavel Roskin <proski@gnu.org>
29748
29749 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
29750 * include/grub/elf.h: Define symbols without "32" or "64" based
29751 on GRUB_TARGET_WORDSIZE.
29752 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
29753 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
29754 ELF definitions.
29755 * efiemu/loadcore64.c: Likewise.
29756 * loader/i386/bsd32.c: Likewise.
29757 * loader/i386/bsd64.c: Likewise.
29758 * kern/dl.c: Remove own ELF definitions.
29759 * util/i386/efi/grub-mkimage.c: Likewise.
29760
9bbdfd4d 297612009-06-23 Robert Millan <rmh.grub@aybabtu.com>
29762
29763 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
29764 segment 0x0 unconditionally, because the reference generated by
29765 GAS is an absolute address.
29766
a42ce6e9 297672009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29768
29769 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
29770 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
29771
c952cf92 297722009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29773
29774 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
29775 indexes. Check for -f explicitly.
cc3752ad 29776 (search_file): Improve error message.
29777 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 29778
132a0a59 297792009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29780
29781 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
29782 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
29783
387a140c 297842009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29785
29786 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
29787 * conf/i386-ieee1275.rmk: Likewise.
29788 * conf/i386-coreboot.rmk: Likewise.
29789
29790 * kern/i386/pc/startup.S (grub_stop): Remove function.
29791 * kern/i386/ieee1275/startup.S: Likewise.
29792 * kern/i386/coreboot/startup.S: Likewise.
29793 * kern/i386/misc.S (grub_stop): New function.
29794
41da9665 297952009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29796
29797 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
29798 * kern/i386/realmode.S (real_to_prot): ... to here.
29799
bf337234 298002009-06-22 Robert Millan <rmh.grub@aybabtu.com>
29801
29802 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
29803 with `kernel.img'.
29804 (kernel_elf_SOURCES): Rename to ...
29805 (kernel_img_SOURCES): ... this.
29806 (kernel_elf_HEADERS): Rename to ...
29807 (kernel_img_HEADERS): ... this. Update all users.
29808 (kernel_elf_ASFLAGS): Rename to ...
29809 (kernel_img_ASFLAGS): ... this.
29810 (kernel_elf_CFLAGS): Rename to ...
29811 (kernel_img_CFLAGS): ... this.
29812 (kernel_elf_LDFLAGS): Rename to ...
29813 (kernel_img_LDFLAGS): ... this.
29814 * conf/i386-coreboot.rmk: Likewise.
29815 * conf/powerpc-ieee1275.rmk: Likewise.
29816
29817 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
29818 with "kernel.img".
29819
f52196ff 298202009-06-21 Pavel Roskin <proski@gnu.org>
29821
c3cee413 29822 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
29823 to match nested functions.
29824 * loader/sparc64/ieee1275/linux.c: Likewise.
29825
f52196ff 29826 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
29827
58750afc 298282009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29829
29830 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
29831 all i386 platforms.
29832
15355c7d 298332009-06-21 Robert Millan <rmh.grub@aybabtu.com>
29834
29835 Fix asm file handling on ELF, and remove workarounds.
29836
29837 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 29838 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 29839 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
29840 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
29841
3f3ec72b 298422009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
29843
29844 Load BSD ELF modules
29845
29846 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
29847 and loader/i386/bsd64.c
29848 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
29849 (FREEBSD_MODTYPE_ELF_MODULE): New definition
29850 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
29851 (grub_freebsd_load_elfmodule32): New declaration
29852 (grub_freebsd_load_elfmoduleobj64): Likewise
29853 (grub_freebsd_load_elf_meta32): Likewise
29854 (grub_freebsd_load_elf_meta64): Likewise
29855 (grub_freebsd_add_meta): Likewise
29856 (grub_freebsd_add_meta_module): Likewise
29857 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
29858 (grub_freebsd_add_meta_module): Likewise and move module-specific
29859 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
29860 (grub_cmd_freebsd): Add elf-kernel specific parts
29861 based on grub_freebsd_add_meta_module
29862 (grub_cmd_freebsd_module): Add type parsing moved from
29863 grub_freebsd_add_meta_module
29864 (grub_cmd_freebsd_module_elf): New function
29865 (cmd_freebsd_module_elf): New variable
29866 (GRUB_MOD_INIT): Register freebsd_module_elf
29867 * loader/i386/bsd32.c: New file
29868 * loader/i386/bsd64.c: Likewise
29869 * loader/i386/bsdXX.c: Likewise
29870 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
29871 (grub_elf64_load): Likewise
29872 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
29873 All users updated
29874 (grub_elf64_load_hook_t): Likewise
29875
0db15301 298762009-06-21 Colin Watson <cjwatson@ubuntu.com>
29877
29878 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
29879 variable.
29880 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
29881 don't write a menu entry for recovery mode.
29882
546796c1 298832009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29884
29885 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
29886 after it's no longer needed.
29887
cd7310d5 298882009-06-20 Robert Millan <rmh.grub@aybabtu.com>
29889
29890 * include/grub/i386/loader.h (grub_linux_prot_size)
29891 (grub_linux_tmp_addr, grub_linux_real_addr)
29892 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
29893 GRUB_MACHINE_PCBIOS.
29894 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
29895 common grub_util_info() call to ...
29896 (generate_image): ... here.
29897 Fix use of uninitialized memory, comparison of signed with
29898 unsigned integers and memory leak.
29899 Remove bogus module address message.
29900
ab32d3b5 299012009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
29902
29903 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
29904 grub_raid_register
29905 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
29906
024ef597 299072009-06-19 Pavel Roskin <proski@gnu.org>
29908
29909 * configure.ac: Remove stray AC_MSG_CHECKING.
29910
3ac72b51 299112009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
29912
29913 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 29914
e14cd814 299152009-06-18 Pavel Roskin <proski@gnu.org>
29916
29917 * conf/common.rmk: Add fs_file.mod.
29918 * disk/fs_file.c: New file.
29919 * include/grub/disk.h (enum grub_disk_dev_id): Add
29920 GRUB_DISK_DEVICE_FILE_ID.
29921
26586d98 299222009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29923
29924 Fix build with Apple's toolchain. Part 2
29925
29926 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
29927 a fake start
29928
26de2bcd 299292009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29930
29931 Fix build with Apple's toolchain. Part 1
29932
29933 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
29934 for long calls
29935 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 29936 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 29937 Apple's toolchain
29938
09b3490b 299392009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
29940
29941 Fix warnings
29942
29943 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
29944 (decomp_block): initialize ch
29945 use grub_memcpy instead of memcpy
29946
c22a006a 299472009-06-17 Pavel Roskin <proski@gnu.org>
29948
d3638678 29949 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
29950 version, use declarations needed to use vga_text as the startup
29951 console.
29952
c22a006a 29953 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
29954 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
29955 the kernel.
29956 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
29957 and grub_at_keyboard_fini(), it's done on module load and
29958 unload.
29959
05b129e0 299602009-06-17 Felix Zielcke <fzielcke@z-51.de>
29961
29962 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
29963 file can't be found.
29964 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
29965
cf24ed9e 299662009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29967
29968 Fix newline handling
29969
29970 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 29971 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 29972 (grub_script_yylex): don't segfault on unterminated script
29973 newline terminates command and variable
29974
74aa8e4b 299752009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
29976
29977 avoid double grub_adjust_range call. Bug reported by David Simner
29978
29979 * kern/disk.c (grub_disk_write): change to raw disk access before
29980 calling disk_read
29981
1bd265f3 299822009-06-17 Colin Watson <cjwatson@ubuntu.com>
29983
29984 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
29985 spaces, for the benefit of help2man.
29986 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29987
a2d08c06 299882009-06-16 Pavel Roskin <proski@gnu.org>
29989
29990 * kern/i386/halt.c: Include grub/machine/init.h.
29991 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
29992
b97bcb19 299932009-06-16 Felix Zielcke <fzielcke@z-51.de>
29994
29995 * util/grub.d/30_os-prober.in: Use ${root} in the generated
29996 drivemap menuentry.
29997
0644f96c 299982009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
29999
30000 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30001 `echo' command.
30002
3ef17a2e 300032009-06-16 Pavel Roskin <proski@gnu.org>
30004
30005 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30006 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30007 save %dx, we only need %dl and we never change it.
30008 * boot/i386/pc/cdboot.S: Don't set the root drive.
30009 * boot/i386/pc/pxeboot.S: Likewise.
30010 * include/grub/i386/pc/boot.h: Remove
30011 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30012 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30013 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30014 * kern/i386/pc/init.c (make_install_device): Remove references
30015 to grub_root_drive.
30016 * kern/i386/pc/startup.S: Likewise.
30017 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30018
693fe637 300192009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30020
30021 xnu_uuid command
30022
30023 * commands/xnu_uuid.c: new file
30024 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30025 (xnu_uuid_mod_SOURCES): new variable
30026 (xnu_uuid_mod_CFLAGS): likewise
30027 (xnu_uuid_mod_LDFLAGS): likewise
30028 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30029 * conf/i386-ieee1275.rmk: likewise
30030 * conf/i386-pc.rmk: likewise
30031 * conf/powerpc-ieee1275.rmk: likewise
30032 * conf/sparc64-ieee1275.rmk: likewise
30033 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30034
c9da87d0 300352009-06-16 Pavel Roskin <proski@gnu.org>
30036
30037 * configure.ac: Avoid '==' in test command, it's not portable.
30038
9c6f4596 300392009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30040
30041 Probe command
30042
30043 * commands/probe.c: new file
30044 * conf/common.rmk (pkglib_MODULES): add probe.mod
30045 (probe_mod_SOURCES): new variable
30046 (probe_mod_CFLAGS): likewise
30047 (probe_mod_LDFLAGS): likewise
30048 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30049 * conf/i386-ieee1275.rmk: likewise
30050 * conf/i386-pc.rmk: likewise
30051 * conf/powerpc-ieee1275.rmk: likewise
30052 * conf/sparc64-ieee1275.rmk: likewise
30053
70b7f9fd 300542009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30055
30056 Fix handling of string like \"hello\" and "a
30057 b"
30058
30059 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30060 (grub_script_yylex): fix parsing of quoting, escaping and newline
30061
71c79a6b 300622009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30063
dd74360c 30064 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 30065 handling
dd74360c 30066
0644f96c 300672009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 30068
30069 * util/grub-mkconfig.in: Fix parsing of --output option.
30070
e40893c3 300712009-06-12 Pavel Roskin <proski@gnu.org>
30072
30073 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30074 genmk.rb don't need to be generated or installed.
30075
3a1acfe2 300762009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30077
30078 * commands/i386/pc/drivemap_int13h.S: add more comments
30079
3a4575d4 300802009-06-11 Pavel Roskin <proski@gnu.org>
30081
0658e928 30082 * Makefile.in (uninstall): Uninstall manuals.
30083
ca0388f0 30084 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30085 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30086 and update-grub_lib in two places.
30087 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30088
e3b27c39 30089 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30090 a compiler warning.
30091
3a4575d4 30092 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30093 `entry_lo' to fix variable shadowing.
30094
af1f4f55 300952009-06-11 Christian Franke <franke@computer.org>
30096
30097 * kern/misc.c (__enable_execute_stack): Add missing return type
30098 to prevent gcc warning.
30099
5225e649 301002009-06-11 Felix Zielcke <fzielcke@z-51.de>
30101
30102 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30103
7d83bd47 301042009-06-11 Pavel Roskin <proski@gnu.org>
30105
c1cb63ba 30106 * Makefile.in: Don't rely on any scripts being executable.
30107 Always use $(SHELL) to run shell scripts.
30108
7d83bd47 30109 * configure.ac: Always define ___main if using -nostdlib. This
30110 fixes tests on Cygwin.
30111
948f48e7 301122009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30113
30114 UDF fix
30115
7d83bd47 30116 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 30117 is in bytes and not in blocks
7d83bd47 30118
8ada9bc1 301192009-06-11 Pavel Roskin <proski@gnu.org>
30120
30121 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30122 warning.
30123
25ad2323 301242009-06-11 Felix Zielcke <fzielcke@z-51.de>
30125
30126 * util/grub.d/30_os-prober.in: Fix a comment. Source
30127 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30128 to set the root device. Place drivemap command in the generated
30129 chain entry.
30130
e65acb0c 301312009-06-11 Pavel Roskin <proski@gnu.org>
30132
30133 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30134 have long been resolved.
30135
f285fe2d 301362009-06-11 Colin Watson <cjwatson@ubuntu.com>
30137
bd47b0b5 30138 * util/grub.d/10_linux.in: Capitalise "Linux".
30139
f285fe2d 30140 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30141
a0c62e4e 301422009-06-11 Pavel Roskin <proski@gnu.org>
30143
b6783cb2 30144 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30145 fix a gcc warning and ensure that the function won't ever exit.
30146
dde032e8 30147 * kern/i386/ieee1275/init.c: Add missing prototype for
30148 grub_stop_floppy().
30149
22cd079d 30150 * loader/ieee1275/multiboot2.c [__i386__]: Include
30151 grub/cpu/multiboot.h.
30152
a0c62e4e 30153 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30154 casts to short - they are not portable and cause warnings. Fix
30155 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30156
63963d17 301572009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30158
30159 Drivemap fixes
30160
30161 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30162 new function
30163 (grub_get_root_biosnumber_saved): new variable
30164 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30165 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 30166 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 30167 %dx after the call if necessary
30168 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30169 (boot_mod_SOURCES): remove
30170 (boot_mod_CFLAGS): remove
30171 (boot_mod_LDFLAGS): remove
30172 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30173 (boot_mod_SOURCES): new variable
30174 (boot_mod_CFLAGS): likewise
30175 (boot_mod_LDFLAGS): likewise
30176 * conf/i386-efi.rmk: likewise
30177 * conf/i386-ieee1275.rmk: likewise
30178 * conf/i386-pc.rmk: likewise
30179 * conf/powerpc-ieee1275.rmk: likewise
30180 * conf/sparc64-ieee1275.rmk: likewise
30181 * conf/x86_64-efi.rmk: likewise
30182 * include/grub/i386/pc/biosnum.h: new file
30183 * lib/i386/pc/biosnum.c: likewise
30184 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30185 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30186 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 30187
33abf7ae 301882009-06-10 Pavel Roskin <proski@gnu.org>
30189
5ac35b35 30190 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30191 Use separate variables. Read only the file size at the end, but
30192 not the checksum that we don't use.
30193
5c5215d5 30194 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30195 Adjust all callers.
30196
27d5fef7 30197 * kern/ieee1275/openfw.c: Remove libc includes.
30198 * kern/ieee1275/cmain.c: Likewise.
30199 * include/grub/ieee1275/ieee1275.h: Likewise.
30200
33abf7ae 30201 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30202 compiler warnings.
30203
19d50c2b 302042009-06-10 Felix Zielcke <fzielcke@z-51.de>
30205
30206 * Makefile.in: Remove all trailing whitespace.
30207 * conf/i386-pc.rmk: Likewise.
30208 * conf/powerpc-ieee1275.rmk: Likewise.
30209 * conf/sparc64-ieee1275.rmk: Likewise.
30210 * docs/grub.texi: Likewise.
30211 * docs/texinfo.tex: Likewise.
30212 * disk/fs_uuid.c: Likewise.
30213 * disk/lvm.c: Likewise.
30214 * disk/scsi.c: Likewise.
30215 * disk/ata.c: Likewise.
30216 * disk/ieee1275/ofdisk.c: Likewise.
30217 * disk/i386/pc/biosdisk.c: Likewise.
30218 * disk/host.c: Likewise.
30219 * disk/raid.c: Likewise.
30220 * disk/efi/efidisk.c: Likewise.
30221 * disk/usbms.c: Likewise.
30222 * disk/memdisk.c: Likewise.
30223 * disk/loopback.c: Likewise.
30224 * kern/powerpc/dl.c: Likewise.
30225 * kern/device.c: Likewise.
30226 * kern/dl.c: Likewise.
30227 * kern/sparc64/dl.c: Likewise.
30228 * kern/ieee1275/ieee1275.c: Likewise.
30229 * kern/term.c: Likewise.
30230 * kern/fs.c: Likewise.
30231 * kern/i386/dl.c: Likewise.
30232 * kern/i386/pc/startup.S: Likewise.
30233 * kern/i386/pc/init.c: Likewise.
30234 * kern/i386/pc/mmap.c: Likewise.
30235 * kern/i386/pc/lzo1x.S: Likewise.
30236 * kern/i386/ieee1275/init.c: Likewise.
30237 * kern/i386/realmode.S: Likewise.
30238 * kern/i386/tsc.c: Likewise.
30239 * kern/partition.c: Likewise.
30240 * kern/corecmd.c: Likewise.
30241 * kern/file.c: Likewise.
30242 * kern/efi/efi.c: Likewise.
30243 * kern/efi/init.c: Likewise.
30244 * kern/efi/mm.c: Likewise.
30245 * kern/main.c: Likewise.
30246 * kern/err.c: Likewise.
30247 * kern/env.c: Likewise.
30248 * kern/disk.c: Likewise.
30249 * kern/generic/millisleep.c: Likewise.
30250 * kern/generic/rtc_get_time_ms.c: Likewise.
30251 * kern/misc.c: Likewise.
30252 * kern/parser.c: Likewise.
30253 * genmk.rb: Likewise.
30254 * configure.ac: Likewise.
30255 * boot/i386/pc/diskboot.S: Likewise.
30256 * boot/i386/pc/pxeboot.S: Likewise.
30257 * boot/i386/pc/boot.S: Likewise.
30258 * boot/i386/pc/lnxboot.S: Likewise.
30259 * boot/i386/pc/cdboot.S: Likewise.
30260 * parttool/pcpart.c: Likewise.
30261 * video/readers/tga.c: Likewise.
30262 * video/video.c: Likewise.
30263 * video/bitmap.c: Likewise.
30264 * lib/envblk.c: Likewise.
30265 * lib/i386/setjmp.S: Likewise.
30266 * fs/xfs.c: Likewise.
30267 * fs/afs.c: Likewise.
30268 * fs/fat.c: Likewise.
30269 * fs/ntfs.c: Likewise.
30270 * fs/udf.c: Likewise.
30271 * fs/affs.c: Likewise.
30272 * fs/iso9660.c: Likewise.
30273 * fs/hfs.c: Likewise.
30274 * fs/fshelp.c: Likewise.
30275 * fs/ext2.c: Likewise.
30276 * fs/jfs.c: Likewise.
30277 * fs/reiserfs.c: Likewise.
30278 * fs/hfsplus.c: Likewise.
30279 * fs/minix.c: Likewise.
30280 * fs/cpio.c: Likewise.
30281 * fs/sfs.c: Likewise.
30282 * fs/ufs.c: Likewise.
30283 * efiemu/prepare.c: Likewise.
30284 * efiemu/loadcore_common.c: Likewise.
30285 * efiemu/runtime/efiemu.sh: Likewise.
30286 * efiemu/runtime/efiemu.S: Likewise.
30287 * efiemu/runtime/efiemu.c: Likewise.
30288 * efiemu/pnvram.c: Likewise.
30289 * efiemu/main.c: Likewise.
30290 * efiemu/i386/pc/cfgtables.c: Likewise.
30291 * efiemu/i386/loadcore64.c: Likewise.
30292 * efiemu/i386/loadcore32.c: Likewise.
30293 * efiemu/loadcore.c: Likewise.
30294 * efiemu/symbols.c: Likewise.
30295 * efiemu/mm.c: Likewise.
30296 * include/grub/autoefi.h: Likewise.
30297 * include/grub/datetime.h: Likewise.
30298 * include/grub/term.h: Likewise.
30299 * include/grub/hfs.h: Likewise.
30300 * include/grub/lvm.h: Likewise.
30301 * include/grub/i386/tsc.h: Likewise.
30302 * include/grub/i386/linux.h: Likewise.
30303 * include/grub/i386/xnu.h: Likewise.
30304 * include/grub/i386/efiemu.h: Likewise.
30305 * include/grub/i386/pc/biosdisk.h: Likewise.
30306 * include/grub/i386/pc/memory.h: Likewise.
30307 * include/grub/i386/pc/vbe.h: Likewise.
30308 * include/grub/parttool.h: Likewise.
30309 * include/grub/video.h: Likewise.
30310 * include/grub/memory.h: Likewise.
30311 * include/grub/fs.h: Likewise.
30312 * include/grub/partition.h: Likewise.
30313 * include/grub/xnu.h: Likewise.
30314 * include/grub/efi/api.h: Likewise.
30315 * include/grub/efi/pe32.h: Likewise.
30316 * include/grub/efi/memory.h: Likewise.
30317 * include/grub/multiboot.h: Likewise.
30318 * include/grub/usbdesc.h: Likewise.
30319 * include/grub/multiboot2.h: Likewise.
30320 * include/grub/acpi.h: Likewise.
30321 * include/grub/efiemu/efiemu.h: Likewise.
30322 * include/grub/disk.h: Likewise.
30323 * include/grub/ieee1275/ieee1275.h: Likewise.
30324 * include/grub/net.h: Likewise.
30325 * include/grub/machoload.h: Likewise.
30326 * include/grub/macho.h: Likewise.
30327 * include/multiboot.h: Likewise.
30328 * genmoddep.awk: Likewise.
30329 * normal/main.c: Likewise.
30330 * normal/menu_entry.c: Likewise.
30331 * normal/menu_viewer.c: Likewise.
30332 * normal/completion.c: Likewise.
30333 * normal/cmdline.c: Likewise.
30334 * normal/misc.c: Likewise.
30335 * normal/datetime.c: Likewise.
30336 * bus/usb/usbtrans.c: Likewise.
30337 * bus/usb/ohci.c: Likewise.
30338 * bus/usb/uhci.c: Likewise.
30339 * bus/usb/usb.c: Likewise.
30340 * mmap/efi/mmap.c: Likewise.
30341 * mmap/i386/pc/mmap_helper.S: Likewise.
30342 * mmap/i386/pc/mmap.c: Likewise.
30343 * mmap/i386/mmap.c: Likewise.
30344 * mmap/i386/uppermem.c: Likewise.
30345 * mmap/mmap.c: Likewise.
30346 * commands/acpi.c: Likewise.
30347 * commands/echo.c: Likewise.
30348 * commands/blocklist.c: Likewise.
30349 * commands/loadenv.c: Likewise.
30350 * commands/usbtest.c: Likewise.
30351 * commands/boot.c: Likewise.
30352 * commands/parttool.c: Likewise.
30353 * commands/search.c: Likewise.
30354 * commands/cat.c: Likewise.
30355 * commands/i386/pc/play.c: Likewise.
30356 * commands/i386/pc/drivemap.c: Likewise.
30357 * commands/i386/pc/vbeinfo.c: Likewise.
30358 * commands/i386/pc/acpi.c: Likewise.
30359 * commands/i386/pc/vbetest.c: Likewise.
30360 * commands/ls.c: Likewise.
30361 * commands/cmp.c: Likewise.
30362 * commands/test.c: Likewise.
30363 * commands/efi/acpi.c: Likewise.
30364 * commands/gptsync.c: Likewise.
30365 * commands/help.c: Likewise.
30366 * partmap/amiga.c: Likewise.
30367 * partmap/apple.c: Likewise.
30368 * partmap/acorn.c: Likewise.
30369 * partmap/pc.c: Likewise.
30370 * partmap/sun.c: Likewise.
30371 * partmap/gpt.c: Likewise.
30372 * script/sh/lexer.c: Likewise.
30373 * script/sh/function.c: Likewise.
30374 * font/font.c: Likewise.
30375 * font/font_cmd.c: Likewise.
30376 * loader/powerpc/ieee1275/linux.c: Likewise.
30377 * loader/efi/chainloader.c: Likewise.
30378 * loader/multiboot_loader.c: Likewise.
30379 * loader/macho.c: Likewise.
30380 * loader/i386/multiboot.c: Likewise.
30381 * loader/i386/linux.c: Likewise.
30382 * loader/i386/pc/linux.c: Likewise.
30383 * loader/i386/pc/multiboot2.c: Likewise.
30384 * loader/i386/pc/chainloader.c: Likewise.
30385 * loader/i386/pc/xnu.c: Likewise.
30386 * loader/i386/bsd_trampoline.S: Likewise.
30387 * loader/i386/efi/linux.c: Likewise.
30388 * loader/i386/multiboot_elfxx.c: Likewise.
30389 * loader/i386/bsd_helper.S: Likewise.
30390 * loader/i386/bsd.c: Likewise.
30391 * loader/i386/linux_trampoline.S: Likewise.
30392 * loader/i386/xnu_helper.S: Likewise.
30393 * loader/i386/xnu.c: Likewise.
30394 * loader/i386/bsd_pagetable.c: Likewise.
30395 * loader/i386/multiboot_helper.S: Likewise.
30396 * loader/xnu.c: Likewise.
30397 * loader/xnu_resume.c: Likewise.
30398 * io/gzio.c: Likewise.
30399 * term/efi/console.c: Likewise.
30400 * term/terminfo.c: Likewise.
30401 * term/ieee1275/ofconsole.c: Likewise.
30402 * term/i386/pc/serial.c: Likewise.
30403 * term/i386/pc/vesafb.c: Likewise.
30404 * term/i386/pc/vga.c: Likewise.
30405 * term/usb_keyboard.c: Likewise.
30406 * term/gfxterm.c: Likewise.
30407 * aclocal.m4: Likewise.
30408 * util/lvm.c: Likewise.
30409 * util/grub.d/30_os-prober.in: Likewise.
30410 * util/grub.d/10_hurd.in: Likewise.
30411 * util/console.c: Likewise.
30412 * util/grub-macho2img.c: Likewise.
30413 * util/grub-probe.c: Likewise.
30414 * util/hostfs.c: Likewise.
30415 * util/i386/pc/grub-mkimage.c: Likewise.
30416 * util/i386/pc/grub-setup.c: Likewise.
30417 * util/i386/efi/grub-mkimage.c: Likewise.
30418 * util/grub-mkconfig.in: Likewise.
30419 * util/raid.c: Likewise.
30420 * util/resolve.c: Likewise.
30421 * util/grub-mkdevicemap.c: Likewise.
30422 * util/grub-emu.c: Likewise.
30423 * util/getroot.c: Likewise.
30424 * util/hostdisk.c: Likewise.
30425 * util/usb.c: Likewise.
30426 * util/grub-editenv.c: Likewise.
30427 * util/misc.c: Likewise.
30428
d2d49665 304292009-06-10 Felix Zielcke <fzielcke@z-51.de>
30430
30431 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30432 `genparttoollist.sh'.
30433 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30434 Add `*.sh' to the list find searches for and change `mdate.sh'
30435 to `mdate-sh'.
30436
fe052e37 304372009-06-10 Pavel Roskin <proski@gnu.org>
30438
2763ac18 30439 * include/grub/multiboot2.h: Provide compatibility defines for
30440 multiboot2.h.
30441 * include/multiboot2.h: Include stdint.h only if needed, using
30442 angle brackets.
30443 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30444 grub/multiboot2.h.
30445 * loader/ieee1275/multiboot2.c: Likewise.
30446 * loader/multiboot2.c: Likewise.
30447 * loader/multiboot_loader.c: Likewise.
30448
437e6adc 30449 * configure.ac: Use -nostdlib when probing for the target. It
30450 should not be required to have libc for the target.
30451
06a6836c 30452 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30453 they fail without libc headers for the target.
30454 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30455 exports.
30456 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30457 preprocessor conditionals.
30458
fe052e37 30459 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30460 build system doesn't need to be aware of the tar.c internals.
30461
afd22553 304622009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 30463
afd22553 30464 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 30465
6b787c4f 304662009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30467
30468 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30469 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30470
304712009-06-09 Felix Zielcke <fzielcke@z-51.de>
30472
30473 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 30474 aren't available if ata.mod gets used.
6b787c4f 30475
473d1e45 304762009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 30477
473d1e45 30478 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 30479 initialising controller.
473d1e45 30480 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 30481
255a27d4 304822009-06-08 Felix Zielcke <fzielcke@z-51.de>
30483
30484 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30485 to choose between ata and biosdisk module on i386-pc.
30486
473d1e45 304872009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 30488
d55842d8 30489 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30490 Subclass and Programming Interface fields in terms of the 3 byte
30491 Class Code register.
30492 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30493
fa5db0b1 30494 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30495 interface is OHCI. Add grub_dprintf for symmetry with
30496 bus/usb/uhci.c.
30497 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30498 interface is UHCI. Add interf variable for programming
30499 interface. Print interface with class/subclass.
30500
c0947beb 30501 * bus/usb/ohci.c: Set interf with correct field.
30502
69da8877 30503 * bus/usb/uhci.c: Remove unneeded doubled lines.
30504 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30505 Remove whitespace inside comment.
30506
9e172e30 305072009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30508
30509 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30510 as fallback an equivalent option without depth.
30511
de65ee2b 305122009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30513
30514 Not fail if unable to retrieve C/H/S on LBA disks
30515
473d1e45 30516 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 30517 if unable to retrieve C/H/S on LBA disks
30518
b57ea2c9 305192009-06-08 Pavel Roskin <proski@gnu.org>
30520
30521 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30522 about aliasing.
30523
af361263 305242009-06-08 Felix Zielcke <fzielcke@z-51.de>
30525
30526 * Makefile.in (uninstall): Remove all $lib_DATA files.
30527
4c9ec6b3 305282009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30529
30530 Bugfix: install on partitionless device
30531
30532 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30533 is a whole disk
30534
e76fc924 305352009-06-08 Felix Zielcke <fzielcke@z-51.de>
30536
30537 * Makefile.in (uninstall): Remove all $include_DATA files.
30538
ba5a0d05 305392009-06-08 Felix Zielcke <fzielcke@z-51.de>
30540
30541 * commands/true.c: New file. Implement the true and false commands.
30542 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30543 (true_mod_SOURCES): New variable.
30544 (true_mod_CFLAGS): Likewise.
30545 (true_mod_LDFLAGS): Likewise.
30546
c8048e32 305472009-06-05 Colin D Bennett <colin@gibibit.com>
30548
30549 Optimized font character lookup using binary search instead of linear
30550 search. Fonts now are required to have the character index ordered by
30551 code point.
30552
30553 * font/font.c (load_font_index): Verify that fonts have ordered
30554 character indices.
30555 (find_glyph): Use binary search instead of linear search to find a
30556 character in a font.
30557
408305be 305582009-06-05 Michael Scherer <misc@mandriva.org>
30559
30560 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30561 uses case sensitive btree.
30562 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30563 only for case insensitive filesystems.
30564
8ee1e0d9 305652009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30566
30567 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30568 * conf/common.rmk (search_mod_CFLAGS): likewise
30569
a9966eb1 305702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30571
473d1e45 30572 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 30573 compensate a compiler bug
30574
9e7100fb 305752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30576
473d1e45 30577 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 30578 instead of '\b'
473d1e45 30579
ede21d71 305802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30581
30582 Definitions for creating asm symbols with Apple's CC
30583
30584 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30585 [APPLE_CC] (VARIABLE): likewise
30586
9dbf7653 305872009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30588
30589 Disable lnxboot.img when compiled
30590 with Apple's CC
30591
30592 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30593 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30594 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30595 [! APPLE_CC] (CODE_LENG): skip
30596 [! APPLE_CC] (setup_sects): likewise
30597 [! APPLE_CC]: skip filling
473d1e45 30598
e93cdc3d 305992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30600
30601 Address in trampolines based on 32-bit registers when compiled
30602 with Apple's CC
30603
473d1e45 30604 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 30605 for addresses
30606 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30607
6c688477 306082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30609
30610 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30611
30612 * kern/misc.c [APPLE_CC] (memcpy): new function
30613 [APPLE_CC] (memmove): likewise
30614 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 30615 (memcpy): define alias conditionally on !APPLE_CC
6c688477 30616 (memset): likewise
30617 (abort): likewise
30618 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30619 APPLE_CC are defined
30620 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30621 (grub_assert_fail): make prototype conditional
30622
e37ffc5c 306232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30624
30625 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30626
473d1e45 30627 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30628 grub-macho2img
e37ffc5c 30629 (CLEANFILES): add grub-macho2img
30630 (grub_macho2img_SOURCES): new variable
30631 * kern/i386/pc/startup.S (bss_start): new variable
30632 (bss_end): likewise
30633 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30634 * util/grub-macho2img.c: new file
30635
cf00df31 306362009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30637
30638 Use objconv when compiling with Apple's CC
30639
30640 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30641 (efiemu64.o): likewise
30642 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30643 when compiling with Apple's CC
30644 (efiemu64_s.o): likewise
30645 * configure.ac: check for objconv when compiling with Apple's CC
30646 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 30647
d119a20c 306482009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30649
30650 Define segment as well as section when compiling with
30651 Apple's CC
30652
30653 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30654 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30655 (efiemu_convert_pointer): likewise
30656 (efiemu_set_virtual_address_map): likewise
30657 (efiemu_convert_pointer): likewise
30658 (efiemu_getcrc32): likewise
30659 (init_crc32_table): likewise
30660 (reflect): likewise
30661 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30662 (GRUB_MOD_DEP): likewise
473d1e45 30663
c8600122 306642009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30665
30666 Allow a compilation without -mcmodel=large
30667
30668 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
30669 when compiled without -mcmodel=large
473d1e45 30670 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 30671 without -mcmodel=large
473d1e45 30672 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 30673 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 30674
e8df1d4e 306752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30676
30677 Remove nested functions in efiemu core
30678
30679 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 30680
cc6c3ac1 306812009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30682
30683 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
30684
30685 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
30686 temporary storage
473d1e45 30687 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
30688 using Apple's CC
cc6c3ac1 30689 (grub_cpu_is_tsc_supported): likewise
30690 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 30691
3e325901 306922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30693
30694 Absolute addressing through constant with Apple's cc
30695
30696 * kern/i386/pc/startup.S: Define necessary constants
30697 and address through it when using ABS with Apple's CC
30698 * boot/i386/pc/diskboot.S: likewise
30699 * boot/i386/pc/boot.S: likewise
30700 * boot/i386/pc/lnxboot.S: likewise
30701 * boot/i386/pc/cdboot.S: likewise
30702 * mmap/i386/pc/mmap_helper.S: likewise
30703 * commands/i386/pc/drivemap_int13h.S: likewise
30704
2b167a72 307052009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30706
30707 Check if compiler is apple cc
30708
30709 * Makefile.in (ASFLAGS): new variable
30710 (TARGET_ASFLAGS): likewise
30711 (TARGET_MODULE_FORMAT): likewise
30712 (TARGET_APPLE_CC): likewise
30713 (OBJCONV): likewise
30714 (TARGET_IMG_CFLAGS): likewise
30715 (TARGET_CPPFLAGS): add includedir
30716 * configure.ac: call grub_apple_cc and grub_apple_target_cc
30717 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
30718 Check for linker script only if compiler isn't Apple's CC
30719 (TARGET_MODULE_FORMAT): set
30720 (TARGET_APPLE_CC): likewise
30721 (TARGET_ASFLAGS): likewise
30722 (ASFLAGS): likewise
30723 Check for objcopy only if compiler isn't Apple's CC
30724 Check for BSS symbol only if compiler isn't Apple's CC
30725 * genmk.rb: adapt nm options if we use Apple's utils
30726 * aclocal.m4 (grub_apple_cc): new test
30727 (grub_apple_target_cc): likewise
473d1e45 30728
fb14123e 307292009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30730
30731 Simplify sed expressions and improve awk
30732
30733 * Makefile.in (install-local): simplify sed expression
30734 * gencmdlist.sh: likewise
30735 * genmoddep.awk: avoid adding module as a dependency of itself
30736
5b889789 307372009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30738
30739 Add missing start symbols
30740
30741 * boot/i386/pc/boot.S: add start
fb14123e 30742 * boot/i386/pc/pxeboot.S: likewise
473d1e45 30743
fd2bf2e3 307442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30745
30746 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 30747
30748 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 30749 (relocate_addresses): consider both r_addend and value at offset
30750 (make_mods_section): zerofill modinfo and header
30751 (convert_elf): write prefix here
473d1e45 30752
5389763d 307532009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30754
30755 Use .asciz instead of .string
30756
30757 * i386/pc/diskboot.S: use .asciz instead of .string
30758 * i386/pc/boot.S: likewise
30759 * include/grub/dl.h (GRUB_MOD_DEP): likewise
30760 (GRUB_MOD_NAME): likewise
473d1e45 30761
3eb5ed4e 307622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30763
30764 gfxpayload support
30765
30766 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
30767 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
30768 (grub_video_setup): remove
30769 (grub_video_set_mode): new prototype
30770 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
30771 (vid_mode): remove
30772 (linux_vesafb_res): compile only on PCBIOS
30773 (grub_linux_boot): support gfxpayload
30774 * loader/i386/pc/xnu.c (video_hook): new function
30775 (grub_xnu_set_video): support gfxpayload
30776 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
30777 (DEFAULT_VIDEO_HEIGHT): likewise
30778 (DEFAULT_VIDEO_FLAGS): likewise
30779 (DEFAULT_VIDEO_MODE): new definition
30780 (video_hook): new function
30781 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 30782 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 30783 loading xnu
30784 * video/video.c (grub_video_setup): removed
473d1e45 30785 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 30786 grub_video_setup
30787
4b0e1143 307882009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30789
30790 Avoid calling biosdisk in drivemap
30791
30792 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
30793 (revparse_biosdisk): likewise
30794 (list_mappings): derive name from id directly
30795 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 30796
fda6cb98 307972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30798
30799 Script fixes
30800
30801 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
30802 (grub_lexer_param): add tokenonhold
30803 (grub_script_create_cmdline): remove cmdline. All callers updated
30804 (grub_script_function_create): make functionname
30805 grub_script_arg. All callers updated
30806 (grub_script_execute_argument_to_string): new prototype
30807 * kern/parser.c (state_transitions): reorder
30808 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 30809 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 30810 make global
30811 (grub_script_execute_cmdline): use new format
30812 * script/sh/function.c (grub_script_function_create): make functionname
30813 grub_script_arg. All callers updated
473d1e45 30814 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 30815 (grub_script_yylex): remove
30816 (grub_script_yylex2): renamed to ...
30817 (grub_script_yylex): ...renamed
30818 parse the expressions like a${b}c
30819 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
30820 (GRUB_PARSER_TOKEN_VAR): remove
30821 (GRUB_PARSER_TOKEN_NAME): likewise
30822 ("if"): declare as typeless
30823 ("while"): likewise
30824 ("function"): likewise
30825 ("else"): likewise
30826 ("then"): likewise
30827 ("fi"): likewise
30828 (text): remove
30829 (argument): likewise
30830 (script): accept empty scripts and make exit on error
30831 (arguments): use GRUB_PARSER_TOKEN_ARG
30832 (function): likewise
30833 (command): move error handling to script
30834 (menuentry): move grub_script_lexer_ref before
473d1e45 30835 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 30836 argument. All callers updated
30837
f4448a07 308382009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30839
30840 Prevent GRUB from probing floppies during boot.
30841
30842 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
30843 * commands/search.c (options): Add --no-floppy.
30844 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
30845 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
30846 --no-floppy when searching for UUIDs.
30847
2bf5885a 308482009-06-04 Robert Millan <rmh.grub@aybabtu.com>
30849
30850 Simplify the code duplication in commands/search.c.
30851
30852 * commands/search.c (search_label, search_fs_uuid): Merge into ...
30853 (search_fs): ... this. Update all users.
30854
f6fd460a 308552009-06-03 Felix Zielcke <fzielcke@z-51.de>
30856
30857 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
30858
cbb3c83e 308592009-05-28 Pavel Roskin <proski@gnu.org>
30860
57788cfd 30861 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
30862 Remove the original symlink explicitly.
30863
cbb3c83e 30864 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
30865 just one slash. That's how grub_fshelp_find_file() does it.
30866
cd0d5e30 308672009-05-26 Pavel Roskin <proski@gnu.org>
30868
f0f8bbe2 30869 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
30870 to `str'.
30871
cd0d5e30 30872 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
30873 possibly unused.
30874
8c2cab51 308752009-05-25 Christian Franke <franke@computer.org>
30876
30877 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
30878 register.
30879 (grub_atapi_identify): Add wait after drive select.
30880 (grub_ata_identify): Do more strict status register check before
30881 calling grub_atapi_identify (). Suppress error message if status
30882 register is 0x00 after command failure. Add status register
30883 check after PIO read to avoid bogus identify due to stuck DRQ.
30884 Thanks to Pavel Roskin for testing.
30885 (grub_device_initialize): Remove unsafe status register check.
30886 Thanks to 'phcoder' for problem report and patch.
30887 Prevent sign extension in debug message.
30888
230c0ad6 308892009-05-23 Colin D Bennett <colin@gibibit.com>
30890
30891 Cleaned up `include/grub/normal.h'. Grouped prototypes by
30892 definition file, and functions defined in `normal/menu.c' have had
30893 their prototypes moved to `include/grub/menu.h' for consistency.
30894
30895 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
30896 from normal.h.
30897 (grub_menu_get_entry): Likewise.
30898 (grub_menu_get_timeout): Likewise.
30899 (grub_menu_set_timeout): Likewise.
30900 (grub_menu_execute_entry): Likewise.
30901 (grub_menu_execute_with_fallback): Likewise.
30902 (grub_menu_entry_run): Likewise.
30903
30904 * include/grub/normal.h: Re-ordered and grouped function
30905 prototypes by file that the function is defined in.
30906 (grub_menu_execute_callback): Removed; moved to menu.h.
30907 (grub_menu_get_entry): Likewise.
30908 (grub_menu_get_timeout): Likewise.
30909 (grub_menu_set_timeout): Likewise.
30910 (grub_menu_execute_entry): Likewise.
30911 (grub_menu_execute_with_fallback): Likewise.
30912 (grub_menu_entry_run): Likewise.
30913 (grub_menu_addentry): Renamed from this ...
30914 (grub_normal_add_menu_entry): ... to this.
30915
30916 * normal/main.c (grub_menu_addentry): Renamed from this ...
30917 (grub_normal_add_menu_entry): ... to this.
30918
30919 * script/sh/execute.c (grub_script_execute_menuentry): Update
30920 reference to renamed grub_menu_addentry function.
30921
861f03a5 309222009-05-23 Felix Zielcke <fzielcke@z-51.de>
30923
30924 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
30925
96b1619a 309262009-05-22 Pavel Roskin <proski@gnu.org>
30927
bf6a5fb2 30928 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
30929 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
30930 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
30931 compiling for the i386 targets, but not for the utilities.
30932
96b1619a 30933 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
30934 to grub_uint8_t.
30935 (grub_root_drive): Likewise.
30936 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
30937 remove alignment.
30938 (grub_root_drive): Change size to byte.
30939 (grub_start_addr): Remove.
30940 (grub_end_addr): Likewise.
30941 (grub_apm_bios_info): Likewise.
30942
b729776b 309432009-05-21 Felix Zielcke <fzielcke@z-51.de>
30944
30945 * normal/i386: Remove.
30946 * normal/powerpc: Likewise.
30947 * normal/sparc64: Likewise.
30948 * normal/x86_64: Likewise.
30949
0a15ce80 309502009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
30951
30952 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 30953 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 30954 * loader/i386/xnu_helper.S: Likewise
d6da58e6 30955
33db9015 309562009-05-18 Colin D Bennett <colin@gibibit.com>
30957
d6da58e6 30958 Display error messages when parsing a Lua statement fails.
30959 Previously, executing a syntactically invalid statement like
30960 ")foo" or "bar;" would silently fail.
33db9015 30961
30962 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 30963 (grub_lua_parse_line): Improved reporting of Lua parser and
30964 execution errors.
33db9015 30965
46422c89 309662009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30967
30968 Remove -Werror which causes build to fail on some systems
30969
30970 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
30971 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
30972 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 30973
22f53a96 309742009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
30975
30976 trampoline for linux on 64-bit platform
30977
18f547ad 30978 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
30979 loader/i386/efi/linux_trampoline.S
30980 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 30981 declaration
d6da58e6 30982 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
30983 here
22f53a96 30984 * loader/i386/linux_trampoline.S: moved here
d6da58e6 30985 * loader/i386/efi/linux.c (allocate_pages): reserve space for
30986 trampoline
22f53a96 30987 (jumpvector): removed
30988 (grub_linux_trampoline_start): new declaration
30989 (grub_linux_trampoline_end): likewise
30990 (grub_linux_boot): use trampoline when on 64-bit platform
30991 * loader/i386/linux.c: likewise
30992
cb5a0f40 309932009-05-16 Pavel Roskin <proski@gnu.org>
30994
30995 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
30996 const to avoid a warning.
30997 (grub_lua_setenv): Likewise.
30998 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
30999 lmsg to fix a warning.
31000
334f2c28 310012009-05-16 Felix Zielcke <fzielcke@z-51.de>
31002
31003 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 31004 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31005 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31006 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31007 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31008 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31009 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31010 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 31011
59e5d3ec 310122009-05-16 Felix Zielcke <fzielcke@z-51.de>
31013
31014 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31015
9d87a1ba 310162009-05-16 Bean <bean123ch@gmail.com>
31017
31018 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31019 (lua_mod_SOURCES): New variable.
31020 (lua_mod_CFLAGS): Likewise.
31021 (lua_mod_LDFLAGS): Likewise.
31022
31023 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31024 (setjmp_mod_SOURCES): New variable.
31025 (setjmp_mod_CFLAGS): Likewise.
31026 (setjmp_LDFLAGS): Likewise.
31027
31028 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31029 (setjmp_mod_SOURCES): New variable.
31030 (setjmp_mod_CFLAGS): Likewise.
31031 (setjmp_LDFLAGS): Likewise.
31032
31033 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31034 (setjmp_mod_SOURCES): New variable.
31035 (setjmp_mod_CFLAGS): Likewise.
31036 (setjmp_LDFLAGS): Likewise.
31037
31038 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31039 (setjmp_mod_SOURCES): New variable.
31040 (setjmp_mod_CFLAGS): Likewise.
31041 (setjmp_LDFLAGS): Likewise.
31042
31043 * normal/i386/setjmp.S: Moved from here ...
31044 * lib/i386/setjmp.S: ... Moved here
31045 * normal/x86_64/setjmp.S: Moved from here ...
31046 * lib/x86_64/setjmp.S: ... Moved here
31047 * normal/powerpc/setjmp.S: Moved from here ...
31048 * lib/powerpc/setjmp.S: ... Moved here
31049 * normal/sparc64/setjmp.S: Moved from here ...
31050 * lib/sparc64/setjmp.S: ... Moved here
31051
31052 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31053 returns_twice in mingw.
31054
31055 * script/lua/grub_lib.c: New file.
31056 * script/lua/grub_lib.h: Likewise.
31057 * script/lua/grub_lua.h: Likewise.
31058 * script/lua/grub_main.c: Likewise.
31059 * script/lua/lapi.c: Likewise.
31060 * script/lua/lapi.h: Likewise.
31061 * script/lua/lauxlib.c: Likewise.
31062 * script/lua/lauxlib.h: Likewise.
31063 * script/lua/lbaselib.c: Likewise.
31064 * script/lua/lcode.c: Likewise.
31065 * script/lua/lcode.h: Likewise.
31066 * script/lua/ldblib.c: Likewise.
31067 * script/lua/ldebug.c: Likewise.
31068 * script/lua/ldebug.h: Likewise.
31069 * script/lua/ldo.c: Likewise.
31070 * script/lua/ldo.h: Likewise.
31071 * script/lua/ldump.c: Likewise.
31072 * script/lua/lfunc.c: Likewise.
31073 * script/lua/lfunc.h: Likewise.
31074 * script/lua/lgc.c: Likewise.
31075 * script/lua/lgc.h: Likewise.
31076 * script/lua/linit.c: Likewise.
31077 * script/lua/liolib.c: Likewise.
31078 * script/lua/llex.c: Likewise.
31079 * script/lua/llex.h: Likewise.
31080 * script/lua/llimits.h: Likewise.
31081 * script/lua/lmathlib.c: Likewise.
31082 * script/lua/lmem.c: Likewise.
31083 * script/lua/lmem.h: Likewise.
31084 * script/lua/loadlib.c: Likewise.
31085 * script/lua/lobject.c: Likewise.
31086 * script/lua/lobject.h: Likewise.
31087 * script/lua/lopcodes.c: Likewise.
31088 * script/lua/lopcodes.h: Likewise.
31089 * script/lua/loslib.c: Likewise.
31090 * script/lua/lparser.c: Likewise.
31091 * script/lua/lparser.h: Likewise.
31092 * script/lua/lstate.c: Likewise.
31093 * script/lua/lstate.h: Likewise.
31094 * script/lua/lstring.c: Likewise.
31095 * script/lua/lstring.h: Likewise.
31096 * script/lua/lstrlib.c: Likewise.
31097 * script/lua/ltable.c: Likewise.
31098 * script/lua/ltable.h: Likewise.
31099 * script/lua/ltablib.c: Likewise.
31100 * script/lua/ltm.c: Likewise.
31101 * script/lua/ltm.h: Likewise.
31102 * script/lua/lua.h: Likewise.
31103 * script/lua/luaconf.h: Likewise.
31104 * script/lua/lualib.h: Likewise.
31105 * script/lua/lundump.c: Likewise.
31106 * script/lua/lundump.h: Likewise.
31107 * script/lua/lvm.c: Likewise.
31108 * script/lua/lvm.h: Likewise.
31109 * script/lua/lzio.c: Likewise.
31110 * script/lua/lzio.h: Likewise.
31111
5e898c9d 311122009-05-16 Bean <bean123ch@gmail.com>
31113
31114 * include/grub/kernel.h (grub_module_header_types): Add type
31115 OBJ_TYPE_CONFIG.
31116
31117 * kern/main.c (grub_load_config): New function.
31118 (grub_main): Call grub_load_config to read boot config.
31119
31120 * grub-mkimage (generate_image): New parameter config_path.
31121 (options): New option --config.
31122 (main): Parse --config option, and pass it to generate_image.
31123
cf353a47 311242009-05-14 Christian Franke <franke@computer.org>
31125
31126 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31127 This fixes build on Cygwin.
31128
3834887f 311292009-05-14 Pavel Roskin <proski@gnu.org>
31130
31131 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31132 jump. This saves two bytes, so the typical case of 2 swapped
31133 drives would fit 32 bytes.
31134
8090fc01 311352009-05-13 Pavel Roskin <proski@gnu.org>
31136
ac963883 31137 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31138 grub_uint32_t to avoid a warning.
31139
8090fc01 31140 * loader/i386/linux.c (allocate_pages): When assigning
31141 real_mode_mem, cast through grub_size_t to fix a warning. The
31142 code already makes sure that the value would fit a pointer.
31143 (grub_linux_setup_video): Cast render_target->data to
31144 grub_size_t to fix a warning.
31145
18f547ad 311462009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 31147
31148 * commands/i386/pc/drivemap.c: New file - implement drivemap
31149 command.
31150 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31151 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31152
6f6a8b28 311532009-05-13 Pavel Roskin <proski@gnu.org>
31154
31155 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31156 embedding_area_exists.
31157
15fbf4c4 311582009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31159
31160 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31161 it easier to understand / work with.
59978c8a 31162 Improve warning messages for cases where there's no embedding area,
31163 or when it is too small (or core.img too large).
15fbf4c4 31164
238e871f 311652009-05-13 Pavel Roskin <proski@gnu.org>
31166
0ab3a9a4 31167 * loader/i386/pc/multiboot2.c: Add necessary includes for
31168 grub_multiboot2_real_boot().
31169
a2c8c5f8 31170 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31171 PX record is always little-endian. We only need the lower 2
31172 bytes of the mode.
31173
faec96af 31174 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31175 facilitate code reuse.
31176 (grub_cpio_mount): Use "struct head", not a char buffer. This
31177 fixes a warning reported by gcc 4.4.
31178
238e871f 31179 * kernel/disk.c (grub_disk_read): Use void pointer for the
31180 buffer.
31181 (grub_disk_write): Use const void pointer for the buffer.
31182 Adjust all callers. Remove unnecessary casts.
31183
901d2f0c 311842009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31185
31186 * util/i386/pc/grub-install.in: Update copyright year.
31187
18f547ad 311882009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 31189
31190 gptsync
31191
31192 * commands/gptsync.c: new file
31193 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31194 (gptsync_mod_SOURCES): new variable
31195 (gptsync_mod_CFLAGS): likewise
31196 (gptsync_mod_LDFLAGS): likewise
18f547ad 31197 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 31198 new definition
31199 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31200 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31201 * conf/i386-ieee1275.rmk: likewise
31202 * conf/i386-pc.rmk: likewise
31203 * conf/powerpc-ieee1275.rmk: likewise
31204
b4ba690a 312052009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31206
31207 Fixed grub-emu
31208
31209 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31210 (grub_dl_ref): likewise
31211
317e1a44 312122009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31213
31214 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31215 split in two functions (one for msdos and one for gpt).
31216
041b8094 312172009-05-08 Pavel Roskin <proski@gnu.org>
31218
752473c2 31219 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31220 not modified.
31221
041b8094 31222 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31223 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31224 Initialize them with -1. Add sanity check for bad1. Eliminate
31225 nerr variable.
31226
172800ce 312272009-05-08 David S. Miller <davem@davemloft.net>
31228
31229 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31230
29aa5e81 312312009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31232
31233 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 31234 existence.
29aa5e81 31235
96613b62 312362009-05-05 Felix Zielcke <fzielcke@z-51.de>
31237
31238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 31239 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 31240
eef73c8a 312412009-05-05 David S. Miller <davem@davemloft.net>
31242
31243 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31244
119494b5 312452009-05-05 Pavel Roskin <proski@gnu.org>
31246
31247 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31248 of grub_dl_ref() and grub_dl_unref().
31249 * commands/parttool.c: Remove preprocessor conditionals around
31250 grub_dl_ref() and grub_dl_unref().
31251 * fs/affs.c: Likewise.
31252 * fs/afs.c: Likewise.
31253 * fs/cpio.c: Likewise.
31254 * fs/ext2.c: Likewise.
31255 * fs/fat.c: Likewise.
31256 * fs/hfs.c: Likewise.
31257 * fs/hfsplus.c: Likewise.
31258 * fs/iso9660.c: Likewise.
31259 * fs/jfs.c: Likewise.
31260 * fs/minix.c: Likewise.
31261 * fs/ntfs.c: Likewise.
31262 * fs/reiserfs.c: Likewise.
31263 * fs/sfs.c: Likewise.
31264 * fs/udf.c: Likewise.
31265 * fs/ufs.c: Likewise.
31266 * fs/xfs.c: Likewise.
31267 * include/grub/dl.h: Likewise.
31268 * loader/xnu.c: Likewise.
31269
de5fd76e 312702009-05-04 Pavel Roskin <proski@gnu.org>
31271
31272 * commands/acpi.c: Remove unused variable my_mod.
31273 * partmap/amiga.c: Likewise.
31274 * partmap/apple.c: Likewise.
31275 * partmap/gpt.c: Likewise.
31276 * partmap/pc.c: Likewise.
31277 * partmap/sun.c: Likewise.
31278 * term/gfxterm.c: Likewise.
31279 * term/i386/pc/vesafb.c: Likewise.
31280 * term/i386/pc/vga.c: Likewise.
31281
983598ad 312822009-05-04 David S. Miller <davem@davemloft.net>
31283
31284 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31285 pointer args to grub_ieee1275_get_property().
31286
8aadec43 31287 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31288
9554b15e 31289 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31290 devices, and do not traverse down under controller nodes.
31291
67e23c90 31292 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31293 (grub_ofdisk_open): Use it to un-escape "," characters.
31294 * kern/disk.c (find_part_sep): New.
31295 (grub_disk_open): Use it to find the first non-escaped ','
31296 character in the disk name.
31297 * util/ieee1275/devicemap.c (escape_of_path): New.
31298 (grub_util_emit_devicemap_entry): Use it.
31299 * util/sparc64/ieee1275/grub-install.in: Update script to
31300 strip partition specifiers properly by not triggering on
31301 '\' escaped ',' characters.
31302
74bfdd2f 313032009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31304
31305 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31306 to 0x300.
31307 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31308 resolutions.
31309 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31310 on documentation from Wikipedia).
31311
4241d2b1 313122009-05-04 Pavel Roskin <proski@gnu.org>
31313
31314 * disk/ata.c: Spelling fixes.
31315 * disk/raid.c: Likewise.
31316 * disk/usbms.c: Likewise.
31317 * disk/dmraid_nvidia.c: Likewise.
31318 * kern/ieee1275/openfw.c: Likewise.
31319 * kern/ieee1275/init.c: Likewise.
31320 * kern/ieee1275/cmain.c: Likewise.
31321 * boot/i386/pc/cdboot.S: Likewise.
31322 * video/readers/png.c: Likewise.
31323 * video/i386/pc/vbe.c: Likewise.
31324 * fs/udf.c: Likewise.
31325 * fs/hfs.c: Likewise.
31326 * fs/reiserfs.c: Likewise.
31327 * efiemu/runtime/efiemu.c: Likewise.
31328 * efiemu/main.c: Likewise.
31329 * efiemu/mm.c: Likewise.
31330 * include/grub/elf.h: Likewise.
31331 * include/grub/xnu.h: Likewise.
31332 * include/grub/usbdesc.h: Likewise.
31333 * include/grub/usb.h: Likewise.
31334 * include/grub/script_sh.h: Likewise.
31335 * include/grub/lib/LzmaEnc.h: Likewise.
31336 * include/grub/efiemu/efiemu.h: Likewise.
31337 * include/grub/command.h: Likewise.
31338 * normal/menu.c: Likewise.
31339 * normal/main.c: Likewise.
31340 * normal/datetime.c: Likewise.
31341 * bus/usb/uhci.c: Likewise.
31342 * mmap/i386/uppermem.c: Likewise.
31343 * mmap/mmap.c: Likewise.
31344 * commands/acpi.c: Likewise.
31345 * commands/test.c: Likewise.
31346 * partmap/apple.c: Likewise.
31347 * font/font.c: Likewise.
31348 * loader/sparc64/ieee1275/linux.c: Likewise.
31349 * loader/macho.c: Likewise.
31350 * loader/i386/bsd_trampoline.S: Likewise.
31351 * loader/i386/bsd.c: Likewise.
31352 * loader/xnu.c: Likewise.
31353 * term/i386/pc/vesafb.c: Likewise.
31354 * term/usb_keyboard.c: Likewise.
31355 * util/resolve.c: Likewise.
31356 * util/getroot.c: Likewise.
31357
0cfc0083 313582009-05-04 Felix Zielcke <fzielcke@z-51.de>
31359
31360 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31361
7c1d00cd 313622009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31363
31364 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31365 build error.
31366
b01f0548 313672009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31368
31369 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31370 parameter only available on BIOS.
31371
ecc3eb22 313722009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31373
31374 Removed wrong semicolon in declaration
31375
31376 * grub/misc.h (grub_dprintf): remove semicolon
31377
112972a9 313782009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31379
31380 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31381 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31382 is done by grub_cmd_linux() now).
31383 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31384 restore video to text mode.
31385 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31386 indicates lack of "vga=" parameter. "vga=0" is mapped to
31387 `GRUB_LINUX_VID_MODE_NORMAL'.
31388
afd5c115 313892009-05-04 Felix Zielcke <fzielcke@z-51.de>
31390
31391 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31392 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31393 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 31394 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 31395 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31396 `grub_script.tab.c'.
31397
31398 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31399 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31400 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31401 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31402 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31403
faa517ce 31404 * Makefile.in: Remove duplicated 2008 in Copyright line.
31405
ae0c0bdc 314062009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31407
473d1e45 31408 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 31409 unconditionally.
31410 * include/grub/util/misc.h (grub_util_warn): New declaration.
31411
31412 * util/i386/pc/grub-install.in: Understand --force and pass it down
31413 to grub-setup.
31414
31415 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31416 down to setup().
31417 (setup): Improve error messages and add warnings when requested to
31418 install in odd layouts. Refuse to install using blocklists unless
31419 --force was set.
31420
18f547ad 314212009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 31422
31423 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31424
6d260daa 314252009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31426
31427 Updated copyright year
31428
31429 * fs/hfsplus.c: updated copyright year
18f547ad 31430
69f853f8 314312009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31432
31433 HFS+ UUID
31434
18f547ad 31435 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 31436 in the space previously used by unused3
31437 (grub_hfsplus_uuid): new function
31438 (grub_hfsplus_fs): added uuid field
31439
4c402e73 314402009-05-03 Pavel Roskin <proski@gnu.org>
31441
31442 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31443 suppress warnings. It's no longer needed.
31444 * disk/host.c: Likewise.
31445 * disk/ata_pthru.c: Likewise.
31446 * disk/loopback.c: Likewise.
31447 * hook/datehook.c: Likewise.
31448 * parttool/pcpart.c: Likewise.
31449 * fs/i386/pc/pxe.c: Likewise.
31450 * fs/ntfscomp.c: Likewise.
31451 * efiemu/main.c: Likewise.
31452 * mmap/mmap.c: Likewise.
31453 * commands/crc.c: Likewise.
31454 * commands/hexdump.c: Likewise.
31455 * commands/hdparm.c: Likewise.
31456 * commands/acpi.c: Likewise.
31457 * commands/echo.c: Likewise.
31458 * commands/minicmd.c: Likewise.
31459 * commands/blocklist.c: Likewise.
31460 * commands/memrw.c: Likewise.
31461 * commands/loadenv.c: Likewise.
31462 * commands/usbtest.c: Likewise.
31463 * commands/lsmmap.c: Likewise.
31464 * commands/boot.c: Likewise.
31465 * commands/parttool.c: Likewise.
31466 * commands/configfile.c: Likewise.
31467 * commands/search.c: Likewise.
31468 * commands/ieee1275/suspend.c: Likewise.
31469 * commands/cat.c: Likewise.
31470 * commands/i386/pc/pxecmd.c: Likewise.
31471 * commands/i386/pc/play.c: Likewise.
31472 * commands/i386/pc/halt.c: Likewise.
31473 * commands/i386/pc/vbeinfo.c: Likewise.
31474 * commands/i386/pc/vbetest.c: Likewise.
31475 * commands/lspci.c: Likewise.
31476 * commands/date.c: Likewise.
31477 * commands/handler.c: Likewise.
31478 * commands/ls.c: Likewise.
31479 * commands/test.c: Likewise.
31480 * commands/cmp.c: Likewise.
31481 * commands/efi/loadbios.c: Likewise.
31482 * commands/efi/fixvideo.c: Likewise.
31483 * commands/halt.c: Likewise.
31484 * commands/help.c: Likewise.
31485 * commands/reboot.c: Likewise.
31486 * hello/hello.c: Likewise.
31487 * script/sh/main.c: Likewise.
31488 * loader/xnu.c: Likewise.
31489 * term/terminfo.c: Likewise.
31490 * term/i386/pc/serial.c: Likewise.
31491 * term/usb_keyboard.c: Likewise.
31492
515b5079 314932009-05-03 David S. Miller <davem@davemloft.net>
31494
31495 * normal/menu.c: Include grub/parser.h
31496
dfc31a22 314972009-05-03 Pavel Roskin <proski@gnu.org>
31498
2fee74f1 31499 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31500 not char*.
31501 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31502 Suggested by Javier Martín <lordhabbit@gmail.com>
31503
dfc31a22 31504 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31505 efiemu??.o doesn't exist.
31506 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31507 copying.
31508
18f547ad 315092009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 31510
31511 FreeBSD 64-bit support
31512
18f547ad 31513 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 31514 and loader/i386/bsd_trampoline.S
31515 (bsd_mod_ASFLAGS): new variable
31516 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31517 (FREEBSD_MODTYPE_KERNEL64): likewise
31518 (grub_bsd64_trampoline_start): likewise
31519 (grub_bsd64_trampoline_end): likewise
31520 (grub_bsd64_trampoline_selfjump): likewise
31521 (grub_bsd64_trampoline_gdt): likewise
31522 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31523 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31524 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31525 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 31526 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 31527 of "attrib" member
31528 * loader/i386/bsd_pagetable.c: new file
31529 * loader/i386/bsd_trampoline.S: likewise
31530 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31531 (ALIGN_VAR): likewise
31532 (entry_hi): new variable
31533 (kern_end_mdofs): likewise
31534 (is_64bit): likewise
31535 (grub_freebsd_add_meta): use ALIGN_VAR
31536 (grub_e820_mmap): new declaration
31537 (grub_freebsd_add_mmap): new function
31538 (grub_freebsd_add_meta_module): support 64 bit kernels
31539 (grub_freebsd_list_modules): use ALIGN_VAR
31540 (gdt_descriptor): new declaration
31541 (grub_freebsd_boot): support 64 bit kernels
31542 (grub_bsd_elf64_hook): new function
31543 (grub_bsd_load_elf): support elf64
31544
038c5720 315452009-05-03 Bean <bean123ch@gmail.com>
31546
31547 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31548 after we get the result of if statement.
31549
fc45fb58 315502009-05-03 Bean <bean123ch@gmail.com>
31551
31552 * Makefile.in (enable_efiemu): New variable.
31553
31554 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31555 set.
31556 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31557 path.
31558 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31559 path, add -mno-red-zone option.
31560 (efiemu64_s.o): Likewise.
31561 (efiemu64.o): Use macro $^ for source file.
31562
31563 * configure.ac (--enable-efiemu): New option.
31564
bbee0f2b 315652009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31566
31567 xnu support
31568
31569 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31570 (pkglib_MODULES): add xnu.mod
31571 (xnu_mod_SOURCES): new variable
31572 (xnu_mod_CFLAGS): likewise
31573 (xnu_mod_LDFLAGS): likewise
31574 (xnu_mod_ASFLAGS): likewise
31575 * conf/i386-pc.rmk: likewise
31576 * conf/x86_64-efi.rmk: likewise
7dd4a573 31577 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 31578 new declaration
31579 * include/grub/i386/macho.h: new file
31580 * include/grub/i386/xnu.h: likewise
31581 * include/grub/macho.h: likewise
31582 * include/grub/machoload.h: likewise
31583 * include/grub/x86_64/macho.h: likewise
31584 * include/grub/x86_64/xnu.h: likewise
31585 * include/grub/xnu.h: likewise
31586 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31587 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31588 * loader/i386/efi/xnu.c: new file
31589 * loader/i386/pc/xnu.c: likewise
31590 * loader/i386/xnu.c: likewise
31591 * loader/i386/xnu_helper.S: likewise
31592 * loader/macho.c: likewise
31593 * loader/xnu.c: likewise
31594 * loader/xnu_resume.c: likewise
31595 * util/grub-dumpdevtree: likewise
31596 * include/grub/i386/pit.h: include grub/err.h
31597 (grub_pit_wait): export
31598 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 31599
5caf964d 316002009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31601
31602 Efiemu
7dd4a573 31603
5caf964d 31604 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 31605 _linux_efi, linux_efi.
31606 new files in grub-emu
5caf964d 31607 new targets efiemu32.o and efiemu64.o
31608 * loader/linux_normal_efiemu.c: likewise
31609 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 31610 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 31611 files to copy
31612 * include/grub/autoefi.h: new file
7dd4a573 31613 * include/grub/i386/efiemu.h: likewise
5caf964d 31614 * include/grub/i386/pc/efiemu.h: likewise
31615 * include/grub/efi/api.h: add LL suffix when necessary
31616 new definitions relating to tables
31617 * include/grub/efiemu/efiemu.h: new file
31618 * include/grub/efiemu/runtime.h: likewise
31619 * efiemu/prepare.c: likewise
31620 * efiemu/loadcore_common.c: likewise
31621 * efiemu/loadcore64.c: likewise
31622 * efiemu/runtime/efiemu.sh: likewise
31623 * efiemu/runtime/efiemu.S: likewise
31624 * efiemu/runtime/efiemu.c: likewise
31625 * efiemu/runtime/config.h: likewise
31626 * efiemu/prepare32.c: likewise
31627 * efiemu/main.c: likewise
31628 * efiemu/modules/pnvram.c: likewise
31629 * efiemu/modules/i386: likewise
31630 * efiemu/modules/i386/pc: likewise
31631 * efiemu/modules/acpi.c: likewise
31632 * efiemu/i386/pc/cfgtables.c: likewise
31633 * efiemu/i386/loadcore64.c: likewise
31634 * efiemu/i386/loadcore32.c: likewise
31635 * efiemu/prepare64.c: likewise
31636 * efiemu/loadcore.c: likewise
31637 * efiemu/symbols.c: likewise
31638 * efiemu/mm.c: likewise
31639 * efiemu/loadcore32.c: likewise
7dd4a573 31640
316412009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 31642
31643 ACPI spoofing
31644
31645 * commands/acpi.c: new file
31646 * commands/i386/pc/acpi.c: likewise
31647 * commands/efi/acpi.c: likewise
31648 * include/grub/acpi.h: likewise
31649 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31650 (acpi_mod_SOURCES): new variable
31651 (acpi_mod_CFLAGS): likewise
31652 (acpi_mod_LDFLAGS): likewise
31653 * conf/i386-efi.rmk: likewise
31654 * conf/x86_64-efi.rmk: likewise
31655
7dd4a573 316562009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 31657
31658 Missing part from mmap patch
31659
31660 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31661 (grub_mmap_unregister)
31662 (grub_mmap_free_and_unregister): use grub_mmap_register
31663
7dd4a573 316642009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 31665
31666 Mmap services
31667
31668 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
31669 * loader/i386/linux.c (find_mmap_size): likewise
31670 (allocate_pages): likewise
31671 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
31672 (grub_fill_multiboot_mmap): likewise
31673 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
31674 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
31675 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
31676 (OPENBSD_MMAP_RESERVED): likewise
31677 * include/grub/i386/pc/memory.h: include grub/memory.h
31678 (grub_lower_mem): removed
31679 (grub_upper_mem): likewise
31680 (GRUB_MACHINE_MEMORY_ACPI): new definition
31681 (GRUB_MACHINE_MEMORY_NVS): likewise
31682 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
31683 (GRUB_MACHINE_MEMORY_HOLE): likewise
31684 (grub_machine_mmap_register): likewise
31685 (grub_machine_mmap_unregister): likewise
31686 (grub_machine_get_upper): likewise
31687 (grub_machine_get_lower): likewise
31688 (grub_machine_get_post64): likewise
31689 * include/grub/i386/efi/memory.h: new file
31690 * include/grub/x86_64/efi/memory.h: likewise
31691 * include/grub/efi/memory.h: likewise
31692 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
31693 (mmap_mod_SOURCES): new variable
31694 (mmap_mod_LDFLAGS): likewise
31695 (mmap_mod_ASFLAGS): likewise
31696 * conf/i386-coreboot.rmk: likewise
31697 * conf/i386-ieee1275.rmk: likewise
31698 * conf/i386-efi.rmk: likewise
31699 * conf/x86_64-efi.rmk: likewise
31700 * include/grub/types.h (UINT_TO_PTR): new macro
31701 (PTR_TO_UINT32): likewise
31702 (PTR_TO_UINT64): likewise
31703 * include/grub/memory.h: new file
31704 * mmap/i386/pc/mmap.c: likewise
31705 * mmap/i386/pc/mmap_helper.S: likewise
31706 * mmap/i386/uppermem.c: likewise
31707 * mmap/mmap.c: likewise
31708 * mmap/efi/mmap.c: likewise
7dd4a573 31709 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 31710 grub_upper_mem
31711 * kern/i386/pc/init.c (grub_lower_mem): removed variable
31712 (grub_upper_mem): likewise
31713 (grub_machine_init): don't use grub_upper_mem,
31714 make grub_lower_mem local
31715 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
31716 grub_mmap_iterate and grub_mmap_get_upper
31717 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
31718
d558e6b5 317192009-05-02 Bean <bean123ch@gmail.com>
31720
31721 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
31722 script/sh/parser.y.
31723 (pkglib_MODULES): Add normal.mod and sh.mod.
31724 (normal_SOURCES): New variable.
31725 (normal_mod_CFLAGS): Likewise.
31726 (normal_mod_LDFLAGS): Likewise.
31727 (sh_mod_SOURCES): Likewise.
31728 (sh_mod_CFLAGS): Likewise.
31729 (sh_mod_LDFLAGS): Likewise.
31730
31731 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
31732 script/sh/lexer.c_DEPENDENCIES.
31733 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
31734 kern/rescue_reader.c and kern/rescue_parser.c.
31735 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
31736 (grub_emu_SOURCES): Change source files.
31737 (pkglib_MODULES): Remove normal.mod.
31738 (normal_SOURCES): Removed.
31739 (normal_mod_CFLAGS): Likewise.
31740 (normal_mod_LDFLAGS): Likewise.
31741 * conf/i386-coreboot.rmk: Likewise.
31742 * conf/i386-efi.rmk: Likewise.
31743 * conf/i386-ieee1276.rmk: Likewise.
31744 * conf/powerpc-ieee1275.rmk: Likewise.
31745 * conf/sparc64-ieee1275.rmk: Likewise.
31746 * conf/x86_64-efi.rmk: Likewise.
31747
31748 * include/grub/command.h (grub_command_execute): New inline function.
31749
31750 * include/grub/menu.h (grub_menu_entry): Removed commands field.
31751
31752 * include/grub/normal.h: Remove <grub/setjmp.h>.
31753 (grub_fs_module_list): Moved to normal/autofs.c.
31754 (grub_exit_env): Removed.
31755 (grub_command_execute): Likewise.
31756 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
31757 parameter script.
31758 (read_command_list): New function declaration.
31759 (read_fs_list): Likewise.
31760
31761 * include/parser.h: Include <grub/reader.h>.
31762 (grub_parser_split_cmdline): Change type of getline parameter.
31763 (grub_parser): New structure.
31764 (grub_parser_class): New variable.
31765 (grub_parser_execute): New function declaration.
31766 (grub_register_rescue_parser): Likewise.
31767 (grub_parser_register): New inline function.
31768 (grub_parser_unregister): Likewise.
31769 (grub_parser_get_current): Likewise.
31770 (grub_parser_set_current): Likewise.
31771
31772 * include/grub/reader.h: New file.
31773 * kern/reader.c: Likewise.
31774 * kern/rescue_parser.c: Likewise.
31775 * kern/rescue_reader.c: Likewise.
31776 * normal/autofs.c: Likewise.
31777 * normal/dyncmd.c: Likewise.
31778
31779 * include/grub/rescue.h: Removed.
31780 * normal/command.h: Likewise.
31781
31782 * include/grub/script.h: Moved to ...
31783 * include/grub/script_sh.h: ... Moved here.
31784 * normal/execute.c: Moved to ...
31785 * script/sh/execute.c: ... Moved here.
31786 * normal/function.c: Moved to ...
31787 * script/sh/function.c: ... Moved here.
31788 * normal/lexer.c: Moved to ...
31789 * script/sh/lexer.c: ... Moved here.
31790 * normal/parser.y: Moved to ...
31791 * script/sh/parser.y: ... Moved here.
31792 * normal/script.c: Moved to ...
31793 * script/sh/script.c: ... Moved here.
31794
31795 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
31796 <grub/reader.h>.
31797 (grub_exit_env): Removed.
31798 (fs_module_list): Moved to normal/autofs.c.
31799 (grub_file_getline): Don't handle comment here.
31800 (free_menu): Skip removed field entry->commands.
31801 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
31802 script parameter.
31803 (read_config_file): Removed nested parameter, change getline function.
31804 (grub_enter_normal_mode): Removed.
31805 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
31806 (read_command_list): Likewise.
31807 (autoload_fs_module): Moved to normal/autofs.c.
31808 (read_fs_list): Likewise.
31809 (reader_nested): New variable.
31810 (grub_normal_execute): Run parser.sh to switch to sh parser.
31811 (grub_cmd_rescue): Removed.
31812 (cmd_normal): Removed.
31813 (grub_cmd_normal): Unregister itself at the beginning. Don't register
31814 rescue command.
31815 (grub_cmdline_run): New function.
31816 (grub_normal_reader_init): Likewise.
31817 (grub_normal_read_line): Likewise.
31818 (grub_env_write_pager): Likewise.
31819 (cmdline): New variable.
31820 (grub_normal_reader): Likewise.
31821 (GRUB_MOD_INIT): Register normal reader and set as current, register
31822 pager hook, register normal command with grub_register_command_prio,
31823 so that it won't show up in command.lst.
31824 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
31825 grub_fs_autoload_hook.
31826
31827 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
31828 (grub_menu_execute_entry): Replace grub_script_execute with
31829 grub_parser_execute, change parameter to grub_command_execute.
31830
31831 * normal/menu_text.c: Remove <grub/script.h>.
31832
31833 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
31834 and <grub/parser.h>.
31835 (run): Change editor_getline to use new parser interface. Change
31836 parameter to grub_command_execute.
31837
31838 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
31839 <grub/reader.h> and <grub/parser.h>.
31840 (grub_load_normal_mode): Execute normal command.
31841 (grub_main): Call grub_register_core_commands,
31842 grub_register_rescue_parser and grub_register_rescue_reader, use
31843 grub_reader_loop to enter input loop.
31844
7dd4a573 31845 * kern/parser.c (grub_parser_split_cmdline): Change type of
31846 getline parameter.
d558e6b5 31847 (grub_parser_class): New variable.
31848 (grub_parser_execute): New function.
31849
31850 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
31851 * loader/multiboot2.c: Likewise.
31852 * loader/sparc64/ieee1275/linux.c: Likewise.
31853
31854 * util/grub-emu.c (read_command_list): New dummy function.
31855
18db813d 318562009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31857
31858 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
31859 count to 16 for CCISS and IDA.
31860
6c67de15 318612009-05-02 Robert Millan <rmh.grub@aybabtu.com>
31862
31863 * normal/menu_text.c (grub_wait_after_message): Print a newline
31864 after waiting for user input.
31865
31866 * loader/i386/linux.c: Include `<grub/normal.h>'.
31867 (grub_cmd_linux): Improve the error message about `ask' mode, by
31868 waiting for user input so it's not missed (we can do this, since
31869 user requested interaction).
31870
d9dc87b0 318712009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31872
31873 Added missing lst to grub-mkrescue
31874
31875 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
31876 and ${input_dir}/parttool.lst
31877
ac8a2baa 318782009-04-30 David S. Miller <davem@davemloft.net>
31879
ad22a610 31880 * util/hostdisk.c (device_is_wholedisk): New function.
31881 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
31882 zero only if device_is_wholedisk() returns true.
31883
6966215d 31884 * util/hostdisk.c (convert_system_partition_to_system_disk):
31885 Handle virtual disk devices named /dev/vdiskX as found on sparc
31886 and powerpc.
31887
ac8a2baa 31888 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
31889 lettered partition specifier is found, convert to numbered.
31890
979b4fb4 318912009-04-29 David S. Miller <davem@davemloft.net>
31892
e2bf39b2 31893 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
31894 * include/grub/sparc64/ieee1275/memory.h: Likewise.
31895
3c64e104 31896 * normal/command.c: Add missing newline at end of file.
31897
979b4fb4 31898 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
31899 warnings.
31900 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
31901 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
31902 grub_ofdisk_read): Likewise, and deal similarly with the fact that
31903 ihandles have a 32-bit type but need to be stored in a "void *".
31904
136d9f82 319052009-04-28 Pavel Roskin <proski@gnu.org>
31906
9459c306 31907 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
31908 not disk. Adjust all dependencies.
2e08a26a 31909 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 31910 grub_disk_close().
31911
136d9f82 31912 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
31913 parent's partition, don't copy it by reference, as it gets freed
31914 on close.
31915
7dd4a573 319162009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 31917
31918 Preboot hooks support
31919
31920 * commands/boot.c (struct grub_preboot_t): new declaration
31921 (preboots_head): new variable
31922 (preboots_tail): likewise
31923 (grub_loader_register_preboot_hook): new function
31924 (grub_loader_unregister_preboot_hook): likewise
31925 (grub_loader_set): launch preboot hooks
31926 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
31927 (grub_loader_register_preboot_hook): new declaration
31928 (grub_loader_unregister_preboot_hook): likewise
31929
5af922b5 319302009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
31931
31932 Warning fix
31933
7dd4a573 31934 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 31935 calling grub_dprintf
31936
a5562c30 319372009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
31938
31939 Bug and warning fixes
31940
7dd4a573 31941 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 31942 declaration
31943 * commands/test.c (test_parse): fixed bug with file tests and corrected
31944 declaration of find_file
31945
4006f85c 319462009-04-26 Pavel Roskin <proski@gnu.org>
31947
31948 * Makefile.in: Don't install empty manual pages if help2man is
31949 missing. Use help2man option for output, not shell redirection.
31950
5c77c3de 319512009-04-26 David S. Miller <davem@davemloft.net>
31952
31953 * util/grub-mkdevicemap.c (make_device_map): Add missing
31954 NESTED_FUNC_ATTR to process_device().
31955
033b10a8 319562009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31957
31958 Test command
31959
31960 * commands/test.c: rewritten to use bash-like test
31961
e4343593 319622009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
31963
31964 Parttool autoloading and improvements
31965
7dd4a573 31966 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 31967 (parttool.lst): new target
31968 * genmk.rb: generate parttool-*
31969 (CLEANFILES): add #{parttool}
31970 (PARTTOOLFILES): new variable
31971 * genparttoollist.sh: new file
7dd4a573 31972 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 31973 (grub_pcpart_type): likewise
31974 * commands/parttool.c (helpmsg): new variable
31975 (grub_cmd_parttool): output help if not enough arguments are supplied
31976 autoload modules
31977 (GRUB_MOD_INIT(parttool)): use helpmsg
31978
0d312500 319792009-04-24 David S. Miller <davem@davemloft.net>
31980
7dd4a573 31981 Avoiding opening same device multiple times in device iterator.
0d312500 31982
31983 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 31984 and use it to build a list of partitions in iterate_disk() and
0d312500 31985 iterate_partition().
31986
ac20caff 31987 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
31988 on disk->data.
31989
0dcf7495 31990 * disk/ieee1275/nand.c (grub_nand_iterate): Return
31991 grub_devalias_iterate() result instead of unconditional 0.
31992 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
31993 Also, capture hook return value, either directly or via
31994 grub_children_iterate(), and propagate to caller.
31995 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
31996 grub_children_iterate): Return value is now 'int' instead of
31997 'grub_err_t'.
31998 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
31999 like a proper iterator, stopping when hooks return non-zero.
32000 (grub_devalias_iterate): Likewise.
32001
c8c08833 320022009-04-23 David S. Miller <davem@davemloft.net>
32003
32004 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32005
f01005a8 320062009-04-22 David S. Miller <davem@davemloft.net>
32007
32008 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32009 is larger than address_cells, use that value for address_cells too.
32010
4e8269da 32011 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32012 IEEE1275_MAX_PATH_LEN): Define.
32013 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32014 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32015 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32016 'devtype'. Explicitly NULL terminate devalias expansion.
32017
a1447506 32018 * util/sparc64/ieee1275/misc.c: New file.
32019 * util/sparc64/ieee1275/grub-setup.c: New file.
32020 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32021 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32022 * util/sparc64/ieee1275/grub-install.in: New file.
32023 * util/ieee1275/ofpath.c: New file.
32024 * util/ieee1275/devicemap.c: New file.
32025 * util/devicemap.c: New file.
32026 * util/deviceiter.c: New file.
32027 * kern/sparc64/ieee1275/init.c: New file.
32028 * include/grub/util/ofpath.h: New file.
32029 * include/grub/util/deviceiter.h: New file.
32030 * util/grub-mkdevicemap.c: Include deviceiter.h.
32031 Implement using grub_util_emit_devicemap_entry and
32032 grub_util_iterate_devices.
32033 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32034 util/devicemap.c into grub-mkdevicemap
32035 * conf/i386-efi.rmk: Likewise.
32036 * conf/i386-ieee1275.rmk: Likewise.
32037 * conf/i386-pc.rmk: Likewise.
32038 * conf/powerpc-ieee1275.rmk: Likewise.
32039 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32040 images and installation utilities. Build kernel as image
32041 instead of as elf binary. Use common rules as much as possible.
32042
7dd4a573 320432009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 32044
32045 Correct GPT definition
32046
7dd4a573 32047 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 32048 of "attrib" member
32049
c6c5219f 320502009-04-19 Felix Zielcke <fzielcke@z-51.de>
32051
32052 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32053
0552ff9f 320542009-04-19 David S. Miller <davem@davemloft.net>
32055
32056 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32057 (grub_rescue_cmd_linux): Rename to...
32058 (grub_cmd_linux): and fix prototype.
32059 (grub_rescue_cmd_initrd): Rename to...
32060 (grub_cmd_initrd): and fix prototype.
32061 (cmd_linux, cmd_initrd): New.
32062 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32063 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32064
d1a282fc 320652009-04-17 Pavel Roskin <proski@gnu.org>
32066
07c5039f 32067 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32068 format.
32069 (grub_ohci_transfer): Likewise.
32070
b012002d 32071 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32072
1bc09c35 32073 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32074 return without a value. Fix inconsistent indentation.
32075
e0ff9126 32076 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32077 match struct grub_fs.
32078
d1a282fc 32079 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32080 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32081 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32082 * commands/lspci.c (grub_lspci_iter): Likewise.
32083
a96df3f2 320842009-04-16 Bean <bean123ch@gmail.com>
32085
32086 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32087 value.
32088
41bb0fe9 320892009-04-15 Pavel Roskin <proski@gnu.org>
32090
32091 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32092 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32093 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32094 definitions.
32095
596c6970 320962009-04-15 Felix Zielcke <fzielcke@z-51.de>
32097
32098 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 32099 that no multiple data or metadata areas are supported and `Unknown
596c6970 32100 metadata header'.
32101
7dd4a573 321022009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 32103
32104 Move loader out of the kernel
32105
32106 * kern/loader.c: moved to ...
32107 * commands/boot.c: ... moved here
32108 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32109 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32110 * include/grub/kernel.h (grub_machine_fini): export
32111 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32112 (grub_loader_set): likewise
32113 (grub_loader_unset): likewise
32114 (grub_loader_boot): likewise
32115 * conf/common.rmk: new module boot.mod
32116 (pkglib_MODULES): add boot.mod
32117 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32118 (grub_emu_SOURCES): likewise
32119 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32120 (grub_emu_SOURCES): likewise
32121 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32122 (grub_emu_SOURCES): likewise
32123 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32124 (grub_emu_SOURCES): likewise
32125 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32126 (grub_emu_SOURCES): likewise
7dd4a573 32127 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32128 (grub_emu_SOURCES): likewise
0d5d5653 32129 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 32130 (grub_emu_SOURCES): likewise
0d5d5653 32131
7dd4a573 321322009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 32133
32134 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 32135
5999d619 32136 * kern/misc.c (grub_itoa): Removed function
32137 (grub_ltoa): likewise
32138 (grub_vsprintf): use grub_lltoa
32139
7dd4a573 321402009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 32141
32142 Restore grub-emu
32143
32144 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32145 * conf/i386-coreboot.rmk: likewise
32146 * conf/i386-ieee1275.rmk: likewise
32147 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32148
20318222 321492009-04-15 Felix Zielcke <fzielcke@z-51.de>
32150
32151 * INSTALL: Add that `./autogen.sh' needs to be run before
32152 `./configure.'.
32153
d05f0df3 321542009-04-14 Bean <bean123ch@gmail.com>
32155
32156 * Makefile.in (pkglib_DATA): Add handler.lst.
32157 (handler.lst): New rule.
32158
32159 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32160 * conf/i386-coreboot.rmk: Likewise.
32161 * conf/i386-ieee1275.rmk: Likewise.
32162 * conf/i386-efi.rmk: Likewise.
32163 * conf/x86_64-efi.rmk: Likewise.
32164 * conf/powerpc-ieee1275.rmk: Likewise.
32165 * conf/sparc64-ieee1275.rmk: Likewise.
32166
32167 * genhandlerlist.sh: New file.
32168
32169 * genmk.rb: Add rules to generate handler.lst.
32170
32171 * include/grub/normal.h (grub_file_getline): New function definition.
32172 (read_handler_list): Likewise.
32173 (free_handler_list): Likewise.
32174
32175 * include/grub/term.h (grub_term_register_input): Add name parameter
32176 for auto generation of handler.lst.
32177 (grub_term_register_output): Likewise.
32178
32179 * normal/handler.c: New file.
32180
32181 * normal/main.c (get_line): Renamed to grub_file_getline.
32182 (read_config_file): Use the newly renamed grub_file_getline.
32183 (read_command_list): Likewise.
32184 (read_fs_list): Likewise.
32185 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32186 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32187
32188 * term/efi/console.c (grub_console_init): Add name parameter for auto
32189 generation of handler.lst.
32190 * term/gfxterm.c: Likewise.
32191 * term/i386/pc/at_keyboard.c: Likewise.
32192 * term/i386/pc/console.c: Likewise.
32193 * term/i386/pc/serial.c: Likewise.
32194 * term/i386/pc/vesafb.c: Likewise.
32195 * term/i386/pc/vga.c: Likewise.
32196 * term/i386/pc/vga_text.c: Likewise.
32197 * term/ieee1275/ofconsole.c: Likewise.
32198 * term/usb_keyboard.c: Likewise.
32199
33c846be 322002009-04-14 Bean <bean123ch@gmail.com>
32201
32202 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32203 properly with null character.
32204
4484e01e 322052009-04-14 Felix Zielcke <fzielcke@z-51.de>
32206
32207 * configure: Remove.
32208 * config.h.in: Likewise.
f93d668e 32209 * stamp-h.in: Likewise.
4484e01e 32210 * DISTLIST: Likewise.
32211 * conf/common.mk: Likewise.
32212 * conf/i386-coreboot.mk: Likewise.
32213 * conf/i386-efi.mk: Likewise.
32214 * conf/i386-ieee1275.mk: Likewise.
32215 * conf/i386.mk: Likewise.
32216 * conf/i386-pc.mk: Likewise.
32217 * conf/powerpc-ieee1275.mk: Likewise.
32218 * conf/sparc64-ieee1275.mk: Likewise.
32219 * conf/x86_64-efi.mk: Likewise.
32220
32221 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32222 develop on GRUB.
32223
7dd4a573 322242009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 32225 David S. Miller <davem@davemloft.net>
32226
32227 * util/hostdisk.c (make_device_name): Fix buffer length
32228 calculations.
32229
e25b5a8c 322302009-04-14 Felix Zielcke <fzielcke@z-51.de>
32231
32232 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32233 <sys/param.h> and <sys/sysctl.h>.
32234 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32235 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32236 opening the device and reset them afterwards.
32237
1f1f580c 322382009-04-13 Pavel Roskin <proski@gnu.org>
32239
32240 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32241 Reported by John Stanley <jpsinthemix@verizon.net>
32242
7ebc2d6b 322432009-04-13 Robert Millan <rmh@aybabtu.com>
32244
32245 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 32246 that name for menuentries when appropriate.
7ebc2d6b 32247
d8ba3667 322482009-04-13 Felix Zielcke <fzielcke@z-51.de>
32249
32250 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32251
cba416eb 322522009-04-13 Robert Millan <rmh@aybabtu.com>
32253
32254 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32255 to Linux, simply abort telling the user it's no longer supported.
32256
a547a745 322572009-04-13 Felix Zielcke <fzielcke@z-51.de>
32258
32259 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 32260 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 32261 `freebsd_loadenv' only when devices.hints exist.
32262
232a769c 322632009-04-13 Pavel Roskin <proski@gnu.org>
32264
32265 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32266
c3012039 322672009-04-13 Felix Zielcke <fzielcke@z-51.de>
32268
32269 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32270 partition number.
32271 (grub_drive): Likewise.
32272
234022fe 322732009-04-13 David S. Miller <davem@davemloft.net>
32274
32275 * kern/sparc64/ieee1275/ieee1275.c: New file.
32276 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32277 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32278 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32279 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32280 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32281 grub_ieee1275_alloc_physmem): Declare new exported functions.
32282
d8e1836c 32283 * include/grub/sparc64/ieee1275/loader.h: New file.
32284 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32285 * include/grub/sparc64/kernel.h: Likewise.
32286 * loader/sparc64/ieee1275/linux.c: Likewise.
32287
96bd81ec 32288 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32289 (grub_fstest_SOURCES): Likewise.
32290
6a4737e5 32291 * util/hostdisk.c (make_device_name): Do not make any assumptions
32292 about the length of drive names.
32293
1d7a72fd 32294 * kern/dl.c (grub_dl_load_file): Close file immediately when
32295 we are done using it.
32296
56bc2471 322972009-04-12 David S. Miller <davem@davemloft.net>
32298
32299 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32300 values. Noticed by Pavel Roskin.
32301
df38d0bb 32302 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32303 target compiler.
7dd4a573 32304
e382e93a 32305 * genmk.rb: Add more flexible image type specification, also
32306 pass --strip-unneeded to objcopy.
32307 * conf/i386-pc.rmk: Use *_FORMAT.
32308 * conf/i386-pc.mk: Rebuilt.
32309
f5dbbca9 32310 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32311 (OFDISK_HASH_SZ): Define.
32312 (ofdisk_hash): New hash table.
32313 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32314 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32315 instead of device phandle which is not unique.
32316
91c88b12 32317 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32318 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32319 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32320 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32321 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32322 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32323 GRUB_KERNEL_MACHINE_DATA_END): Define.
32324 (grub_kernel_image_size, grub_total_module_size): Declare.
32325
5b5d4aa5 323262009-04-12 Pavel Roskin <proski@gnu.org>
32327
7dd4a573 32328 * configure.ac: Change the logic when we check for target tools.
32329 Do it when the target is specified and it's different from the
32330 specified value of the host.
5b5d4aa5 32331
c91e1793 323322009-04-11 Felix Zielcke <fzielcke@z-51.de>
32333
32334 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32335 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32336 GNU/kFreeBSD. Check if a device is a character device. Use
32337 DIOCGMEDIASIZE to get the size.
32338 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32339 support for GNU/kFreeBSD.
32340 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32341 is a character device instead of a block device. Add support for
32342 FreeBSD device names.
32343
32344 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32345 is a character device instead of a block device.
32346
32347 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32348 is a character device instead of a block device.
32349
b1ac8644 323502009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32351
32352 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32353 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32354 FreeBSD. Check if a device is a character device. Use
32355 DIOCGMEDIASIZE to get the size.
32356 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32357 support for FreeBSD.
32358 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32359 is a character device instead of a block device. Add support for
32360 FreeBSD device names.
32361
32362 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32363 a character device instead of a block device.
32364 (grub_util_check_char_device): New function.
32365
32366 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32367 a character device instead of a block device.
32368
32369 * include/grub/util/getroot.h (grub_util_check_char_device): New
32370 prototype.
32371
a3f7515a 323722009-04-11 David S. Miller <davem@davemloft.net>
32373
32374 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32375 static libgcc.
32376 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32377 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32378 function, if present.
32379 (__bswapdi2): Likewise.
32380
0d44993d 32381 * include/grub/sparc64/ieee1275/boot.h: New file.
32382 * boot/sparc64/ieee1275/boot.S: Likewise.
32383 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32384
ed3d2bc2 32385 * kern/misc.c (grub_ltoa): New function.
32386 (grub_vsprintf): Use it to format 'long' integers.
32387
d3bfb59c 323882009-04-10 David S. Miller <davem@davemloft.net>
32389
32390 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32391 slots are of type grub_ieee1275_cell_t.
32392 (grub_nand_read): Likewise.
32393 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32394 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32395 macros are used to compare values in arg/ret block of the call.
32396 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32397 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32398 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32399 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32400 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32401 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32402 grub_ieee1275_close, grub_ieee1275_set_property,
32403 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32404 grub_ieee1275_cell_t.
32405 * kern/ieee1275/openfw.c (grub_map): Likewise.
32406 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32407 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32408
450e2238 32409 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32410 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32411 (grub_devalias_iterate): Likewise.
32412
7dd4a573 324132009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 32414
32415 UFS improvements
32416
32417 * fs/ufs.c (INODE_NBLOCKS): new definition
32418 (struct grub_ufs_dirent): added fields for non-BSD dirents
32419 (grub_ufs_get_file_block): fixed double indirect handling
32420 (grub_ufs_lookup_symlink): use more robust way to determine whether
32421 symlink is inline
32422 (grub_ufs_find_file): support for non-BSD dirents
32423 (grub_ufs_dir): support for non-BSD dirents
32424
e7e6862a 324252009-04-10 Bean <bean123ch@gnail.com>
32426
32427 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32428 attribute, otherwise the size would be wrong for i386 platform.
32429
32430 * include/grub/pci.h (grub_pci_read_word): New inline function.
32431 (grub_pci_read_byte): Likewise.
32432 (grub_pci_write): Likewise.
32433 (grub_pci_write_word): Likewise.
32434 (grub_pci_write_byte): Likewise.
32435
32436 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32437
32438 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32439 (find_framebuf): Scan pci to locate the frame buffer address.
32440
32441 * commands/efi/fixvideo.c: New file.
32442
32443 * commands/efi/loadbios.c: Likewise.
32444
32445 * commands/memrw.c: Likewise.
32446
32447 * util/grub-dumpbios.in: Likewise.
32448
32449 * conf/common.rmk (grub-dumpbios): New utility.
32450 (pkglib_MODULES): New module memrw.mod.
32451 (memrw_mod_SOURCE): New macro.
32452 (memrw_mod_CFLAGS): Likewise.
32453 (memrw_mod_LDFLAGS): Likewise.
32454
7dd4a573 32455 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 32456 fixvideo.mod.
32457 (loadbios_mod_SOURCE): New macro.
32458 (loadbios_mod_CFLAGS): Likewise.
32459 (loadbios_mod_LDFLAGS): Likewise.
32460 (fixvideo_mod_SOURCE): Likewise.
32461 (fixvideo_mod_CFLAGS): Likewise.
32462 (fixvideo_mod_LDFLAGS): Likewise.
32463
7dd4a573 32464 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 32465 fixvideo.mod.
32466 (loadbios_mod_SOURCE): New macro.
32467 (loadbios_mod_CFLAGS): Likewise.
32468 (loadbios_mod_LDFLAGS): Likewise.
32469 (fixvideo_mod_SOURCE): Likewise.
32470 (fixvideo_mod_CFLAGS): Likewise.
32471 (fixvideo_mod_LDFLAGS): Likewise.
32472
af63ada2 324732009-04-08 Felix Zielcke <fzielcke@z-51.de>
32474
32475 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32476
c2cdde70 324772009-04-07 David S. Miller <davem@davemloft.net>
32478
32479 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32480 support for R_SPARC_OLO10 relocations. Fix compile warning for
32481 R_SPARC_WDISP30 case.
ea3f72cf 32482 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 32483
761319cf 324842009-04-06 Pavel Roskin <proski@gnu.org>
32485
1007d1f5 32486 * include/grub/misc.h (ARRAY_SIZE): New macro.
32487 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32488 New macro.
32489 * loader/i386/linux.c (allocate_pages): Use free_pages().
32490 (grub_linux_unload): Don't use free_pages().
32491 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32492 wrong index. Treat all other modes as text modes.
32493 (grub_cmd_linux): Initialize vid_mode unconditionally to
32494 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32495
761319cf 32496 * commands/help.c (print_command_help): Use cmd->prio, not
32497 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32498
ea761d40 324992009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 32500
ea761d40 32501 Parttool
32502
32503 * parttool/pcpart.c: new file
32504 * commands/parttool.c: likewise
32505 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32506 (parttool_mod_SOURCES): new variable
32507 (parttool_mod_CFLAGS): likewise
32508 (parttool_mod_LDFLAGS): likewise
32509 (pcpart_mod_SOURCES): likewise
32510 (pcpart_mod_CFLAGS): likewise
32511 (pcpart_mod_LDFLAGS): likewise
7dd4a573 32512 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 32513 and parttool/pcpart.c
32514 * conf/i386-efi.rmk: likewise
32515 * conf/i386-ieee1275.rmk: likewise
32516 * conf/i386-pc.rmk: likewise
32517 * conf/powerpc-ieee1275.rmk: likewise
32518 * conf/sparc64-ieee1275.rmk: likewise
32519 * conf/x86_64-ieee1275.rmk: likewise
32520
05aaebfb 325212009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32522
32523 Support for mtime and further expandability of dir command
32524
32525 * include/grub/lib/datetime.h: moved to ...
7dd4a573 32526 * include/grub/datetime.h: ... moved here and added
05aaebfb 32527 declaration of grub_unixtime2datetime. All users updated
7dd4a573 32528 * include/grub/fs.h: new syntax for dir and mtime functions in
32529 struct grub_fs
05aaebfb 32530 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32531 and GRUB_FSHELP_FLAGS_MASK
32532 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32533 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32534 (grub_ext2_mtime): new function
32535 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32536 (grub_hfsplus_mtime): new function
32537 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32538 (GRUB_UFS_ATTR_FILE): likewise
32539 (GRUB_UFS_ATTR_LNK): likewise
32540 (struct grub_ufs_sblock): new fields mtime
32541 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32542 all users updated
32543 (grub_ufs_dir): mtime support
32544 (grub_ufs_mtime): new function
32545 * fs/affs.c (grub_affs_dir): use new dir syntax
32546 * fs/afs.c (grub_afs_dir): likewise
32547 * fs/cpio.c (grub_cpio_dir): likewise
32548 * fs/fat.c (grub_fat_find_dir): likewise
32549 * fs/hfs.c (grub_hfs_dir): likewise
32550 * fs/iso9660.c (grub_iso9660_dir): likewise
32551 * fs/jfs.c (grub_jfs_dir): likewise
32552 * fs/minix.c (grub_minix_dir): likewise
32553 * fs/ntfs.c (grub_ntfs_dir): likewise
32554 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32555 * fs/sfs.c (grub_sfs_dir): likewise
32556 * fs/xfs.c (grub_xfs_dir): likewise
32557 * util/hostfs.c (grub_hostfs_dir): likewise
32558 * lib/datetime.c: moved to ...
32559 * normal/datetime.c: ... moved here
32560 (grub_unixtime2datetime): new function
32561 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 32562 * normal/completion.c (iterate_dir): use new dir syntax
32563 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 32564 last modification time of a volume
7dd4a573 32565 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 32566 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 32567 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 32568 (normal_mod_SOURCES): likewise
32569 (datetime_mod_SOURCES): Removed lib/datetime.c
32570 * conf/i386-efi.rmk: likewise
7dd4a573 32571 * conf/i386-ieee1275.rmk: likewise
05aaebfb 32572 * conf/i386-pc.rmk: likewise
32573 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 32574 * conf/sparc64-ieee1275.rmk: likewise
32575 * conf/x86_64-efi.rmk: likewise
05aaebfb 32576
8a7e1a14 325772009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32578
32579 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 32580
32581 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 32582 on grub_fat_find_dir
32583 (grub_fat_find_dir): use grub_fat_iterate_dir
32584 (grub_fat_label): likewise
32585
04186a9c 325862009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32587
7dd4a573 32588 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 32589 and command.h
32590 remove extraneous kernel_elf_HEADERS
32591
da4c0bb6 325922009-04-04 Bean <bean123ch@gnail.com>
32593
32594 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32595
32596 * util/misc.c: Likewise.
32597
54ad9555 325982009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32599
32600 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32601 instead of grub_printf.
32602
7a6bf9f2 326032009-04-03 Robert Millan <rmh@aybabtu.com>
32604
32605 * loader/i386/linux.c (grub_linux_setup_video): Fill
32606 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32607 values from `mode info' structure instead of hardcoded
32608 values.
32609
3fcc2083 326102009-04-01 Pavel Roskin <proski@gnu.org>
32611
32612 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32613 unused now.
32614 * genmk.rb: Likewise.
32615 * configure.ac: Likewise.
32616
5ec9740b 326172009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32618
32619 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32620 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32621
5270cec8 326222009-04-01 David S. Miller <davem@davemloft.net>
32623
32624 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 32625 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 32626 (grub_setjmp): Mark with 'returns_twice' attribute.
32627 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32628 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32629 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32630
9c3dd854 326312009-04-01 Robert Millan <rmh@aybabtu.com>
32632
32633 Reapply fix from 2008-07-28 which was accidentally reverted; also
32634 perform the same fix to a similar check in same function.
32635
32636 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32637 with the same number are found, just use issue a warning with
32638 grub_dprintf(), as this error has been reported to be non-fatal.
32639
0d818b7e 326402009-03-31 Pavel Roskin <proski@gnu.org>
32641
32642 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32643 for cross-compilation.
32644
95646d92 326452009-03-30 Robert Millan <rmh@aybabtu.com>
32646
32647 Fix i386-ieee1275 build.
32648
32649 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32650 Remove declaration.
32651
6a003ed1 326522009-03-30 Pavel Roskin <proski@gnu.org>
32653
32654 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32655 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32656 zero-terminated, rely only on the strlen value. Fix comparison
32657 of strings differing in length.
32658
92f33540 326592009-03-30 Robert Millan <rmh@aybabtu.com>
32660
32661 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32662 checking for abi version. Improve error messages on BIOS to notify
32663 user about `linux16' command.
32664
a8c48fd5 326652009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
32666
f968172e 32667 Leak fixes
a8c48fd5 32668
f968172e 32669 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
32670 in case of collision
32671 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 32672
9c323f09 326732009-03-29 Robert Millan <rmh@aybabtu.com>
32674
32675 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
32676 set `vid_mode' accordingly.
32677 (grub_linux_boot): Process `vid_mode' and set video mode.
32678
ae68f423 326792009-03-29 Robert Millan <rmh@aybabtu.com>
32680
32681 * util/grub.d/10_linux.in (linux_entry): New function.
32682 Factorize generation of Linux boot entries.
32683
5709cfc4 326842009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
32685
32686 Make the format of Environment Block plain text. The boot loader
32687 part is not tested well yet.
7dd4a573 32688
5709cfc4 32689 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
32690 (buffer): Removed.
32691 (envblk): Likewise.
32692 (usage): Remove "info" and "clear". Add "unset". Update the
32693 description of "set", as this does not delete variables any
32694 longer.
32695 (create_envblk_file): Complete rewrite.
32696 (open_envblk_file): Likewise.
32697 (cmd_info): Removed.
32698 (cmd_list): Likewise.
32699 (cmd_set): Likewise.
32700 (cmd_clear): Likewise.
32701 (list_variables): New function.
32702 (write_envblk): Likewise.
32703 (set_variables): Likewise.
32704 (unset_variables): Likewise.
32705 (main): Complete rewrite.
32706
32707 * commands/loadenv.c (buffer): Removed.
32708 (envblk): Likewise.
32709 (open_envblk_file): New function.
32710 (read_envblk_file): Complete rewrite.
32711 (grub_cmd_load_env): Likewise.
32712 (grub_cmd_list_env): Likewise.
32713 (struct blocklist): New struct.
32714 (free_blocklists): New function.
32715 (check_blocklists): Likewise.
32716 (write_blocklists): Likewise.
32717 (grub_cmd_save_env): Complete rewrite.
32718
32719 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
32720 a plain text signature.
32721 (GRUB_ENVBLK_MAXLEN): Removed.
32722 (struct grub_envblk): Complete rewrite.
32723 (grub_envblk_find): Removed.
32724 (grub_envblk_insert): Likewise.
32725 (grub_envblk_open): New prototype.
32726 (grub_envblk_set): Likewise.
32727 (grub_envblk_delete): Put const to VALUE.
32728 (grub_envblk_iterate): Put const to NAME and VALUE.
32729 (grub_envblk_close): New prototype.
32730 (grub_envblk_buffer): New inline function.
32731 (grub_envblk_size): Likewise.
32732
32733 * lib/envblk.c: Include grub/mm.h.
32734 (grub_env_find): Removed.
32735 (grub_envblk_open): New function.
32736 (grub_envblk_close): Likewise.
32737 (escaped_value_len): Likewise.
32738 (find_next_line): Likewise.
32739 (grub_envblk_insert): Removed.
32740 (grub_envblk_set): New function.
32741 (grub_envblk_delete): Complete rewrite.
32742 (grub_envblk_iterate): Likewise.
32743
a9368fd3 327442009-03-28 Robert Millan <rmh@aybabtu.com>
32745
32746 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
32747 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
32748 variables. Use 16-bit loader.
32749 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
32750 loader.
32751 * kern/i386/loader.S (grub_linux_boot): Rename to ...
32752 (grub_linux16_boot): ... this. Update all users.
32753 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
32754 (grub_linux_boot): ... this. Update all users.
32755
32756 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
32757 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
32758 commands to `linux16' and `initrd16'.
32759 (GRUB_MOD_FINI(linux)): Rename to ...
32760 (GRUB_MOD_FINI(linux16)): ... this.
32761
e4dd5a7e 327622009-03-24 Pavel Roskin <proski@gnu.org>
32763
32764 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
32765 not just for compilation.
32766
c04d6e05 327672009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
32768
32769 Move multiboot helper out of kernel
32770
32771 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
32772 `loader/i386/multiboot_helper.S'.
32773 * conf/i386-coreboot.rmk: Likewise
32774 * conf/i386-ieee1275.rmk: Likewise
32775
32776 * kern/i386/loader.S: Move multiboot helpers from here...
32777 * loader/i386/multiboot_helper.S: ...moved here
32778 * include/grub/i386/loader.h: Move declarations of multiboot
32779 helpers from here...
32780 * include/grub/i386/multiboot.h: ...moved here
32781 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
32782
42a5b3fc 327832009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32784
32785 * kern/env.c (grub_env_context_open): Added an argument to specify
32786 whether a new context inherits exported variables from current
32787 one. This is useful when making a sandbox to interpret a config
32788 file.
32789 All callers updated.
32790
32791 * include/grub/env.h (grub_env_context_open): Updated the prototype.
32792
b28bbc4e 327932009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32794
32795 * kern/env.c (grub_env_context_close): Fix memory leaks.
32796
f04f02e4 327972009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
32798
32799 * normal/main.c (grub_normal_execute): Added an argument
32800 BATCH to specify if an interactive interface should be provided
32801 after reading a config file.
32802 All callers updated.
32803 (read_command_list): Prevent being executed twice.
32804 (read_fs_list): Likewise.
32805
42a5b3fc 32806 * include/grub/normal.h (grub_normal_execute): Updated the
32807 prototype.
f04f02e4 32808
41473ac2 328092009-03-22 Pavel Roskin <proski@gno.org>
32810
fbc00b0c 32811 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
32812 _start.
32813 * kern/i386/pc/startup.S: Likewise.
32814 * kern/i386/efi/startup.S: Likewise.
32815 * kern/i386/ieee1275/startup.S: Likewise.
32816 * kern/i386/coreboot/startup.S: Likewise.
32817 * kern/x86_64/efi/startup.S: Likewise.
32818
41473ac2 32819 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
32820 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
32821 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
32822
2274cc8f 328232009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
32824
32825 Bugfixes in multiboot for bugs uncovered by solaris kernel.
32826
32827 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
32828 limit detection.
32829 Use vaddr of correct segment for entry_point.
32830
b1b797cb 328312009-03-21 Bean <bean123ch@gmail.com>
32832
32833 * commands/blocklist.c: Add include file <grub/command.h>, remove
32834 <grub/normal.h> and <grub/arg.h>.
32835 (grub_cmd_blocklist): Use the new command interface.
32836 (GRUB_MOD_INIT): Likewise.
32837 (GRUB_MOD_FINI): Likewise.
32838 * commands/boot.c: Likewise.
32839 * commands/cat.c: Likewise.
32840 * commands/cmp.c: Likewise.
32841 * commands/configfile.c: Likewise.
32842 * commands/crc.c: Likewise.
32843 * commands/echo.c: Likewise.
32844 * commands/halt.c: Likewise.
32845 * commands/handler.c: Likewise.
32846 * commands/hdparm.c: Likewise.
32847 * commands/help.c: Likewise.
32848 * commands/hexdump.c: Likewise.
32849 * commands/loadenv.c: Likewise.
32850 * commands/ls.c: Likewise.
32851 * commands/lsmmap.c: Likewise.
32852 * commands/lspci.c: Likewise.
32853 * commands/loadenv.c: Likewise.
32854 * commands/read.c: Likewise.
32855 * commands/reboot.c: Likewise.
32856 * commands/search.c: Likewise.
32857 * commands/sleep.c: Likewise.
32858 * commands/test.c: Likewise.
32859 * commands/usbtest.c: Likewise.
32860 * commands/videotest.c: Likewise.
32861 * commands/i386/cpuid.c: Likewise.
32862 * commands/i386/pc/halt.c: Likewise.
32863 * commands/i386/pc/play.c: Likewise.
32864 * commands/i386/pc/pxecmd.c: Likewise.
32865 * commands/i386/pc/vbeinfo.c: Likewise.
32866 * commands/i386/pc/vbetest.c: Likewise.
32867 * commands/ieee1275/suspend.c: Likewise.
32868 * disk/loopback.c: Likewise.
32869 * font/font_cmd.c: Likewise.
32870 * hello/hello.c: Likewise.
32871 * loader/efi/appleloader.c: Likewise.
32872 * loader/efi/chainloader.c: Likewise.
32873 * loader/i386/bsd.c: Likewise.
32874 * loader/i386/efi/linux.c: Likewise.
32875 * loader/i386/ieee1275/linux.c: Likewise.
32876 * loader/i386/linux.c: Likewise.
32877 * loader/i386/pc/chainloader.c: Likewise.
32878 * loader/i386/pc/linux.c: Likewise.
32879 * loader/powerpc/ieee1275/linux.c: Likewise.
32880 * loader/multiboot_loader.c: Likewise.
32881 * term/gfxterm.c: Likewise.
32882 * term/i386/pc/serial.c: Likewise.
32883 * term/terminfo.c: Likewise.
32884
32885 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
32886 * term/i386/pc/vga.c: Likewise.
32887 * video/readers/jpeg.c: Likewise.
32888 * video/readers/png.c: Likewise.
32889 * video/readers/tga.c: Likewise.
32890
32891 * util/grub-fstest (cmd_loopback): Removed.
32892 (cmd_blocklist): Likewise.
32893 (cmd_ls): Likewise.
32894 (grub_register_command): Likewise.
32895 (grub_unregister_command): Likewise.
32896 (execute_command): Use grub_command_find to locate command and execute
32897 it.
32898
32899 * include/grub/efi/chainloader.h: Removed.
32900 * loader/efi/chainloader_normal.c: Likewise.
32901 * loader/i386/bsd_normal.c: Likewise.
32902 * loader/i386/pc/chainloader_normal.c: Likewise.
32903 * loader/i386/pc/multiboot_normal.c: Likewise.
32904 * loader/linux_normal.c: Likewise.
32905 * loader/multiboot_loader_normal.c: Likewise.
32906 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32907
32908 * gencmdlist.sh: Scan new registration command grub_register_extcmd
32909 and grub_register_command_p1.
32910
32911 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
32912 kern/command.c, lib/arg.c and commands/extcmd.c.
32913 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
32914 (minicmd_mod_SOURCES): New variable.
32915 (minicmd_mod_CFLAGS): Likewise.
32916 (minicmd_mod_LDFLAGS): Likewise.
32917 (extcmd_mod_SOURCES): Likewise.
32918 (extcmd_mod_CFLAGS): Likewise.
32919 (extcmd_mod_LDFLAGS): Likewise.
32920 (boot_mod_SOURCES): Removed.
32921 (boot_mod_CFLAGS): Likewise.
32922 (boot_mod_LDFLAGS): Likewise.
32923
32924 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
32925 kern/corecmd.c.
32926 (kernel_img_HEADERS): Add command.h.
32927 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
32928 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
32929 and lib/arg.c.
32930 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
32931 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
32932 remove the corresponding normal mode command.
32933 (normal_mod_SOURCES): Remove normal/arg.c.
32934 * conf/i386-coreboot.rmk: Likewise.
32935 * conf/i386-efi.rmk: Likewise.
32936 * conf/i386-ieee1275.rmk: Likewise.
32937 * conf/powerpc-ieee1275.rmk: Likewise.
32938 * conf/x86_64-efi.rmk: Likewise.
32939
32940 * include/grub/arg.h: Move from here ...
32941 * include/grub/lib/arg.h: ... to here.
32942
32943 * normal/arg.c: Move from here ...
32944 * lib/arg.c: ... to here.
32945
32946 * commands/extcmd.c: New file.
32947 * commands/minicmd.c: Likewise.
32948 * include/grub/command.h: Likewise.
32949 * include/grub/extcmd.h: Likewise.
32950 * kern/command.c: Likewise.
32951 * kern/corecmd.c: Likewise.
32952
32953 * kern/list.c (grub_list_iterate): Return int instead of void.
32954 (grub_list_insert): New function.
32955 (grub_prio_list_insert): Likewise.
32956
32957 * kern/rescue.c (grub_rescue_command): Removed.
32958 (grub_rescue_command_list): Likewise.
32959 (grub_rescue_register_command): Likewise.
32960 (grub_rescue_unregister_command): Likewise.
32961 (grub_rescue_cmd_boot): Move to minicmd.c
32962 (grub_rescue_cmd_help): Likewise.
32963 (grub_rescue_cmd_info): Likewise.
32964 (grub_rescue_cmd_boot): Likewise.
32965 (grub_rescue_cmd_testload): Likewise.
32966 (grub_rescue_cmd_dump): Likewise.
32967 (grub_rescue_cmd_rmmod): Likewise.
32968 (grub_rescue_cmd_lsmod): Likewise.
32969 (grub_rescue_cmd_exit): Likewise.
32970 (grub_rescue_print_devices): Moved to corecmd.c.
32971 (grub_rescue_print_files): Likewise.
32972 (grub_rescue_cmd_ls): Likewise.
32973 (grub_rescue_cmd_insmod): Likewise.
32974 (grub_rescue_cmd_set): Likewise.
32975 (grub_rescue_cmd_unset): Likewise.
7d074e3c 32976 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 32977 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 32978 commands, remove grub_rescue_register_command calls.
b1b797cb 32979
7d074e3c 32980 * normal/command.c (grub_register_command): Removed.
b1b797cb 32981 (grub_unregister_command): Likewise.
32982 (grub_command_find): Likewise.
32983 (grub_iterate_commands): Likewise.
32984 (rescue_command): Likewise.
32985 (export_command): Moved to corecmd.c.
32986 (set_command): Removed.
32987 (unset_command): Likewise.
32988 (insmod_command): Likewise.
32989 (rmmod_command): Likewise.
32990 (lsmod_command): Likewise.
32991 (grub_command_init): Likewise.
32992
32993 * normal/completion.c (iterate_command): Use cmd->prio to check for
32994 active command.
32995 (complete_arguments): Use grub_extcmd_t structure to find options.
32996 (grub_normal_do_completion): Change function grub_iterate_commands to
32997 grub_command_iterate.
32998
32999 * normal/execute.c (grub_script_execute_cmd): No need to parse
33000 argument here.
33001
33002 * normal/main.c (grub_dyncmd_dispatcher): New function.
33003 (read_command_list): Register unload commands as dyncmd.
33004 (grub_cmd_normal): Use new command interface, register rescue,
33005 unregister normal at entry, register normal, unregister rescue at exit.
33006
33007 * include/grub/list.h (grub_list_test_t): New type.
33008 (grub_list_iterate): Return int instead of void.
33009 (grub_list_insert): New function.
33010 (GRUB_AS_NAMED_LIST_P): New macro.
33011 (GRUB_AS_PRIO_LIST): Likewise.
33012 (GRUB_AS_PRIO_LIST_P): Likewise.
33013 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33014 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33015 (grub_prio_list): New structure.
33016 (grub_prio_list_insert): New function.
33017 (grub_prio_list_remove): New inline function.
33018
33019 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33020 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33021 (GRUB_COMMAND_FLAG_MENU): Likewise.
33022 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33023 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33024 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33025 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33026 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33027 (grub_command): Likewise.
33028 (grub_register_command): Likewise.
33029 (grub_command_find): Likewise.
33030 (grub_iterate_commands): Likewise.
33031 (grub_command_init): Likewise.
33032 (grub_arg_parse): Likewise.
33033 (grub_arg_show_help): Likewise.
33034
33035 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33036 (grub_rescue_unregister_command): Likewise.
33037
33038 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33039 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33040 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33041
33042 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33043 grub_rescue_cmd_initrd.
33044 * include/grub/i386/loader.h: Likewise.
33045 * include/grub/x86_64/loader.h: Likewise.
33046
33047 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33048
1f4147aa 330492009-03-21 Bean <bean123ch@gmail.com>
33050
33051 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33052 instead of stat in mingw environment.
33053
33054 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33055
33056 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33057
33058 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33059 AC_CONFIG_LINKS.
33060
2156d5ba 330612009-03-21 Bean <bean123ch@gmail.com>
33062
33063 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33064 out of range error.
33065
177b82ca 330662009-03-18 Michel Dänzer <michel@daenzer.net>
33067
33068 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33069 checking inode flags for EXT4_EXTENTS_FLAG.
33070
14aad807 330712009-03-18 Robert Millan <rmh@aybabtu.com>
33072
33073 * loader/i386/linux.c: Include `<grub/video.h>' and
33074 `<grub/i386/pc/vbe.h>'..
33075 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33076 (grub_linux32_boot): Attempt to configure video settings with
33077 grub_linux_setup_video().
33078 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33079 to avoid grub_console_fini() which would step out of graphical mode
33080 unconditionally.
33081
8cf83a27 330822009-03-14 Robert Millan <rmh@aybabtu.com>
33083
33084 Fix build on powerpc.
33085 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33086
40164e75 330872009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33088
33089 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33090 background image command.
33091
c58bc32a 330922009-03-12 Colin D Bennett <colin@gibibit.com>
33093
33094 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33095 (grub_gfxterm_putchar): Extract pairs of identical calls to
33096 draw_cursor out of conditional blocks.
33097
5415144a 330982009-03-11 Pavel Roskin <proski@gnu.org>
33099
33100 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33101 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33102
6394042e 331032009-03-11 Robert Millan <rmh@aybabtu.com>
33104
33105 * loader/i386/multiboot_elfxx.c
33106 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33107
b7b50e5f 331082009-03-11 Felix Zielcke <fzielcke@z-51.de>
33109
33110 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33111 `kern/handler.c'.
33112
1ca7fc96 331132009-03-11 Robert Millan <rmh@aybabtu.com>
33114
33115 * loader/i386/multiboot.c (code_size): New variable.
33116 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 33117 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 33118 4-byte alignment to MBI and others by increasing
7d074e3c 33119 `boot_loader_name_length' appropriately.
1ca7fc96 33120
33121 * loader/i386/multiboot_elfxx.c
33122 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33123
a83ea1d2 331242009-03-09 Felix Zielcke <fzielcke@z-51.de>
33125
33126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33127 `fs/ext2.c'.
33128
aa9f3bff 331292009-03-08 Robert Millan <rmh@aybabtu.com>
33130
33131 Make loader/i386/linux.c usable on i386-pc again.
33132
33133 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33134 memory to heap.
33135 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33136 `#error' stanza.
33137
d8b3b60e 331382009-03-07 Bean <bean123ch@gmail.com>
33139
33140 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33141 allocation.
33142
b362c9e9 331432009-03-06 Robert Millan <rmh@aybabtu.com>
33144
33145 Fix display issue on terminals with screen size other than 80x25
33146 (e.g. gfxterm with resolution higher than 640x480).
33147
33148 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 33149 position relative to the center of the terminal instead of relying
b362c9e9 33150 on a hardcoded offset.
33151
9304eef1 331522009-03-04 Robert Millan <rmh@aybabtu.com>
33153
33154 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33155 installed.
33156
33157 * Makefile.in (host_kernel): New variable.
33158 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33159 scripts instead of just the windows one.
33160 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33161
eabc95fb 331622009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 33163
33164 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33165 `kern/handler.c'.
33166 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33167 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33168 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33169 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33170 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33171 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33172
ceb1223c 331732009-03-04 Felix Zielcke <fzielcke@z-51.de>
33174
33175 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33176 or if there's no space for the disk label and print the partition number on a
33177 invalid magic.
33178
4910684a 331792009-03-04 Felix Zielcke <fzielcke@z-51.de>
33180
33181 * util/misc.c: Include <time.h>.
33182 (grub_millisleep): New function.
33183
7e9ca17a 331842009-03-04 Bean <bean123ch@gmail.com>
33185
33186 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33187 another option -mno-red-zone.
33188
33189 * commands/handler.c: Change module description.
33190
33191 * kern/handler.c: Add missing space at the end of description line.
33192
33193 * kern/list.c: Likewise.
33194
f501677c 331952009-03-03 Robert Millan <rmh@aybabtu.com>
33196
33197 Move more components to the relocation area, and fix mbi pointer
33198 handling to use the destination rather than the origin (thanks to
33199 Vladimir Serbinenko for spotting).
33200
33201 * loader/i386/multiboot.c (mbi_dest): New variable.
33202 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33203 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33204 relocation area.
33205
9902d047 332062009-03-01 Bean <bean123ch@gmail.com>
33207
50fb7002 33208 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 33209 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33210 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33211 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33212
33213 * loader/i386/efi/linux.c (acpi_guid): New variable.
33214 (acpi_guid): Likewise.
33215 (EBDA_SEG_ADDR): New constant.
33216 (LOW_MEM_ADDR): Likewise.
33217 (FAKE_EBDA_SEG): Likewise.
33218 (fake_bios_data): New function.
33219 (grub_linux_boot): Call fake_bios_data.
33220
71b9f361 332212009-03-01 Bean <bean123ch@gmail.com>
33222
33223 * commands/terminal.c: Removed.
33224
33225 * commands/handler.c: New file.
33226
33227 * include/grub/list.h: Likewise.
33228
33229 * include/grub/handler.h: Likewise.
33230
33231 * kern/list.c: Likewise.
33232
33233 * kern/handler.c: Likewise.
33234
33235 * kern/term.h: Include header file <grub/handler.h>.
33236 (grub_term_input): Move next field to the beginning.
33237 (grub_term_output): Likewise.
33238 (grub_term_input_class): New variable.
33239 (grub_term_output_class): Likewise.
33240 (grub_term_register_input): Changed to inline function.
33241 (grub_term_register_output): Likewise.
33242 (grub_term_unregister_input): Likewise.
33243 (grub_term_unregister_output): Likewise.
33244 (grub_term_set_current_input): Likewise.
33245 (grub_term_set_current_output): Likewise.
33246 (grub_term_get_current_input): Likewise.
33247 (grub_term_get_current_output): Likewise.
33248 (grub_term_iterate_input): Removed.
33249 (grub_term_iterate_output): Likewise.
33250
33251 * kern/term.c (grub_term_list_input): Removed.
33252 (grub_term_list_output): Likewise.
33253 (grub_term_input_class): New variable.
33254 (grub_term_output_class): Likewise.
50fb7002 33255 (grub_cur_term_input): Change variable as macro.
71b9f361 33256 (grub_cur_term_output): Likewise.
33257 (grub_term_register_input): Removed.
33258 (grub_term_register_output): Likewise.
33259 (grub_term_unregister_input): Likewise.
33260 (grub_term_unregister_output): Likewise.
33261 (grub_term_set_current_input): Likewise.
33262 (grub_term_set_current_output): Likewise.
33263 (grub_term_iterate_input): Likewise.
33264 (grub_term_iterate_output): Likewise.
33265 (grub_term_get_current_input): Likewise.
33266 (grub_term_get_current_output): Likewise.
33267
33268 * util/grub-editenv.c: Include header file <grub/handler.h>.
33269 (grub_term_get_current_input): Removed.
33270 (grub_term_get_current_output): Likewise.
33271 (grub_term_input_class): New variable.
50fb7002 33272 (grub_term_output_class): Likewise.
71b9f361 33273
33274 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33275 (grub_term_get_current_output): Likewise.
33276 (grub_term_input_class): New variable.
50fb7002 33277 (grub_term_output_class): Likewise.
71b9f361 33278
33279 * util/grub-probe.c (grub_term_get_current_input): Removed.
33280 (grub_term_get_current_output): Likewise.
33281 (grub_term_input_class): New variable.
50fb7002 33282 (grub_term_output_class): Likewise.
71b9f361 33283
33284 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33285 (grub_term_get_current_output): Likewise.
33286 (grub_term_input_class): New variable.
50fb7002 33287 (grub_term_output_class): Likewise.
71b9f361 33288
33289 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33290 (terminal_mod_SOURCES): Likewise.
33291 (terminal_mod_CFLAGS): Likewise.
33292 (terminal_mod_LDFLAGS): Likewise.
33293
33294 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33295 handler.c.
33296 (kernel_img_SOURCES): Add list.c and handler.c.
33297 (kernel_img_HEADERS): Add list.h and handler.h.
33298
33299 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33300 handler.c.
33301 (kernel_mod_SOURCES): Add list.c and handler.c.
33302 (kernel_mod_HEADERS): Add list.h and handler.h.
33303
33304 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33305 handler.c.
33306 (kernel_elf_SOURCES): Add list.c and handler.c.
33307 (kernel_elf_HEADERS): Add list.h and handler.h.
33308
33309 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33310 handler.c.
33311 (kernel_elf_SOURCES): Add list.c and handler.c.
33312 (kernel_elf_HEADERS): Add list.h and handler.h.
33313
33314 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33315 handler.c.
33316 (kernel_mod_SOURCES): Add list.c and handler.c.
33317 (kernel_mod_HEADERS): Add list.h and handler.h.
33318
33319 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33320 handler.c.
33321 (kernel_elf_SOURCES): Add list.c and handler.c.
33322 (kernel_elf_HEADERS): Add list.h and handler.h.
33323
8a31787f 333242009-02-27 Robert Millan <rmh@aybabtu.com>
33325
33326 Factorize elf32 / elf64 code in Multiboot loader. This will
33327 prevent it from getting out of sync again.
33328
33329 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33330 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33331 grub_multiboot_load_elf64): Move from here ...
33332 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33333 grub_multiboot_load_elf): ... to here (new file).
33334
51cd3dfc 333352009-02-27 Robert Millan <rmh@aybabtu.com>
33336
33337 * util/grub.d/10_linux.in: Rename "single-user mode" to
33338 "recovery mode".
33339
6e8c9c3a 333402009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33341
33342 Don't leak in SCSI code.
33343 * disk/scsi.c (grub_scsi_close): free `scsi'.
33344
4b6bf4f9 333452009-02-27 Robert Millan <rmh@aybabtu.com>
33346
33347 * loader/i386/pc/multiboot.c: Move from here ...
33348 * loader/i386/multiboot.c: ... to here. Update all users.
33349
b9413424 333502009-02-27 Robert Millan <rmh@aybabtu.com>
33351
33352 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33353 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33354
50fb7002 333552009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 33356
33357 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33358 b-tree.
33359
8cc50345 333602009-02-27 Robert Millan <rmh@aybabtu.com>
33361
33362 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33363 `0x' qualifier as 0 when base is specified as parameter).
33364
6e09b8b7 333652009-02-24 Bean <bean123ch@gmail.com>
33366
33367 * configure.ac: Check for -mcmodel=large in x86_64 target.
33368
33369 * include/grub/efi/api.h (efi_call_10): New macro.
33370 (efi_wrap_10): New function.
33371
33372 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33373 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33374 (GRUB_PE32_REL_BASED_LOW): Likewise.
33375 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33376 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33377 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33378 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33379 (GRUB_PE32_REL_BASED_REL): Likewise.
33380 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33381 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33382 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33383
33384 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33385 issue.
33386
33387 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33388 (efi_wrap_10): New function.
33389
33390 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33391
33392 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33393 MB/MBP model (NV chipset).
33394 (devdata_devs): Add devpath_5 to the list.
33395
33396 * load/i386/efi/linux.c (video_base): Remove variable.
33397 (RGB_MASK): New macro.
33398 (RGB_MAGIC): Likewise.
33399 (LINE_MIN): Likewise.
33400 (LINE_MAX): Likewise.
33401 (FBTEST_STEP): Likewise.
33402 (FBTEST_COUNT): Likewise.
33403 (fb_list): New variable.
33404 (grub_find_video_card): Remove function.
33405 (find_framebuf): New function.
33406 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33407 line length.
33408
33409 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33410 problem for x86_64.
33411
74b21bee 334122009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33413
33414 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33415
33416 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33417 coding tool name.
33418
a455f472 334192009-02-22 Robert Millan <rmh@aybabtu.com>
33420
33421 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33422 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33423 in our relocation, instead of using it directly from heap. Also
33424 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33425
6374daf3 334262009-02-21 Robert Millan <rmh@aybabtu.com>
33427
33428 Implement USB keyboard support (based on patch by Marco Gerards)
33429
33430 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33431 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33432 (usb_keyboard_mod_LDFLAGS): New variables.
33433
33434 * term/usb_keyboard.c: New file.
33435
8fa4ea70 334362009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33437
33438 Corrected wrong declaration
33439
33440 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33441
353976ac 334422009-02-14 Christian Franke <franke@computer.org>
33443
33444 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33445 (grub_lspci_iter): Print class code and programming interface byte.
33446
6aa1169b 334472009-02-14 Christian Franke <franke@computer.org>
33448
33449 * gendistlist.sh: Ignore `.svn' directories.
33450
265372ca 334512009-02-14 Felix Zielcke <fzielcke@z-51.de>
33452
33453 * fs/fat.c: Add 2009 to Copyright line.
33454
9ff516f3 334552009-02-14 Christian Franke <franke@computer.org>
33456
33457 * commands/hdparm.c: New file. Provides `hdparm' command
33458 which sends ATA commands via grub_disk_ata_pass_through ().
33459
33460 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33461
33462 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33463 and <grub/cpu/io.h> to include/grub/ata.h.
33464 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33465 (GRUB_CDROM_SECTOR_SIZE): Remove.
33466 (GRUB_ATA_*): Move to include/grub/ata.h.
33467 (GRUB_ATAPI_*): Likewise.
33468 (enum grub_ata_commands): Likewise.
33469 (enum grub_ata_timeout_milliseconds): Likewise.
33470 (struct grub_ata_device): Likewise.
33471 (grub_ata_regset): Likewise.
33472 (grub_ata_regget): Likewise.
33473 (grub_ata_regset2): Likewise.
33474 (grub_ata_regget2): Likewise.
33475 (grub_ata_check_ready): Likewise.
33476 (grub_ata_wait_not_busy): Remove static, exported in
33477 include/grub/ata.h.
33478 (grub_ata_wait_drq): Likewise.
33479 (grub_ata_pio_read): Likewise.
33480
33481 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33482 function for hdparm.mod.
33483
33484 * include/grub/ata.h: New file, contains declarations from
33485 disk/ata.c.
33486 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33487
33488 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33489 (grub_disk_ata_pass_through): New exported variable.
33490
33491 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33492
772e23da 334932009-02-13 Colin D Bennett <colin@gibibit.com>
33494
33495 Support multiple fallback entries, and provide an API to support
33496 executing default+fallback menu entries. Renamed the `terminal' menu
33497 viewer to `text'.
33498
33499 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33500 variable declaration.
33501 (grub_menu_execute_callback): New structure declaration.
33502 (grub_menu_execute_callback_t): New typedef.
33503 (grub_menu_execute_with_fallback): New function declaration.
33504 (grub_menu_get_entry): Likewise.
33505 (grub_menu_get_timeout): Likewise.
33506 (grub_menu_set_timeout): Likewise.
33507
33508 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33509
33510 * normal/menu.c (grub_wait_after_message): Moved to
33511 `normal/menu_text.c'.
33512 (draw_border): Likewise.
33513 (print_message): Likewise.
33514 (print_entry): Likewise.
33515 (print_entries): Likewise.
33516 (grub_menu_init_page): Likewise.
33517 (get_entry_number): Likewise.
33518 (print_timeout): Likewise.
33519 (run_menu): Likewise.
33520 (grub_menu_execute_entry): Likewise.
33521 (show_text_menu): Likewise.
33522 (get_and_remove_first_entry_number): New function.
33523 (grub_menu_execute_with_fallback): Likewise.
33524 (get_entry): Renamed to ...
33525 (grub_menu_get_entry): .. this and made it global.
33526 (get_timeout): Renamed to ...
33527 (grub_menu_get_timeout): ... this and made it global.
33528 (set_timeout): Renamed to ...
33529 (grub_menu_set_timeout): ... this and made it global.
33530 (grub_normal_terminal_menu_viewer): Renamed to ...
33531 (grub_normal_text_menu_viewer): ... this.
33532
33533 * normal/menu_text.c: New file. Extracted text-menu-specific code
33534 from normal/menu.c.
33535
33536 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33537 (normal_mod_SOURCES): Likewise.
33538
33539 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33540 (normal_mod_SOURCES): Likewise.
33541
33542 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33543 (normal_mod_SOURCES): Likewise.
33544
33545 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33546 (normal_mod_SOURCES): Likewise.
33547
33548 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33549 (normal_mod_SOURCES): Likewise.
33550
33551 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33552 (normal_mod_SOURCES): Likewise.
33553
33554 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33555 (normal_mod_SOURCES): Likewise.
33556
16ac430e 335572009-02-11 Robert Millan <rmh@aybabtu.com>
33558
33559 * util/grub.d/00_header.in: Update old reference to `font' command.
33560
06ff20fc 335612009-02-10 Felix Zielcke <fzielcke@z-51.de>
33562
33563 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33564
33565 Based on patch from Javier Martín.
33566
96da9407 335672009-02-09 Felix Zielcke <fzielcke@z-51.de>
33568
33569 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 33570 to avoid false positives with FAT.
96da9407 33571 (grub_fstest_SOURCES): Likewise.
33572 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33573 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33575 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33577 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33578
6dca6fe4 335792009-02-09 Felix Zielcke <fzielcke@z-51.de>
33580
06ff20fc 33581 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 33582 bpb.version_specific.fat12_or_fat16.fstype and
33583 bpb.version_specific.fat32.fstype.
33584
2550c62f 335852009-02-08 Robert Millan <rmh@aybabtu.com>
33586
be110b30 33587 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 33588
56978920 335892009-02-08 Robert Millan <rmh@aybabtu.com>
33590
33591 * Makefile.in (host_os, host_cpu): New variables.
33592 (target_os): Remove. Update all users.
33593
d64399b5 335942009-02-08 Marco Gerards <marco@gnu.org>
33595
33596 * Makefile.in (enable_grub_emu_usb): New variable.
33597 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33598 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33599 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33600 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33601 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33602 `usbtest.mod' and `usbms.mod'.
33603 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33604 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33605 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33606 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33607 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33608 variables.
33609
33610 * disk/usbms.c: New file.
33611
33612 * include/grub/usb.h: Likewise.
33613
33614 * include/grub/usbtrans.h: Likewise.
33615
33616 * include/grub/usbdesc.h: Likewise.
33617
33618 * bus/usb/usbtrans.c: Likewise.
33619
33620 * bus/usb/ohci.c: Likewise.
33621
33622 * bus/usb/uhci.c: Likewise.
33623
33624 * bus/usb/usbhub.c: Likewise.
33625
33626 * bus/usb/usb.c: Likewise.
33627
33628 * commands/usbtest.c: Likewise.
33629
33630 * util/usb.c: Likewise.
50fb7002 33631
d64399b5 33632 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33633
33634 * configure.ac: Test for libusb presence.
50fb7002 33635
d64399b5 33636 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33637
2b40d6bb 336382009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33639
33640 * kern/mm.c: Add more comments.
33641
73a4ce81 336422009-02-08 Robert Millan <rmh@aybabtu.com>
33643
33644 Patch from Javier Martín.
33645 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33646 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33647
f821ce59 336482009-02-08 Robert Millan <rmh@aybabtu.com>
33649
33650 * fs/cpio.c: Split tar functionality to ...
33651 * fs/tar.c: ... here (new file). Update all users.
33652
aebfc4b0 336532009-02-07 Robert Millan <rmh@aybabtu.com>
33654
33655 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33656 backward-incompatible features.
33657
33658 Based on patch from Javier Martín, with some adjustments.
33659
50fb7002 336602009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 33661
33662 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33663
0bb5115e 336642009-02-07 Robert Millan <rmh@aybabtu.com>
33665
33666 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
33667 position of `disk/lvm.c' to ensure grub_init_all() always picks it
33668 after the RAID stuff.
33669
38a0f8e7 336702009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
33671
50fb7002 33672 Fixes problem when running vbetest command as reported by
38a0f8e7 33673 Vladimir Serbinenko <phcoder@gmail.com>.
33674
33675 * (grub_vbe_set_video_mode): Fixed problem with text modes.
33676
3143cc1c 336772009-02-04 Felix Zielcke <fzielcke@z-51.de>
33678
33679 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
33680 /dev/md/NpN style mdraid devices.
33681
9cba6fce 336822009-02-03 Felix Zielcke <fzielcke@z-51.de>
33683
33684 * util/unifont2pff.rb: Remove.
33685
e507a2c1 336862009-02-03 Felix Zielcke <fzielcke@z-51.de>
33687
33688 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
33689 `#'.
33690
d2c2b4cd 336912009-02-03 Felix Zielcke <fzielcke@z-51.de>
33692
33693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
33694 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33695 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33696 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33698 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33699 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33700
b4315fb0 337012009-02-02 Christian Franke <franke@computer.org>
33702
33703 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
33704
de3aa260 337052009-02-01 Felix Zielcke <fzielcke@z-51.de>
33706
7c3ff286 33707 * INSTALL: Note that we now require at least autoconf 2.59 and
33708 that LZO is optional.
de3aa260 33709
825a182b 337102009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33711
33712 Base on patch on bug #24154 created by Tomas Tintera
33713 <trosos@seznam.cz>.
33714
33715 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
33716
a69ef770 337172009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
33718
7c3ff286 33719 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 33720 <bero@arklinux.org>.
33721
33722 * normal/parser.y (script_init): Add missing semicolon.
33723
6fa42fa6 337242009-01-31 Colin D Bennett <colin@gibibit.com>
33725
7c3ff286 33726 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 33727 (free_menu_entry_classes): Added.
33728 (grub_normal_menu_addentry): Added class property handling.
33729 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
33730 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
33731
33732 * normal/menu_viewer.c: New file.
33733
33734 * normal/menu.c (run_menu_entry): Renamed to ...
33735 (grub_menu_execute_entry): ... this and made it as global.
33736 (grub_menu_run): Renamed to ...
33737 (show_text_menu): ... this and made it local.
33738 (show_text_menu): Adapt to new function names.
33739 (grub_normal_terminal_menu_viewer): New global variable.
33740
33741 * include/grub/menu.h: New file.
33742
33743 * include/grub/menu_viewer.h: New file.
33744
33745 * include/grub/normal.h: Added include to grub/menu.h.
33746 (grub_menu_entry): Moved to include/grub/menu.h.
33747 (grub_menu_entry_t): Likewise.
33748 (grub_menu): Likewise.
33749 (grub_menu_t): Likewise.
33750 (grub_normal_terminal_menu_viewer): Added.
33751 (grub_menu_execute_entry): Likewise.
33752 (grub_menu_run): Removed.
33753
33754 * DISTLIST: Added include/grub/menu.h.
33755 Added include/grub/menu_viewer.h.
33756 Added normal/menu_viewer.c.
33757
337582009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
33759
33760 * normal/execute.c (grub_script_execute_menuentry): Changed to use
33761 arglist for menutitle arguments.
33762
33763 * normal/main.c (grub_normal_menu_addentry): Likewise.
33764
33765 * normal/parser.y (menuentry): Likewise.
33766
33767 * normal/script.c (grub_script_create_cmdmenu): Likewise.
33768
33769 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
33770 (grub_script_create_cmdmenu): Likewise.
33771
33772 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
33773
33774 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
33775 changes.
33776
33777 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
33778
33779 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
33780
33781 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
33782
33783 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33784
33785 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33786
33787 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
33788
56192c23 337892009-01-30 Christian Franke <franke@computer.org>
33790
33791 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
33792 in option help text.
33793
d72521b3 337942009-01-27 Pavel Roskin <proski@gnu.org>
33795
33796 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
33797
994b5e84 337982009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33799
33800 * commands/lsmmap.c: Add include to grub/machine/memory.h.
33801
33802 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
33803
33804 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
33805 unregister function.
33806
6a7eab2c 338072009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
33808
33809 * disk/scsi.c (grub_scsi_read): Fix sign problem.
33810
33811 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
33812
33813 * util/grub-mkfont.c (usage): Fix typo.
33814
33815 * util/elf/grub-mkimage.c (load_modules): Fix warning.
33816
1806b56e 338172009-01-26 Daniel Mierswa <impulze@impulze.org>
33818
3fb18f09 33819 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
33820
336e1fb9 33821 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
33822
1806b56e 33823 * kern/misc.c (grub_strcasecmp): New function.
33824 (grub_strcasecmp): Use grub_size_t instead of int for length.
33825 Fix return value.
33826 * include/grub/misc.h: Update function prototypes.
33827
580b2a0f 338282009-01-26 Robert Millan <rmh@aybabtu.com>
33829
33830 * configure.ac: Fix cross-compilation check.
ef257b36 33831
d31c24f1 338322009-01-22 Christian Franke <franke@computer.org>
33833
33834 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
33835 (precision) digit string. Allow `.format2' without `format1' (width).
33836 Limit input chars for `%s' output to `format2' if specified. This is
33837 compatible with standard printf ().
33838
3138b44c 338392009-01-22 Christian Franke <franke@computer.org>
33840
33841 * disk/ata.c (grub_ata_wait_status): Replace by ...
33842 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
33843 other status bits may be invalid while BSY is asserted.
33844 (grub_ata_check_ready): New function.
33845 (grub_ata_cmd): Removed.
33846 (grub_ata_wait_drq): New function.
33847 (grub_ata_strncpy): Remove inline.
33848 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
33849 and error check now done by grub_ata_wait_drq ().
33850 (grub_ata_pio_write): Likewise.
33851 (grub_atapi_identify): Set DEV before check for !BSY. Use
33852 grub_ata_wait_drq () to wait for data.
33853 (grub_ata_device_initialize): Add status register check to
33854 detect missing SATA slave devices. Add debug messages.
33855 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
33856 (grub_atapi_packet): Set DEV before check for !BSY. Replace
33857 transfer loop by grub_ata_pio_write ().
33858 (grub_ata_identify): Set DEV before check for !BSY. Use
33859 grub_ata_wait_drq () to wait for data.
ef257b36 33860 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 33861 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
33862 read/write in one loop. Fix invalid command on write. Fix incomplete
33863 command on (size % batch) == 0. Add missing error check after write of
33864 last block. Add debug messages.
33865 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
33866
59a64ef6 338672009-01-19 Christian Franke <franke@computer.org>
33868
33869 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
33870 (GRUB_ATAPI_IREASON_*): Likewise.
33871 (grub_ata_pio_write): Fix timeout error return.
33872 (grub_atapi_identify): Add grub_ata_wait () after cmd.
33873 (grub_atapi_wait_drq): New function.
33874 (grub_atapi_packet): New parameter `size'.
33875 Use grub_atapi_wait_drq () and direct write instead of
33876 grub_ata_pio_write ().
33877 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
33878 reads the number of bytes requested by the device for each DRQ
33879 assertion.
33880 (grub_atapi_write): Remove old implementation, return not
33881 implemented instead.
33882
1cfe20b3 338832009-01-19 Christian Franke <franke@computer.org>
33884
33885 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
33886 of 512 to calculate data size.
33887 (grub_scsi_read12): Likewise.
33888 (grub_scsi_write10): Likewise.
33889 (grub_scsi_write12): Likewise.
33890 (grub_scsi_read): Adjust size according to blocksize.
33891 Add checks for invalid blocksize and unaligned transfer.
33892
bee5fe5d 338932009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
33894
33895 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
33896
ef257b36 33897 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 33898 width glyphs.
33899
3e643f8c 339002009-01-19 Robert Millan <rmh@aybabtu.com>
33901
33902 * config.guess: Update to latest version from config git.
33903 * config.sub: Likewise.
33904
4fa80998 339052009-01-17 Felix Zielcke <fzielcke@z-51.de>
33906
33907 * Makefile.in: Change font compilation to use new grub-mkfont instead
33908 of java version.
33909
33910 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
33911 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
33912 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33913 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
33914 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
33915 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
33916 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
33917 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
33918 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
33919
7086085b 339202009-01-16 Christian Franke <franke@computer.org>
33921
33922 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
33923 (enum grub_ata_timeout_milliseconds): New enum.
33924 (grub_ata_wait_status): Add parameter milliseconds.
33925 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
33926 recovery from timed-out commands.
33927 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
33928 return grub_errno instead of REG_ERROR.
33929 (grub_ata_pio_write): Add parameter milliseconds.
33930 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
33931 Pass milliseconds to grub_ata_wait_status () and
33932 grub_ata_pio_read ().
33933 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
33934 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
33935 grub_ata_wait_status (). Fix IDENTIFY timeout check.
33936 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
33937 It is not suitable for device detection, because DEV bit is ignored,
33938 the command may run too long, and not all devices set the signature
33939 properly.
33940 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
33941 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
33942 Fix device selection, DEV bit must be set first to address the registers
33943 of the correct device.
33944 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
33945 grub_ata_pio_read/write ().
33946 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
33947 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
33948
4a412913 339492009-01-13 Carles Pina i Estany <carles@pina.cat>
33950
33951 * util/grub-editenv.c (main): Use fseeko(), not fseek().
33952
7795c55e 339532009-01-13 Bean <bean123ch@gmail.com>
d913988c 33954
33955 * util/grub-mkfont.c (write_font): forget to remove some debug code.
33956
7795c55e 339572009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 33958
33959 * Makefile.in: (enable_grub_mkfont): New variable.
33960 (freetype_cflags): Likewise.
33961 (freetype_libs): Likewise.
33962
33963 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
33964 (grub_mkfont_SOURCES): New variable.
33965 (grub_mkfont_CFLAGS): Likewise.
33966 (grub_mkfont_LDFLAGS): Likewise.
33967
33968 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
33969 library if `--enable-grub-mkfont' is requested.
33970 (enable_grub_mkfont): New variable.
33971 (freetype_cflags): Likewise.
33972 (freetype_libs): Likewise.
33973
33974 * util/grub-mkfont.c: New file.
33975
093af1fe 339762009-01-12 Christian Franke <franke@computer.org>
33977
33978 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
33979 mode check. Fix setting of compat_use[].
33980
f36cc108 339812009-01-10 Robert Millan <rmh@aybabtu.com>
33982
33983 Update a few copyright years which we forgot to do in 2008 (only for
33984 files whose changes made in 2008 were copyright-significant)
33985
33986 * Makefile.in: Add 2008 to Copyright line.
33987 * disk/ieee1275/ofdisk.c: Likewise.
33988 * disk/efi/efidisk.c: Likewise.
33989 * kern/dl.c: Likewise.
33990 * kern/sparc64/ieee1275/init.c: Likewise.
33991 * kern/mm.c: Likewise.
33992 * kern/efi/mm.c: Likewise.
33993 * boot/i386/pc/boot.S: Likewise.
33994 * genfslist.sh: Likewise.
33995 * fs/iso9660.c: Likewise.
33996 * fs/hfs.c: Likewise.
33997 * fs/jfs.c: Likewise.
33998 * fs/minix.c: Likewise.
33999 * fs/ufs.c: Likewise.
34000 * gensymlist.sh.in: Likewise.
34001 * genkernsyms.sh.in: Likewise.
34002 * include/grub/misc.h: Likewise.
34003 * include/grub/types.h: Likewise.
34004 * include/grub/symbol.h: Likewise.
34005 * include/grub/elf.h: Likewise.
34006 * include/grub/kernel.h: Likewise.
34007 * include/grub/disk.h: Likewise.
34008 * include/grub/dl.h: Likewise.
34009 * include/grub/i386/linux.h: Likewise.
34010 * include/grub/i386/pc/biosdisk.h: Likewise.
34011 * include/grub/efi/api.h: Likewise.
34012 * include/grub/efi/pe32.h: Likewise.
34013 * include/grub/util/misc.h: Likewise.
34014 * normal/execute.c: Likewise.
34015 * normal/arg.c: Likewise.
34016 * normal/completion.c: Likewise.
34017 * normal/lexer.c: Likewise.
34018 * normal/parser.y: Likewise.
34019 * normal/misc.c: Likewise.
34020 * commands/i386/pc/vbeinfo.c: Likewise.
34021 * commands/hexdump.c: Likewise.
34022 * commands/terminal.c: Likewise.
34023 * commands/ls.c: Likewise.
34024 * commands/help.c: Likewise.
34025 * partmap/pc.c: Likewise.
34026 * loader/efi/chainloader.c: Likewise.
34027 * loader/multiboot_loader.c: Likewise.
34028 * loader/i386/pc/multiboot2.c: Likewise.
34029 * term/efi/console.c: Likewise.
34030 * term/i386/pc/serial.c: Likewise.
34031 * util/lvm.c: Likewise.
34032 * util/console.c: Likewise.
34033 * util/i386/efi/grub-mkimage.c: Likewise.
34034 * util/raid.c: Likewise.
34035
7f02114b 340362009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34037
34038 * commands/videotest.c: Removed include to grub/machine/memory.h.
34039
34040 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34041 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34042 (video_mod_SOURCES): Removed.
34043 (video_mod_CFLAGS): Likewise.
34044 (video_mod_LDFLAGS): Likewise.
34045 (gfxterm_mod_SOURCES): Likewise.
34046 (gfxterm_mod_CFLAGS): Likewise.
34047 (gfxterm_mod_LDFLAGS): Likewise.
34048 (videotest_mod_SOURCES): Likewise.
34049 (videotest_mod_CFLAGS): Likewise.
34050 (videotest_mod_LDFLAGS): Likewise.
34051 (bitmap_mod_SOURCES): Likewise.
34052 (bitmap_mod_CFLAGS): Likewise.
34053 (bitmap_mod_LDFLAGS): Likewise.
34054 (tga_mod_SOURCES): Likewise.
34055 (tga_mod_CFLAGS): Likewise.
34056 (tga_mod_LDFLAGS): Likewise.
34057 (jpeg_mod_SOURCES): Likewise.
34058 (jpeg_mod_CFLAGS): Likewise.
34059 (jpeg_mod_LDFLAGS): Likewise.
34060 (png_mod_SOURCES): Likewise.
34061 (png_mod_CFLAGS): Likewise.
34062 (png_mod_LDFLAGS): Likewise.
34063
34064 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34065 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34066 (video_mod_SOURCES): Added.
34067 (video_mod_CFLAGS): Likewise.
34068 (video_mod_LDFLAGS): Likewise.
34069 (videotest_mod_SOURCES): Likewise.
34070 (videotest_mod_CFLAGS): Likewise.
34071 (videotest_mod_LDFLAGS): Likewise.
34072 (bitmap_mod_SOURCES): Likewise.
34073 (bitmap_mod_CFLAGS): Likewise.
34074 (bitmap_mod_LDFLAGS): Likewise.
34075 (tga_mod_SOURCES): Likewise.
34076 (tga_mod_CFLAGS): Likewise.
34077 (tga_mod_LDFLAGS): Likewise.
34078 (jpeg_mod_SOURCES): Likewise.
34079 (jpeg_mod_CFLAGS): Likewise.
34080 (jpeg_mod_LDFLAGS): Likewise.
34081 (png_mod_SOURCES): Likewise.
34082 (png_mod_CFLAGS): Likewise.
34083 (png_mod_LDFLAGS): Likewise.
34084 (gfxterm_mod_SOURCES): Likewise.
34085 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 34086 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 34087
34088 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34089 grub/machine/console.h.
34090
644fff97 340912009-01-04 Jerone Young <jerone@gmail.com>
34092
34093 Make on screen instructions clearer
34094
34095 Based on patch created by Jidanni <jidanni@jidanni.org>
34096
34097 * normal/menu.c: print clearer instructions on the screen
34098
1e901a75 340992009-01-02 Colin D Bennett <colin@gibibit.com>
34100
34101 New font engine.
34c44600 34102
1e901a75 34103 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34104 build system and fixed gfxterm.c to work with different sized fonts.
34105
34106 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 34107
1e901a75 34108 * configure: Re-generated.
34c44600 34109
1e901a75 34110 * DISTLIST: Removed font/manager.c.
34111 Added font/font.c.
34112 Added font/font_cmd.c.
34c44600 34113
1e901a75 34114 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34115 compilation.
34c44600 34116
1e901a75 34117 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 34118
34119 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 34120
34121 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 34122
1e901a75 34123 * normal/menu.c: Likewise.
34c44600 34124
1e901a75 34125 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34126 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 34127
1e901a75 34128 * include/grub/font.h: Replaced with new file.
34c44600 34129
1e901a75 34130 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34131 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34132 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34133 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34134 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 34135 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 34136 fg_red, fg_green, fg_blue, fg_alpha.
34137 (grub_video_adapter): Removed blit_glyph.
34c44600 34138 (grub_video_blit_glyph): Removed.
34139
1e901a75 34140 * font/manager.c: Removed file.
34c44600 34141
34142 * font/font.c: New file.
34143
1e901a75 34144 * font/font_cmd.c: Likewise.
34c44600 34145
1e901a75 34146 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 34147
1e901a75 34148 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34149 (grub_video_vbe_map_rgba): Likewise.
34150 (grub_video_vbe_unmap_color_int): Likewise.
34151 (grub_video_vbe_blit_glyph): Removed.
34152 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 34153
1e901a75 34154 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34155 (get_pixel): Likewise.
34c44600 34156 (set_pixel): Likewise.
34157
1e901a75 34158 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 34159
1e901a75 34160 * term/gfxterm.c: Adapted to new font engine.
34c44600 34161
1e901a75 34162 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 34163
1e901a75 34164 * term/i386/pc/vga.c: Likewise.
34c44600 34165
1e901a75 34166 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 34167
1e901a75 34168 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 34169
1e901a75 34170 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34171
1e901a75 34172 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 34173
1e901a75 34174 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 34175
1e901a75 34176 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 34177
1e901a75 34178 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 34179
1e901a75 34180 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 34181
1e901a75 34182 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34183
34184 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 34185
1e901a75 34186 * util/grub-mkconfig_lib.in: Changed font extension.
34187
278922e8 341882008-12-28 Felix Zielcke <fzielcke@z-51.de>
34189
34190 * util/getroot.c (grub_util_get_grub_dev): Add support for
34191 /dev/md/dNNpNN style partitionable mdraid devices.
34192
3ced05cf 341932008-12-12 Alex Smith <alex@alex-smith.me.uk>
34194
34195 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34196 at a time limit of the PXE TFTP API correctly.
34197 (grub_pxefs_close): Likewise.
34198
7fd0ee30 341992008-11-29 Robert Millan <rmh@aybabtu.com>
34200
34c44600 34201 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 34202 grub_ata_device_initialize() calls.
34203
34c44600 342042008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 34205
34206 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34207 iteration failed.
34208 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34209
89313780 342102008-11-28 Robert Millan <rmh@aybabtu.com>
34211
34212 Fix build on powerpc-ieee1275. Based on patch created by
34213 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34214 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34215 `kern/ieee1275/mmap.c'.
34216 * include/grub/powerpc/ieee1275/memory.h: New file.
34217
15257703 34218 Provide grub-install on coreboot.
34219 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34220 (grub_install_SOURCES): New variable.
34221 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34222 usable on coreboot.
34223
9fc5388a 342242008-11-25 Felix Zielcke <fzielcke@z-51.de>
34225
34226 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34227 to `grub_term_input_t'.
34228 (grub_term_get_current_output): Change return type to
34229 `grub_term_output_t'.
34230
bc3a2f31 342312008-11-22 Robert Millan <rmh@aybabtu.com>
34232
34c44600 34233 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 34234 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34235 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34236 grub_vga_text_cls().
34237
80fc88f2 34238 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 34239 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 34240
cbf36fd3 34241 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34242 to 0x200000 (avoids trouble with some OFW implementations, and matches
34243 with the one in Yaboot).
34244 Reported by Manoel Abranches
34245
73e8e268 342462008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 34247
34248 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34249 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34250
73e8e268 34251 * util/grub-mkconfig_lib.in (grub_warn): New function.
34252 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34253 warnings, to obtain consistent formatting.
34254 * util/grub.d/00_header.in: Likewise.
34255 * util/update-grub_lib.in: Likewise.
34256
e94045a1 34257 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 34258 Move comment text to `#error' stanza.
e94045a1 34259
79d29fd7 34260 Harmonize ieee1275's grub_available_iterate() with the generic
34261 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34262 build problem on i386-ieee1275):
34263 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34264 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34265 parameter `type'. Update all users of this function.
34266 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34267 `kern/ieee1275/mmap.c'.
34268 * kern/ieee1275/init.c
34269 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34270 with ...
34271 (grub_machine_mmap_iterate): ... this.
34272 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34273 return type to `grub_err_t'. Update all implementations of this
34274 function prototype.
34275 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34276 Likewise.
34277
60d6b16e 34278 Add `lsmmap' command (lists firmware-provided memory map):
34279 * commands/lsmmap.c: New file.
34280 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34281 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34282 variables.
34283 * conf/powerpc-ieee1275.rmk: Likewise.
34284 * conf/i386-coreboot.rmk: Likewise.
34285 * conf/i386-ieee1275.rmk: Likewise.
34286
ebaaf49b 342872008-11-19 Robert Millan <rmh@aybabtu.com>
34288
34289 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 34290 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34291 constraints to initrd allocation (based on code from
34292 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34293 for Linux to find it.
ebaaf49b 34294
dfab719f 342952008-11-14 Robert Millan <rmh@aybabtu.com>
34296
34297 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34298 order to cope with duplicate slashes.
34299
10fc3eb9 343002008-11-14 Robert Millan <rmh@aybabtu.com>
34301
34302 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34303 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34304 don't want to mess with lower memory, because it is used in the Linux
34305 loader.
34306
34307 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 34308 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 34309 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34310 is in our heap (probably as a result of it being corrupted during
2f2a3442 34311 decompression). Add #error instance with comment to explain why this
34312 loader isn't currently usable on PC/BIOS.
10fc3eb9 34313
e2e07847 343142008-11-14 Robert Millan <rmh@aybabtu.com>
34315
34316 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 34317 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 34318
fe8e8d69 343192008-11-12 Robert Millan <rmh@aybabtu.com>
34320
34321 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34322
34323 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34324 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34325 from here ...
34326 * include/grub/i386/pc/memory.h: ... to here.
34327
976b07d0 343282008-11-12 Robert Millan <rmh@aybabtu.com>
34329
34330 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34331 split).
34332
34333 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34334 (grub_console_cur_color, grub_console_real_putchar)
34335 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34336 (grub_console_setcolorstate, grub_console_setcolor)
34337 (grub_console_getcolor): Move from here ...
34338 * include/grub/i386/vga_common.h: ... to here (new file).
34339
34340 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34341 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34342 `<grub/i386/io.h>'.
34343 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34344 `<grub/i386/vga_common.h>'.
34345
76679cd3 343462008-11-12 Robert Millan <rmh@aybabtu.com>
34347
34348 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34349 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34350 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34351 variables.
34352 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34353 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34354
34355 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34356 grub_console_init() with call to grub_vga_text_init().
34357 (grub_machine_fini): Replace call to
34358 grub_console_fini() with call to grub_vga_text_fini() and
34359 grub_at_keyboard_fini().
34360
34361 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34362 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34363 (grub_console_setcolorstate, grub_console_setcolor)
34364 (grub_console_getcolor): New function prototypes.
34365
34366 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34367 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34368 (grub_vga_text_setcursor): Static-ize.
34369 (grub_vga_text_term): New structure.
34370 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34371
34372 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34373 (grub_console_cur_color, grub_console_standard_color)
34374 (grub_console_normal_color, grub_console_highlight_color)
34375 (map_char, grub_console_putchar, grub_console_getcharwidth)
34376 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34377 (grub_console_getcolor): Move from here ...
34378 * term/i386/vga_common.c: ... to here (same function names).
34379
95b841d3 343802008-11-12 Robert Millan <rmh@aybabtu.com>
34381
34382 Use newly-added Multiboot support in coreboot.
34383
34384 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34385 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34386
34387 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34388 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34389 (codestart): Store the MBI in `startup_multiboot_info' when we're
34390 being loaded using Multiboot.
34391
34392 * kern/i386/coreboot/init.c (grub_machine_init): Move
34393 grub_at_keyboard_init() call to beginning of function (useful for
34394 debugging). Call grub_machine_mmap_init() before attempting to use
34395 grub_machine_mmap_iterate().
34396 (grub_lower_mem, grub_upper_mem): Move from here ...
34397 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34398 here (new file).
34399
34400 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34401 function prototype.
34402
761ca975 344032008-11-12 Robert Millan <rmh@aybabtu.com>
34404
34405 Fix a regression introduced by the at_keyboard.mod split. Because
34406 some terminals are default on some platforms and non-default on
34407 others, the first terminal being registered determines which is
34408 going to be default.
34409
34410 * kern/term.c (grub_term_register_input): If this is the first
34411 terminal being registered, set it as the current one.
34412 (grub_term_register_output): Likewise.
34413
34414 * term/efi/console.c (grub_console_init): Do not call
34415 grub_term_set_current_output() or grub_term_set_current_input().
34416 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34417 * term/i386/pc/console.c (grub_console_init): Likewise.
34418 (grub_console_fini): Do not call grub_term_set_current_input()
34419 (but leave grub_term_set_current_output() to restore text mode).
34420
6c529df7 344212008-11-10 Robert Millan <rmh@aybabtu.com>
34422
34423 * util/grub.d/00_header.in: Add backward compatibility check for
34424 versions of terminal.mod that don't understand `terminal_input' or
34425 `terminal_output'.
34426
132e4113 344272008-11-09 Robert Millan <rmh@aybabtu.com>
34428
34429 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34430 `terminal_input' / `terminal_output', not `terminal'.
34431
ac293d50 344322008-11-08 Robert Millan <rmh@aybabtu.com>
34433
34434 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 34435 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 34436
0025933a 344372008-11-08 Robert Millan <rmh@aybabtu.com>
34438
34439 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 34440 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 34441 members. Update all users.
34442 * util/console.c (grub_ncurses_term): Split in ...
34443 (grub_ncurses_term_input): ... this, and ...
34444 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 34445 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 34446
37c86336 344472008-11-08 Robert Millan <rmh@aybabtu.com>
34448
34449 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34450 (PKGDATA): Add $(pkgdata_SRCDIR).
34451 (pkglib_BUILDDIR): New variable.
34452 (pkgdata_SRCDIR): New variable.
34453 (build_env.mk): New target.
34454 (include_DATA): New variable.
34455 (install-local): Install $(include_DATA) files in $(includedir).
34456
b6c15a2d 344572008-11-07 Pavel Roskin <proski@gnu.org>
34458
d99d46f1 34459 * gendistlist.sh: Use C locale for sorting to ensure consistent
34460 output on all systems.
34461
b6c15a2d 34462 * util/grub.d/00_header.in: Remove incorrect space before
34463 "serial".
34464
c32ee8c9 344652008-11-07 Robert Millan <rmh@aybabtu.com>
34466
34467 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34468 per specification.
34469 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34470 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34471 (based on find_multi_boot1_header).
34472 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34473 using find_multi_boot2_header(), and abort if neither Multiboot or
34474 Multiboot headers were found.
34475
651c29b7 344762008-11-07 Robert Millan <rmh@aybabtu.com>
34477
34478 Modularize at_keyboard.mod:
34479
34480 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34481 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34482 (at_keyboard_mod_LDFLAGS): New variables.
34483
34484 Actual terminal split:
34485
34486 * include/grub/term.h (struct grub_term): Split in ...
34487 (struct grub_term_input): ... this, and ...
34488 (struct grub_term_output): ... this. Update all users.
34489 (grub_term_set_current): Split in ...
34490 (grub_term_set_current_input): ... this, and ...
34491 (grub_term_set_current_output): ... this.
34492 (grub_term_get_current): Split in ...
34493 (grub_term_get_current_input): ... this, and ...
34494 (grub_term_get_current_output): ... this.
34495 (grub_term_register): Split in ...
34496 (grub_term_register_input): ... this, and ...
34497 (grub_term_register_output): ... this.
34498 (grub_term_unregister): Split in ...
34499 (grub_term_unregister_input): ... this, and ...
34500 (grub_term_unregister_output): ... this.
34501 (grub_term_iterate): Split in ...
34502 (grub_term_iterate_input): ... this, and ...
34503 (grub_term_iterate_output): ... this.
34504
34505 * kern/term.c (grub_term_list): Split in ...
34506 (grub_term_list_input): ... this, and ...
34507 (grub_term_list_output): ... this. Update all users.
34508 (grub_cur_term): Split in ...
34509 (grub_cur_term_input): ... this, and ...
34510 (grub_cur_term_output): ... this. Update all users.
34511 (grub_term_set_current): Split in ...
34512 (grub_term_set_current_input): ... this, and ...
34513 (grub_term_set_current_output): ... this.
34514 (grub_term_get_current): Split in ...
34515 (grub_term_get_current_input): ... this, and ...
34516 (grub_term_get_current_output): ... this.
34517 (grub_term_register): Split in ...
34518 (grub_term_register_input): ... this, and ...
34519 (grub_term_register_output): ... this.
34520 (grub_term_unregister): Split in ...
34521 (grub_term_unregister_input): ... this, and ...
34522 (grub_term_unregister_output): ... this.
34523 (grub_term_iterate): Split in ...
34524 (grub_term_iterate_input): ... this, and ...
34525 (grub_term_iterate_output): ... this.
34526
34527 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34528 a check for input and one for output (and only attempt to get keys
34529 from user when input works).
34530
34531 * util/grub-probe.c (grub_term_get_current): Split in ...
34532 (grub_term_get_current_input): ... this, and ...
34533 (grub_term_get_current_output): ... this.
34534 * util/grub-fstest.c: Likewise.
34535 * util/i386/pc/grub-setup.c: Likewise.
34536 * util/grub-editenv.c: Likewise.
34537
34538 Portability adjustments:
34539
34540 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34541 `term/i386/pc/at_keyboard.c'.
34542 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34543 grub_keyboard_controller_init() (now handled by terminal .init).
34544 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34545 grub_at_keyboard_init().
34546 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34547 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34548 at_keyboard.mod via input terminal interface).
34549 * include/grub/i386/coreboot/console.h: Convert into a stub for
34550 `<grub/i386/pc/console.h>'.
34551
34552 Migrate full terminals to new API:
34553
34554 * term/efi/console.c (grub_console_term): Split into ...
34555 (grub_console_term_input): ... this, and ...
34556 (grub_console_term_output): ... this. Update all users.
34557 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34558 (grub_ofconsole_init): Split into ...
34559 (grub_ofconsole_init_input): ... this, and ...
34560 (grub_ofconsole_init_output): ... this.
34561 (grub_ofconsole_term): Split into ...
34562 (grub_ofconsole_term_input): ... this, and ...
34563 (grub_ofconsole_term_output): ... this. Update all users.
34564 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34565 (grub_serial_term_input): ... this, and ...
34566 (grub_serial_term_output): ... this. Update all users.
34567 * term/i386/pc/console.c (grub_console_term): Split into ...
34568 (grub_console_term_input): ... this, and ...
34569 (grub_console_term_output): ... this. Update all users.
34570 (grub_console_term_input): Only enable it on PC/BIOS platform.
34571 (grub_console_init): Remove grub_keyboard_controller_init() call.
34572
34573 Migrate input terminals to new API:
34574
34575 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34576 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34577 i386-specific anyway).
34578 (grub_console_checkkey): Rename to ...
34579 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34580 users.
34581 (grub_keyboard_controller_orig): New variable.
34582 (grub_console_getkey): Rename to ...
34583 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34584 users.
34585 (grub_keyboard_controller_init): Static-ize. Save original
34586 controller value so that it can be restored ...
34587 (grub_keyboard_controller_fini): ... here (new function).
34588 (grub_at_keyboard_term): New structure.
34589 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34590 functions.
34591
34592 Migrate output terminals to new API:
34593
34594 * term/i386/pc/vga.c (grub_vga_term): Change type to
34595 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34596 members. Update all users.
34597 * term/gfxterm.c (grub_video_term): Change type to
34598 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34599 members. Update all users.
34600 * include/grub/i386/pc/console.h (grub_console_checkkey)
34601 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34602 etc).
34603
34604 Migrate `terminal' command and userland tools to new API:
34605
34606 * commands/terminal.c (grub_cmd_terminal): Split into ...
34607 (grub_cmd_terminal_input): ... this, and ...
34608 (grub_cmd_terminal_output): ... this.
34609 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34610 `terminal_input' and `terminal_output'.
34611 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34612 `terminal_input' / `terminal_output' API.
34613 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34614 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34615 provided ${GRUB_TERMINAL}, convert it).
34616
96e5d876 346172008-11-04 Robert Millan <rmh@aybabtu.com>
34618
34619 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34620 for FreeBSD.
34621 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34622
556f3775 346232008-11-03 Bean <bean123ch@gmail.com>
34624
34625 * kern/elf.c (grub_elf32_load): Revert to previous code.
34626 (grub_elf64_load): Likewise.
34627
34628 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34629
926b9823 346302008-11-01 Robert Millan <rmh@aybabtu.com>
34631
34632 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34633 (TARGET_CPPFLAGS): Likewise.
34634 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34635
1432e958 346362008-11-01 Carles Pina i Estany <carles@pina.cat>
34637
34638 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34639
dba3f844 346402008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 34641
34642 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34643 addition of objects until the code is not going to be able to fail.
34644
dba3f844 346452008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 34646
34647 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34648 (add a missing NULL check, and correct them by moving the pointer
34649 operations after the actual check).
34650
7ab28c21 346512008-10-29 Robert Millan <rmh@aybabtu.com>
34652
34653 * util/i386/pc/grub-install.in: Handle empty string as output from
34654 make_system_path_relative_to_its_root().
34655
1b7748eb 346562008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34657
34658 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34659 circular metadata worst case scenario. If the metadata is circular
34660 then copy the wrap in place.
34661 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34662 project lib/format_text/layout.h
34663 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
34664
c9618ab2 346652008-10-03 Felix Zielcke <fzielcke@z-51.de>
34666
7a36edca 34667 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 34668
bf981c62 346692008-10-03 Felix Zielcke <fzielcke@z-51.de>
34670
34671 * util/update-grub_lib.in: Mention filename in warning message.
34672
6d994591 346732008-09-29 Felix Zielcke <fzielcke@z-51.de>
34674
34675 * NEWS: Update for rename of update-grub to grub-mkconfig.
34676
18ade780 346772008-09-29 Felix Zielcke <fzielcke@z-51.de>
34678
34679 * util/update-grub_lib.in: Copy to ...
34680 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 34681 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 34682 * util/update-grub.in: Rename to ...
34683 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
34684 option. Add `--output' option to allow users to specify the generated
34685 configuration file. Default to stdout.
34686 (update_grub_dir): Rename to ...
34687 (grub_mkconfig_dir): ... this.
34688 (grub_cfg): Default to an empty string.
34689 * conf/common.rmk (update-grub): Rename to ...
34690 (grub-mkconfig): ... this.
34691 (update-grub_lib): Copy to ...
34692 (grub-mkconfig_lib): ... this.
34693 (update-grub_SCRIPTS): Copy to ...
34694 (grub-mkconfig_SCRIPTS): ... this. Update all users.
34695 (update-grub_DATA): Rename to ...
34696 (grub-mkconfig_DATA): ... this.
34697
556ce6ac 346982008-09-28 Robert Millan <rmh@aybabtu.com>
34699
34700 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
34701 to `modified'. Add the real `created' field.
34702 (grub_iso9660_uuid): Use `modified' rather than `created' for
34703 constructing the UUID.
34704
347052008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 34706
34707 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
34708 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
34709
92274e85 347102008-09-28 Bean <bean123ch@gmail.com>
34711
34712 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
34713 Thanks to Christian Franke for finding this bug.
34714
add6f17a 347152008-09-25 Robert Millan <rmh@aybabtu.com>
34716
34717 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
34718 instances of grub_util_get_disk_name() (see previous commit).
34719
d2a367b8 347202008-09-25 Robert Millan <rmh@aybabtu.com>
34721
34722 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
34723 `util/i386/get_disk_name.c'.
34724 * conf/i386-efi.rmk: Likewise.
34725 * conf/x86_64-efi.rmk: Likewise.
34726 * conf/i386-coreboot.rmk: Likewise.
34727 * conf/i386-ieee1275.rmk: Likewise.
34728 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
34729 `util/ieee1275/get_disk_name.c'.
34730 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
34731 * util/ieee1275/get_disk_name.c: Remove file.
34732 * util/i386/get_disk_name.c: Remove file.
34733 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
34734 "hd%d" for device.map entries, rather than using
34735 grub_util_get_disk_name().
34736
81a06771 347372008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 34738
34739 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
34740 warning.
34741 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
34742
5a004279 347432008-09-24 Carles Pina i Estany <carles@pina.cat>
34744
34745 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
34746 Changed to 0x5100.
34747 (GRUB_TERM_PPAGE): Changed to 0x4900.
34748
397093d3 347492008-09-24 Robert Millan <rmh@aybabtu.com>
34750
34751 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
34752 macros (they were i386-pc specific).
34753 * include/grub/sparc64/ieee1275/console.h: Likewise.
34754 * include/grub/efi/console.h: Likewise.
34755
a91b6c7c 347562008-09-22 Bean <bean123ch@gmail.com>
34757
34758 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
34759 resident and in attribute list.
34760
34761 * include/grub/ntfs.h (BMP_LEN): Removed.
34762
c40fd116 347632008-09-22 Bean <bean123ch@gmail.com>
34764
81a06771 34765 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 34766 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
34767
34768 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
34769 error occurs, as grub_disk_open will call grub_disk_close, which will
34770 call p->close (scsi).
34771
81a06771 347722008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 34773
34774 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
34775 (AC_PREREQ): Bumped to 2.59.
34776 (AC_TRY_COMPILE): Replace obsolete macro with ...
34777 (AC_COMPILE_IFELSE): ... this.
34778 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
34779 (AC_LINK_IFELSE): ... this.
34780
5dc43410 347812008-09-21 Felix Zielcke <fzielcke@z-51.de>
34782
34783 * autogen.sh: Add a call to `gendistlist.sh'.
34784
9035dce4 347852008-09-19 Christian Franke <franke@computer.org>
34786
34787 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
34788 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
34789 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
34790 Export __enable_execute_stack() to modules.
34791 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
34792 New function.
34793
7fd75377 347942008-09-09 Felix Zielcke <fzielcke@z-51.de>
34795
040030b3 34796 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
34797 Sort the list.
34798
347992008-09-09 Felix Zielcke <fzielcke@z-51.de>
34800
34801 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 34802 #include <grub/util/hostdisk.h>.
34803
89d5ffcf 348042008-09-08 Robert Millan <rmh@aybabtu.com>
34805
34806 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
34807 segments when their filesz is zero (grub_file_read() interprets
81a06771 34808 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 34809 Use `lowest_segment' rather than 0 for calculating the current
34810 segment load address.
34811
40da438f 348122008-09-08 Robert Millan <rmh@aybabtu.com>
34813
34814 * util/hostdisk.c (open_device): Replace a grub_util_info() call
34815 with grub_dprintf("hostdisk", ...), as it was so verbose that it
34816 clobbered useful information.
34817
ddbf5556 348182008-09-08 Robert Millan <rmh@aybabtu.com>
34819
34820 * include/grub/util/biosdisk.h: Move to ...
34821 * include/grub/util/hostdisk.h: ... here. Update all users.
34822 * util/biosdisk.c: Move to ...
34823 * util/hostdisk.c: ... here. Update all users.
34824
783d0f48 348252008-09-07 Robert Millan <rmh@aybabtu.com>
34826
34827 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
34828 variables.
34829 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
34830 and length can be stored directly in the `mbi->mmap_addr' and
34831 `mbi->mmap_length' struct fields.
34832
548e2ea5 348332008-09-07 Robert Millan <rmh@aybabtu.com>
34834
34835 * conf/i386.rmk: New file. Provides declaration for building
34836 `cpuid.mod'.
34837 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
34838 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
34839 variables.
34840 Include `conf/i386.mk'.
34841 * conf/i386-efi.rmk: Likewise.
34842 * conf/x86_64-efi.rmk: Likewise.
34843 * conf/i386-coreboot.rmk: Likewise.
34844 * conf/i386-ieee1275.rmk: Likewise.
34845
0ea85a37 348462008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
34847
34848 Based on patch created by Colin D Bennett <colin@gibibit.com>.
34849 Adds optimization support for BGR based modes.
34850
34851 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
34852 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34853 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34854 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34855 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34856 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34857 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34858 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34859 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34860 (grub_video_i386_vbeblit_index_index): Likewise.
34861 (grub_video_i386_vbeblit_replace_directN): Added.
34862 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34863 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34864 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34865 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34866 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34867 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 34868 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 34869 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34870 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34871 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34872 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34873 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34874 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
34875
34876 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
34877 (grub_video_i386_vbefill_R8G8B8): Likewise.
34878 (grub_video_i386_vbefill_index): Likewise.
34879 (grub_video_i386_vbefill_direct32): Added.
34880 (grub_video_i386_vbefill_direct24): Likewise.
34881 (grub_video_i386_vbefill_direct16): Likewise.
34882 (grub_video_i386_vbefill_direct8): Likewise.
34883
81a06771 34884 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 34885 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
34886 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
34887 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
34888 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
34889 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 34890
0ea85a37 34891 * video/video.c (grub_video_get_blit_format): Updated to use new
34892 blit formats. Added handling for 16 bit color modes.
81a06771 34893
34894 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 34895 fillers.
34896 (common_blitter): Updated to use new blitters.
34897
34898 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
34899 Removed.
34900 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
34901 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34902 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34903 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34904 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34905 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34906 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34907 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34908 (grub_video_i386_vbeblit_index_index): Likewise.
34909 (grub_video_i386_vbeblit_replace_directN): Added.
34910 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
34911 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
34912 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
34913 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
34914 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
34915 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
34916 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
34917 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
34918 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
34919 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
34920 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
34921 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
34922 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 34923
0ea85a37 34924 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
34925 (grub_video_i386_vbefill_R8G8B8): Likewise.
34926 (grub_video_i386_vbefill_index): Likewise.
34927 (grub_video_i386_vbefill_direct32): Added.
34928 (grub_video_i386_vbefill_direct24): Likewise.
34929 (grub_video_i386_vbefill_direct16): Likewise.
34930 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 34931
0ea85a37 34932 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
34933 types.
81a06771 34934
0ea85a37 34935 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
34936 types.
81a06771 34937
0ea85a37 34938 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
34939 blitter types.
81a06771 34940
0ea85a37 34941 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
34942 types.
34943
e8a83df6 349442008-09-06 Felix Zielcke <fzielcke@z-51.de>
34945
34946 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
34947 RAID level 1.
34948
6bcd8ee5 349492008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 34950
6bcd8ee5 34951 * fs/iso9660.c (grub_iso9660_date): New structure.
34952 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
34953 (grub_iso9660_uuid): New function.
c375ae58 34954
59261157 349552008-09-05 Bean <bean123ch@gmail.com>
34956
34957 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
34958
34959 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
34960 insensitive bit for names in Win32 and Win32 & DOS namespace.
34961
34962 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
34963
34964 * include/grub/types.h (LONG_MAX): Likewise.
34965
58b6645a 349662008-09-04 Felix Zielcke <fzielcke@z-51.de>
34967
4ee55921 34968 * util/getroot.c: Include <config.h>.
34969 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
34970 add support for /dev/md/N devices and handle LVM double dash escaping.
34971
349722008-09-04 Felix Zielcke <fzielcke@z-51.de>
34973
34974 * config.guess: Update to latest version from config git.
34975 * config.sub: Likewise.
58b6645a 34976
9124f65d 349772008-09-03 Robert Millan <rmh@aybabtu.com>
34978
34979 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
34980 `disk->total_sectors'.
34981
81a06771 349822008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 34983
34984 * include/grub/normal.h: Fixed incorrect comment for
34985 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
34986
81a06771 349872008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 34988
34989 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
34990 values with defines.
34991
34992 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
34993 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
34994 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
34995 (GRUB_VBE_MODEATTR_COLOR): Likewise.
34996 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
34997 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
34998 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
34999 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35000 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35001 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35002 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35003 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35004 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35005 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35006 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35007 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35008 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35009 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35010 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35011
93d5cbf8 350122008-08-31 Robert Millan <rmh@aybabtu.com>
35013
35014 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35015 declaration.
35016 (grub_multiboot): Fix a few warnings.
35017
21751d50 350182008-08-31 Robert Millan <rmh@aybabtu.com>
35019
35020 * loader/i386/pc/multiboot.c: Update comment not to say that
35021 boot_device support is unimplemented.
35022
e27a75c5 350232008-08-31 Robert Millan <rmh@aybabtu.com>
35024
35025 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35026 or memory map support are unimplemented.
35027
81a06771 350282008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 35029
35030 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35031
81a06771 350322008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 35033
35034 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35035 total video memory in 'vbeinfo' output; show color format details for
35036 each video mode.
35037
7c5d8d95 350382008-08-30 Pavel Roskin <proski@gnu.org>
35039
35040 * util/genmoddep.c: Remove for real this time.
35041 * DISTLIST: Remove util/genmoddep.c.
35042
4cebd25a 350432008-08-30 Robert Millan <rmh@aybabtu.com>
35044
35045 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35046 as required by Multiboot spec (it was already 4-byte aligned, but
35047 only by chance).
35048
b497a269 350492008-08-29 Pavel Roskin <proski@gnu.org>
35050
e3925185 35051 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35052 * kern/powerpc/ieee1275/startup.S: ... this.
35053 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35054 * DISTLIST: Likewise.
35055
b497a269 35056 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35057 grub/cpu/kernel.h. Add start label for consistency with other
35058 platforms. Add grub_prefix immediately after start. Add jump
35059 to the code after grub_prefix.
35060 * include/grub/powerpc/kernel.h: Provide valid values for
35061 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35062
6e5a42fe 350632008-08-29 Bean <bean123ch@gmail.com>
35064
35065 * configure.ac: Change host_os to cygwin for mingw.
35066 (asprintf): New check for function.
35067
35068 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35069 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35070
35071 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 35072 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 35073 sync, sleep and grub_util_get_disk_size for mingw.
35074
35075 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35076 to get size in mingw.
35077 (open_device): Use flag O_BINARY if it's defined.
35078 (find_root_device): Add dummy code for mingw.
35079
35080 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35081 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35082 (get_scsi_disk_name): Return 0 for mingw.
35083
35084 * util/hostfs.c: #include <grub/util/misc.h>.
35085 (grub_hostfs_open): Use "rb" flag to open file, use
35086 grub_util_get_disk_size to get disk size for mingw.
35087
35088 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35089 (asprintf): New function if HAVE_ASPRINTF is not set.
35090 (sync): New function for mingw.
35091 (sleep): Likewise.
35092 (grub_util_get_disk_size): Likewise.
35093
ab3f2673 350942008-08-28 Pavel Roskin <proski@gnu.org>
35095
35096 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35097 kern/time.c.
35098
1c282483 350992008-08-28 Robert Millan <rmh@aybabtu.com>
35100
35101 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35102
678e849c 351032008-08-28 Robert Millan <rmh@aybabtu.com>
35104
35105 Change find_grub_drive() syntax so it doesn't prevent it from
35106 detecting NULL names as errors.
35107
35108 * util/biosdisk.c (find_grub_drive): Move free slot search code
35109 from here ...
35110 (find_free_slot): ... to here.
35111 (read_device_map): Use find_free_slot() to search for free slots.
35112
965c75ca 351132008-08-27 Marco Gerards <marco@gnu.org>
35114
35115 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35116 (scsi_mod_SOURCES): New variable.
35117 (scsi_mod_CFLAGS): Likewise
35118 (scsi_mod_LDFLAGS): Likewise.
35119
35120 * disk/scsi.c: New file.
35121
35122 * include/grub/scsi.h: Likewise.
35123
35124 * include/grub/scsicmd.h: Likewise.
35125
35126 * disk/ata.c: Include <grub/scsi.h>.
35127 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35128 instead.
35129 (grub_ata_iterate): Skip ATAPI devices.
35130 (grub_ata_open): Only handle ATAPI devices.
35131 (struct grub_atapi_read): Removed.
35132 (grub_atapi_readsector): Likewise.
35133 (grub_ata_read): No longer handle ATAPI devices.
35134 (grub_ata_write): Likewise.
35135 (grub_atapi_iterate): New function.
35136 (grub_atapi_read): Likewise.
35137 (grub_atapi_write): Likewise.
35138 (grub_atapi_open): Likewise.
35139 (grub_atapi_close): Likewise.
35140 (grub_atapi_dev): New variable.
35141 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35142 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35143
35144 * include/grub/disk.h (enum grub_disk_dev_id): Add
35145 `GRUB_DISK_DEVICE_SCSI_ID'.
35146
c07ae501 351472008-08-26 Robert Millan <rmh@aybabtu.com>
35148
35149 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35150 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35151 descriptive.
35152
5ed20adc 351532008-08-23 Bean <bean123ch@gmail.com>
35154
35155 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35156 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35157 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35158 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35159 dm_nv.mod.
35160 (raid5rec_mod_SOURCES): New macro.
35161 (raid5rec_mod_CFLAGS): Likewise.
35162 (raid5rec_mod_LDFLAGS): Likewise.
35163 (raid6rec_mod_SOURCES): Likewise.
35164 (raid6rec_mod_CFLAGS): Likewise.
35165 (raid6rec_mod_LDFLAGS): Likewise.
35166 (mdraid_mod_SOURCES): Likewise.
35167 (mdraid_mod_CFLAGS): Likewise.
35168 (mdraid_mod_LDFLAGS): Likewise.
35169 (dm_nv_mod_SOURCES): Likewise.
35170 (dm_nv_mod_CFLAGS): Likewise.
35171 (dm_nv_mod_LDFLAGS): Likewise.
35172
35173 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35174 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35175 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35176
35177 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35178 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35179
35180 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35181
35182 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35183
35184 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35185
35186 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35187
35188 * disk/raid5_recover.c: New file.
35189
35190 * disk/raid6_recover.c: Likewise.
35191
35192 * disk/mdraid_linux.c: Likewise.
35193
35194 * disk/dmraid_nvidia.c: Likewise.
35195
35196 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35197 ULONG_MAX.
35198
35199 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35200 calculate the size of raid device.
35201 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35202 different layout of raid5.
35203 (grub_raid_scan_device): Remove code specific to mdraid.
35204 (grub_raid_list): New variable.
35205 (free_array): New function.
35206 (grub_raid_register): Likewise.
35207 (grub_raid_unregister): Likewise.
35208 (grub_raid_rescan): Likewise.
35209 (GRUB_MOD_INIT): Don't iterate device here.
35210 (GRUB_MOD_FINI): Use free_array to release resource.
35211
35212 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35213 (grub_raid5_recover_func_t): New function variable type.
35214 (grub_raid6_recover_func_t): Likewise.
35215 (grub_raid5_recover_func): New variable.
35216 (grub_raid6_recover_func): Likewise.
35217 (grub_raid_register): New function.
35218 (grub_raid_unregister): Likewise.
35219 (grub_raid_rescan): Likewise.
35220 (grub_raid_block_xor): Likewise.
35221
35222 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35223 (CMD_CRC): New macro.
35224 (part): Removed.
35225 (read_file): Handle device as well as file.
35226 (cmd_crc): New function.
35227 (fstest): Handle multiple disks.
35228 (options): Remove part, raw and long, add root and diskcount.
35229 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 35230 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 35231 add handling for the new options, support multiple disks.
35232
35233 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35234
29c18915 352352008-08-23 Bean <bean123ch@gmail.com>
35236
35237 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35238
35239 * genfslist.sh: Ignore kernel.mod.
35240
35241 * genpartmaplist.sh: Likewise.
35242
8415f261 352432008-08-23 Robert Millan <rmh@aybabtu.com>
35244
35245 * util/getroot.c (find_root_device): Skip anything that starts with
35246 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35247
d5a7dc5b 352482008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 35249
d5a7dc5b 35250 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35251 * util/grub.d/00_header.in: Allow the administrator to change default
35252 gfxmode via ${GRUB_GFXMODE}.
35253
380cfbb4 352542008-08-21 Felix Zielcke <fzielcke@z-51.de>
35255
35256 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35257
c9baafe7 352582008-08-21 Robert Millan <rmh@aybabtu.com>
35259
35260 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35261 loader.
35262 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35263 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35264
e290bef2 352652008-08-20 Carles Pina i Estany <carles@pina.cat>
35266
35267 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35268 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35269
f9dbfc96 352702008-08-19 Robert Millan <rmh@aybabtu.com>
35271
35272 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35273 (struct grub_virtual_screen): Remove `cursor_color'.
35274 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35275 initialization.
35276 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35277
dd6bd6ab 352782008-08-18 Robert Millan <rmh@aybabtu.com>
35279
35280 Unify (identical) linux_normal.c files.
35281 * loader/i386/efi/linux_normal.c: Move from here ...
35282 * loader/linux_normal.c: ... to here. Update all users.
35283 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35284 * loader/i386/ieee1275/linux_normal.c: Likewise.
35285
7f42f83e 352862008-08-18 Robert Millan <rmh@aybabtu.com>
35287
35288 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35289 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35290 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35291 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35292 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35293 New macros.
35294 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35295 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35296 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35297 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35298 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35299 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35300 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35301 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35302 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35303 portably using grub_getxy().
35304 Replace `-EFI' with `-bzImage' in boot message.
35305
38487ddb 353062008-08-17 Robert Millan <rmh@aybabtu.com>
35307
35308 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35309
deceb3ec 353102008-08-17 Robert Millan <rmh@aybabtu.com>
35311
35312 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35313
35314 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35315 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35316 (grub_machine_mmap_iterate): New function declaration.
35317 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35318 structure.
35319 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35320 macros.
35321
35322 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35323 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35324 Move e820 parsing from here ...
35325 * kern/i386/pc/mmap.c: New file.
35326 (grub_machine_mmap_iterate): ... to here.
35327
35328 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35329 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35330 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35331 (grub_available_iterate): Redeclare to return `void', and redeclare
35332 its hook to use grub_uint64_t as addr and size parameters, and rename
35333 to ...
35334 (grub_machine_mmap_iterate): ... this. Update all users.
35335
35336 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35337 to make it more readable. Rename to ...
35338 (grub_machine_mmap_iterate): ... this.
35339
35340 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35341 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35342 (grub_multiboot): Allocate an extra region after the payload, and fill
35343 it with a Multiboot memory map. Adjust a.out loader to calculate size
35344 with the extra space.
35345 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35346 with the extra space.
35347
f8aa0f43 353482008-08-17 Carles Pina i Estany <carles@pina.cat>
35349
9807deb9 35350 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 35351
605f5bb6 353522008-08-17 Felix Zielcke <fzielcke@z-51.de>
35353
35354 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35355 mdate-sh to the list `find' searches for.
35356 * DISTLIST: Regenerated.
35357
210db6c6 353582008-08-16 Felix Zielcke <fzielcke@z-51.de>
35359
35360 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35361 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 35362 genmoddep.awk, gensymlist.sh.in.
35363 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 35364 * DISTLIST: Regenerated.
48cdbfd4 35365 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 35366
1082b929 353672008-08-16 Robert Millan <rmh@aybabtu.com>
35368
35369 * disk/raid.c (grub_raid_init): Handle/report errors set by
35370 grub_device_iterate().
35371 * disk/lvm.c (grub_lvm_init): Likewise.
35372
42ce5170 353732008-08-15 Bean <bean123ch@gmail.com>
35374
35375 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35376 and datehook.mod.
35377 (datetime_mod_SOURCES): New macro.
35378 (datetime_mod_CFLAGS): Likewise.
35379 (datetime_mod_LDFLAGS): Likewise.
35380 (date_mod_SOURCES): Likewise.
35381 (date_mod_CFLAGS): Likewise.
35382 (date_mod_LDFLAGS): Likewise.
35383 (datehook_mod_SOURCES): Likewise.
35384 (datehook_mod_CFLAGS): Likewise.
35385 (datehook_mod_LDFLAGS): Likewise.
35386
35387 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35388 and datehook.mod.
35389 (datetime_mod_SOURCES): New macro.
35390 (datetime_mod_CFLAGS): Likewise.
35391 (datetime_mod_LDFLAGS): Likewise.
35392 (date_mod_SOURCES): Likewise.
35393 (date_mod_CFLAGS): Likewise.
35394 (date_mod_LDFLAGS): Likewise.
35395 (datehook_mod_SOURCES): Likewise.
35396 (datehook_mod_CFLAGS): Likewise.
35397 (datehook_mod_LDFLAGS): Likewise.
35398
35399 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35400 and datehook.mod.
35401 (datetime_mod_SOURCES): New macro.
35402 (datetime_mod_CFLAGS): Likewise.
35403 (datetime_mod_LDFLAGS): Likewise.
35404 (date_mod_SOURCES): Likewise.
35405 (date_mod_CFLAGS): Likewise.
35406 (date_mod_LDFLAGS): Likewise.
35407 (datehook_mod_SOURCES): Likewise.
35408 (datehook_mod_CFLAGS): Likewise.
35409 (datehook_mod_LDFLAGS): Likewise.
35410
35411 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35412 and datehook.mod.
35413 (datetime_mod_SOURCES): New macro.
35414 (datetime_mod_CFLAGS): Likewise.
35415 (datetime_mod_LDFLAGS): Likewise.
35416 (date_mod_SOURCES): Likewise.
35417 (date_mod_CFLAGS): Likewise.
35418 (date_mod_LDFLAGS): Likewise.
35419 (datehook_mod_SOURCES): Likewise.
35420 (datehook_mod_CFLAGS): Likewise.
35421 (datehook_mod_LDFLAGS): Likewise.
35422
35423 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35424 and datehook.mod.
35425 (datetime_mod_SOURCES): New macro.
35426 (datetime_mod_CFLAGS): Likewise.
35427 (datetime_mod_LDFLAGS): Likewise.
35428 (date_mod_SOURCES): Likewise.
35429 (date_mod_CFLAGS): Likewise.
35430 (date_mod_LDFLAGS): Likewise.
35431 (datehook_mod_SOURCES): Likewise.
35432 (datehook_mod_CFLAGS): Likewise.
35433 (datehook_mod_LDFLAGS): Likewise.
35434
35435 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35436
35437 * commands/date.c: New file.
35438
35439 * hook/datehook.c: Likewise.
35440
35441 * include/grub/lib/datetime.h: Likewise.
35442
35443 * include/grub/i386/cmos.h: Likewise.
35444
35445 * lib/datetime.c: Likewise.
35446
35447 * lib/i386/datetime.c: Likewise.
35448
35449 * lib/efi/datetime.c: Likewise.
35450
0e9242da 354512008-08-14 Robert Millan <rmh@aybabtu.com>
35452
35453 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35454 (grub_mkelfimage_SOURCES): New variable.
35455 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35456
35457 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35458 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35459 * conf/powerpc-ieee1275.rmk: Likewise.
35460 * conf/i386-ieee1275.rmk: Likewise.
35461
35462 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35463 * kern/i386/coreboot/init.c: Likewise.
35464
35465 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35466 with `<grub/cpu/kernel.h>'.
35467 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35468 to ...
35469 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35470 * kern/i386/coreboot/startup.S: Likewise.
35471
35472 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35473 (GRUB_MOD_GAP): Remove.
35474 * include/grub/powerpc/kernel.h: New file.
35475 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35476 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35477 * include/grub/i386/kernel.h: New file.
35478 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35479 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35480 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35481
35482 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35483 `grub-mkelfimage'.
35484 Use --directory when invoking grub_mkimage.
35485
35486 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35487 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35488 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35489 and GRUB_KERNEL_CPU_PREFIX.
35490
b86408f8 354912008-08-14 Felix Zielcke <fzielcke@z-51.de>
35492
d5e619ca 35493 * include/grub/err.h (grub_err_printf): New function prototype.
35494 * util/misc.c (grub_err_printf): New function.
35495 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35496 grub_printf.
35497 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 35498
7161f0e0 354992008-08-13 Robert Millan <rmh@aybabtu.com>
35500
35501 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35502
a1967522 355032008-08-13 Robert Millan <rmh@aybabtu.com>
35504
35505 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35506 boot entry.
35507
371458b5 355082008-08-12 Robert Millan <rmh@aybabtu.com>
35509
35510 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35511 of the relocation code from here ...
35512 (grub_multiboot): ... to here.
35513 (forward_relocator, backward_relocator): Move from here ...
35514 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35515 (grub_multiboot_backward_relocator): ... to here.
35516 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35517 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35518 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35519 (grub_multiboot_forward_relocator_end)
35520 (grub_multiboot_backward_relocator)
35521 (grub_multiboot_backward_relocator_end): New variables.
35522
05f9452b 355232008-08-12 Bean <bean123ch@gmail.com>
35524
35525 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35526
20024ab0 355272008-08-11 Robert Millan <rmh@aybabtu.com>
35528
35529 * kern/i386/linuxbios/startup.S: Move from here ...
35530 * kern/i386/coreboot/startup.S: ... to here.
35531
35532 * kern/i386/linuxbios/init.c: Move from here ...
35533 * kern/i386/coreboot/init.c: ... to here.
35534
35535 * kern/i386/linuxbios/table.c: Move from here ...
35536 * kern/i386/coreboot/mmap.c: ... to here.
35537
35538 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35539
e352e9cd 355402008-08-11 Robert Millan <rmh@aybabtu.com>
35541
35542 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35543 errors. Leave it to the upper layer to handle them.
35544
2d05bc6a 355452008-08-09 Christian Franke <franke@computer.org>
35546
35547 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35548 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35549 Install `grub.d/10_windows' only on Cygwin.
35550 * configure.ac: Add subst of `target_os'.
35551 Check `target_os' also before setting TARGET_OBJ2ELF.
35552 Add `--enable-grub-pe2elf'.
35553
042bd419 355542008-08-08 Robert Millan <rmh@aybabtu.com>
35555
35556 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35557 (grub_last_time): Change type to grub_uint64_t.
35558 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35559 (grub_disk_close): Likewise.
35560
35561 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35562 (run_menu): Migrate code from to using grub_get_time_ms().
35563
35564 * util/misc.c (grub_get_time_ms): New function.
35565
7f280db5 355662008-08-08 Marco Gerards <marco@gnu.org>
35567
35568 * disk/ata.c (grub_ata_regget): Change return type to
35569 `grub_uint8_t'.
35570 (grub_ata_regget2): Likewise.
35571 (grub_ata_wait_status): New function.
35572 (grub_ata_wait_busy): Removed function, updated all users to use
35573 `grub_ata_wait_status'.
35574 (grub_ata_wait_drq): Likewise.
35575 (grub_ata_cmd): New function.
35576 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35577 error handling.
35578 (grub_ata_pio_write): Add error handling.
35579 (grub_atapi_identify): Likewise.
35580 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35581 handling.
35582 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35583 handling. Actually use the detected registers. Reorder the
35584 detection logic such that it is easier to read.
35585 (grub_ata_pciinit): Do not assign the same ID to each controller.
35586 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35587 handling.
35588 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35589
35590 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35591
1fbc5e66 355922008-08-08 Marco Gerards <marco@gnu.org>
35593
35594 * NEWS: Update.
35595
819ce6c0 355962008-08-07 Bean <bean123ch@gmail.com>
35597
35598 * include/grub/x86_64/pci.h: New file.
35599
5c41d44d 356002008-08-07 Christian Franke <franke@computer.org>
35601
35602 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35603 (TIMER2_GATE): Likewise.
35604 (grub_pit_wait): Add enable/disable of the timer2 gate
35605 bit of port 0x61. This fixes a possible infinite loop.
35606
5ebc275d 356072008-08-07 Bean <bean123ch@gmail.com>
35608
35609 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35610 kern/i386/tsc.c and kern/i386/pit.c.
35611
35612 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35613 x86_64 platform.
35614
35615 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35616 <grub/i386/tsc.h>.
35617
35618 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35619
e383b3d0 356202008-08-07 Bean <bean123ch@gmail.com>
35621
35622 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35623
35624 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35625
35626 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35627 multiple inclusion. Add #include <grub/types.h>.
35628
1cbb58ac 356292008-08-06 Christian Franke <franke@computer.org>
35630
35631 * conf/common.rmk: Build and install `10_windows'.
35632 * util/grub.d/10_windows.in: New script.
35633
337f5a1e 356342008-08-06 Pavel Roskin <proski@gnu.org>
35635
35636 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35637
057bc4ac 356382008-08-06 Robert Millan <rmh@aybabtu.com>
35639
35640 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35641 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35642
2b99f123 356432008-08-06 Bean <bean123ch@gmail.com>
35644
35645 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35646 (grub_pxefs_fs_int): Remove dummy definition.
35647 (grub_pxefs_open): Use data->block_size to store the current block
35648 size setting.
35649 (grub_pxefs_read): Use block size stored in data->block_size. As the
35650 value of grub_pxe_blksize can be changed after the file is opened.
35651
9f0234cb 356522008-08-06 Bean <bean123ch@gmail.com>
35653
35654 * fs/i386/pc/pxe.c (curr_file): new variable.
35655 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35656 require the dummy internal file system anymore.
35657 (grub_pxefs_read): Removed.
35658 (grub_pxefs_close): Likewise.
35659 (grub_pxefs_fs_int): Likewise.
35660 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35661 connection when we switch file.
35662 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35663
a55d42e0 356642008-08-06 Robert Millan <rmh@aybabtu.com>
35665
35666 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
35667 `halt.mod'.
35668 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
35669 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
35670
35671 * kern/i386/halt.c: New file.
35672 * kern/i386/reboot.c: Likewise.
35673 * include/grub/i386/reboot.h: Likewise.
35674 * include/grub/i386/halt.h: Likewise.
35675
35676 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
35677 Include `<grub/cpu/halt.h>'.
35678 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
35679 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
35680
35681 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
35682 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
35683 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
35684 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
35685 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
35686 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
35687 from here ...
35688 * include/grub/i386/at_keyboard.h: ... to here.
35689
24371d26 356902008-08-05 Robert Millan <rmh@aybabtu.com>
35691
35692 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
35693 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
35694 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
35695 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35696 `kern/generic/millisleep.c'.
35697
35698 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
35699 instead of grub_get_rtc().
35700 (grub_tsc_init): Initialize `tsc_boot_time'.
35701
35702 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
35703 (grub_machine_init): Use grub_tsc_init() rather than
35704 installing an RTC-based handler via grub_install_get_time_ms().
35705
35706 * kern/i386/pit.c: New file.
35707 * include/grub/i386/pit.h: Likewise.
35708
9e7007b3 357092008-08-05 Bean <bean123ch@gmail.com>
35710
35711 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
35712
35713 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
35714 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
35715 (pxe_mod_SOURCES): New macro.
35716 (pxe_mod_CFLAGS): Likewise.
35717 (pxe_mod_LDFLAGS): Likewise.
35718 (pxecmd_mod_SOURCES): Likewise.
35719 (pxecmd_mod_CFLAGS): Likewise.
35720 (pxecmd_mod_LDFLAGS): Likewise.
35721
35722 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
35723 (grub_pxe_call): Likewise.
35724
35725 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
35726
35727 * commands/i386/pc/pxecmd.c: New file.
35728
9f0234cb 35729 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 35730
35731 * include/grub/i386/pc/pxe.h: Likewise.
35732
6977d49f 357332008-08-05 Bean <bean123ch@gmail.com>
35734
35735 * util/console.c (grub_console_cur_color): New variable.
35736 (grub_console_standard_color): Likewise.
35737 (grub_console_normal_color): Likewise.
35738 (grub_console_highlight_color): Likewise.
35739 (color_map): Likewise.
35740 (use_color): Likewise.
35741 (NUM_COLORS): New macro.
35742 (grub_ncurses_setcolorstate): Handle color properly.
35743 (grub_ncurses_setcolor): Don't change color here, just remember the
35744 settings, color will be set in grub_ncurses_setcolorstate.
35745 (grub_ncurses_getcolor): New function.
35746 (grub_ncurses_init): Initialize color pairs.
35747 (grub_ncurses_term): New member grub_ncurses_getcolor.
35748
9c2ff3ee 357492008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 35750
9c2ff3ee 35751 High resolution timer support. Implemented for x86 CPUs using TSC.
35752 Extracted generic grub_millisleep() so it's linked in only as needed.
35753 This requires a Pentium compatible CPU; if the RDTSC instruction is
35754 not supported, then it falls back on the generic grub_get_time_ms()
35755 implementation that uses the machine's RTC.
35756
35757 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
35758 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
35759 `kern/generic/millisleep.c'.
35760
35761 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
35762 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
35763
35764 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
35765 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
35766
35767 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35768
35769 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35770 `kern/generic/millisleep.c'.
35771
35772 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
35773
35774 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
35775
35776 * kern/generic/rtc_get_time_ms.c: New file.
35777
35778 * kern/generic/millisleep.c: New file.
337f5a1e 35779
9c2ff3ee 35780 * kern/misc.c: Don't include
35781 <kern/time.h> anymore.
35782 (grub_millisleep_generic): Removed.
35783
35784 * commands/sleep.c (grub_interruptible_millisleep): Uses
35785 grub_get_time_ms() instead of grub_get_rtc().
35786
35787 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
35788 function.
35789 (grub_cpu_is_cpuid_supported): New inline function.
35790 (grub_cpu_is_tsc_supported): New inline function.
35791 (grub_tsc_init): New function prototype.
35792 (grub_tsc_get_time_ms): New function prototype.
35793
35794 * kern/i386/tsc.c (grub_get_time_ms): New file.
35795
35796 * include/grub/time.h: Include <grub/types.h.
35797 (grub_millisleep_generic): Removed.
35798 (grub_get_time_ms): New prototype.
35799 (grub_install_get_time_ms): New prototype.
35800 (grub_rtc_get_time_ms): New prototype.
35801
35802 * kern/time.c (grub_get_time_ms): New function.
35803 (grub_install_get_time_ms): New function.
35804
35805 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
35806 <grub/time.h> anymore.
35807 (grub_millisleep): Removed.
35808 (grub_machine_init): Call grub_tsc_init.
35809
35810 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
35811 get_time_ms() implementation.
35812
35813 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
35814 (ieee1275_get_time_ms): New function.
35815 (grub_machine_init): Install get_time_ms() implementation.
35816
35817 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
35818 (grub_machine_init): Call grub_tsc_init().
35819 (grub_millisleep): Removed.
bf06a93f 35820
9c2ff3ee 35821 * kern/ieee1275/init.c (grub_millisleep): Removed.
35822 (grub_machine_init): Install ieee1275_get_time_ms()
35823 implementation.
35824 (ieee1275_get_time_ms): New function.
35825 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
35826 real work.
35827
9ec92aaf 358282008-08-05 Marco Gerards <marco@gnu.org>
35829
35830 * disk/ata.c: Include <grub/pci.h>.
35831 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
35832 (grub_ata_initialize): Rewritten.
35833 (grub_ata_device_initialize): New function.
35834
8d23f507 358352008-08-04 Pavel Roskin <proski@gnu.org>
35836
35837 * kern/main.c: Include grub/mm.h.
35838
5e15ee3d 358392008-08-04 Robert Millan <rmh@aybabtu.com>
35840
35841 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
35842 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
35843 corruption problem).
35844
a9053f8f 358452008-08-04 Robert Millan <rmh@aybabtu.com>
35846
35847 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
35848 warnings introduced in my last commit.
35849
dd19c7d7 358502008-08-03 Robert Millan <rmh@aybabtu.com>
35851
35852 Make PCI available on all i386 architectures.
35853
35854 * include/grub/i386/pc/pci.h: Move from here ...
35855 * include/grub/i386/pci.h: ... to here.
35856
35857 * include/grub/i386/pc/pci.h: Remove.
35858 * include/grub/i386/efi/pci.h: Remove.
35859 * include/grub/x86_64/efi/pci.h: Remove.
35860
35861 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
35862 `<grub/cpu/pci.h>'.
35863
35864 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
35865 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
35866 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
35867
35868 * conf/i386-ieee1275.rmk: Likewise.
35869
e14a6184 358702008-08-03 Robert Millan <rmh@aybabtu.com>
35871
35872 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
35873 (grub_console_setcursor): Make it possible to set cursor off.
35874
52768e37 358752008-08-03 Robert Millan <rmh@aybabtu.com>
35876
35877 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
35878 of modules instead of assuming which platform provides what.
35879 * util/update-grub.in: Likewise.
35880
2d52f57f 358812008-08-03 Robert Millan <rmh@aybabtu.com>
35882
35883 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
35884 instead of `grub_install_dos_part' to determine whether a drive needs
35885 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 35886 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 35887
2a5cd121 358882008-08-02 Robert Millan <rmh@aybabtu.com>
35889
35890 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
35891
93808428 358922008-08-02 Robert Millan <rmh@aybabtu.com>
35893
35894 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
35895 of informational grub_dprintf() calls.
35896
3bd0a12a 358972008-08-02 Robert Millan <rmh@aybabtu.com>
35898
35899 * disk/memdisk.c (memdisk_size): Don't initialize.
35900 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
35901
35902 * include/grub/i386/pc/kernel.h
35903 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
35904 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
35905 (grub_memdisk_image_size, grub_arch_memdisk_addr)
35906 (grub_arch_memdisk_size): Remove.
35907
35908 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
35909 field (was only used to transfer a constant). Add `type' field to
35910 support multiple module types.
35911 (grub_module_iterate): New function.
35912
35913 * kern/device.c (grub_device_open): Do not hide error messages
35914 when grub_disk_open() fails. Use grub_print_error() instead.
35915
35916 * kern/i386/pc/init.c (grub_arch_modules_addr)
35917 (grub_arch_memdisk_size): Remove functions.
35918 (grub_arch_modules_addr): Return the module address in high memory
35919 (now that it isn't copied anymore).
35920
35921 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
35922 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
35923 decompression routine (grub_total_module_size already includes that
35924 now). Don't copy modules back to low memory.
35925
35926 * kern/main.c: Include `<grub/mm.h>'.
35927 (grub_load_modules): Split out (and use) ...
35928 (grub_module_iterate): ... this function, which iterates through
35929 module objects and runs a hook.
35930 Comment out grub_mm_init_region() call, as it would cause non-ELF
35931 modules to be overwritten.
35932
35933 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
35934 the memdisk image in its own region, make it part of the module list.
35935 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
35936 (main): Parse --memdisk|-m option, and pass user-provided path as
35937 parameter to generate_image().
35938 (add_segments): Pass `memdisk_path' down to load_modules().
35939 (load_modules): Embed memdisk image in module section when requested.
35940 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
35941 `header.type' instead of `header.offset'.
35942
35943 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
35944 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
35945 (memdisk_mod_LDFLAGS): New variables.
35946 * conf/i386-coreboot.rmk: Likewise.
35947 * conf/i386-ieee1275.rmk: Likewise.
35948
a927cc73 359492008-08-02 Robert Millan <rmh@aybabtu.com>
35950
35951 * loader/i386/pc/multiboot.c (playground, forward_relocator)
35952 (backward_relocator): New variables. Used to allocate and relocate
35953 the payload, respectively.
35954 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 35955 address, install the appropriate relocator code in each bound of
a927cc73 35956 the payload, and set the entry point such that
35957 grub_multiboot_real_boot() will jump to one of them.
35958
35959 * kern/i386/loader.S (grub_multiboot_payload_size)
35960 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35961 (grub_multiboot_payload_entry_offset): New variables.
35962 (grub_multiboot_real_boot): Set cpu context to what the relocator
35963 expects, and jump to the relocator instead of the payload.
35964
35965 * include/grub/i386/loader.h (grub_multiboot_payload_size)
35966 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
35967 (grub_multiboot_payload_entry_offset): Export.
35968
b15d8a0c 359692008-08-01 Bean <bean123ch@gmail.com>
35970
35971 * normal/menu_entry.c (editor_getline): Don't return the original
35972 string as result, as it will be released by lexer once it has done
35973 using it.
35974
cdfb3d22 359752008-08-01 Robert Millan <rmh@aybabtu.com>
35976
35977 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
35978 within menuentries, not before them.
35979 util/grub.d/10_hurd.in: Likewise.
35980
9175e93d 359812008-08-01 Bean <bean123ch@gmail.com>
35982
35983 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
35984 (bufio_mod_SOURCES): New macro.
35985 (bufio_mod_CFLAGS): Likewise.
35986 (bufio_mod_LDFLAGS): Likewise.
35987
35988 * include/grub/bufio.h: New file.
35989
35990 * io/bufio.c: Likewise.
35991
35992 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
35993 (grub_video_reader_png): Use grub_buffile_open to open file.
35994
35995 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
35996 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
35997
35998 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
35999 (grub_video_reader_tga): Use grub_buffile_open to open file.
36000
36001 * font/manager.c: Include <grub/bufio.h>.
36002 (add_font): Use grub_buffile_open to open file.
36003
3d8383e7 360042008-07-31 Robert Millan <rmh@aybabtu.com>
36005
36006 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36007 ELF segments, use a macro for arbitrarily accessing any of them instead
36008 of preparing a pointer that allows access to one at a time.
36009 (grub_multiboot_load_elf64): Likewise.
36010
16e641b6 360112008-07-31 Bean <bean123ch@gmail.com>
36012
36013 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36014 GRUB_KERNEL_MACHINE_DATA_END.
36015
59198b72 360162008-07-30 Robert Millan <rmh@aybabtu.com>
36017
36018 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36019 Increase from 0x50 to 0x60.
36020 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36021 use UUIDs to identify the root drive for them. If that's not
36022 possible, abort.
36023 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36024 check, for cross-disk installs.
36025
ae88bca3 360262008-07-30 Robert Millan <rmh@aybabtu.com>
36027
36028 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36029 is non-empty, use it to set the `prefix' environment variable instead
36030 of the usual approach.
36031 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36032 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36033 environment variable instead of dummy make_install_device().
36034
36035 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36036 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 36037 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 36038
36039 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36040 New variable reference.
36041 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36042 New macro. Defines offset of `grub_prefix' within startup.S (relative
36043 to `start').
36044 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36045 section within startup.S (relative to `start').
36046 * include/grub/i386/coreboot/kernel.h: Likewise.
36047
36048 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36049 Overwrite grub_prefix with its contents, at the beginning of the
36050 first segment.
36051 (main): Understand -p|--prefix.
36052
14f41dd1 360532008-07-30 Robert Millan <rmh@aybabtu.com>
36054
36055 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36056
4ca049a3 360572008-07-30 Robert Millan <rmh@aybabtu.com>
36058
36059 * term/i386/pc/vga_text.c (grub_console_cls): Use
36060 grub_console_gotoxy() to go back to beginning of the screen.
36061 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36062
2921d337 360632008-07-29 Christian Franke <franke@computer.org>
36064
36065 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36066 Add conversion of emulated mount points on Cygwin.
36067
b609876d 360682008-07-29 Christian Franke <franke@computer.org>
36069
36070 * util/update-grub.in: Add a check for admin
36071 group on Cygwin.
36072 Remove old `grub.cfg.new' before creation.
36073 Add `-f' to `mv' to handle the different filesystem
36074 semantics of Windows.
36075
e93e4679 360762008-07-29 Bean <bean123ch@gmail.com>
36077
36078 * normal/main.c (get_line): Fix buffer overflow bug.
36079
41694fd0 360802008-07-28 Robert Millan <rmh@aybabtu.com>
36081
36082 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36083 (struct grub_apple_header): New struct. Describes the layout of
36084 the partmap header.
36085 (apple_partition_map_iterate): Check the header magic as well as the
36086 partition magic (which was already being checked).
36087
cfd0b4e6 360882008-07-28 Pavel Roskin <proski@gnu.org>
36089
36090 * genmk.rb: Add a warning to the beginning of the output that
36091 it's a generated file and should not be edited.
36092
93cce016 360932008-07-28 Robert Millan <rmh@aybabtu.com>
36094
36095 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36096 with the same number are found, just use issue a warning with
36097 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 36098
cd1df915 360992008-07-27 Robert Millan <rmh@aybabtu.com>
36100
36101 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36102 information.
36103
b70a8427 361042008-07-27 Bean <bean123ch@gmail.com>
36105
36106 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36107 (grub_fat_find_dir): Ignore case when comparing filename.
36108
8f5e379f 361092008-07-27 Bean <bean123ch@gmail.com>
36110
36111 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36112 smallino, as it's more descriptive, and i8count can be confused with
36113 the other field count.
36114 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36115 inode type.
36116
a85cd5a0 361172008-07-27 Bean <bean123ch@gmail.com>
36118
36119 * commands/crc.c: New file.
36120
36121 * lib/crc.c: Likewise.
36122
36123 * include/grub/lib/crc.h: Likewise.
36124
36125 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36126
36127 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36128 (hexdump): Move this function to ...
36129
36130 * lib/hexdump.c: ... here.
36131
36132 * include/grub/hexdump.h: Renamed to ...
36133
36134 * include/grub/lib/hexdump.h: ... this.
36135
36136 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36137
36138 * util/grub-editenv.c: Likewise.
36139
36140 * include/envblk.h: Renamed to ...
36141
36142 * include/lib/envblk.h: ... this.
36143
36144 * util/envblk.c: Renamed to ...
36145
36146 * lib/envblk.c: ... this.
36147
36148 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36149 lib/hexdump.c.
36150 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36151 (pkglib_MODULES): Add crc.mod.
36152 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36153 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36154 (crc_mod_SOURCES): New macro.
36155 (crc_mod_CFLAGS): Likewise.
36156 (crc_mod_LDFLAGS): Likewise.
36157
36158 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36159
36160 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36161
36162 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36163
36164 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36165
36166 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36167
c298def0 361682008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 36169
36170 * commands/help.c: Include <grub/term.h>.
36171 (TERM_WIDTH): Removed. Updated all users.
36172
cc349fb3 361732008-07-27 Pavel Roskin <proski@gnu.org>
36174
36175 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36176 spurious warnings about a comment within a comment.
36177
9051607e 361782008-07-25 Robert Millan <rmh@aybabtu.com>
36179
36180 * util/getroot.c (find_root_device): Skip devices that match
36181 /dev/dm-[0-9]. This lets the real device be found for any type of
36182 abstraction (LVM, EVMS, RAID..).
36183 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36184 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36185 device is found first, find_root_device() will now skip it.
36186
01453bfc 361872008-07-24 Pavel Roskin <proski@gnu.org>
36188
36189 * include/grub/types.h: Use __builtin_bswap32() and
36190 __builtin_bswap64() with gcc 4.3 and newer.
36191
6af9849f 361922008-07-24 Christian Franke <franke@computer.org>
36193
3a0fa256 36194 * util/i386/pc/grub-install.in: If `--debug' is specified,
36195 pass `--verbose' to grub-setup.
36196 Abort script if make_system_path_relative_to_its_root() fails.
36197
7810e747 361982008-07-24 Bean <bean123ch@gmail.com>
36199
36200 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36201 variable `target_platform' should be `platform'.
36202
42290e17 362032008-07-24 Bean <bean123ch@gmail.com>
36204
51cc5193 36205 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 36206 (grub_png_init_fixed_block): New function.
36207 (grub_png_decode_image_data): Handle fixed huffman code compression.
36208
2a8a80e4 362092008-07-24 Bean <bean123ch@gmail.com>
36210
36211 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36212 (grub_pe2elf_SOURCES): New macro.
36213 (CLEANFILES): Add grub-pe2elf.
36214
36215 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36216 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36217 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36218 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36219 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36220 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36221 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36222 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36223 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36224 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36225 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36226 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36227 (GRUB_PE32_DT_FUNCTION): Likewise.
36228 (GRUB_PE32_REL_I386_DIR32): Likewise.
36229 (GRUB_PE32_REL_I386_REL32): Likewise.
36230 (grub_pe32_symbol): New structure.
36231 (grub_pe32_reloc): Likewise.
36232
36233 * util/grub-pe2elf.c: New file.
36234
36235 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36236 start symbol in non pc platform.
36237
36238 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36239
36240 The following patches are from Christian Franke.
36241
36242 * include/grub/dl.h: Remove .previous, gas supports this only
36243 for ELF format.
36244
36245 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36246 Remove .type, gas supports this only for ELF format.
36247
36248 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36249 nullbytes in symbol table. This fixes an infinite loop if table is
36250 zero filled.
36251
36252 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36253 TARGET_IMG_LDFLAGS and EXEEXT.
36254
36255 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36256 TARGET_IMG_LDFLAGS_AC.
36257 (grub_CHECK_STACK_ARG_PROBE): New function.
36258
36259 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36260
36261 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36262
36263 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36264 to set TARGET_IMG_LD* accordingly.
36265 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36266 Add call to grub_CHECK_STACK_ARG_PROBE.
36267 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36268
36269 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36270
36271 * genmk.rb: Add EXEEXT to CLEANFILES.
36272
12ccdb75 362732008-07-23 Robert Millan <rmh@aybabtu.com>
36274
36275 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36276 define the codes for arrows and lines used for the menu).
36277 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36278 as well.
36279
36280 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36281 fonts, because the latter are too slow.
36282
18eeaf04 362832008-07-21 Bean <bean123ch@gmail.com>
36284
36285 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36286 a20. Run keyboard test last, as it will cause macbook to halt.
36287
b095e2ad 362882008-07-18 Pavel Roskin <proski@gnu.org>
36289
36290 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36291 load foreign architecture modules correctly anyway. Keep
36292 support for loading host architecture modules, whether we
36293 compile them or not.
36294
737feb35 362952008-07-17 Pavel Roskin <proski@gnu.org>
36296
3f4ce737 36297 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36298 change target_cpu. The compiler default can mismatch target_cpu
36299 in any case.
36300
4ad2d049 36301 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36302 * kern/efi/efi.c: Likewise.
36303
f6130a12 36304 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36305 target compiler is functional.
36306 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36307 are set up.
36308
58393a2d 36309 * configure.ac: Default to efi platform for x86_64-apple. Allow
36310 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36311 adjustments from the rest, only do them if target is not
36312 explicitly given. Merge other adjustments with the final sanity
36313 check. Remove an extraneous check for supported CPU. Be
36314 specific which CPU and which platform is not supported.
36315
737feb35 36316 * configure.ac: Default to pc platform for x86_64.
36317
546f966a 363182008-07-17 Robert Millan <rmh@aybabtu.com>
36319
36320 Partial LinuxBIOS -> Coreboot rename.
36321
36322 * conf/i386-linuxbios.rmk: Renamed to ...
36323 * conf/i386-coreboot.rmk: ... this.
36324 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36325 * configure.ac: Accept "coreboot" as input platform (but maintain
36326 compatibility with "linuxbios").
36327 * include/grub/i386/linuxbios: Renamed to ...
36328 * include/grub/i386/coreboot: ... this.
36329
20011694 363302008-07-17 Bean <bean123ch@gmail.com>
36331
36332 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 36333 (appleldr_mod_SOURCE): New variable.
20011694 36334 (appleldr_mod_CFLAGS): Likewise.
36335 (appleldr_mod_LDFLAGS): Likewise.
36336 (pci_mod_SOURCES): Likewise.
36337 (pci_mod_CFLAGS): Likewise.
36338 (pci_mod_LDFLAGS): Likewise.
36339 (lspci_mod_SOURCES): Likewise.
36340 (lspci_mod_CFLAGS): Likewise.
36341 (lspci_mod_LDFLAGS): Likewise.
36342
36343 * conf/x86_64-efi.rmk: New file.
36344
36345 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36346 macro.
36347 (grub_efidisk_write): Likewise.
36348
36349 * include/efi/api.h (efi_call_0): New macro.
36350 (efi_call_1): Likewise.
36351 (efi_call_2): Likewise.
36352 (efi_call_3): Likewise.
36353 (efi_call_4): Likewise.
36354 (efi_call_5): Likewise.
36355 (efi_call_6): Likewise.
36356
36357 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36358 grub_rescue_cmd_chainloader.
36359
36360 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36361 (grub_pe32_optional_header): Change some fields based on i386 or
36362 x86_64 platform.
36363 (GRUB_PE32_PE32_MAGIC): Likewise.
36364
36365 * include/grub/efi/uga_draw.h: New file.
36366
36367 * include/grub/elf.h (STN_ABS): New constant.
36368 (R_X86_64_NONE): Relocation constant for x86_64.
36369 (R_X86_64_64): Likewise.
36370 (R_X86_64_PC32): Likewise.
36371 (R_X86_64_GOT32): Likewise.
36372 (R_X86_64_PLT32): Likewise.
36373 (R_X86_64_COPY): Likewise.
36374 (R_X86_64_GLOB_DAT): Likewise.
36375 (R_X86_64_JUMP_SLOT): Likewise.
36376 (R_X86_64_RELATIVE): Likewise.
36377 (R_X86_64_GOTPCREL): Likewise.
36378 (R_X86_64_32): Likewise.
36379 (R_X86_64_32S): Likewise.
36380 (R_X86_64_16): Likewise.
36381 (R_X86_64_PC16): Likewise.
36382 (R_X86_64_8): Likewise.
36383 (R_X86_64_PC8): Likewise.
36384
36385 * include/grub/i386/efi/pci.h: New file.
36386
36387 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36388 Change it value based on platform.
36389 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36390 (GRUB_E820_RAM): Likewise.
36391 (GRUB_E820_RESERVED): Likewise.
36392 (GRUB_E820_ACPI): Likewise.
36393 (GRUB_E820_NVS): Likewise.
36394 (GRUB_E820_EXEC_CODE): Likewise.
36395 (GRUB_E820_MAX_ENTRY): Likewise.
36396 (grub_e820_mmap): New structure.
36397 (linux_kernel_header): Change the efi field according to different
36398 kernel version, also field from linux_kernel_header.
36399
36400 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36401
36402 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36403 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36404 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36405 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36406 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36407 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36408 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36409 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36410 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36411 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36412
36413 * include/grub/x86_64/efi/kernel.h: New file.
36414
36415 * include/grub/x86_64/efi/loader.h: Likewise.
36416
36417 * include/grub/x86_64/efi/machine.h: Likewise.
36418
36419 * include/grub/x86_64/efi/pci.h: Likewise.
36420
36421 * include/grub/x86_64/efi/time.h: Likewise.
36422
36423 * include/grub/x86_64/linux.h: Likewise.
36424
36425 * include/grub/x86_64/setjmp.h: Likewise.
36426
36427 * include/grub/x86_64/time.h: Likewise.
36428
36429 * include/grub/x86_64/types.h: Likewise.
36430
36431 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36432 GRUB_TARGET_SIZEOF_VOID_P.
36433
36434 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36435 (grub_efi_locate_handle): Likewise.
36436 (grub_efi_open_protocol): Likewise.
36437 (grub_efi_set_text_mode): Likewise.
36438 (grub_efi_stall): Likewise.
36439 (grub_exit): Likewise.
36440 (grub_reboot): Likewise.
36441 (grub_halt): Likewise.
36442 (grub_efi_exit_boot_services): Likewise.
36443 (grub_get_rtc): Likewise.
36444
36445 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36446 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36447 (grub_efi_allocate_pages): Wrap efi calls.
36448 (grub_efi_free_pages): Wrap efi calls.
36449 (grub_efi_get_memory_map): Wrap efi calls.
36450
36451 * kern/x86_64/dl.c: New file.
36452
36453 * kern/x86_64/efi/callwrap.S: Likewise.
36454
36455 * kern/x86_64/efi/startup.S: Likewise.
36456
36457 * loader/efi/appleloader.c: Likewise.
36458
36459 * loader/efi/chainloader.c (cmdline): New variable.
36460 (grub_chainloader_unload): Wrap efi calls.
36461 (grub_chainloader_boot): Likewise.
36462 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36463 command line.
36464
36465 * loader/efi/chainloader_normal.c (chainloader_command):
36466 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36467 command line.
36468
36469 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36470 method.
36471 (grub_e820_add_region): New function.
36472 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36473 booting.
36474 (grub_find_video_card): New function.
36475 (grub_linux_setup_video): New function.
36476 (grub_rescue_cmd_linux): Probe for video information.
36477
36478 * normal/x86_64/setjmp.S: New file.
36479
36480 * term/efi/console.c (map_char): New function.
36481 (grub_console_putchar): Map unicode char.
36482 (grub_console_checkkey): Wrap efi calls.
36483 (grub_console_getkey): Likewise.
36484 (grub_console_getwh): Likewise.
36485 (grub_console_gotoxy): Likewise.
36486 (grub_console_cls): Likewise.
36487 (grub_console_setcolorstate): Likewise.
36488 (grub_console_setcursor): Likewise.
36489
36490 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36491
59652a20 364922008-07-16 Pavel Roskin <proski@gnu.org>
36493
ef294055 36494 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36495 format strings.
36496
59652a20 36497 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36498 pointer, not an integer. This fixes a warning and prevents
36499 precision loss on 64-bit systems.
36500 (relocate_addresses): Remove unneeded cast.
36501
afc3b5d7 365022008-07-15 Pavel Roskin <proski@gnu.org>
36503
506b2b3e 36504 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36505
62ead89c 36506 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36507
c4cd51d7 36508 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36509 Fix comparison between signed and unsigned.
36510
0d3d8f28 36511 * include/grub/i386/ieee1275/console.h: Declare
36512 grub_console_init() and grub_console_fini().
36513
8804b286 36514 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36515 It's empty and unused.
36516
ee01cf35 36517 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36518 beginning to avoid warnings with some compilers.
36519
afc3b5d7 36520 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36521 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36522
e4e8eaa5 365232008-07-14 Pavel Roskin <proski@gnu.org>
36524
407aceb4 36525 * kern/env.c (grub_register_variable_hook): Don't copy empty
36526 string, it leaks memory. Pass "" to grub_env_set(), it should
36527 handle constant strings.
36528
e4e8eaa5 36529 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36530 * commands/cmp.c (grub_cmd_cmp): Likewise.
36531 * kern/dl.c (grub_dl_flush_cache): Likewise.
36532 (grub_dl_load_core): Likewise.
36533 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36534 (grub_elf64_load_phdrs): Likewise.
36535
d4e2dad3 365362008-07-13 Pavel Roskin <proski@gnu.org>
36537
36538 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36539 between signed and unsigned.
36540 (LzmaEnc_Finish): Fix warning about an unused parameter.
36541
aa24b516 365422008-07-13 Bean <bean123ch@gmail.com>
36543
36544 * Makefile.in (enable_lzo): New rule.
36545
36546 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36547
36548 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36549
36550 * boot/i386/pc/lnxboot.S: #include <config.h>.
36551
36552 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 36553 its value according to the compression algorithm used, lzo or lzma.
aa24b516 36554
36555 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36556 compression algorithm according to configure macro.
36557
36558 * kern/i386/pc/startup.S (codestart): Likewise.
36559
36560 * kern/i386/pc/lzma_decode.S: New file.
36561
36562 * include/grub/lib/LzFind.h: Likewise.
36563
36564 * include/grub/lib/LzHash.h: Likewise.
36565
36566 * include/grub/lib/LzmaDec.h: Likewise.
36567
36568 * include/grub/lib/LzmaEnc.h: Likewise.
36569
36570 * include/grub/lib/LzmaTypes.h: Likewise.
36571
36572 * lib/LzFind.c: Likewise.
36573
36574 * lib/LzmaDec.c: Likewise.
36575
36576 * lib/LzmaEnc.c: Likewise.
36577
4ae821ac 365782008-07-13 Bean <bean123ch@gmail.com>
36579
36580 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36581 (grub_ext4_extent_header): New structure.
36582 (grub_ext4_extent): Likewise.
36583 (grub_ext4_extent_idx): Likewise.
36584 (grub_ext4_find_leaf): New function.
36585 (grub_ext2_read_block): Handle extents.
36586
9a745147 365872008-07-12 Robert Millan <rmh@aybabtu.com>
36588
36589 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36590
d49a4cf6 365912008-07-11 Robert Millan <rmh@aybabtu.com>
36592
36593 * util/grub.d/40_custom.in: New file. Example on how to add custom
36594 entries to /etc/grub.d.
36595 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36596 40_custom (implicitly, by merging all the grub.d rules).
36597
947414b4 365982008-07-11 Pavel Roskin <proski@gnu.org>
36599
0059cf6f 36600 * commands/read.c (grub_getline): Fix invalid memory access.
36601 Don't add newline to the variable value.
36602
947414b4 36603 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36604 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36605 (serial_hw_get_port): Check validity of the port number.
36606 (grub_cmd_serial): Check return value of serial_hw_get_port().
36607
62a02d00 366082008-07-07 Pavel Roskin <proski@gnu.org>
36609
36610 * boot/i386/pc/diskboot.S (notification_string): Replace
36611 "Loading kernel" with just "loading". This is shorter, less
36612 confusing and saves a few bytes for possible future changes.
36613
3e5581b0 366142008-07-05 Pavel Roskin <proski@gnu.org>
36615
ea387a48 36616 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36617 size for ATAPI devices, they are undefined. Output sector
36618 number in decimal form.
36619
3e5581b0 36620 * disk/ata.c: Use named constants for status bits.
36621
fdecb8fd 366222008-07-04 Pavel Roskin <proski@gnu.org>
36623
bcd35b90 36624 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36625 grub_addr_t before casting it to the void pointer to fix a
36626 warning. Non-addressable regions are discarded earlier.
36627 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36628 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36629 (check_signature): Don't shadow table_header.
36630 (grub_linuxbios_table_iterate): Cast numeric constants to
36631 grub_linuxbios_table_header_t.
36632 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36633 grub_stop().
36634
af58ab3d 36635 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36636 prevent warnings.
36637
1759aa57 36638 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36639 pointer, which can cause warnings. Support 64-bit addresses.
36640
fdecb8fd 36641 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36642 of sizeof(long). This fixes PowerPC image generation on x86_64.
36643
8516d2a8 366442008-07-04 Robert Millan <rmh@aybabtu.com>
36645
36646 This fixes a performance issue when pc & gpt partmap iterators
36647 didn't abort iteration even after our hook found what it was
fe987087 36648 looking for (often causing expensive probes of non-existent drives).
8516d2a8 36649
36650 Some callers relied on previous buggy behaviour, since they would
34c44600 36651 raise an error when their own hooks caused early abortion of its
8516d2a8 36652 iteration.
36653
36654 * kern/device.c (grub_device_open): Improve error message.
36655 * disk/lvm.c (grub_lvm_open): Likewise.
36656 * disk/raid.c (grub_raid_open): Likewise.
36657
36658 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36659 when hook requests it, independently of grub_errno.
36660 (pc_partition_map_probe): Do not fail when find_func() caused
36661 early abortion of pc_partition_map_iterate().
36662
36663 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36664 when hook requests it, independently of grub_errno.
36665 (gpt_partition_map_probe): Do not fail when find_func() caused
36666 early abortion of gpt_partition_map_iterate().
36667
36668 * kern/partition.c (grub_partition_iterate): Abort parent iteration
36669 when hook requests it, independently of grub_errno. Do not fail when
36670 part_map_iterate_hook() caused early abortion of p->iterate().
36671
36672 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
36673 when grub_partition_iterate() returned with non-zero.
36674
277d0de9 366752008-07-03 Pavel Roskin <proski@gnu.org>
36676
36677 * disk/ata.c (grub_ata_pio_write): Check status before writing,
36678 like we do in grub_ata_pio_read().
36679 (grub_ata_readwrite): Always write individual sectors. Fix the
36680 sector count for the remainder.
36681 (grub_ata_write): Enable writing to ATA devices. Correctly
36682 report error for ATAPI devices.
36683
d4c9b428 366842008-07-02 Pavel Roskin <proski@gnu.org>
36685
e43fc690 36686 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
36687 warning.
36688
f707af42 36689 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
36690 for every read sector, we already increment it for the whole
36691 batch. This fixes reading more than 256 sectors at once.
36692
11e16b15 36693 * util/grub-editenv.c (cmd_info): Cast argument to long
36694 explicitly. ptrdiff_t reduces to int on i386.
36695
cbabfdd4 36696 * util/grub-editenv.c (main): Be specific which parameter is
36697 missing.
36698
b8fbce0a 36699 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
36700 (memdisk): Make memdisk_orig_addr a pointer.
36701
c9c8e606 36702 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
36703 for file offsets, use grub_off_t instead. Fix printf format
36704 warnings.
36705
ca62e598 36706 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
36707 there. Real unexpected warnings should not drown in the noise
36708 about known problems.
36709
ce8d1766 36710 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
36711 grub_disk_addr_t for memory addresses.
36712
00c7a56a 36713 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
36714 explicitly to fix a warning.
36715
08d3ef09 36716 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
36717
cb71ba20 36718 * Makefile.in (MODULE_LDFLAGS): New variable.
36719 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
36720 the linker accepts --build-id=none.
36721 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
36722 MODULE_LDFLAGS.
36723 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
36724
d4c9b428 36725 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
36726 those in Linux XFS code. Provide a way to access 64-bit parent
36727 inode.
36728 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
36729 the end of struct grub_xfs_dir_header.
36730
d4156eee 367312008-07-02 Bean <bean123ch@gmail.com>
36732
36733 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
36734 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36735 and GRUB_IEEE1275_FLAG_NO_ANSI.
36736
36737 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
36738 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
36739 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
36740
36741 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
36742 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
36743
36744 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
36745 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
36746
36747 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
36748 esc sequence on non ANSI terminal.
36749 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
36750
36751 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
36752 beginning of file.
36753
2270f77b 367542008-07-02 Bean <bean123ch@gmail.com>
36755
36756 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
36757 (grub_editenv_SOURCES): New variable.
36758 (pkglib_MODULES): Add loadenv.mod.
36759 (loadenv_mod_SOURCES): New variable.
36760 (loadenv_mod_CFLAGS): Likewise.
36761 (loadenv_mod_LDFLAGS): Likewise.
36762
36763 * include/grub/envblk.h: New file.
36764
36765 * util/envblk.c: New file.
36766
36767 * util/grub-editenv.c: New file.
36768
36769 * commands/loadenv.c: New file.
36770
0e9e51ec 367712008-07-01 Pavel Roskin <proski@gnu.org>
36772
d89b7634 36773 * include/multiboot2.h (struct multiboot_tag_module): Use char,
36774 not unsigned char. This fixes warnings and is consistent with
36775 other tags.
36776
bf1835b1 36777 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
36778
8222a04b 36779 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
36780
6a42d99d 36781 * term/tparm.c (analyze): Always set *popcount.
36782
10b159d1 36783 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
36784 cast to fix a warning.
36785
b8789f6c 36786 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
36787 cast to suppress a warning.
36788
29d7e38a 36789 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
36790 grub_fshelp_read_file() expects.
36791
f341f669 36792 * fs/fat.c: Fix UUID calculation on big-endian systems. We
36793 write uuid as a 32-bit value in CPU byte order, so declare and
36794 use it as such.
36795
0e9e51ec 36796 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
36797 long if the format specifier expects it.
36798 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
36799 * partmap/pc.c (pc_partition_map_iterate): Likewise.
36800 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
36801 long to fix a warning.
36802 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
36803 grub_dprintf() arguments to fix warnings.
36804
3aefa857 368052008-06-30 Pavel Roskin <proski@gnu.org>
36806
56c7668b 36807 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
36808 install_bsd_part immediately before core.img is embedded or
36809 modified on disk. This fixes core.img verification if core.img
36810 cannot be embedded.
36811
3aefa857 36812 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
36813 core_path to calculate the blocklist.
36814 Patch from Javier Martín <lordhabbit@gmail.com>
36815
5444088d 368162008-06-29 Robert Millan <rmh@aybabtu.com>
36817
36818 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
36819 block to disk block.
36820 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
36821 Patch from Niels Böhm <bitbucket@arcor.de>
36822
674835c8 368232008-06-29 Robert Millan <rmh@aybabtu.com>
36824
36825 * util/update-grub_lib.in (font_path): Search for fonts in
36826 /boot/grub first, which is more likely to be readable (we aren't
36827 deciding where fonts live, just looking for them).
36828
f527dbc8 368292008-06-26 Pavel Roskin <proski@gnu.org>
36830
6c2d8df6 36831 * util/biosdisk.c (read_device_map): Don't leave dead map
36832 entries for devices failing stat() check.
36833
f527dbc8 36834 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
36835 core_path_dev for the core.img path on the target device.
36836
aebe3d13 368372008-06-26 Robert Millan <rmh@aybabtu.com>
36838
36839 * disk/fs_uuid.c: New file.
36840 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
36841 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
36842 (fs_uuid_mod_LDFLAGS): New variables.
36843 * include/grub/disk.h (grub_disk_dev_id): Add
36844 `GRUB_DISK_DEVICE_UUID_ID'.
36845 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
36846 implement iterate().
36847
37aaf354 368482008-06-26 Robert Millan <rmh@aybabtu.com>
36849
36850 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
36851 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
36852 Linux image includes no initrd.
36853
25ff262a 368542008-06-21 Javier Martín <lordhabbit@gmail.com>
36855
36856 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
36857 call to resolve the core image location that effectively appended the
36858 name twice.
36859
76a2bd44 368602008-06-21 Robert Millan <rmh@aybabtu.com>
36861
36862 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
36863 call from here ...
36864
36865 * util/grub.d/10_hurd.in: ... to here ...
36866 * util/grub.d/10_linux.in: ... and here.
36867
650e1c79 368682008-06-19 Robert Millan <rmh@aybabtu.com>
36869
fe987087 36870 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 36871 after it has been set by grub_machine_set_prefix().
36872
6ce63911 368732008-06-19 Robert Millan <rmh@aybabtu.com>
36874
36875 * commands/search.c (search_label, search_fs_uuid, search_file): Print
36876 search result when not saving to variable, not the other way around.
36877 When saving to variable, abort iteration as soon as a match is found.
36878
73940cec 368792008-06-19 Robert Millan <rmh@aybabtu.com>
36880
36881 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
36882 check for partition that provides /boot/grub. Its logic is flawed,
36883 as it prevents prepare_grub_to_access_device() from being called
36884 multiple times.
36885
3c62a39d 368862008-06-19 Robert Millan <rmh@aybabtu.com>
36887
36888 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
36889 "insmod" command directly when abstraction modules are needed,
fe987087 36890 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 36891 since it had already been processed).
36892
47395a42 368932008-06-19 Pavel Roskin <proski@gnu.org>
36894
36895 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
36896 changed. This is needed in case GRUB_LIBDIR changes.
36897 * conf/i386-ieee1275.rmk: Likewise.
36898 * conf/i386-linuxbios.rmk: Likewise.
36899 * conf/i386-pc.rmk: Likewise.
36900 * conf/powerpc-ieee1275.rmk: Likewise.
36901
a145ac2d 369022008-06-18 Pavel Roskin <proski@gnu.org>
36903
36904 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
36905 kernel_elf_symlist.c to symlist.c for consistency with other
36906 architectures. Update all users.
36907 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36908
7847c51e 369092008-06-18 Robert Millan <rmh@aybabtu.com>
36910
36911 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
36912 it in prefix.
36913
36914 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
36915 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
36916 a RAID device, run setup() for all members independently on whether
36917 LVM abstraction is being used.
36918 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
36919 If grub-mkimage has set `*install_dos_part == -2', don't override this
36920 value.
36921 Perform *install_dos_part adjustments independently on whether
36922 we're embedding or not.
36923 Clarify error message when image is too big for embedding.
36924 Remove duplicate *install_dos_part stanza.
36925
b23e5644 369262008-06-17 Robert Millan <rmh@aybabtu.com>
36927
36928 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
36929 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
36930 variables.
36931 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
36932 values in grub_ofconsole_normal_color and
36933 grub_ofconsole_highlight_color (they're not directly related to
36934 background and foreground).
36935 (grub_ofconsole_setcolorstate): Extract background and foreground
36936 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
36937
0aac2f79 369382008-06-17 Robert Millan <rmh@aybabtu.com>
36939
36940 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
36941 /boot/grub for the check in last commit, not /boot (they could be
36942 different partitions).
36943
3cca7ef3 369442008-06-16 Robert Millan <rmh@aybabtu.com>
36945
36946 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
36947 asked to setup access for the same partition that provides /boot,
36948 don't bother using UUIDs since our root already has the value we
36949 want.
36950
347396d8 369512008-06-16 Robert Millan <rmh@aybabtu.com>
36952
36953 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
36954 I2O devices.
36955 Patch from Sven Mueller <sven@debian.org>.
36956
991477f8 369572008-06-16 Robert Millan <rmh@aybabtu.com>
36958
36959 * util/update-grub.in: Check for $EUID instead of $UID.
36960 Reported by Vincent Zweije.
36961
d31a32a1 369622008-06-16 Bean <bean123ch@gmail.com>
36963
fe987087 36964 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 36965 (grub_ext2_read_block): Likewise.
36966 (grub_ext2_read_inode): Likewise.
36967 (grub_ext2_mount): Likewise.
36968 (grub_ext2_close): Likewise.
36969 (grub_ext3_get_journal): Removed.
36970
fe987087 36971 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 36972 (grub_reiserfs_read_symlink): Likewise.
36973 (grub_reiserfs_mount): Likewise.
36974 (grub_reiserfs_open): Likewise.
36975 (grub_reiserfs_read): Likewise.
36976 (grub_reiserfs_close): Likewise.
36977 (grub_reiserfs_get_journal): Removed.
36978
36979 * fs/fshelp.c (grub_fshelp_read): Removed.
36980 (grub_fshelp_map_block): Likewise.
36981
36982 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
36983 (grub_fshelp_journal): Likewise.
36984 (grub_fshelp_read): Likewise.
36985 (grub_fshelp_map_block): Likewise.
36986
3540a760 369872008-06-16 Pavel Roskin <proski@gnu.org>
36988
36989 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
36990 floating point anymore.
36991 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
36992
95614c84 369932008-06-15 Pavel Roskin <proski@gnu.org>
36994
36995 * commands/ls.c (grub_ls_list_files): Use integer calculations
36996 for human readable format, avoid floating point use.
36997 * kern/misc.c (grub_ftoa): Remove.
36998 (grub_vsprintf): Remove floating point support.
36999
50465dd6 370002008-06-15 Robert Millan <rmh@aybabtu.com>
37001
fe6b695a 37002 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 37003 devices.
37004 Reported by Max Vozeler.
37005
a9207284 370062008-06-15 Robert Millan <rmh@aybabtu.com>
37007
37008 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37009 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37010 skipped later.
37011 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37012 the beginning of the prefix.
37013
37014 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37015 It is assumed that if we have a memdisk, grub-mkimage has set
37016 grub_prefix to include the "(memdisk)" drive in it.
37017
a7cbd45a 370182008-06-15 Robert Millan <rmh@aybabtu.com>
37019
37020 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37021 Initialize keyboard controller after registering the terminal, so that
37022 grub_printf() can be called from grub_keyboard_controller_init().
37023
21cf716a 370242008-06-15 Robert Millan <rmh@aybabtu.com>
37025
37026 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37027 extent-btree which is written as big endian on disk.
37028 Reported by Alain Greppin <al@chilibi.org>.
37029
23a64d8e 370302008-06-14 Robert Millan <rmh@aybabtu.com>
37031
37032 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37033 * util/i386/pc/grub-install.in (modules): Likewise.
37034
d687651c 370352008-06-13 Pavel Roskin <proski@gnu.org>
37036
37037 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37038
dfe9ddd4 370392008-06-13 Bean <bean123ch@gmail.com>
37040
37041 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37042
37043 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37044
37045 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37046 to indicate sparse block.
37047
16ae7781 370482008-06-12 Pavel Roskin <proski@gnu.org>
37049
e6d1a308 37050 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37051 number, grub_fshelp_read() does it for us.
37052
16ae7781 37053 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37054 linear disk read with journal translation.
37055 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37056 * include/grub/fshelp.h: Declare grub_fshelp_read().
37057
40fd3a2b 370582008-06-09 Pavel Roskin <proski@gnu.org>
37059
37060 * fs/minix.c (grub_minix_mount): Handle error reading
37061 superblock.
37062
f5679726 370632008-06-08 Robert Millan <rmh@aybabtu.com>
37064
37065 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37066 don't append the RAID prefix afterwards.
37067 Reported by Clint Adams.
37068
ce525529 370692008-06-08 Robert Millan <rmh@aybabtu.com>
37070
37071 Based on description from Pavel:
37072 * kern/disk.c (grub_disk_check_range): Rename to ...
37073 (grub_disk_adjust_range): ... this. Add a comment explaining the
37074 tasks performed by this function.
37075
ad4936a0 370762008-06-08 Robert Millan <rmh@aybabtu.com>
37077
37078 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37079 `num_serial' (for consistency with other variables).
37080 (struct grub_ntfs_data): Add `uuid' member.
37081 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37082 (grub_ntfs_uuid): New function.
37083 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37084
dc20b0f9 370852008-06-07 Pavel Roskin <proski@gnu.org>
37086
37087 * util/biosdisk.c (open_device): Revert last change to the
37088 function, it broke installation. The sector needs to be
37089 different dependent on which device is opened.
37090
c5e3cfba 370912008-06-06 Robert Millan <rmh@aybabtu.com>
37092
37093 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37094 rest of GRUB, and breakage doesn't happen if its value were modified.
37095
37096 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37097 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37098 a constant (same value).
37099 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37100 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37101
26a1f8c4 371022008-06-06 Robert Millan <rmh@aybabtu.com>
37103
37104 * util/biosdisk.c (open_device): Do not modify sector offset when
37105 accessing a partition. kern/disk.c already handles this for us.
37106
25d6b327 371072008-06-06 Robert Millan <rmh@aybabtu.com>
37108
37109 * util/grub-emu.c (grub_machine_init): Move code in this function from
37110 here ...
37111 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37112 segfault in case grub_printf() is called).
37113
37114 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37115 grub_probe. Update all users not to explicitly add it again.
37116 (grub_device): New variable; contains corresponding device for grubdir.
37117 (fs_module, partmap_module, devabstraction_module): Pass
37118 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37119 every time.
37120
9ece62fb 371212008-06-05 Robert Millan <rmh@aybabtu.com>
37122
37123 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37124 is found, print it (same layout as with labels).
37125
1ad36d37 371262008-06-04 Robert Millan <rmh@aybabtu.com>
37127
37128 * util/biosdisk.c (get_drive): Rename to ...
37129 (find_grub_drive): ... this. Update all users.
37130
37131 (get_os_disk): Rename to ...
37132 (convert_system_partition_to_system_disk): ... this. Update all users.
37133
37134 (find_drive): Rename to ...
37135 (find_system_device): ... this. Update all users.
37136
e6a30859 371372008-06-04 Robert Millan <rmh@aybabtu.com>
37138
37139 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37140 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37141 (make_device_map): Likewise.
37142
00c108a4 371432008-06-01 Robert Millan <rmh@aybabtu.com>
37144
37145 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37146 before dereferencing it.
37147
37148 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37149 union with fat12/fat16-specific ones. Add some new fields, including
37150 `num_serial' for both versions.
37151 (struct grub_fat_data): Add `uuid' member.
37152 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37153 names. Initialize `data->uuid' using `num_serial'.
37154 (grub_fat_uuid): New function.
37155 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37156
37157 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37158 (grub_reiserfs_uuid): New function.
37159 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37160 member.
37161
37162 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37163 (grub_xfs_uuid): New function.
37164 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37165
1385c5bb 371662008-06-01 Robert Millan <rmh@aybabtu.com>
37167
37168 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37169 code that is backward compatible with pre-uuid search command.
37170
c682dfd7 371712008-05-31 Robert Millan <rmh@aybabtu.com>
37172
37173 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37174 floppies after everything else, to ensure floppy drive isn't accessed
37175 unnecessarily (patch from Bean).
37176
b7db5d47 371772008-05-31 Robert Millan <rmh@aybabtu.com>
37178
37179 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37180 not print device names when we were asked to set a variable.
37181
6e037aa9 371822008-05-31 Robert Millan <rmh@aybabtu.com>
37183
37184 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37185 using "cursor-on" and "cursor-off" commands (understood at least by
37186 the Open Firmware flavour on OLPC).
37187
41305bc8 371882008-05-31 Michael Gorven <michael@gorven.za.net>
37189
37190 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37191 on and off sequences.
37192
69ba137e 371932008-05-31 Robert Millan <rmh@aybabtu.com>
37194
37195 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37196 * util/update-grub.in: Likewise.
37197
520ae21b 371982008-05-30 Pavel Roskin <proski@gnu.org>
37199
37200 * util/biosdisk.c (linux_find_partition): Simplify logic and
37201 make the code more universal. Keep special processing for
37202 devfs, but use a simple rule for all other devices. If the
37203 device ends with a number, append 'p' and the partition number.
37204 Otherwise, append only the partition number.
37205
5786569b 372062008-05-30 Robert Millan <rmh@aybabtu.com>
37207
37208 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37209 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37210 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37211 the `root' parameter to Linux.
37212
51500452 372132008-05-30 Robert Millan <rmh@aybabtu.com>
37214
37215 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37216 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37217 --fs_uuid with --fs-uuid.
37218 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37219 all filesystems support them).
37220
811d3878 372212008-05-30 Robert Millan <rmh@aybabtu.com>
37222
37223 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 37224 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 37225
cab63c95 372262008-05-30 Robert Millan <rmh@aybabtu.com>
37227
37228 * util/grub.d/00_header.in: Remove obsolete comment referencing
37229 convert_system_path_to_grub_path().
37230 * util/update-grub.in: Likewise.
37231 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37232 (convert_system_path_to_grub_path): Add a warning message explaining
37233 that this function is deprecated. Rely on is_path_readable_by_grub()
37234 for the readability checks.
37235 (font_path): Use is_path_readable_by_grub() for the readability
37236 check rather than convert_system_path_to_grub_path().
37237
972e2f7a 372382008-05-30 Robert Millan <rmh@aybabtu.com>
37239
37240 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37241 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37242 converting it first.
37243 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37244 grub.cfg for access to font file, and afterwards call it again to set
37245 the root device.
37246
62191274 372472008-05-30 Robert Millan <rmh@aybabtu.com>
37248
37249 * commands/search.c (options): Add --fs_uuid option.
37250 (search_fs_uuid): New function.
37251 (grub_cmd_search): Fix --set argument passing.
37252 Use search_fs_uuid() when requested via --fs_uuid.
37253 (grub_search_init): Update help message.
37254 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37255 and redeclare it as an array of 16-bit words.
37256 (grub_ext2_uuid): New function.
37257 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37258 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37259 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37260 (GRUB_DEVICE_BOOT_UUID): New variables.
37261 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37262 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37263 whenever possible.
37264 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37265 just assume `root' variable has the right value.
37266 * util/grub.d/10_linux.in: Likewise.
37267 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37268 via PRINT_FS_UUID.
37269 (main): Recognise `-t fs_uuid' argument.
37270
01b73ec8 372712008-05-30 Robert Millan <rmh@aybabtu.com>
37272
37273 * util/biosdisk.c (map): Redefine structure to hold information
37274 about GRUB drive name.
fe6b695a 37275 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 37276 drive names.
37277 (call_hook): Remove.
37278 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37279 member. Assume drive has partitions.
37280 (grub_util_biosdisk_open): Access device names via `.device' struct
37281 member.
37282 (open_device): Likewise.
37283 (find_drive): Likewise.
37284 (read_device_map): Adjust map[] usage to match the new struct
37285 definition. Don't check for duplicates (still possible, but not cheap
37286 anymore).
37287 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37288 (make_device_name): Remove assumption of BIOS-like drive names.
37289
22f16596 372902008-05-30 Pavel Roskin <proski@gnu.org>
37291
37292 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37293 compiling execute.c doesn't need grub_script.tab.h anymore.
37294 (normal/command.c_DEPENDENCIES): Likewise.
37295 (normal/function.c_DEPENDENCIES): Likewise.
37296 * conf/i386-ieee1275.rmk: Likewise.
37297 * conf/i386-linuxbios.rmk: Likewise.
37298 * conf/i386-pc.rmk: Likewise.
37299 * conf/powerpc-ieee1275.rmk: Likewise.
37300 * conf/sparc64-ieee1275.rmk: Likewise.
37301
528ad8f2 373022008-05-29 Pavel Roskin <proski@gnu.org>
37303
d1dff95d 37304 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37305 when scanning metadata for volume group name.
37306
528ad8f2 37307 * include/grub/script.h: Don't include grub_script.tab.h. It's
37308 a generated file, which may only be included from the files with
37309 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37310 use union YYSTYPE, as the later allows forward declaration.
37311 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37312
47248e08 373132008-05-29 Robert Millan <rmh@aybabtu.com>
37314
37315 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37316 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37317 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37318 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37319 scan codes.
37320
ee632529 373212008-05-29 Robert Millan <rmh@aybabtu.com>
37322
37323 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37324 control key combinations.
37325
eee96e08 373262008-05-29 Robert Millan <rmh@aybabtu.com>
37327
37328 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37329 * util/ieee1275/grub-install.in: ... to here.
37330 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37331 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37332 (grub_install_SOURCES): Likewise.
37333
da9a6a94 373342008-05-29 Robert Millan <rmh@aybabtu.com>
37335
37336 * fs/affs.c: Update copyright year.
37337 * fs/ext2.c: Likewise.
37338 * fs/fshelp.c: Likewise.
37339 * fs/hfsplus.c: Likewise.
37340 * fs/ntfs.c: Likewise.
37341 * fs/xfs.c: Likewise.
37342 * include/grub/fshelp.h: Likewise.
37343 * util/grub-mkdevicemap.c: Likewise.
37344
12e65f3a 373452008-05-28 Robert Millan <rmh@aybabtu.com>
37346
37347 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37348 might need to be fatfs to support some firmware implementations
37349 (e.g. OFW or EFI).
37350
23023641 373512008-05-28 Robert Millan <rmh@aybabtu.com>
37352
37353 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37354 devices.
37355 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37356 (make_device_map): Likewise.
37357
887d2619 373582008-05-20 Bean <bean123ch@gmail.com>
37359
37360 * fs/fshelp.c (grub_fshelp_map_block): New function.
37361 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37362 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37363
37364 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37365 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37366 (grub_fshelp_journal): New structure.
37367 (grub_fshelp_map_block): New function prototype.
37368 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37369 (grub_fshelp_map_block): Likewise.
37370
37371 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37372 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37373 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37374 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37375 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37376 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37377 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37378 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37379 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37380 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37381 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37382 (grub_ext2_sblock): New members for journal support.
37383 (grub_ext3_journal_header): New structure.
37384 (grub_ext3_journal_revoke_header): Likewise.
37385 (grub_ext3_journal_block_tag): Likewise.
37386 (grub_ext3_journal_sblock): Likewise.
37387 (grub_fshelp_node): New members logfile and journal.
37388 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37389 grub_fshelp_map_block to get real block number.
37390 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37391 number.
37392 (grub_ext2_read_inode): Likewise.
37393 (grub_ext3_get_journal): New function.
37394 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37395 (grub_ext2_close): Release memory used by journal.
37396
37397 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37398 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37399 (grub_reiserfs_transaction_header): Renamed to
37400 grub_reiserfs_description_block, replace field data with real_blocks.
37401 (grub_reiserfs_commit_block): New structure.
37402 (grub_reiserfs_data): New member journal.
37403 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37404 number.
37405 (grub_reiserfs_read_symlink): Likewise.
37406 (grub_reiserfs_iterate_dir): Likewise.
37407 (grub_reiserfs_open): Likewise.
37408 (grub_reiserfs_read): Likewise.
37409 (grub_reiserfs_get_journal): New function.
37410 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37411 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37412 using grub_reiserfs_get_journal.
37413 (grub_reiserfs_close): Release memory used by journal.
37414
37415 * fs/affs.c (grub_affs_read_block): Change block type to
37416 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37417
37418 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37419
37420 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37421
37422 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37423
37424 * fs/udf.c (grub_udf_read_block): Change block type to
37425 grub_disk_addr_t. Use type cast to avoid warning.
37426
37427 * fs/xfs.c (grub_xfs_read_block): Likewise.
37428
b7c6bed5 374292008-05-16 Christian Franke <franke@computer.org>
37430
37431 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37432 to ensure that break with ESC will always work.
37433 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37434 Remove ESC from keyboard queue.
37435
eedf167f 374362008-05-16 Christian Franke <franke@computer.org>
37437
37438 * util/biosdisk.c: [__CYGWIN__] Add includes.
37439 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37440 (get_os_disk): Move variable declarations to OS specific
37441 parts to avoid warning.
37442 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37443 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37444 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37445 Cygwin.
37446 * util/getroot.c: [__CYGWIN__] Add includes.
37447 (strip_extra_slashes): Fix "/" case.
37448 [__CYGWIN__] (get_win32_path): New function.
37449 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37450 [__CYGWIN__] (find_root_device): Disable.
37451 [__CYGWIN__] (get_bootsec_serial): New function.
37452 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37453 [__linux__] (grub_guess_root_device): Add early returns to simplify
37454 structure.
37455 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37456 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37457 check for Linux only.
37458
a079699e 374592008-05-15 Bean <bean123ch@gmail.com>
37460
37461 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37462 keyboard hang problem in apple's intel mac.
37463
1cf4059a 374642008-05-09 Robert Millan <rmh@aybabtu.com>
37465
37466 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37467 devices.
37468 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37469 (make_device_map): Likewise.
37470 Reported by Aurelien Jarno <aurel32@debian.org>
37471
ed759390 374722008-05-07 Ian Campbell <ijc@hellion.org.uk>
37473
37474 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37475 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37476 (make_device_map): Output entries for xvd type disks.
37477
b56c4eaa 374782008-05-07 Robert Millan <rmh@aybabtu.com>
37479
37480 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37481 devices.
37482 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37483 (make_device_map): Likewise.
37484 Reported by Roland Dreier <rdreier@cisco.com>
37485
7f8866ed 374862008-05-07 Robert Millan <rmh@aybabtu.com>
37487
37488 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37489 grub_strstr() call. Correct a few mistakes in failure path handling.
37490
b0346e0f 374912008-05-06 Robert Millan <rmh@aybabtu.com>
37492
37493 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37494 Do not print a trailing slash (therefore, the root directory is an
37495 empty string).
37496 (convert_system_path_to_grub_path): Do not remove trailing slash
37497 from make_system_path_relative_to_its_root() output.
37498
37499 * util/i386/pc/grub-install.in: Add trailing slash to output from
37500 make_system_path_relative_to_its_root().
37501
6cf12cbd 375022008-05-06 Robert Millan <rmh@aybabtu.com>
37503
37504 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37505 ensures that output lines aren't intermangled with those sent to
37506 stderr (via grub_util_info()).
37507 * util/grub-probe.c (grub_refresh): Likewise.
37508 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37509
0fbb3117 375102008-05-05 Christian Franke <franke@computer.org>
37511
37512 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37513 Add Cygwin device names.
37514 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37515 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37516 (check_device): Return error instead of success on empty name.
37517 (make_device_map): Move label inside linux specific code to
37518 prevent compiler warning.
37519
8124cdb7 375202008-04-30 Robert Millan <rmh@aybabtu.com>
37521
37522 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37523 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37524 first boot option.
37525 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37526
094c01d0 375272008-04-29 Robert Millan <rmh@aybabtu.com>
37528
37529 * docs/grub.cfg: New file (example GRUB configuration).
37530
f4b1fc02 375312008-04-26 Robert Millan <rmh@aybabtu.com>
37532
329ce2a5 37533 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37534 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37535 and `disk/ieee1275/nand.c'.
f4b1fc02 37536
25f16ec1 375372008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 37538
25f16ec1 37539 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37540 i386-linuxbios.
37541
37542 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37543 change the buffer size to 4096 for cdrom device.
37544
37545 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37546 and nand.mod.
37547 (_linux_mod_SOURCES): New variable.
37548 (_linux_mod_CFLAGS): Likewise.
37549 (_linux_mod_LDFLAGS): Likewise.
37550 (linux_mod_SOURCES): Likewise.
37551 (linux_mod_CFLAGS): Likewise.
37552 (linux_mod_LDFLAGS): Likewise.
37553 (nand_mod_SOURCES): Likewise.
37554 (nand_mod_CFLAGS): Likewise.
37555 (nand_mod_LDFLAGS): Likewise.
37556
37557 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37558 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37559 type property. (nand device in olpc don't have this property)
37560
37561 * include/grub/disk.h (grub_disk_dev_id): New macro
37562 GRUB_DISK_DEVICE_NAND_ID.
37563
37564 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37565 function prototype.
37566 (grub_rescue_cmd_initrd): Likewise.
37567
37568 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37569 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37570 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 37571
25f16ec1 37572 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37573 GRUB_MACHINE_IEEE1275 is defined.
37574
37575 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37576 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37577
37578 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37579 on nested function heap_init.
37580 (grub_upper_mem): New variable for i386-ieee1275.
37581 (grub_get_extended_memory): New function for i386-ieee1275.
37582 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37583
37584 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37585 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37586 property.
f19dbdb7 37587
25f16ec1 37588 * loader/i386/ieee1275/linux.c: New file.
37589
37590 * loader/i386/ieee1275/linux_normal.c: New file.
37591
37592 * disk/ieee1275/nand.c: New file.
37593
e89d61e9 375942008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37595
37596 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37597 value.
37598 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37599
602566f6 376002008-04-18 Robert Millan <rmh@aybabtu.com>
37601
37602 Restructures early code path on ieee1275 to unify grub_main() as
37603 the first C function that is executed in every platform.
37604
37605 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37606 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37607 cmain().
37608 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37609 * kern/ieee1275/cmain.c (cmain): Rename to ...
37610 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37611 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37612 at the beginning.
37613
57490c2b 376142008-04-18 Robert Millan <rmh@aybabtu.com>
37615
37616 * util/update-grub.in: Fix syntax error when setting
37617 `GRUB_PRELOAD_MODULES'.
37618 Reported by Stephane Chazelas <stephane@artesyncp.com>
37619
1977517d 376202008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37621
37622 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37623 section into account, newer toolchains generate unique build ids
37624 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 37625 we want build ids to be preserved
1977517d 37626 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37627 far from other sections don't cause the raw binary images grow
37628 size
37629
bfb1f1a2 376302008-04-15 Robert Millan <rmh@aybabtu.com>
37631
37632 * disk/lvm.c: Update copyright year.
37633 * kern/misc.c: Likewise.
37634
01979850 376352008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37636
37637 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 37638 there is no memory left for physical volume name.
01979850 37639
0a1150e2 376402008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37641
37642 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37643 volume name mapping to support bigger than 9 character names properly.
37644
82ead3fe 376452008-04-13 Robert Millan <rmh@aybabtu.com>
37646
37647 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37648 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37649
e54a72f5 376502008-04-13 Christian Franke <franke@computer.org>
37651
37652 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37653 to create a floppy emulation boot CD when non emulation mode
37654 does not work.
37655 Enable Joliet CD filesystem extension.
37656
9fe86034 376572008-04-13 Robert Millan <rmh@aybabtu.com>
37658
37659 * kern/misc.c (grub_strncat): Fix off-by-one error.
37660 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37661
37662 * kern/env.c (grub_env_context_close): Clear current context, not
37663 previous one.
37664 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
37665
37666 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
37667
7ceeee39 376682008-04-13 Robert Millan <rmh@aybabtu.com>
37669
37670 Improve robustness when handling LVM.
37671
37672 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 37673 (and leave `*p' unmodified).
7ceeee39 37674 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
37675 through it.
37676 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
37677 iterating through it.
37678 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
37679 through it.
fe6b695a 37680 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 37681 when due) on each grub_lvm_getvalue() or grub_strstr() call.
37682 Don't assume `vg->pvs != NULL' when iterating through it.
37683
58cd3d85 376842008-04-13 Robert Millan <rmh@aybabtu.com>
37685
37686 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
37687 * genmk.rb (partmap): New variable.
37688 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
37689 (#{partmap}): New target rule.
37690 * genpartmaplist.sh: New file.
37691 * Makefile.in (pkglib_DATA): Add partmap.lst.
37692 (partmap.lst): New target rule.
37693 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
37694 modules (including all partition maps), instead of preloading them.
37695
78b51059 376962007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
37697
37698 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
37699 `linux-boot-prober' (if installed) to detect other operating
37700 systems which are installed on the computer and add them to
37701 the boot menu.
37702 * conf/common.rmk: Build and install 30_os-prober.
37703
a91627b4 377042008-04-12 Robert Millan <rmh@aybabtu.com>
37705
37706 * kern/powerpc/ieee1275/init.c: Move from here ...
37707 * kern/ieee1275/init.c: ... to here. Update all users.
37708
37709 * kern/powerpc/ieee1275/cmain.c: Move from here ...
37710 * kern/ieee1275/cmain.c: ... to here. Update all users.
37711
37712 * kern/powerpc/ieee1275/openfw.c: Move from here ...
37713 * kern/ieee1275/openfw.c: ... to here. Update all users.
37714
37715 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
37716 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
37717
322562ea 377182008-04-10 Pavel Roskin <proski@gnu.org>
37719
37720 * configure.ac: Always use "_cv_" in cache variables for
37721 compatibility with Autoconf 2.62.
37722
a02a73c5 377232008-04-07 Robert Millan <rmh@aybabtu.com>
37724
37725 Revert grub/machine/init.h addition by Pavel (since it breaks on
37726 i386-ieee1275 and others):
37727 * util/i386/pc/misc.c: Remove grub/machine/init.h.
37728 * util/powerpc/ieee1275/misc.c: Likewise.
37729
25c024b1 377302008-04-07 Robert Millan <rmh@aybabtu.com>
37731
37732 * util/grub-probe.c (probe): Improve error message.
37733
3cbd2f98 377342008-04-07 Robert Millan <rmh@aybabtu.com>
37735
37736 * util/biosdisk.c (read_device_map): Skip devices that don't exist
37737 (this prevents the presence of a bogus entry from ruining the whole
37738 thing).
37739
87a297bf 377402008-04-06 Pavel Roskin <proski@gnu.org>
37741
36747a62 37742 * util/biosdisk.c: Include grub/util/biosdisk.h.
37743 * util/grub-fstest.c (execute_command): Make static.
37744 * util/grub-mkdevicemap.c (check_device): Likewise.
37745 * util/i386/pc/misc.c: Include grub/machine/init.h.
37746 * util/powerpc/ieee1275/misc.c: Likewise.
37747 * util/lvm.c: Include grub/util/lvm.h.
37748 * util/misc.c: Include grub/kernel.h, grub/misc.h and
37749 grub/cache.h.
37750 * util/raid.c: Include grub/util/raid.h.
37751 (grub_util_getdiskname): Make static.
37752
87a297bf 37753 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
37754 grub_hostfs_fini(), as they are called from grub_init_all() and
37755 grub_fini_all() respectively. This fixes an infinite loop in
37756 grub-fstest due to double registration of hostfs.
37757 Reported by Christian Franke <Christian.Franke@t-online.de>
37758
f6ce7629 377592008-04-05 Pavel Roskin <proski@gnu.org>
37760
37761 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
37762 all 8 functions. Otherwise, probe function 0 only.
37763
070e49e4 377642008-04-04 Pavel Roskin <proski@gnu.org>
37765
8b088a4c 37766 * commands/lspci.c (grub_lspci_iter): Print the bus number
37767 correctly.
37768
4f657021 37769 * commands/lspci.c (grub_pci_classes): Fix typos.
37770 (grub_lspci_iter): Don't print func twice. Print vendor ID
37771 before device ID, as it's normally done.
37772
070e49e4 37773 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
37774 Fix signedness warnings.
37775 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
37776 Likewise.
37777 * util/ieee1275/get_disk_name.c: Include config.h so that
37778 _GNU_SOURCE is defined and getline() is declared. Mark an
37779 unused argument as such. Fix a signedness warning.
37780
ba7328dc 377812008-04-02 Pavel Roskin <proski@gnu.org>
37782
26887f22 37783 * genkernsyms.sh.in: Use more robust assignments for CC and
37784 srcdir. Quote srcdir.
37785 * gensymlist.sh.in: Likewise. Assert at the compile time that
37786 the symbol table is not empty.
37787
ba7328dc 37788 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
37789 * fs/cpio.c (grub_cpio_read): Likewise.
37790
0f582c6b 377912008-04-01 Pavel Roskin <proski@gnu.org>
37792
4b6e1995 37793 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
37794 * disk/host.c (grub_host_open): Likewise.
37795 * disk/loopback.c (grub_loopback_open): Likewise.
37796 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
37797 disk->id as in disk/host.c, not a multi-character constant.
37798
828a2768 37799 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
37800 later is obsolete, potentially dangerous and sets a bad example.
37801 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
37802 * util/misc.c (grub_util_get_image_size): Likewise.
37803
2bb4fb47 37804 * disk/loopback.c (options): Improve help for "--partitions".
37805
0f582c6b 37806 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
37807 options to align them with the short options, e.g. "echo -e".
37808
a33224e0 378092008-03-31 Bean <bean123ch@gmail.com>
37810
37811 * video/reader/png.c (grub_png_data): New member is_16bit and
37812 image_data.
37813 (grub_png_decode_image_header): Detect 16 bit png image.
37814 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
37815 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
37816 (grub_video_reader_png): Release memory occupied by image_data.
37817
37818 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
37819 4096 bytes.
37820 (grub_nfs_mount): Skip the test for sector per cluster.
37821
37822 * include/grub/ntfs.h (MAX_SPC): Removed.
37823
86cb4f54 378242008-03-31 Bean <bean123ch@gmail.com>
37825
37826 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
37827 (grub_probe_SOURCES): Add fs/afs.c.
37828 (grub_fstest_SOURCES): Likewise.
37829 (afs_mod_SOURCES): New variable.
37830 (afs_mod_CFLAGS): Likewise.
37831 (afs_mod_LDFLAGS): Likewise.
37832
37833 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
37834 (grub_emu_SOURCES): Likewise.
37835
37836 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37837
37838 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37839
37840 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
37841
37842 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37843
37844 * fs/afs.c: New file.
37845
17c74c21 378462008-03-30 Pavel Roskin <proski@gnu.org>
37847
4cb68e89 37848 * disk/host.c: Include grub/misc.h to fix a warning.
37849 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
37850 warnings about implicit declarations.
37851
8790bb04 37852 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
37853 variable.
37854 * include/grub/i386/loader.h: Change declaration of
37855 grub_linux_boot() to match what grub_loader_set() expects.
37856 * util/getroot.c (grub_guess_root_device): Return const char* to
37857 fix a warning.
37858 * util/grub-probe.c (probe): Fix a warning about uninitialized
37859 abstraction_name variable.
37860 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
37861 second argument as unused to fix a warning.
37862
9a3f3296 37863 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
37864 missing grub_error() call.
37865
0ecef90d 37866 * util/update-grub_lib.in: Define datarootdir, since Autoconf
37867 2.60 and newer uses it to define datadir.
37868
0bf6d401 37869 * commands/sleep.c: Fix warning about implicit declaration.
37870 * disk/memdisk.c: Likewise.
37871 * loader/aout.c: Likewise.
37872 * loader/i386/bsd_normal.c: Likewise.
37873 * util/grub-probe.c: Likewise.
37874
7cdacf97 37875 * commands/i386/cpuid.c (has_longmode): Make static.
37876 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
37877 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
37878
17c74c21 37879 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
37880 GDT. This is more robust, as %ds can change.
37881 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
37882 calling real_to_prot().
37883 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
37884
80a3e68b 378852008-03-28 Pavel Roskin <proski@gnu.org>
37886
37887 * kern/i386/pc/startup.S: Assert that uncompressed functions
37888 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
37889 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
37890 code, as they push parts of the code (error handlers) beyond
37891 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
37892 code as correctness and size.
37893
77bcd272 378942008-03-28 Pavel Roskin <proski@gnu.org>
37895
37896 * kern/i386/pc/startup.S
37897 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
37898 data block address to the real mode, keep offset minimal. This
37899 works around a bug in AWARD BIOS on old Athlon systems, which
37900 makes CD detection hang.
37901
c5dfd43b 379022008-03-26 Pavel Roskin <proski@gnu.org>
37903
37904 * normal/color.c (grub_parse_color_name_pair): Make `name' a
37905 const.
37906 * include/grub/normal.h: Add grub_parse_color_name_pair()
37907 declaration.
37908
bf962df2 379092008-03-24 Bean <bean123ch@gmail.com>
37910
37911 * disk/i386/pc/biosdisk.c (cd_start): Removed.
37912 (cd_count): Removed.
37913 (cd_drive): New variable.
37914 (grub_biosdisk_get_drive): Don't check for (cdN) device.
37915 (grub_biosdisk_call_hook): Likewise.
37916 (grub_biosdisk_iterate): Change cdrom detection method.
37917 (grub_biosdisk_open): Replace cd_start with cd_drive.
37918 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
37919 detect cdrom device.
37920
37921 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
37922 Removed.
37923 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
37924 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
37925 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
37926 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
37927 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
37928 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
37929 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
37930 (grub_biosdisk_cdrp): New structure.
37931 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
37932
37933 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
37934
37935 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
37936 device.
37937
37938 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
37939 New function.
37940
68e7fc7a 379412008-03-20 Robert Millan <rmh@aybabtu.com>
37942
37943 Remove 2 TiB limit in ata.mod.
37944 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
37945 (grub_ata_dumpinfo): Print sector count with 0x%llx.
37946 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
37947 grub_uint64_t instead of grub_uint32_t.
37948
38ad2cf5 379492008-03-05 Bean <bean123ch@gmail.com>
37950
37951 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
37952 (grub_multiboot): Set boot device.
37953
37954 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
37955
2b89344e 379562008-03-02 Bean <bean123ch@gmail.com>
37957
37958 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
37959 symlink_buffer.
37960
87a95d1f 379612008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
37962
37963 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
37964 texinfo.tex.
37965
37966 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
37967 modified.
37968
37969 * docs/fdl.texi: New file.
f19dbdb7 37970
87a95d1f 37971 * docs/mdate-sh: New file. Copied from gnulib.
37972 * docs/texinfo.tex: Likewise.
37973
37974 * config.guess: Updated from gnulib.
37975 * install-sh: Likewise.
37976
7dc15d8e 379772008-02-28 Robert Millan <rmh@aybabtu.com>
37978
37979 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
37980 (aout_mod_SOURCES): New variable.
37981 (aout_mod_CFLAGS): Likewise.
37982 (aout_mod_LDFLAGS): Likewise.
37983
37984 * conf/i386-ieee1275.rmk: Likewise.
37985
b00ab696 379862008-02-28 Robert Millan <rmh@aybabtu.com>
37987
37988 * util/update-grub.in: Reorganise terminal validity check. Accept
37989 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
37990 Based on suggestion by Franklin PIAT.
37991
79ca2d78 379922008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
37993
37994 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
37995 function.
37996 * util/getroot.c (grub_util_check_block_device): New function that
37997 returns the given argument if it is a block device and returns NULL else.
37998 * util/grub-probe.c (argument_is_device): New variable.
37999 (probe): Promote device_name from a variable to an argument. Receive
38000 device_name from grub_util_check_block_device() if path is NULL and from
38001 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 38002 (options): Introduce new parameter '-d, --device'.
79ca2d78 38003 (main): Add description of the new parameter to the help screen.
38004 Rename path variable to argument. Set argument_is_device if the '-d'
38005 option is given. Pass argument to probe() depending on
38006 argument_is_device.
38007
0d16e571 380082008-02-24 Bean <bean123ch@gmail.com>
38009
38010 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38011 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38012 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38013 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38014 (GRUB_ISO9660_VOLDESC_END): Likewise.
38015 (grub_iso9660_primary_voldesc): New member escape.
38016 (grub_iso9660_data): New member joliet.
38017 (grub_iso9660_convert_string): New function.
38018 (grub_iso9660_mount): Detect joliet extension.
38019 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38020 (grub_iso9660_iso9660_label): Likewise.
38021
38022 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38023 (grub_setup_SOURCES): Add fs/udf.c.
38024 (grub_fstest_SOURCES): Likewise.
38025 (udf_mod_SOURCES): New variable.
38026 (udf_mod_CFLAGS): Likewise.
38027 (udf_mod_LDFLAGS): Likewise.
38028
38029 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38030 (grub_emu_SOURCES): Likewise.
38031
38032 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38033
38034 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38035
38036 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38037
38038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38039
38040 * fs/udf.c: New file.
38041
8a594a17 380422008-02-24 Robert Millan <rmh@aybabtu.com>
38043
38044 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38045 (normal/lexer.c_DEPENDENCIES): New variables.
38046 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38047 (normal/lexer.c_DEPENDENCIES): Likewise.
38048 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38049 (normal/lexer.c_DEPENDENCIES): Likewise.
38050 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38051 (normal/lexer.c_DEPENDENCIES): Likewise.
38052 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38053 (normal/lexer.c_DEPENDENCIES): Likewise.
38054 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38055 (normal/lexer.c_DEPENDENCIES): Likewise.
38056
2dc33c03 380572008-02-23 Robert Millan <rmh@aybabtu.com>
38058
38059 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38060 since they were intended to be in hex. This didn't break previously
38061 because of a bug in gpt_partition_map_iterate() (see below).
38062
38063 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38064 when checking the validity of GPT header.
38065 Remove `partno', since it always provides the same information as `i'.
38066
f6f4cfb0 380672008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38068
38069 * include/grub/efi/time.h: Fix a wrong comment.
38070
79ff665f 380712008-02-19 Pavel Roskin <proski@gnu.org>
38072
38073 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38074 message.
38075
d38e24c2 380762008-02-19 Bean <bean123ch@gmail.com>
38077
38078 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38079 (aout_mod_SOURCES): New variable.
38080 (aout_mod_CFLAGS): Likewise.
38081 (aout_mod_LDFLAGS): Likewise.
38082 (_bsd_mod_SOURCES): New variable.
38083 (_bsd_mod_CFLAGS): Likewise.
38084 (_bsd_mod_LDFLAGS): Likewise.
38085 (bsd_mod_SOURCES): New variable.
38086 (bsd_mod_CFLAGS): Likewise.
38087 (bsd_mod_LDFLAGS): Likewise.
38088
38089 * include/grub/aout.h: New file.
38090
38091 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38092
38093 * include/grub/i386/bsd.h: New file.
38094
38095 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38096 to make it public.
38097
38098 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38099 function is called, so that it's possible to change it inside the hook.
38100 (grub_elf64_load): Likewise.
38101 (grub_elf_file): Don't close the file if elf header is not found.
38102 (grub_elf_close): Close the file if grub_elf_file fails (The new
38103 grub_elf_file won't close it).
38104 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38105 (grub_elf64_size): Likewise.
38106
38107 * kern/i386/loader.S (grub_unix_real_boot): New function.
38108
38109 * loader/aout.c: New file.
38110
38111 * loader/i386/bsd.c: New file.
38112
38113 * loader/i386/bsd_normal.c: New file.
38114
38115 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38116
38117 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 38118 can test other formats.
d38e24c2 38119
b93bdb0f 381202008-02-19 Robert Millan <rmh@aybabtu.com>
38121
38122 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38123 (grub_gpt_partition_type_empty): Redefine with macro from
38124 `<grub/gpt_partition.h>'.
38125 (gpt_partition_map_iterate): Adjust partition type comparison.
38126
38127 Export `entry' as partmap-specific `part.data' struct.
38128 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38129
38130 * include/grub/gpt_partition.h (grub_gpt_header)
38131 (grub_gpt_partentry): ... to here (new file).
38132
38133 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38134
38135 (grub_gpt_partition_type_bios_boot): New const variable, defined
38136 with macro from `<grub/gpt_partition.h>'.
38137
38138 (setup): Replace `first_start' with `embed_region', which keeps
38139 track of the embed region (and is partmap-agnostic).
38140
38141 Replace find_first_partition_start() with find_usable_region(),
38142 which finds a usable region for embedding using partmap-specific
38143 knowledge (supports PC/MSDOS and GPT).
38144
38145 Fix all assumptions that the embed region start at sector 1, using
38146 `embed_region.start' from now on. Similarly, use `embed_region.end'
38147 rather than `first_start' to calculate available size.
38148
38149 In grub_util_info() message, replace "into after the MBR" with an
38150 indication of the specific sector our embed region starts at.
38151
66cb40f6 381522008-02-19 Robert Millan <rmh@aybabtu.com>
38153
38154 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38155 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38156 `commands/reboot.c'.
38157 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38158 (halt_mod_SOURCES): Likewise.
38159 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38160 (halt_mod_SOURCES): Likewise.
38161
b7202015 381622008-02-17 Christian Franke <franke@computer.org>
38163
38164 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38165
32b0fc49 381662008-02-17 Robert Millan <rmh@aybabtu.com>
38167
38168 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38169 set `first_start' to 0 for non-PC/MSDOS partition maps.
38170
aca63502 381712008-02-16 Robert Millan <rmh@aybabtu.com>
38172
38173 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38174 do not assume partition map is PC/MSDOS before performing checks that
38175 are specific to that layout.
38176
0de8be86 381772008-02-13 Robert Millan <rmh@aybabtu.com>
38178
38179 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38180 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38181 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38182
c3db8364 381832008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38184
38185 * configure.ac: Only a cosmetic change on the handling of
38186 -fno-stack-protector.
38187
f714229e 381882008-02-12 Alexandre Boeglin <alex@boeglin.org>
38189
c3db8364 38190 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38191 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38192 reboot.c.
f714229e 38193 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38194 (halt_mod_SOURCES): New variable.
38195 (halt_mod_CFLAGS): Likewise.
38196 (halt_mod_LDFLAGS): Likewise.
38197 (reboot_mod_SOURCES): Likewise.
38198 (reboot_mod_CFLAGS): Likewise.
38199 (reboot_mod_LDFLAGS): Likewise.
38200
c3db8364 38201 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38202 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38203 reboot.c.
f714229e 38204 (halt_mod_SOURCES): Likewise.
38205 (reboot_mod_SOURCES): Likewise.
38206
c3db8364 38207 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38208 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 38209 (reboot_mod_SOURCES): Likewise.
38210
38211 * commands/i386/pc/reboot.c: merge this file ...
38212
38213 * commands/ieee1275/reboot.c: ... and this file ...
38214
38215 * commands/reboot.c: ... to this file.
c3db8364 38216 Add some precompiler directive to include the correct header for
38217 each machine.
f714229e 38218
38219 * commands/ieee1275/halt.c: move this file ...
38220
38221 * commands/halt.c: ... to here.
c3db8364 38222 Add some precompiler directive to include the correct header for
38223 each machine.
f714229e 38224
38225 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38226 (grub_halt): Likewise.
38227
38228 * kern/efi/efi.c (grub_reboot): New function.
38229 (grub_halt): Likewise.
38230
c74493e0 382312008-02-12 Robert Millan <rmh@aybabtu.com>
38232
38233 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38234 /dev (like it is done for /dev/mapper). This doesn't provide support
38235 for EVMS, but at least it is now easy to identify the problem when it
38236 arises.
38237
d0db4b04 382382008-02-11 Robert Millan <rmh@aybabtu.com>
38239
38240 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38241 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38242 comparing it with -1, not 0.
38243
bf748642 382442008-02-10 Robert Millan <rmh@aybabtu.com>
38245
38246 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38247 `disk/lvm.c'.
38248 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38249 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38250
38251 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38252 `disk/lvm.c' to the end of the list.
38253 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38254 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38255
b5db202a 382562008-02-10 Robert Millan <rmh@aybabtu.com>
38257
38258 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38259 grub_print_error() instead. This will let user know why we're entering
38260 rescue mode.
38261 Based on suggestions from Sam Morris.
38262
83abee31 382632008-02-10 Alexandre Boeglin <alex@boeglin.org>
38264
38265 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38266 on remaining N args, instead of "--" arg N times.
38267
78d5a08b 382682008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38269
38270 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38271 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38272 pattern for unknown glyphs.
38273
68807e5f 382742008-02-09 Robert Millan <rmh@aybabtu.com>
38275
38276 * configure.ac: Probe for `help2man'.
38277 * Makefile.in (builddir): New variable.
38278 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38279 or otherwise add a few flags/options to it.
38280 (install-local): For every executable utility or script that is
38281 installed, invoke $(HELP2MAN) to install a manpage based on --help
38282 output.
38283
38284 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38285 that it doesn't prevent --help from working in build tree.
38286
38287 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38288 with `bug-grub@gnu.org'.
38289 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38290 * util/update-grub.in (usage): New function.
38291 Implement proper argument check, with support for --help and --version
38292 (as well as existing -y).
38293
382942008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 38295
38296 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38297 avoid overwriting previous output.
38298 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38299
c1962162 383002008-02-09 Robert Millan <rmh@aybabtu.com>
38301
38302 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38303 drawing the menu.
38304
3dac2e3f 383052008-02-09 Robert Millan <rmh@aybabtu.com>
38306
38307 * commands/sleep.c: New file.
38308 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38309 (sleep_mod_SOURCES): New variable.
38310 (sleep_mod_CFLAGS): Likewise.
38311 (sleep_mod_LDFLAGS): Likewise.
38312
7a634e08 383132008-02-09 Robert Millan <rmh@aybabtu.com>
38314
38315 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38316 situations in which we can deduce the RAID size and the superblock
38317 doesn't match it.
38318
b92f0c18 383192008-02-09 Robert Millan <rmh@aybabtu.com>
38320
38321 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38322 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38323 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38324
38325 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38326 and return a grub_diskmemberlist_t composed of physical array members.
38327 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38328
38329 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38330 prototype.
38331 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38332 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38333 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38334
38335 * util/grub-probe.c (probe): Move partmap probing code from here ...
38336 (probe_partmap): ... to here.
38337 (probe): Use probe_partmap() once for the disk we're probing, and
38338 additionally, when such disk contains a memberlist() struct member,
38339 once for each disk that is contained in the structure returned by
38340 memberlist().
38341
91a4bf68 383422008-02-09 Robert Millan <rmh@aybabtu.com>
38343
38344 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38345 environment variable to 'all' in order to obtain debug output from
38346 non-util/ code.
38347 * util/i386/pc/grub-setup.c (main): Likewise.
38348
a96f9caa 383492008-02-08 Robert Millan <rmh@aybabtu.com>
38350
38351 * disk/raid.c (grub_raid_scan_device): Check for
38352 `array->device[sb.this_disk.number]' rather than for
38353 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 38354 guaranteed to be accessible.
a96f9caa 38355
b37a9222 383562008-02-08 Robert Millan <rmh@aybabtu.com>
38357
38358 * disk/raid.c: Update copyright.
38359 * fs/cpio.c: Likewise.
38360 * include/grub/raid.h: Likewise.
38361 * loader/i386/pc/multiboot.c: Likewise.
38362 * util/hostfs.c: Likewise.
38363
5626aee1 383642008-02-08 Robert Millan <rmh@aybabtu.com>
38365
38366 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38367 to a grub_disk_t array.
38368 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38369 `device[x]'.
38370 (grub_raid_scan_device): Replace `device[x].name' accesses with
38371 `device[x]->name'. Simplify initialization of `array->device[x]'.
38372
554f0187 383732008-02-08 Robert Millan <rmh@aybabtu.com>
38374
38375 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38376 grub_dprintf() calls.
38377 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38378 error message.
38379
1ec8425d 383802008-02-07 Christian Franke <franke@computer.org>
38381
38382 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38383 instead of fseek and ftell to support large files.
38384 (grub_hostfs_read): Likewise.
38385
f2156fda 383862008-02-07 Robert Millan <rmh@aybabtu.com>
38387
38388 Patch from Jeroen Dekkers.
38389 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 38390 failure, since successfully reading all array members might not be
f2156fda 38391 required.
38392
9216e0e7 383932008-02-06 Robert Millan <rmh@aybabtu.com>
38394
38395 * util/grub-probe.c (probe): Simplify partmap probing (with the
38396 assumption that the first word up to the underscore equals to
38397 the module name).
38398
b0dfd29a 383992008-02-06 Christian Franke <franke@computer.org>
38400
38401 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38402 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38403 last block of a cpio or tar stream.
38404 Check for "TRAILER!!!" instead of any empty data
38405 block to detect last block of a cpio stream.
38406 (grub_cpio_dir): Fix constness of variable np.
38407 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38408 cpio or tar trailer is detected. This fixes a crash
38409 on open of a non existing file.
38410
c32865bf 384112008-02-05 Bean <bean123ch@gmail.com>
38412
38413 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38414 address of entry.
38415 (grub_multiboot_load_elf64): Likewise.
38416 (grub_multiboot): Initialize mbi structure.
38417
38418 * util/grub-fstest.c: Don't include unused header file script.h.
38419
fe6b695a 38420 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 38421 of file.
38422 (grub_fstest_SOURCES): Likewise.
38423
409480b7 384242008-02-05 Robert Millan <rmh@aybabtu.com>
38425
38426 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38427 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38428 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38429 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38430
38431 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38432 (translation_table): Replace hardcoded values with macros
38433 provided by `<grub/term.h>'.
38434
38435 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38436 (keyboard_map): Correct/add a few values, with macros provided
38437 by `<grub/term.h>'.
38438 (keyboard_map_shift): Zero values that don't differ from their
38439 `keyboard_map' equivalents.
38440 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38441 Discard the second scan code that is always sent by Caps lock.
38442 Only use `keyboard_map_shift' when it provides a non-zero value,
38443 otherwise fallback to `keyboard_map'.
38444
99fadbaa 384452008-02-04 Bean <bean123ch@gmail.com>
38446
38447 * Makefile.in (enable_grub_fstest): New variable.
38448
38449 * conf/common.rmk (grub_fstest_init.lst): New rule.
38450 (grub_fstest_init.h): Likewise.
38451 (grub_fstest_init.c): Likewise.
38452 (util/grub-fstest.c_DEPENDENCIES): New variable.
38453 (grub_fstest_SOURCES): Likewise.
38454
38455 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38456
38457 * util/grub-fstest.c: New file.
38458
bf567c50 384592008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38460
38461 Make grub-setup handle a separate root device.
f19dbdb7 38462
bf567c50 38463 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38464 so that the root device can be compared with the destination
38465 device.
38466 When embedding the core image, if the root and destination devices
38467 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38468 0xFF.
38469 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 38470
9be6b98b 384712008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38472
38473 Add support for having a grub directory in a different drive. This
38474 is still only the data handling part.
f19dbdb7 38475
9be6b98b 38476 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38477 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38478 (grub_root_drive): New variable.
38479
38480 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38481 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38482 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38483 as it was.
38484
38485 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38486
38487 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38488 macro.
38489 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38490
38491 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38492 is bogus, because PXE booting does not specify any drive
38493 correctly.
38494
38495 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38496 am not sure if this is really correct.
38497
38498 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38499 is always identical to the boot drive when booting from a CD.
38500
38501 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38502 longer.
38503 (root_drive): New variable.
38504 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38505 (setup_sectors): Push %dx right after popping it, because %dh will
38506 be modified later.
38507 (copy_buffer): Restore %dx.
38508
e0ca0677 385092008-02-03 Robert Millan <rmh@aybabtu.com>
38510
38511 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38512 use `cdboot.img' for cdrom images.
38513
3b3f6629 385142008-02-03 Robert Millan <rmh@aybabtu.com>
38515
38516 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38517 only setup gfxterm when `font' command has succeeded.
38518
d42b3672 385192008-02-03 Robert Millan <rmh@aybabtu.com>
38520
38521 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38522 (grub_rescue_cmd_multiboot_loader)
38523 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38524
fa370ea6 385252008-02-03 Pavel Roskin <proski@gnu.org>
38526
e0c5dacb 38527 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 38528 %edx and %esi from stack only after grub_gate_a20() is called.
38529 grub_gate_a20() clobbers %edx.
38530
f2a76e1d 385312008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38532
38533 * configure.ac (AC_INIT): Bumped to 1.96.
38534
38535 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38536 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38537 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38538 video/readers/png.c.
38539
90fd32d1 385402008-02-03 Bean <bean123ch@gmail.com>
9be665dd 38541
38542 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38543 (cdboot_img_SOURCES): New variable.
38544 (cdboot_img_ASFLAGS): New variable.
38545 (cdboot_img_LDFLAGS): New variable.
38546
38547 * boot/i386/pc/cdboot.S: New file.
38548
38549 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38550 (cd_count): Likewise.
38551 (grub_biosdisk_get_drive): Add support for cd device.
38552 (grub_biosdisk_call_hook): Likewise.
38553 (grub_biosdisk_iterate): Likewise.
38554 (grub_biosdisk_open): Likewise.
38555 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38556 (grub_biosdisk_rw): Support reading from cd device.
38557 (GRUB_MOD_INIT): Iterate cd devices.
38558
38559 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38560 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38561 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38562
38563 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38564
4020aa53 385652008-02-02 Robert Millan <rmh@aybabtu.com>
38566
38567 * commands/read.c: New file.
38568 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38569 (read_mod_SOURCES): New variable.
38570 (read_mod_CFLAGS): Likewise.
38571 (read_mod_LDFLAGS): Likewise.
38572
e03a1132 385732008-02-02 Robert Millan <rmh@aybabtu.com>
38574
38575 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38576 determining whether menu has to be displayed.
38577
58c69220 385782008-02-02 Marco Gerards <marco@gnu.org>
38579
38580 * bus/pci.c: New file.
38581
38582 * include/grub/pci.h: Likewise.
38583
38584 * include/grub/i386/pc/pci.h: Likewise.
38585
38586 * commands/lspci.c: Likewise.
38587
38588 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38589 `lspci.mod'.
38590 (pci_mod_SOURCES): New variable.
38591 (pci_mod_CFLAGS): Likewise.
38592 (pci_mod_LDFLAGS): Likewise.
38593 (lspci_mod_SOURCES): Likewise.
38594 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 38595 (lspci_mod_LDFLAGS): Likewise.
58c69220 38596
c004e1b4 385972008-02-02 Bean <bean123ch@gmail.com>
38598
38599 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38600 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38601
38602 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38603 (grub_xfs_btree_node): New structure.
38604 (grub_xfs_btree_root): New structure.
38605 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38606 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38607 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38608 (GRUB_XFS_EXTENT_SIZE): Likewise.
38609 (grub_xfs_read_block): Support btree format type.
38610 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38611 Use directory block as basic unit.
38612
38613 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38614
38615 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38616 __attribute__ ((__regparm__ (1))).
38617
f95562bf 386182008-02-01 Robert Millan <rmh@aybabtu.com>
38619
38620 Correct a mistake in previous commit.
38621
38622 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38623 top.
38624 (normal/command.c_DEPENDENCIES): New variable.
38625
7d31f41f 386262008-02-01 Robert Millan <rmh@aybabtu.com>
38627
38628 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38629 top.
38630 (normal/command.c_DEPENDENCIES): New variable.
38631 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38632 * conf/i386-ieee1275.rmk: Likewise.
38633 * conf/i386-linuxbios.rmk: Likewise.
38634 * conf/i386-pc.rmk: Likewise.
38635 * conf/sparc64-ieee1275.rmk: Likewise.
38636 * conf/powerpc-ieee1275.rmk: Likewise.
38637 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38638
38639 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38640
60b6be74 386412008-02-01 Robert Millan <rmh@aybabtu.com>
38642
38643 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38644 call at beginning of function.
38645
078522ab 386462008-01-31 Pavel Roskin <proski@gnu.org>
38647
38648 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 38649 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38650 (grub_mkrescue_SOURCES): Likewise.
078522ab 38651 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38652
ccaa8a5f 386532008-01-30 Robert Millan <rmh@aybabtu.com>
38654
38655 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38656 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38657 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38658 (grub_probe_SOURCES): ... to here.
38659
38660 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38661 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38662 * conf/i386-ieee1275.rmk: Likewise.
38663 * conf/i386-linuxbios.rmk: Likewise.
38664 * conf/powerpc-ieee1275.rmk: Likewise.
38665
ae5a9cd7 386662008-01-30 Tristan Gingold <gingold@free.fr>
38667
38668 * kern/rescue.c: Silently accept empty lines.
38669
70bc2ef2 386702008-01-29 Bean <bean123ch@gmail.com>
38671
38672 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
38673 (real_code_2): Code cleanup and change comment style.
38674 (move_memory): Avoid using 32-bit address mode.
38675
6a4d50ea 386762008-01-29 Bean <bean123ch@gmail.com>
38677
38678 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
38679 (png_mod_SOURCES): New variable.
38680 (png_mod_CFLAGS): Likewise.
38681 (png_mod_LDFLAGS): Likewise.
38682
38683 * video/readers/png.c: New file.
38684
11cc30ac 386852008-01-28 Robert Millan <rmh@aybabtu.com>
38686
38687 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
38688 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
38689 `ifndef GRUB_MOD_GAP' hack.
38690 * util/elf/grub-mkimage.c (add_segments): Likewise.
38691
3abc589f 386922008-01-27 Robert Millan <rmh@aybabtu.com>
38693
38694 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
38695 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 38696 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 38697
e1907778 386982008-01-27 Robert Millan <rmh@aybabtu.com>
38699
38700 Get grub-emu to build again (including parallel builds).
38701
38702 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
38703 Split into ...
38704 (util/grub-emu.c_DEPENDENCIES): ... this, ...
38705 (normal/execute.c_DEPENDENCIES): ... this, ...
38706 (grub-emu_DEPENDENCIES): ... and this.
38707
38708 * conf/i386-efi.rmk: Likewise.
38709 * conf/i386-linuxbios.rmk: Likewise.
38710 * conf/i386-ieee1275.rmk: Likewise.
38711 * conf/powerpc-ieee1275.rmk: Likewise.
38712 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
38713
2216b101 387142008-01-27 Robert Millan <rmh@aybabtu.com>
38715
38716 * NEWS: Add a few items.
38717
f75172d9 387182008-01-27 Robert Millan <rmh@aybabtu.com>
38719
38720 Fix parallel builds with grub-emu. Based on earlier commit for
38721 grub-probe and grub-setup.
38722
38723 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38724 (util/grub-emu.c_DEPENDENCIES): ... this.
38725 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38726 (util/grub-emu.c_DEPENDENCIES): ... this.
38727 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38728 (util/grub-emu.c_DEPENDENCIES): ... this.
38729 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38730 (util/grub-emu.c_DEPENDENCIES): ... this.
38731 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
38732 (util/grub-emu.c_DEPENDENCIES): ... this.
38733
3f51de77 387342008-01-27 Pavel Roskin <proski@gnu.org>
38735
38736 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
38737 to create a gap between _end and the modules added to the image
38738 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
38739 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
38740 * util/elf/grub-mkimage.c (add_segments): Likewise.
38741
2033f53e 387422008-01-26 Pavel Roskin <proski@gnu.org>
38743
38744 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
38745 just return an error.
38746
22da1f6f 387472008-01-26 Bean <bean123ch@gmail.com>
38748
38749 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
38750 (grub_reiserfs_get_item): Save offset of the next item.
38751 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
38752
2a9525e6 387532008-01-25 Robert Millan <rmh@aybabtu.com>
38754
38755 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
38756 make all filesystem sources appear together (possibly fixing omissions
38757 while at it).
38758 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38759 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38760 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38761 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38762
38763 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
38764 add `kern/file.c'.
38765 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
38766 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38767 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
38768 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
38769
38770 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
38771 (probe): Add a sanity check to make sure of our ability to read
38772 requested files when probing for filesystem type.
38773
38774 * genmk.rb: Update copyright year (2007).
38775
38776 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
38777 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
38778 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
38779 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
38780 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
38781 : Remove function prototypes.
38782
b95f71b5 387832008-01-25 Robert Millan <rmh@aybabtu.com>
38784
38785 Revert my previous commits (based on wrong assumption of how grub_errno
38786 works).
38787
fe6b695a 38788 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 38789 * kern/file.c (grub_file_open): Likewise.
38790
d08bbb49 387912008-01-24 Pavel Roskin <proski@gnu.org>
38792
38793 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
38794 that hang if GRUB tries to setup colors.
38795 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
38796 colors for firmwares that don't support it.
38797 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
38798 Recognize Open Hack'Ware, set flags to work around its
38799 limitations.
38800
605e36ed 388012008-01-24 Robert Millan <rmh@aybabtu.com>
38802
38803 * kern/file.c (grub_file_open): Do not account previous failures of
38804 unrelated functions when grub_errno is checked for.
38805 Reported by Oleg Strikov.
38806
bac332a1 388072008-01-24 Bean <bean123ch@gmail.com>
38808
38809 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
38810 (grub_ufs_sblock): New member volume name.
38811 (grub_ufs_find_file): Fix string copy bug.
38812 (grub_ufs_label): Implement this function properly.
38813
38814 * fs/hfs.c (grub_hfs_cnid_type): New enum.
38815 (grub_hfs_iterate_records): Use the correct file number for extents
38816 and catalog file. Fix problem in next index calculation.
38817 (grub_hfs_find_node): Replace recursive function call with loop.
38818 (grub_hfs_iterate_dir): Replace recursive function call with loop.
38819
15c80c09 388202008-01-23 Robert Millan <rmh@aybabtu.com>
38821
38822 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
38823 `<grub/symbol.h>' and `<grub/multiboot.h>'.
38824 (grub_multiboot2_real_boot): New function prototype.
38825
38826 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
38827 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
38828
38829 * kern/i386/ieee1275/init.c (grub_os_area_addr)
38830 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
38831
305338fd 388322008-01-23 Robert Millan <rmh@aybabtu.com>
38833
38834 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
38835 #ifdef'ed out grub_printf().
38836
3ea52685 388372008-01-23 Robert Millan <rmh@aybabtu.com>
38838
38839 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
38840 grub_dprintf calls, since they make "debug=all" mode unusable.
38841 (grub_console_checkkey): Likewise.
38842
5882ae4b 388432008-01-23 Robert Millan <rmh@aybabtu.com>
38844
38845 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38846 `term/i386/pc/at_keyboard.c'.
38847 (pkglib_MODULES): Add `serial.mod'.
38848 (serial_mod_SOURCES): New variable.
38849 (serial_mod_CFLAGS): Likewise.
38850 (serial_mod_LDFLAGS): Likewise.
38851
38852 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
38853 `<grub/powerpc/ieee1275/console.h>'.
38854 (grub_keyboard_controller_init): New function prototype.
38855 (grub_console_checkkey): Likewise.
38856 (grub_console_getkey): Likewise.
38857
38858 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
38859 keyboard on i386.
38860
38861 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
38862 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
38863
06ab5303 388642008-01-23 Robert Millan <rmh@aybabtu.com>
38865
38866 * kern/i386/pc/init.c (make_install_device): When memdisk image is
38867 present, "(memdisk)/boot/grub" becomes the default prefix.
38868
38869 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
38870 a memdisk tarball with all the modules. Add --overlay=DIR option that
38871 allows users to overlay additional files into the image.
38872
dbb475a4 388732008-01-23 Robert Millan <rmh@aybabtu.com>
38874
38875 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
38876 and `machine/memory.h'.
38877 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
38878 (_multiboot_mod_SOURCES): New variable.
38879 (_multiboot_mod_CFLAGS): Likewise.
38880 (_multiboot_mod_LDFLAGS): Likewise.
38881 (multiboot_mod_SOURCES): Likewise.
38882 (multiboot_mod_CFLAGS): Likewise.
38883 (multiboot_mod_LDFLAGS): Likewise.
38884
38885 * include/grub/i386/ieee1275/loader.h: New file.
38886
38887 * include/grub/i386/ieee1275/machine.h: Likewise.
38888
38889 * include/grub/i386/ieee1275/memory.h: Likewise.
38890
38891 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
38892 variable declaration.
38893 (grub_os_area_size): Likewise.
38894
38895 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
38896 (grub_lower_mem, grub_upper_mem): New variables.
38897 (grub_stop_floppy): New function (just to make
38898 grub_multiboot2_real_boot() happy).
38899
38900 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
38901 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
38902 (grub_stop): New function.
38903 Include `"../realmode.S"' and `"../loader.S"'.
38904
38905 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
38906 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
38907
38908 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
38909 rely on grub_multiboot2_real_boot() for final boot.
38910
25638629 389112008-01-22 Robert Millan <rmh@aybabtu.com>
38912
38913 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
38914 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
38915 device that doesn't look like an SD card.
38916 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
38917 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
38918 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
38919 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
38920 found.
38921
9dad816d 389222008-01-22 Robert Millan <rmh@aybabtu.com>
38923
38924 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
38925 avoid claiming over our own code.
38926
34842f2d 389272008-01-22 Bean <bean123ch@gmail.com>
38928
38929 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
38930 (jpeg_mod_SOURCES): New variable.
38931 (jpeg_mod_CFLAGS): Likewise.
38932 (jpeg_mod_LDFLAGS): Likewise.
38933
38934 * video/readers/jpeg.c : New file.
38935
44023a28 389362008-01-22 Bean <bean123ch@gmail.com>
38937
38938 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
38939 there are no more items.
38940
bc2d8ac6 389412008-01-21 Robert Millan <rmh@aybabtu.com>
38942
38943 * kern/mm.c (grub_mm_init_region): Improve debug message.
38944
261bd4bc 389452008-01-21 Robert Millan <rmh@aybabtu.com>
38946
38947 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
38948 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
38949 address.
38950 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
38951 a C macro.
38952 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
38953 Indicates start of upper memory.
38954 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
38955 (generate_image): Abort when image size is big enough to corrupt
38956 upper memory.
38957
38958 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
38959 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
38960 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38961 instead of hardcoding 0xA0000.
38962 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
38963 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
38964 instead of hardcoding 0xA0000.
38965
f970b55e 389662008-01-21 Robert Millan <rmh@aybabtu.com>
38967
38968 * disk/memdisk.c (memdisk_size): New variable.
38969 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
38970 `memdisk_size'.
38971 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
38972 image to dynamic memory.
38973 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
38974 `memdisk_size'. Free memdisk block.
38975
1a8b0526 389762008-01-21 Robert Millan <rmh@aybabtu.com>
38977
38978 Fix detection of very small filesystems (like tar).
38979
38980 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
38981 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
38982 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
38983 a problem with this disk).
38984
6e9b4aab 389852008-01-21 Robert Millan <rmh@aybabtu.com>
38986
38987 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
38988 on grub_biosdisk_rw_standard() error.
38989
0d8837b2 389902008-01-21 Robert Millan <rmh@aybabtu.com>
38991
38992 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
38993 recent changes.
38994 * kern/elf.c: Likewise.
38995 * kern/ieee1275/ieee1275.c: Likewise.
38996 * kern/powerpc/ieee1275/openfw.c: Likewise.
38997 * term/ieee1275/ofconsole.c: Likewise.
38998
ffd36e34 389992008-01-21 Robert Millan <rmh@aybabtu.com>
39000
39001 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39002
3f0093d0 39003 * include/grub/kernel.h (grub_arch_memdisk_addr)
39004 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 39005
3f0093d0 39006 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39007 (grub_arch_memdisk_size): ... to here.
ffd36e34 39008
6c391b21 390092008-01-21 Robert Millan <rmh@aybabtu.com>
39010
39011 Mostly based on bugfix from Bean.
39012
39013 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39014 attribute with hook() parameter.
39015 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39016 declaration.
39017 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39018 attribute with hook() parameter.
39019 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39020 declaration.
39021
55a581dc 390222008-01-21 Robert Millan <rmh@aybabtu.com>
39023
39024 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39025 (pkglib_MODULES): Add `memdisk.mod'.
39026 (memdisk_mod_SOURCES): New variable.
39027 (memdisk_mod_CFLAGS): Likewise.
39028 (memdisk_mod_LDFLAGS): Likewise.
39029
39030 * disk/memdisk.c: New file.
39031
39032 * include/grub/disk.h (grub_disk_dev_id): Add
39033 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39034
39035 * include/grub/i386/pc/kernel.h
39036 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39037 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39038 (grub_kernel_image_size): New variable declaration.
39039 (grub_total_module_size): Likewise.
39040 (grub_memdisk_image_size): Likewise.
39041
39042 * include/grub/i386/pc/memory.h
39043 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39044
39045 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39046 (grub_arch_memdisk_addr): New variable declaration.
39047 (grub_arch_memdisk_size): Likewise.
39048
39049 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39050 (grub_arch_memdisk_size): Likewise.
39051
39052 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39053 (codestart): Replace hardcoded `0x100000' with
39054 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39055
39056 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39057 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39058 not NULL, append the contents of the file it refers to, at the end of
39059 the compressed kernel image. Initialize `grub_memdisk_image_size'
39060 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39061 (options): Add "memdisk"|'m' option.
39062 (main): Parse --memdisk|-m option, and pass user-provided path as
39063 parameter to generate_image().
39064
3d7f54c9 390652008-01-20 Robert Millan <rmh@aybabtu.com>
39066
39067 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39068 grub_dprintf() calls from here ...
39069 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39070
0bf74728 390712008-01-20 Robert Millan <rmh@aybabtu.com>
39072
39073 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39074
39075 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39076 declaration.
39077 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39078 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39079 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 39080 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 39081 property).
39082 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39083 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39084
33bf70a7 390852008-01-19 Robert Millan <rmh@aybabtu.com>
39086
fe6b695a 39087 Get rid of confusing function (superseded by
33bf70a7 39088 `grub_ieee1275_get_integer_property')
39089 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39090 prototype.
39091 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39092 function.
39093 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39094 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 39095 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 39096
e2da7d26 390972008-01-19 Robert Millan <rmh@aybabtu.com>
39098
39099 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39100 command after "shut-down", since implementations differ on which
39101 the command for halt is.
39102
59f1fd8d 391032008-01-19 Robert Millan <rmh@aybabtu.com>
39104
39105 * include/grub/i386/linuxbios/console.h: Add header protection.
39106 (grub_keyboard_controller_init): New function prototype.
39107 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39108 (KEYBOARD_COMMAND_READ): Likewise.
39109 (KEYBOARD_COMMAND_WRITE): Likewise.
39110 (KEYBOARD_SCANCODE_SET1): Likewise.
39111 (grub_keyboard_controller_write): New function.
39112 (grub_keyboard_controller_read): Likewise.
39113 (grub_keyboard_controller_init): Likewise.
39114
39115 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39116 (grub_console_init): On coreboot/LinuxBIOS, call
39117 grub_keyboard_controller_init().
39118
5f5a7c15 391192008-01-19 Robert Millan <rmh@aybabtu.com>
39120
39121 PowerPC changes provided by Pavel Roskin.
39122
39123 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39124 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39125 don't rely on cmain() doing it.
39126 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39127 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39128
1210e168 391292008-01-16 Robert Millan <rmh@aybabtu.com>
39130
39131 * include/grub/i386/linuxbios/memory.h
39132 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39133 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39134 receive `table_header' as argument. Instead, probe for it in the
39135 known memory ranges where it can be present.
39136 (grub_available_iterate): Do not pass a fixed `table_header' address
39137 to grub_linuxbios_table_iterate().
39138
3d04eab8 391392008-01-15 Robert Millan <rmh@aybabtu.com>
39140
39141 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39142 * conf/i386-ieee1275.rmk: New file.
39143 * include/grub/i386/ieee1275/console.h: Likewise.
39144 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39145 * include/grub/i386/ieee1275/kernel.h: Likewise.
39146 * include/grub/i386/ieee1275/time.h: Likewise.
39147 * kern/i386/ieee1275/init.c: Likewise.
39148 * kern/i386/ieee1275/startup.S: Likewise.
39149
d1bc1b73 391502008-01-15 Robert Millan <rmh@aybabtu.com>
39151
39152 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39153 when pointers are 32-bit (but still do set it to one when they are
39154 64-bit).
39155
66a65807 391562008-01-15 Robert Millan <rmh@aybabtu.com>
39157
39158 * include/grub/ieee1275/ieee1275.h
39159 (grub_ieee1275_get_integer_property): New function prototype.
39160
39161 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39162 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 39163 grub_ieee1275_get_property() to handle endianness.
66a65807 39164
39165 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39166 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 39167 where appropriate.
66a65807 39168 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39169 (grub_map): Likewise.
39170 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39171
a83ccafd 391722008-01-15 Bean <bean123ch@gmail.com>
39173
39174 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39175 (grub_script_execute_cmdline): Reset grub_errno.
39176
39177 * normal/main.c (read_config_file): Reset grub_errno.
39178
39179 * normal/parse.y (script_init): New.
39180 (script): Move function and menuentry here.
39181 (delimiter): New.
39182 (command): Add delimiter at the end of command.
39183 (commands): Adjust to match the new command.
39184 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 39185 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 39186 (if): Use the new commands.
39187
39188 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39189
df6ecfc6 391902008-01-15 Robert Millan <rmh@aybabtu.com>
39191
39192 * normal/menu.c (run_menu): Move timeout message from here ...
39193 (print_timeout): ... to here.
39194 (run_menu): Use print_timeout() once during initial draw to print
39195 the whole message, and again in every clock tick to update only
39196 the number of seconds.
39197
87ae25eb 391982008-01-15 Robert Millan <rmh@aybabtu.com>
39199
39200 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39201 actual size of `available' from grub_ieee1275_get_property(), and
39202 restrict parsing to that bound.
39203
47bf09a4 392042008-01-15 Christian Franke <franke@computer.org>
39205
39206 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39207 (argp_program_version): Remove variable.
39208 (argp_program_bug_address): Likewise.
39209 (options): Convert from struct argp_option to struct option.
39210 (struct arguments): Remove.
39211 (parse_opt): Remove.
39212 (usage): New function.
39213 (main): Replace struct args members by simple variables.
39214 Replace argp_parse() by getopt_long().
39215 Add switch to evaluate options.
39216 Add missing "(...)" around root_dev in prefix string.
39217
c86f1469 392182008-01-14 Robert Millan <rmh@aybabtu.com>
39219
39220 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39221 for grub_ieee1275_exit(), in order to improve portability.
39222
e622c559 392232008-01-14 Robert Millan <rmh@aybabtu.com>
39224
39225 * util/grub.d/10_linux.in (prefix): Define.
39226 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39227
44cb1ec8 392282008-01-13 Pavel Roskin <proski@gnu.org>
39229
39230 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39231 grub_errno if no errors have been detected.
39232
1eb8c802 392332008-01-12 Robert Millan <rmh@aybabtu.com>
39234
39235 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39236 (grub_util_get_dev_abstraction): New function prototype.
39237
39238 * util/getroot.c: Include `<grub/util/getroot.h>'
39239 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39240 (grub_util_get_dev_abstraction): ... here (new function).
39241
39242 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39243 `PRINT_ABSTRACTION'.
39244 (probe): Probe for abstraction type when requested.
39245 (main): Understand `--target=abstraction'.
39246
39247 * util/i386/efi/grub-install.in: Add abstraction module to core
39248 image when it is found to be necessary.
39249 * util/i386/pc/grub-install.in: Likewise.
39250 * util/powerpc/ieee1275/grub-install.in: Likewise.
39251
39252 * util/update-grub_lib.in (font_path): Return system path without
39253 converting to GRUB path.
39254 * util/update-grub.in: Convert system path returned by font_path()
39255 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39256 abstraction module is needed for loading fonts (if any). Export
39257 that as `GRUB_PRELOAD_MODULES'.
39258 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39259 insmod commands).
39260
52bd3de9 392612008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39262
39263 Remove some unused code from reiserfs.
f19dbdb7 39264
52bd3de9 39265 * fs/reiserfs.c (struct grub_reiserfs_key)
39266 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39267 (struct grub_reiserfs_node_body): Removed.
39268 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39269 Likewise.
39270 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39271 Likewise.
39272 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39273 Likewise.
39274 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39275 Likewise.
39276 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39277 Likewise.
39278 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39279 Likewise.
39280 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39281 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39282 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39283
2f80039d 392842008-01-10 Robert Millan <rmh@aybabtu.com>
39285
39286 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39287 Determines if a file is garbage left by packaging systems, etc.
39288 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39289 for processing /etc/grub.d scripts.
39290 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39291 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39292 as a condition for processing Linux images.
39293
87888032 392942008-01-10 Pavel Roskin <proski@gnu.org>
39295
39296 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39297 to compile reiserfs.c on PowerPC.
39298
7e54fced 392992008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 39300
39301 * kern/device.c (grub_device_iterate): Do not abort device iteration
39302 when one of the devices cannot be opened.
39303 * kern/disk.c (grub_disk_open): Do not account previous failures of
39304 unrelated functions when grub_errno is checked for.
39305
5aa541e6 393062008-01-08 Robert Millan <rmh@aybabtu.com>
39307
39308 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39309 `! grub_linux_is_bzimage', change order of address comparison to make
39310 it more intuitive, and improve "too big zImage" error message.
39311
7076340d 393122008-01-08 Robert Millan <rmh@aybabtu.com>
39313
39314 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39315 `$(update-grub_DATA)'.
39316 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39317 targets.
39318
9ca70333 393192008-01-07 Robert Millan <rmh@aybabtu.com>
39320
39321 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39322 which instruction is modified by grub-setup during installation
39323 (since it wasn't obvious by only looking at this file).
39324
38ccf575 393252008-01-07 Robert Millan <rmh@aybabtu.com>
39326
39327 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39328 listing actual TODO items.
39329
f5db4291 393302008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39331
868967cf 39332 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39333 correctly.
39334 (grub_reiserfs_get_key_offset): Likewise.
39335 (grub_reiserfs_set_key_offset): Likewise.
39336 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 39337 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 39338
39339 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39340 better to remove the bitfield version completely.
f19dbdb7 39341
868967cf 393422008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 39343
f5db4291 39344 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39345 allocated from the heap, due to the fshelp implementation.
39346 (grub_reiserfs_dir): Free NODE, due to the same reason.
39347
492e6d9d 393482008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39349
39350 Mostly from Vincent Pelletier:
f19dbdb7 39351
492e6d9d 39352 * fs/reiserfs.c: New file.
f19dbdb7 39353
492e6d9d 39354 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39355 (reiserfs_mod_SOURCES): New variable.
39356 (reiserfs_mod_CFLAGS): Likewise.
39357 (reiserfs_mod_LDFLAGS): Likewise.
39358
39359 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39360 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39361 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39362 normal/color.c.
39363
9ce3e7c1 393642008-01-06 Robert Millan <rmh@aybabtu.com>
39365
39366 * normal/color.c: Remove `<grub/env.h>'.
39367
f3b58148 393682008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39369
39370 * include/grub/normal.h: Include <grub/env.h>.
39371
7ac3bcfa 393722008-01-05 Robert Millan <rmh@aybabtu.com>
39373
39374 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39375 usage example with `(hd0,1)'.
fb358190 39376 Reported by Samuel Thibault.
7ac3bcfa 39377
c8ee99d7 393782008-01-05 Robert Millan <rmh@aybabtu.com>
39379
39380 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39381 (grub_linux_boot_zimage): Rename to ...
39382 (grub_linux_boot): ... this.
39383 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39384 (grub_linux_boot_zimage): Conditionalize zImage copy.
39385
39386 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39387 (grub_linux_boot_bzimage): Remove prototype.
39388 (grub_linux_boot_zimage): Rename to ...
39389 (grub_linux_boot): ... this.
39390
39391 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39392 (grub_linux_boot): Remove function.
39393
0ece25b1 393942008-01-05 Robert Millan <rmh@aybabtu.com>
39395
39396 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39397 (grub_env_write_color_highlight): Likewise.
39398 (grub_wait_after_message): Likewise.
39399
39400 * normal/color.c: New file.
39401
39402 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39403 (normal_mod_DEPENDENCIES): Likewise.
39404
39405 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39406 (normal_mod_DEPENDENCIES): Likewise.
39407
39408 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39409 (normal_mod_DEPENDENCIES): Likewise.
39410
39411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39412 (normal_mod_DEPENDENCIES): Likewise.
39413
39414 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39415 for waiting after a message is printed.
39416 * normal/main.c (read_config_file): Likewise.
39417 (grub_normal_init): Register grub_env_write_color_normal() and
39418 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39419 `color_highlight' variables as global.
39420
39421 * normal/menu.c (grub_wait_after_message): New function.
39422 (grub_color_menu_normal): New variable. Replaces ...
39423 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39424 (grub_color_menu_highlight): New variable. Replaces ...
39425 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39426 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39427 `GRUB_TERM_COLOR_STANDARD'.
39428 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39429 `normal_code' and `highlight_code' to `old_color_normal' and
39430 `old_color_highlight', respectively.
39431 (grub_menu_init_page): Update colors when drawing the menu, based on
39432 `menu_color_normal' and `menu_color_highlight' variables.
39433 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39434 a message is printed.
39435
182dd4e5 394362008-01-05 Robert Millan <rmh@aybabtu.com>
39437
39438 * kern/env.c (grub_env_context_open): Propagate hooks for global
39439 variables to new context.
39440
39441 * kern/main.c (grub_set_root_dev): Export `root' variable.
39442
ddf8f6ad 394432008-01-05 Robert Millan <rmh@aybabtu.com>
39444
39445 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 39446 discs unconditionally, since udev and others have options to provide
ddf8f6ad 39447 them.
39448
d8b43d9b 394492008-01-05 Robert Millan <rmh@aybabtu.com>
39450
39451 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39452
2bff2de3 394532008-01-04 Christian Franke <franke@computer.org>
39454
39455 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39456 of eisa_mmap.
39457
97eab917 394582008-01-03 Pavel Roskin <proski@gnu.org>
39459
39460 * kern/i386/linuxbios/init.c: Put "void" to all function
39461 declarations with no arguments.
39462 * kern/powerpc/ieee1275/init.c: Likewise.
39463 * term/i386/pc/at_keyboard.c: Likewise.
39464 * term/i386/pc/vga_text.c: Likewise.
39465 * util/grub-mkdevicemap.c: Likewise.
39466
b9416d00 394672008-01-02 Robert Millan <rmh@aybabtu.com>
39468
39469 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39470 message when loaded image is out of bounds.
39471 (grub_multiboot_load_elf64): Likewise.
39472
92695df9 394732008-01-02 Pavel Roskin <proski@gnu.org>
39474
39475 * util/grub.d/10_linux.in: Try version without ".old" when
39476 looking for initrd. It's better to use initrd from the newer
39477 kernel of the same version than no initrd at all.
39478
d98d9cad 394792008-01-01 Robert Millan <rmh@aybabtu.com>
39480
39481 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39482
dbfdce36 394832008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39484
f19dbdb7 39485 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 39486 grub_video_get_active_render_target.
39487 (grub_video_adapter): Added unmap_color and get_active_render_target.
39488
f19dbdb7 39489 * video/video.c: Added grub_video_unmap_color and
dbfdce36 39490 grub_video_get_active_render_target.
39491 (grub_video_get_info): Changed method to accept NULL pointer as an
39492 argument to allow detection of active video adapter.
39493
39494 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39495 grub_video_vbe_unmap_color_int.
39496 Added grub_video_vbe_unmap_color and
39497 grub_video_vbe_get_active_render_target.
39498 (grub_video_vbe_adapter): Added unmap_color and
39499 get_active_render_target.
39500
f19dbdb7 39501 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 39502 with grub_video_vbe_unmap_color_int.
39503
39504 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39505 (DEFAULT_NORMAL_COLOR): Likewise.
39506 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39507 (DEFAULT_FG_COLOR): Removed.
39508 (DEFAULT_BG_COLOR): Likewise.
39509 (DEFAULT_CURSOR_COLOR): Changed value.
39510 (grub_virtual_screen): Added standard_color_setting,
39511 normal_color_setting, highlight_color_setting and term_color.
39512 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39513 (bitmap_width): Added.
39514 (bitmap_height): Likewise.
39515 (bitmap): Likewise.
39516 (set_term_color): Likewise.
39517 (grub_virtual_screen_setup): Changed to use new terminal coloring
39518 settings.
39519 (grub_gfxterm_init): Added init for bitmap.
39520 (grub_gfxterm_fini): Added destroy for bitmap.
39521 (redraw_screen_rect): Updated to use background bitmap and new
39522 terminal coloring.
39523 (scroll_up): Added optimization for case when there is no bitmap.
39524 (grub_gfxterm_cls): Fixed to use correct background color.
39525 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39526 coloring.
39527 (grub_virtual_screen_setcolor): Likewise.
39528 (grub_virtual_screen_getcolor): Added.
39529 (grub_gfxterm_background_image_cmd): Likewise.
39530 (grub_video_term): Added setcolor and getcolor.
39531 (MOD_INIT): Added registration of background_image command.
39532 (MOD_TERM): Added unregistration for background_image command.
39533
c3c20931 395342007-12-30 Pavel Roskin <proski@gnu.org>
39535
39536 * loader/multiboot_loader.c: Fix multiboot command
39537 unregistration. Fix all typos in the word "multiboot".
39538
df266716 395392007-12-29 Pavel Roskin <proski@gnu.org>
94239199 39540
39541 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39542 support for initrd names used in Fedora.
39543
fc6e896c 395442007-12-26 Bean <bean123ch@gmail.com>
39545
39546 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39547 (cpio_mod_SOURCES): New variable.
39548 (cpio_mod_CFLAGS): Likewise.
39549 (cpio_mod_LDFLAGS): Likewise.
39550
39551 * fs/cpio.c: New file.
39552
39553 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39554
39555 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39556
39557 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39558
39559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39560
533110ad 395612007-12-25 Robert Millan <rmh@aybabtu.com>
39562
39563 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39564 (grub_getcolor): New function.
39565
39566 * kern/term.c (grub_getcolor): New function.
39567 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39568 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39569 (print_entry): Set normal and highlight colors to
39570 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39571 respectively, before printing and restore them to old
39572 values afterwards.
39573 (grub_menu_init_page): Likewise. Fill an additional colored space
39574 that would otherwise be left blank.
39575
39576 * term/efi/console.c (grub_console_getcolor): New function.
39577 (struct grub_console_term.getcolor): New variable.
39578 * term/i386/pc/console.c (grub_console_getcolor): New function.
39579 (struct grub_console_term.getcolor): New variable.
39580 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39581 (struct grub_console_term.getcolor): New variable.
39582
39583 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39584 (struct grub_console_term.setcolor): Remove variable.
39585 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39586 (struct grub_console_term.setcolor): Remove variable.
39587 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39588 (struct grub_console_term.setcolor): Remove variable.
39589 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39590 (struct grub_console_term.setcolor): Remove variable.
39591
4931827f 395922007-12-25 Robert Millan <rmh@aybabtu.com>
39593
39594 * configure.ac: Search for possible unifont.hex locations, and
39595 define UNIFONT_HEX if found.
39596
39597 * Makefile.in (UNIFONT_HEX): Define variable.
39598 (DATA): Rename to ...
39599 (PKGLIB): ... this. Update all users.
39600 (PKGDATA): New variable.
39601 (pkgdata_IMAGES): Rename to ...
39602 (pkglib_IMAGES): ... this. Update all users.
39603 (pkgdata_MODULES): Rename to ...
39604 (pkglib_MODULES): ... this. Update all users.
39605 (pkgdata_PROGRAMS): Rename to ...
39606 (pkglib_PROGRAMS): ... this. Update all users.
39607 (pkgdata_DATA): Rename to ...
39608 (pkglib_DATA): ... this. Update all users.
39609 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39610 (unicode.pff, ascii.pff): New rules.
39611 (all-local): Add `$(PKGDATA)' dependency.
39612 (install-local): Process `$(PKGDATA)'.
39613
39614 * util/update-grub_lib.in (font_path): Search for *.pff files in
39615 a few more locations, including `${pkgdata}'.
39616
57e57e31 396172007-12-23 Robert Millan <rmh@aybabtu.com>
39618
39619 Patch from Bean <bean123ch@gmail.com>:
39620 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39621 `size'.
39622
4bc72aa9 396232007-12-21 Bean <bean123ch@gmail.com>
39624
39625 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39626 (ntfscomp_mod_SOURCES): New variable.
39627 (ntfscomp_mod_CFLAGS): Likewise.
39628 (ntfscomp_mod_LDFLAGS): Likewise.
39629
39630 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39631 (grub_probe_SOURCES): Likewise.
39632 (grub_emu_SOURCES): Likewise.
39633
39634 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39635 (grub_emu_SOURCES): Likewise.
39636
39637 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39638 (grub_emu_SOURCES): Likewise.
39639
39640 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39641 (grub_emu_SOURCES): Likewise.
39642
39643 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39644 (read_run_list): Renamed to grub_ntfs_read_run_list.
39645 (decomp_nextvcn): Moved to ntfscomp.c.
39646 (decomp_getch): Likewise.
39647 (decomp_get16): Likewise.
39648 (decomp_block): Likewise.
39649 (read_block): Likewise.
39650 (read_data): Partially moved to ntfscomp.c.
39651 (fixup): Change unsigned to grub_uint16_t.
39652 (read_mft): Change unsigned long to grub_uint32_t.
39653 (read_attr): Likewise.
39654 (read_data): Likewise.
39655 (read_run_data): Likewise.
39656 (read_run_list): Likewise.
39657 (read_mft): Likewise.
39658
39659 * fs/ntfscomp.c: New file.
39660
39661 * include/grub/ntfs.h: New file.
39662
af680a87 396632007-12-16 Robert Millan <rmh@aybabtu.com>
39664
39665 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
39666 IDE disk check, since Linux is known to support 20 IDE disks.
39667 Reported by Colin Watson.
39668
84be7599 396692007-12-15 Bean <bean123ch@gmail.com>
39670
39671 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
39672 (lnxboot_img_SOURCES): New variable.
39673 (lnxboot_img_ASFLAGS): Likewise.
39674 (lnxboot_img_LDFLAGS): Likewise.
39675
39676 * boot/i386/pc/lnxboot.S: New file.
39677
6af9db01 396782007-11-24 Pavel Roskin <proski@gnu.org>
39679
39680 * configure.ac: Test if '--build-id=none' is supported by the
39681 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
39682 objcopy to generate incorrect binary files (binutils
39683 2.17.50.0.18-1 as shipped by Fedora 8).
39684 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
39685 linking, so that build ID doesn't break the test.
39686
7361cfe6 396872007-11-24 Pavel Roskin <proski@gnu.org>
39688
39689 * include/grub/i386/time.h: use "void" in the argument list
39690 of grub_cpu_idle().
39691 * include/grub/powerpc/time.h: Likewise.
39692 * include/grub/sparc64/time.h: Likewise.
39693
1593e10c 396942007-11-18 Christian Franke <franke@computer.org>
39695
39696 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
39697 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
39698 This fixes the problem that function keys did not work in grub-emu.
39699
3b8db1a8 397002007-11-18 Christian Franke <franke@computer.org>
39701
39702 * disk/host.c (grub_host_open): Remove attribute unused from
39703 name parameter. Add check for "host". This fixes the problem
39704 that grub-emu does not find partitions.
39705
2e29408d 397062007-11-18 Christian Franke <franke@computer.org>
39707
39708 * util/hostfs.c (is_dir): New function.
39709 (grub_hostfs_dir): Handle missing dirent.d_type case.
39710 (grub_hostfs_read): Add missing fseek().
39711 (grub_hostfs_label): Clear label pointer. This fixes a crash
39712 of grub-emu on "ls (host)".
39713
398cd047 397142007-11-18 Christian Franke <franke@computer.org>
39715
39716 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
39717 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
39718 to 64 bit boundary by default.
39719
c405c391 397202007-11-18 Bean <bean123ch@gmail.com>
39721
39722 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
39723 (hexdump_mod_SOURCES): New variable.
39724 (hexdump_mod_CFLAGS): Likewise.
39725 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 39726
c405c391 39727 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39728
39729 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39730
39731 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39732
39733 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
39734
39735 * include/grub/hexdump.h: New file.
39736
39737 * commands/hexdump.c: New file.
39738
5cced7fd 397392007-11-10 Robert Millan <rmh@aybabtu.com>
39740
39741 * commands/i386/pc/play.c (beep_off): Switch order of arguments
39742 in grub_outb() calls.
39743 (beep_on): Likewise.
39744
8b714eb0 397452007-11-10 Christian Franke <franke@computer.org>
39746
39747 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
39748 (grub_menu_run): Likewise.
39749
ce0f1839 397502007-11-10 Robert Millan <rmh@aybabtu.com>
39751
39752 * include/grub/i386/efi/machine.h: New file.
39753 * include/grub/i386/linuxbios/machine.h: Likewise.
39754 * include/grub/i386/pc/machine.h: Likewise.
39755 * include/grub/powerpc/ieee1275/machine.h: Likewise.
39756 * include/grub/sparc64/ieee1275/machine.h: Likewise.
39757
39758 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
39759 (serial_hw_io_addr): New variable.
39760 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
39761 instead of `(unsigned short *) 0x400'.
39762
270c237d 397632007-11-10 Bean <bean123ch@gmail.com>
39764
39765 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
39766
a87783bf 397672007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39768
39769 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
39770 (vga_mod_SOURCES): Added.
39771 (vga_mod_CFLAGS): Likewise.
39772 (vga_mod_LDFLAGS): Likewise.
39773
39774 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
39775 grub_outb() calls.
39776 (set_map_mask): Likewise.
39777 (set_read_map): Likewise.
39778 (set_read_address): Likewise.
39779 (vga_font): Removed variable.
39780 (get_vga_glyph): Removed function.
39781 (invalidate_char): Likewise.
39782 (write_char): Changed to use grub_font_get_glyph() for font
39783 information.
39784 (grub_vga_putchar): Likewise.
39785 (grub_vga_getcharwidth): Likewise.
39786
6433b448 397872007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
39788
39789 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
39790 flags.
39791 (pxeboot_img_LDFLAGS): Likewise.
39792 (diskboot_img_LDFLAGS): Likewise.
39793 (kernel_img_LDFLAGS): Likewise.
39794
49178511 397952007-11-06 Robert Millan <rmh@aybabtu.com>
39796
39797 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
39798 in grub_outb() calls.
39799 (serial_hw_init): Likewise.
39800
53b052de 398012007-11-05 Robert Millan <rmh@aybabtu.com>
39802
39803 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
39804 spaces. Skip non-regular files.
39805
5ab33bba 398062007-11-05 Robert Millan <rmh@aybabtu.com>
39807
39808 * kern/disk.c (grub_disk_firmware_fini)
39809 (grub_disk_firmware_is_tainted): New variables.
39810
39811 * include/grub/disk.h (grub_disk_firmware_fini)
39812 (grub_disk_firmware_is_tainted): Likewise.
39813
39814 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
39815 (grub_disk_biosdisk_fini): ... to here.
39816 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
39817 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
39818 is set. Register grub_disk_biosdisk_fini() in
39819 `grub_disk_firmware_fini'.
39820
39821 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
39822 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
39823 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
39824 to finish existing firmware disk interface.
39825
39826 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
39827 (ata_mod_SOURCES): New variable.
39828 (ata_mod_CFLAGS): Likewise.
39829 (ata_mod_LDFLAGS): Likewise.
39830
0149ab7c 398312007-11-05 Robert Millan <rmh@aybabtu.com>
39832
39833 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
39834 (grub_ata_wait): Reimplement using grub_millisleep().
39835
39836 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
39837 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
39838
be7ac41e 398392007-11-03 Marco Gerards <marco@gnu.org>
39840
39841 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
39842 (CRTC_ADDR_PORT): New macro.
39843 (CRTC_DATA_PORT): Likewise.
39844 (CRTC_CURSOR): Likewise.
39845 (CRTC_CURSOR_ADDR_HIGH): Likewise.
39846 (CRTC_CURSOR_ADDR_LOW): Likewise.
39847 (update_cursor): New function.
39848 (grub_console_real_putchar): Call `update_cursor'.
39849 (grub_console_gotoxy): Likewise.
39850 (grub_console_cls): Set the default color when clearing the
39851 screen.
39852 (grub_console_setcursor): Implemented.
39853
bb06ab2e 398542007-11-03 Marco Gerards <marco@gnu.org>
39855
39856 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
39857 become activate.
39858 (grub_ata_pio_write): Likewise.
39859
39860 (grub_atapi_identify): Wait after issuing an ATA command.
39861 (grub_atapi_packet): Likewise.
39862 (grub_ata_identify): Likewise.
39863 (grub_ata_readwrite): Likewise.
39864
cf8f780b 398652007-11-03 Marco Gerards <marco@gnu.org>
39866
39867 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
39868 (grub_ata_pio_write): Likewise.
39869 (grub_ata_readwrite): Use `grub_error', instead of
39870 returning `grub_errno'.
39871
ed649e54 398722007-11-03 Marco Gerards <marco@gnu.org>
39873
39874 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
39875 grub_ata_pio_write once for every single sector, instead of for
39876 multiple sectors.
39877
ca25d8f0 398782007-10-31 Robert Millan <rmh@aybabtu.com>
39879
39880 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
39881
39882 * conf/i386-linuxbios.rmk: New file.
39883
39884 * kern/i386/pc/hardware.c: Likewise.
39885 * term/i386/pc/at_keyboard.c: Likewise.
39886 * term/i386/pc/vga_text.c: Likewise.
39887
39888 * include/grub/i386/linuxbios/boot.h: Likewise.
39889 * include/grub/i386/linuxbios/console.h: Likewise.
39890 * include/grub/i386/linuxbios/init.h: Likewise.
39891 * include/grub/i386/linuxbios/kernel.h: Likewise.
39892 * include/grub/i386/linuxbios/loader.h: Likewise.
39893 * include/grub/i386/linuxbios/memory.h: Likewise.
39894 * include/grub/i386/linuxbios/serial.h: Likewise.
39895 * include/grub/i386/linuxbios/time.h: Likewise.
39896
39897 * kern/i386/linuxbios/init.c: Likewise.
39898 * kern/i386/linuxbios/startup.S: Likewise.
39899 * kern/i386/linuxbios/table.c: Likewise.
39900
e911ecc1 399012007-10-31 Marco Gerards <marco@gnu.org>
39902
39903 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
39904 (ata_mod_SOURCES): New variable.
39905 (ata_mod_CFLAGS): Likewise.
39906 (ata_mod_LDFLAGS): Likewise.
39907
39908 * disk/ata.c: New file.
39909
39910 * include/grub/disk.h (grub_disk_dev_id): Add
39911 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 39912
7f66d0e0 399132007-10-31 Robert Millan <rmh@aybabtu.com>
39914
39915 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
39916 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
39917
39918 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
39919 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
39920
39921 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
39922 `<grub/types.h>'.
39923
39924 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
39925
5cd7dd46 399262007-10-27 Robert Millan <rmh@aybabtu.com>
39927
3236ca65 39928 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 39929
2ebfc90f 399302007-10-22 Robert Millan <rmh@aybabtu.com>
39931
39932 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
39933 `"../realmode.S"'.
39934 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
39935
73fcb0f3 399362007-10-22 Robert Millan <rmh@aybabtu.com>
39937
39938 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
39939 (pkgdata_MODULES): Add `biosdisk.mod'.
39940 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
39941 variables.
39942
39943 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
39944 (grub_biosdisk_init): Replace with ...
39945 (GRUB_MOD_INIT(biosdisk)): ... this.
39946 (grub_biosdisk_fini): Replace with ...
39947 (GRUB_MOD_FINI(biosdisk)): ... this.
39948
39949 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
39950 (grub_machine_init): Remove call to grub_biosdisk_init().
39951 (grub_machine_fini): Remove call to grub_machine_fini().
39952
39953 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
39954
3381d274 399552007-10-22 Robert Millan <rmh@aybabtu.com>
39956
39957 * include/grub/time.h: New file.
39958 * include/grub/i386/time.h: Likewise.
39959 * include/grub/powerpc/time.h: Likewise.
39960 * include/grub/sparc64/time.h: Likewise.
39961
39962 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
39963 instances to ...
39964 (KERNEL_MACHINE_TIME_HEADER): ... this.
39965 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39966 instances to ...
39967 (KERNEL_MACHINE_TIME_HEADER): ... this.
39968 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
39969 instances to ...
39970 (KERNEL_MACHINE_TIME_HEADER): ... this.
39971
39972 * kern/i386/efi/init.c: Include `<grub/time.h>'.
39973 (grub_millisleep): New function.
39974 * kern/i386/pc/init.c: Include `<grub/time.h>'.
39975 (grub_millisleep): New function.
39976 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
39977 Remove `grub/machine/time.h' include.
39978 (grub_millisleep): New function.
39979 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
39980 Remove `grub/machine/time.h' include.
39981 (grub_millisleep): New function.
39982
39983 * include/grub/misc.h (grub_div_roundup): New function.
39984
39985 * kern/misc.c: Include `<grub/time.h>'.
39986 (grub_millisleep_generic): New function.
39987
39988 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
39989 Add `time.h'.
39990 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
39991 Add `time.h'.
39992 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
39993 `machine/time.h'. Add `time.h'.
39994 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
39995
a39a0312 399962007-10-21 Robert Millan <rmh@aybabtu.com>
39997
39998 * include/grub/misc.h (grub_max): New function.
39999
2aad70e2 400002007-10-21 Robert Millan <rmh@aybabtu.com>
40001
40002 * util/misc.c (grub_util_info): Call fflush() before returning.
40003
54b71c4b 400042007-10-20 Robert Millan <rmh@aybabtu.com>
40005
40006 * genmk.rb (Image): Copy `extra_flags' from here ...
40007 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40008
40009 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40010 to `argc' and `args' arguments.
40011
a979f513 400122007-10-17 Robert Millan <rmh@aybabtu.com>
40013
40014 * kern/i386/loader.S: New file.
40015
40016 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40017 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40018 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40019 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40020 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40021 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40022 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40023 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40024 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40025 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40026 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40027 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40028 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40029 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40030
40031 * kern/i386/realmode.S: New file.
40032
40033 * kern/i386/pc/startup.S (protstack): Moved from here ...
40034 * kern/i386/realmode.S (protstack)... to here.
40035 * kern/i386/pc/startup.S (gdt): Moved from here ...
40036 * kern/i386/realmode.S (gdt)... to here.
40037 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40038 * kern/i386/realmode.S (prot_to_real)... to here.
40039
40040 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40041 `kern/i386/realmode.S'.
40042
825fc8fd 400432007-10-17 Robert Millan <rmh@aybabtu.com>
40044
40045 * include/grub/i386/loader.h: New file.
40046
40047 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40048 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40049 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40050 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40051 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40052 * include/grub/i386/loader.h (grub_linux_prot_size)
40053 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40054 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40055 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40056 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40057
40058 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40059
e179b2f4 400602007-10-15 Robert Millan <rmh@aybabtu.com>
40061
40062 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40063 filesystem when dev->disk is unset.
40064 Do probe for filesystem even when dev->disk->has_partitions is set.
40065 In case a filesystem is found, always report it.
40066 In case it isn't, if dev->disk->has_partitions is set, report that
40067 a partition table was found instead of reporting that no filesystem
40068 could be identified.
40069
5db82af6 400702007-10-12 Robert Millan <rmh@aybabtu.com>
40071
40072 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40073 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40074
68f6ac74 40075 * include/grub/types.h (grub_host_to_target16): New macro.
40076 (grub_host_to_target32): Likewise.
40077 (grub_host_to_target64): Likewise.
40078 (grub_target_to_host16): Likewise.
40079 (grub_target_to_host32): Likewise.
40080 (grub_target_to_host64): Likewise.
5db82af6 40081
40082 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40083 Renamed from to ...
40084 (GRUB_MOD_ALIGN): ...this. Update all users.
40085
68f6ac74 40086 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40087 grub_host_to_target32.
40088 Replace grub_be_to_cpu32 with grub_target_to_host32.
40089 (load_modules): Likewise.
40090 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40091 Replace grub_be_to_cpu32 with grub_target_to_host32.
40092 Replace grub_cpu_to_be16 with grub_host_to_target16.
40093 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 40094
3cf497cc 400952007-10-12 Robert Millan <rmh@aybabtu.com>
40096
40097 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40098 * util/elf/grub-mkimage.c: ... here.
40099
40100 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40101 `util/powerpc/ieee1275/grub-mkimage.c'.
40102
c8cc3692 401032007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 40104
c8cc3692 40105 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40106 and make it easier to figure out.
40107 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40108 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40109 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40110 leave us with less than HEAP_MIN_SIZE total heap.
40111 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 40112
5c58b791 401132007-10-03 Robert Millan <rmh@aybabtu.com>
40114
40115 * include/grub/i386/io.h: New file.
40116 * commands/i386/pc/play.c (inb): Removed.
40117 (outb): Removed.
40118 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40119 with grub_outb().
afcd2ef8 40120 * term/i386/pc/serial.c (inb): Removed.
40121 (outb): Removed.
40122 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40123 with grub_outb().
40124 * term/i386/pc/vga.c (inb): Removed.
40125 (outb): Removed.
40126 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40127 with grub_outb().
5c58b791 40128
1a477ed6 401292007-10-02 Robert Millan <rmh@aybabtu.com>
40130
40131 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40133 Reported by Marcin Kurek.
40134
6b5d80fa 401352007-09-07 Robert Millan <rmh@aybabtu.com>
40136
40137 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40138 SmartFirmware version updates (as released by Sven Luther), and avoid
40139 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40140 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40141 known broken.
40142
5618afbf 401432007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40144
40145 From Hitoshi Ozeki:
40146 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40147 when merging two regions.
40148
6139dcd9 401492007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40150
508e39ee 40151 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40152 * normal/completion.c (grub_normal_do_completion): Likewise.
40153 Reported by Hitoshi Ozeki.
40154
401552007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40156
6139dcd9 40157 Do not use devices at boot in chainloading.
f19dbdb7 40158
6139dcd9 40159 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40160 (boot_part_addr): Likewise.
40161 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40162 with BOOT_DRIVE and BOOT_PART_ADDR.
40163 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40164 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40165
38da6516 401662007-08-29 Robert Millan <rmh@aybabtu.com>
40167
40168 Patch from Simon Peter <dn.tlp@gmx.net>:
40169 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40170 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40171 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40172 util/i386/pc/grub-setup.c_DEPENDENCIES.
40173 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40174 util/grub-probe.c_DEPENDENCIES.
40175 * conf/powerpc-ieee1275.rmk: Likewise.
40176
29d0928c 401772007-08-28 Robert Millan <rmh@aybabtu.com>
40178
40179 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40180 to tell grub-mkdevicemap how to name devices.
40181 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40182 feature).
40183
40184 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40185 util/i386/get_disk_name.c.
40186 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40187 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40188 util/ieee1275/get_disk_name.c.
40189
40190 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40191
40192 * DISTLIST: Add util/i386/get_disk_name.c and
40193 util/ieee1275/get_disk_name.c.
40194
40195 * util/grub-mkdevicemap.c: Replace device naming logic with
40196 grub_util_get_disk_name() calls.
40197
5a0d3cca 401982007-08-20 Robert Millan <rmh@aybabtu.com>
40199
40200 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40201 (so that it works for both plural and singular quantities).
40202
8b72db2f 402032007-08-05 Robert Millan <rmh@aybabtu.com>
40204
40205 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40206 so that [xz] isn't taken into account when determining order.
40207
352466bf 402082007-08-02 Marco Gerards <marco@gnu.org>
40209
40210 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40211 `include/multiboot2.h', `include/grub/elfload.h',
40212 `include/multiboot.h', `include/grub/multiboot.h',
40213 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40214 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40215 `kern/elf.c', `loader/multiboot_loader.c',
40216 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40217 `loader/i386/pc/multiboot2.c',
40218 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40219 `util/i386/pc/grub-mkrescue.in'. Remove
40220 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40221 `include/grub/i386/pc/util/biosdisk.h' and
40222 `include/grub/powerpc/ieee1275/multiboot.h'.
40223
8f096014 402242007-08-02 Bean <bean123ch@gmail.com>
40225
40226 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40227 (ntfs_mod_SOURCES): New variable.
40228 (ntfs_mod_CFLAGS): Likewise.
40229 (ntfs_mod_LDFLAGS): Likewise.
40230
40231 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40232 (grub_probe_SOURCES): Likewise.
40233 (grub_emu_SOURCES): Likewise.
40234
40235 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40236 (grub_emu_SOURCES): Likewise.
40237
40238 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40239 (grub_emu_SOURCES): Likewise.
f19dbdb7 40240
8f096014 40241 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40242
40243 * fs/ntfs.c: New file.
40244
9959f7db 402452007-08-02 Bean <bean123ch@gmail.com>
40246
40247 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40248
40249 * file.h (grub_file): Likewise.
40250
40251 * fshelp.h (grub_fshelp_read_file): Likewise.
40252
40253 * util/i386/pc/grub-setup.c (setup): Likewise.
40254 (save_first_sector): Likewise.
40255 (save_blocklists): Likewise.
f19dbdb7 40256
9959f7db 40257 * fs/affs.c (grub_affs_read_file): Likewise.
40258
40259 * fs/ext2.c (grub_ext2_read_file): Likewise.
40260
40261 * fs/fat.c (grub_fat_read_data): Likewise.
40262
40263 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40264
40265 * fs/hfs.c (grub_hfs_read_file): Likewise.
40266
40267 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40268
40269 * fs/jfs.c (grub_jfs_read_file): Likewise.
40270
40271 * fs/minix.c (grub_minix_read_file): Likewise.
40272
40273 * fs/sfs.c (grub_sfs_read_file): Likewise.
40274
40275 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 40276
9959f7db 40277 * fs/xfs.c (grub_xfs_read_file): Likewise.
40278
40279 * command/blocklist.c (read_blocklist): Likewise.
40280 (print_blocklist): Likewise.
40281
0a203f83 402822007-08-02 Marco Gerards <marco@gnu.org>
40283
40284 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40285 `util/hostfs.c'.
40286
40287 * disk/host.c: New file.
40288
40289 * util/hostfs.c: Likewise.
40290
40291 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40292 return `GRUB_ERR_BAD_FS'.
40293 * fs/sfs.c (grub_sfs_mount): Likewise.
40294 * fs/xfs.c (grub_xfs_mount): Likewise.
40295
40296 * include/grub/disk.h (enum grub_disk_dev_id): Add
40297 `GRUB_DISK_DEVICE_HOST_ID'.
40298
40299 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40300
e5dfe777 403012007-07-24 Jerone Young <jerone@gmail.com>
40302
f19dbdb7 40303 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 40304 modules for compilation.
40305 * conf/powerpc-ieee1275.rmk: Likewise.
40306
40307 * include/multiboot.h: Move multiboot definitions to one file. Rename
40308 many definitions to not get grub specific.
40309 * include/multiboot2.h: Create header with multiboot 2 definitions.
40310 * include/grub/multiboot.h: Header for grub specific function
40311 prototypes and definitions.
40312 * include/grub/multiboot2.h: Likewise.
40313 * include/grub/multiboot_loader.h: Likewise.
40314 * include/grub/i386/pc/multiboot.h: Removed.
40315 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40316
40317 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40318 and 2 to allow for one multiboot and module commands.
40319 * loader/multiboot2.c: Add multiboot2 functionality.
40320 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40321 and definition names.
40322 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40323 2 functions.
40324 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40325 ieee1275 specific multiboot2 code.
40326
40327 * kern/i386/pc/startup.S: Change headers and definition names for
40328 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40329
daf0f0ba 403302007-07-22 Robert Millan <rmh@aybabtu.com>
40331
40332 * geninitheader.sh: Process file specified in first parameter rather
40333 than hardcoding grub_modules_init.lst.
fe6b695a 40334 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 40335 than hardcoding grub_modules_init.h.
40336
40337 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40338 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40339 grub_probe_init.[ch] and grub_setup_init.[ch].
40340
40341 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40342 grub_modules_init.h with grub_emu_init.h.
40343 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40344 grub_probe_init.[ch] files.
40345 * conf/i386-efi.rmk: Likewise.
40346 * conf/i386-pc.rmk: Likewise.
40347 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40348 grub_setup_init.[ch] files.
40349
40350 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40351 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40352 to initialize modules rather than a list of hardcoded functions.
40353 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40354 grub_init_all() to initialize modules rather than a list of hardcoded
40355 functions.
40356
54cdc1cc 403572007-07-22 Robert Millan <rmh@aybabtu.com>
40358
40359 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40360 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40361
ad0686cc 403622007-07-22 Robert Millan <rmh@aybabtu.com>
40363
40364 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40365 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40366 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40367 flag when running on SmartFirmware.
40368 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40369 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40370 was set.
40371
40372 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40373 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40374 rather than decreasing it.
40375
40376 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40377 there's not enough space to do it, fail in the same way as when it
40378 can't be done because there are no partitions.
40379
40380 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40381 when nvsetenv failed.
40382
969c02ec 403832007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40384
40385 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40386 because this rule is automatically generated.
40387 (grub-mkrescue): Removed for the same reason as above.
40388
5a79f472 403892007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40390
40391 Migrate to GNU General Public License Version 3.
f19dbdb7 40392
5a79f472 40393 * COPYING: Replaced with the plain text version of GPLv3.
40394
40395 * config.guess: Updated from gnulib.
40396 * config.sub: Likewise.
40397
40398 * geninit.sh: Output a GPLv3 copyright notice.
40399 * geninitheader.sh: Likewise.
40400 * genmodsrc.sh: Likewise.
40401 * gensymlist.sh.in: Likewise.
40402
40403 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40404 * boot/i386/pc/diskboot.S: Likewise.
40405 * boot/i386/pc/pxeboot.S: Likewise.
40406 * commands/blocklist.c: Likewise.
40407 * commands/boot.c: Likewise.
40408 * commands/cat.c: Likewise.
40409 * commands/cmp.c: Likewise.
40410 * commands/configfile.c: Likewise.
40411 * commands/echo.c: Likewise.
40412 * commands/help.c: Likewise.
40413 * commands/ls.c: Likewise.
40414 * commands/search.c: Likewise.
40415 * commands/terminal.c: Likewise.
40416 * commands/test.c: Likewise.
40417 * commands/videotest.c: Likewise.
40418 * commands/i386/cpuid.c: Likewise.
40419 * commands/i386/pc/halt.c: Likewise.
40420 * commands/i386/pc/play.c: Likewise.
40421 * commands/i386/pc/reboot.c: Likewise.
40422 * commands/i386/pc/vbeinfo.c: Likewise.
40423 * commands/i386/pc/vbetest.c: Likewise.
40424 * commands/ieee1275/halt.c: Likewise.
40425 * commands/ieee1275/reboot.c: Likewise.
40426 * commands/ieee1275/suspend.c: Likewise.
40427 * disk/loopback.c: Likewise.
40428 * disk/lvm.c: Likewise.
40429 * disk/raid.c: Likewise.
40430 * disk/efi/efidisk.c: Likewise.
40431 * disk/i386/pc/biosdisk.c: Likewise.
40432 * disk/ieee1275/ofdisk.c: Likewise.
40433 * font/manager.c: Likewise.
40434 * fs/affs.c: Likewise.
40435 * fs/ext2.c: Likewise.
40436 * fs/fat.c: Likewise.
40437 * fs/fshelp.c: Likewise.
40438 * fs/hfs.c: Likewise.
40439 * fs/hfsplus.c: Likewise.
40440 * fs/iso9660.c: Likewise.
40441 * fs/jfs.c: Likewise.
40442 * fs/minix.c: Likewise.
40443 * fs/sfs.c: Likewise.
40444 * fs/ufs.c: Likewise.
40445 * fs/xfs.c: Likewise.
40446 * hello/hello.c: Likewise.
40447 * include/grub/acorn_filecore.h: Likewise.
40448 * include/grub/arg.h: Likewise.
40449 * include/grub/bitmap.h: Likewise.
40450 * include/grub/boot.h: Likewise.
40451 * include/grub/cache.h: Likewise.
40452 * include/grub/device.h: Likewise.
40453 * include/grub/disk.h: Likewise.
40454 * include/grub/dl.h: Likewise.
40455 * include/grub/elfload.h: Likewise.
40456 * include/grub/env.h: Likewise.
40457 * include/grub/err.h: Likewise.
40458 * include/grub/file.h: Likewise.
40459 * include/grub/font.h: Likewise.
40460 * include/grub/fs.h: Likewise.
40461 * include/grub/fshelp.h: Likewise.
40462 * include/grub/gzio.h: Likewise.
40463 * include/grub/hfs.h: Likewise.
40464 * include/grub/kernel.h: Likewise.
40465 * include/grub/loader.h: Likewise.
40466 * include/grub/lvm.h: Likewise.
40467 * include/grub/misc.h: Likewise.
40468 * include/grub/mm.h: Likewise.
40469 * include/grub/net.h: Likewise.
40470 * include/grub/normal.h: Likewise.
40471 * include/grub/parser.h: Likewise.
40472 * include/grub/partition.h: Likewise.
40473 * include/grub/pc_partition.h: Likewise.
40474 * include/grub/raid.h: Likewise.
40475 * include/grub/rescue.h: Likewise.
40476 * include/grub/script.h: Likewise.
40477 * include/grub/setjmp.h: Likewise.
40478 * include/grub/symbol.h: Likewise.
40479 * include/grub/term.h: Likewise.
40480 * include/grub/terminfo.h: Likewise.
40481 * include/grub/tparm.h: Likewise.
40482 * include/grub/types.h: Likewise.
40483 * include/grub/video.h: Likewise.
40484 * include/grub/efi/api.h: Likewise.
40485 * include/grub/efi/chainloader.h: Likewise.
40486 * include/grub/efi/console.h: Likewise.
40487 * include/grub/efi/console_control.h: Likewise.
40488 * include/grub/efi/disk.h: Likewise.
40489 * include/grub/efi/efi.h: Likewise.
40490 * include/grub/efi/pe32.h: Likewise.
40491 * include/grub/efi/time.h: Likewise.
40492 * include/grub/i386/linux.h: Likewise.
40493 * include/grub/i386/setjmp.h: Likewise.
40494 * include/grub/i386/types.h: Likewise.
40495 * include/grub/i386/efi/kernel.h: Likewise.
40496 * include/grub/i386/efi/loader.h: Likewise.
40497 * include/grub/i386/efi/time.h: Likewise.
40498 * include/grub/i386/pc/biosdisk.h: Likewise.
40499 * include/grub/i386/pc/boot.h: Likewise.
40500 * include/grub/i386/pc/chainloader.h: Likewise.
40501 * include/grub/i386/pc/console.h: Likewise.
40502 * include/grub/i386/pc/init.h: Likewise.
40503 * include/grub/i386/pc/kernel.h: Likewise.
40504 * include/grub/i386/pc/loader.h: Likewise.
40505 * include/grub/i386/pc/memory.h: Likewise.
40506 * include/grub/i386/pc/multiboot.h: Likewise.
40507 * include/grub/i386/pc/serial.h: Likewise.
40508 * include/grub/i386/pc/time.h: Likewise.
40509 * include/grub/i386/pc/vbe.h: Likewise.
40510 * include/grub/i386/pc/vbeblit.h: Likewise.
40511 * include/grub/i386/pc/vbefill.h: Likewise.
40512 * include/grub/i386/pc/vbeutil.h: Likewise.
40513 * include/grub/i386/pc/vga.h: Likewise.
40514 * include/grub/ieee1275/ieee1275.h: Likewise.
40515 * include/grub/ieee1275/ofdisk.h: Likewise.
40516 * include/grub/powerpc/libgcc.h: Likewise.
40517 * include/grub/powerpc/setjmp.h: Likewise.
40518 * include/grub/powerpc/types.h: Likewise.
40519 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40520 * include/grub/powerpc/ieee1275/console.h: Likewise.
40521 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40522 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40523 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40524 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40525 * include/grub/powerpc/ieee1275/time.h: Likewise.
40526 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40527 * include/grub/sparc64/libgcc.h: Likewise.
40528 * include/grub/sparc64/setjmp.h: Likewise.
40529 * include/grub/sparc64/types.h: Likewise.
40530 * include/grub/sparc64/ieee1275/console.h: Likewise.
40531 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40532 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40533 * include/grub/sparc64/ieee1275/time.h: Likewise.
40534 * include/grub/util/biosdisk.h: Likewise.
40535 * include/grub/util/getroot.h: Likewise.
40536 * include/grub/util/lvm.h: Likewise.
40537 * include/grub/util/misc.h: Likewise.
40538 * include/grub/util/raid.h: Likewise.
40539 * include/grub/util/resolve.h: Likewise.
40540 * io/gzio.c: Likewise.
40541 * kern/device.c: Likewise.
40542 * kern/disk.c: Likewise.
40543 * kern/dl.c: Likewise.
40544 * kern/elf.c: Likewise.
40545 * kern/env.c: Likewise.
40546 * kern/err.c: Likewise.
40547 * kern/file.c: Likewise.
40548 * kern/fs.c: Likewise.
40549 * kern/loader.c: Likewise.
40550 * kern/main.c: Likewise.
40551 * kern/misc.c: Likewise.
40552 * kern/mm.c: Likewise.
40553 * kern/parser.c: Likewise.
40554 * kern/partition.c: Likewise.
40555 * kern/rescue.c: Likewise.
40556 * kern/term.c: Likewise.
40557 * kern/efi/efi.c: Likewise.
40558 * kern/efi/init.c: Likewise.
40559 * kern/efi/mm.c: Likewise.
40560 * kern/i386/dl.c: Likewise.
40561 * kern/i386/efi/init.c: Likewise.
40562 * kern/i386/efi/startup.S: Likewise.
40563 * kern/i386/pc/init.c: Likewise.
40564 * kern/i386/pc/lzo1x.S: Likewise.
40565 * kern/i386/pc/startup.S: Likewise.
40566 * kern/ieee1275/ieee1275.c: Likewise.
40567 * kern/powerpc/cache.S: Likewise.
40568 * kern/powerpc/dl.c: Likewise.
40569 * kern/powerpc/ieee1275/cmain.c: Likewise.
40570 * kern/powerpc/ieee1275/crt0.S: Likewise.
40571 * kern/powerpc/ieee1275/init.c: Likewise.
40572 * kern/powerpc/ieee1275/openfw.c: Likewise.
40573 * kern/sparc64/cache.S: Likewise.
40574 * kern/sparc64/dl.c: Likewise.
40575 * kern/sparc64/ieee1275/init.c: Likewise.
40576 * kern/sparc64/ieee1275/openfw.c: Likewise.
40577 * loader/efi/chainloader.c: Likewise.
40578 * loader/efi/chainloader_normal.c: Likewise.
40579 * loader/i386/efi/linux.c: Likewise.
40580 * loader/i386/efi/linux_normal.c: Likewise.
40581 * loader/i386/pc/chainloader.c: Likewise.
40582 * loader/i386/pc/chainloader_normal.c: Likewise.
40583 * loader/i386/pc/linux.c: Likewise.
40584 * loader/i386/pc/linux_normal.c: Likewise.
40585 * loader/i386/pc/multiboot.c: Likewise.
40586 * loader/i386/pc/multiboot_normal.c: Likewise.
40587 * loader/powerpc/ieee1275/linux.c: Likewise.
40588 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40589 * normal/arg.c: Likewise.
40590 * normal/cmdline.c: Likewise.
40591 * normal/command.c: Likewise.
40592 * normal/completion.c: Likewise.
40593 * normal/execute.c: Likewise.
40594 * normal/function.c: Likewise.
40595 * normal/lexer.c: Likewise.
40596 * normal/main.c: Likewise.
40597 * normal/menu.c: Likewise.
40598 * normal/menu_entry.c: Likewise.
40599 * normal/misc.c: Likewise.
40600 * normal/parser.y: Likewise.
40601 * normal/script.c: Likewise.
40602 * normal/i386/setjmp.S: Likewise.
40603 * normal/powerpc/setjmp.S: Likewise.
40604 * normal/sparc64/setjmp.S: Likewise.
40605 * partmap/acorn.c: Likewise.
40606 * partmap/amiga.c: Likewise.
40607 * partmap/apple.c: Likewise.
40608 * partmap/gpt.c: Likewise.
40609 * partmap/pc.c: Likewise.
40610 * partmap/sun.c: Likewise.
40611 * term/gfxterm.c: Likewise.
40612 * term/terminfo.c: Likewise.
40613 * term/efi/console.c: Likewise.
40614 * term/i386/pc/console.c: Likewise.
40615 * term/i386/pc/serial.c: Likewise.
40616 * term/i386/pc/vesafb.c: Likewise.
40617 * term/i386/pc/vga.c: Likewise.
40618 * term/ieee1275/ofconsole.c: Likewise.
40619 * util/biosdisk.c: Likewise.
40620 * util/console.c: Likewise.
40621 * util/genmoddep.c: Likewise.
40622 * util/getroot.c: Likewise.
40623 * util/grub-emu.c: Likewise.
40624 * util/grub-mkdevicemap.c: Likewise.
40625 * util/grub-probe.c: Likewise.
40626 * util/lvm.c: Likewise.
40627 * util/misc.c: Likewise.
40628 * util/raid.c: Likewise.
40629 * util/resolve.c: Likewise.
40630 * util/update-grub.in: Likewise.
40631 * util/update-grub_lib.in: Likewise.
40632 * util/grub.d/00_header.in: Likewise.
40633 * util/grub.d/10_hurd.in: Likewise.
40634 * util/grub.d/10_linux.in: Likewise.
40635 * util/i386/efi/grub-install.in: Likewise.
40636 * util/i386/efi/grub-mkimage.c: Likewise.
40637 * util/i386/pc/grub-install.in: Likewise.
40638 * util/i386/pc/grub-mkimage.c: Likewise.
40639 * util/i386/pc/grub-mkrescue.in: Likewise.
40640 * util/i386/pc/grub-setup.c: Likewise.
40641 * util/i386/pc/misc.c: Likewise.
40642 * util/powerpc/ieee1275/grub-install.in: Likewise.
40643 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40644 * util/powerpc/ieee1275/misc.c: Likewise.
40645 * video/bitmap.c: Likewise.
40646 * video/video.c: Likewise.
40647 * video/i386/pc/vbe.c: Likewise.
40648 * video/i386/pc/vbeblit.c: Likewise.
40649 * video/i386/pc/vbefill.c: Likewise.
40650 * video/i386/pc/vbeutil.c: Likewise.
40651 * video/readers/tga.c: Likewise.
40652
3572d015 406532007-07-02 Robert Millan <rmh@aybabtu.com>
40654
40655 * conf/i386-efi.rmk: Replace obsolete reference to
40656 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40657 with util/getroot.c.
40658 * conf/powerpc-ieee1275.rmk: Likewise.
40659 * conf/sparc64-ieee1275.rmk: Likewise.
40660
40661 * util/grub-emu.c (main): Fix unchecked pointer handling.
40662
2c2a681b 406632007-07-02 Robert Millan <rmh@aybabtu.com>
40664
40665 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
40666 invocation to fail, in order to support partition-less media.
40667
40668 * util/i386/pc/grub-install.in: Likewise.
40669
40670 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
40671 which fs or partmap modules are needed (akin to its sister scripts).
40672
40673 Also use grub-probe to get rid of unportable /proc/mounts check.
40674
40675 Print the same informational message that the other scripts do, before
fe6b695a 40676 exiting.
2c2a681b 40677
6193defe 406782007-06-23 Robert Millan <rmh@aybabtu.com>
40679
fe6b695a 40680 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 40681 a font file can be found and, if so, echo the GRUB path to it.
40682
40683 * util/update-grub.in: Handle multiple terminals depending on user
40684 input, platform availability and font file presence. Propagate
40685 variables of our findings to /etc/grub.d/ children.
40686
40687 * util/grub.d/00_header.in: Handle multiple terminals, based on
40688 environment setup by update-grub.
40689
eface1dc 406902007-06-23 Robert Millan <rmh@aybabtu.com>
40691
ba50d28f 40692 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 40693
bf697e28 406942007-06-21 Robert Millan <rmh@aybabtu.com>
40695
40696 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
40697 indicate end of data section in kernel image.
40698 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
40699 GRUB_KERNEL_MACHINE_DATA_END.
40700
40701 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
40702 space for it.
40703 * kern/i386/efi/startup.S: Likewise.
40704
40705 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
40706 during image generation. Implement --prefix option to override this
40707 patch.
40708 * util/i386/efi/grub-mkimage.c: Likewise.
40709
40710 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
40711 code to make path relative to its root into a separate function.
40712
40713 * util/i386/pc/grub-install.in: Use newly provided
40714 make_system_path_relative_to_its_root() to convert ${grubdir}, then
40715 pass the result to grub-install --prefix.
40716
baa574b4 407172007-06-13 Robert Millan <rmh@aybabtu.com>
40718
40719 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
40720 DEFAULT_DEVICE_MAP.
40721 * util/grub-emu.c: Use above definitions from misc.h instead of
40722 defining them.
40723 * util/grub-mkdevicemap.c: Likewise.
40724 * util/i386/pc/grub-setup.c: Likewise.
40725 * util/grub-probe.c: Likewise.
40726 (probe): Abort with grub_util_error() when either
40727 grub_guess_root_device or grub_util_get_grub_dev fails.
40728
0215dcbf 407292007-06-12 Robert Millan <rmh@aybabtu.com>
40730
40731 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
40732 "pager" assignment.
40733 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
40734 "pcdata".
40735 * util/grub-probe.c (probe): Likewise for "drive_name".
40736
8af2ab7b 407372007-06-11 Robert Millan <rmh@aybabtu.com>
40738
40739 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
40740 not just the cdrom one.
40741
59d31694 407422007-06-11 Robert Millan <rmh@aybabtu.com>
40743
40744 * util/i386/pc/grub-mkrescue.in: Add "set -e".
40745 Add --pkglibdir=DIR option to override pkglibdir.
40746 Mention --image-type=TYPE in help output.
40747 Fix --grub-mkimage (it was a no-op).
fe6b695a 40748 Abort gracefully when no parameter is given.
59d31694 40749
7ee367e4 407502007-06-11 Robert Millan <rmh@aybabtu.com>
40751
40752 * util/i386/pc/grub-mkrescue.in: New file.
40753 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
40754 * Makefile.in: Handle bin_SCRIPTS.
40755
29b0ed46 407562007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
40757
40758 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
40759 list of video modes.
40760
c0f90770 407612007-06-06 Robert Millan <rmh@aybabtu.com>
40762
40763 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
40764 file doesn't exist, or if it is in a filesystem grub can't read.
40765
40766 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
40767 not abort if GRUB_DRIVE could not be defined. Rearrange generated
40768 header comment to fit in 80 columns when the variables are resolved.
40769
40770 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
40771 could be identified by update-grub. Remove redundant check for
fe6b695a 40772 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 40773 handles that).
40774
fb36dc26 407752007-06-04 Robert Millan <rmh@aybabtu.com>
40776
40777 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
40778
40779 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
40780
40781 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
40782
0c68c93e 407832007-06-04 Robert Millan <rmh@aybabtu.com>
40784
40785 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
40786
40787 * include/grub/partition.h: Declare grub_apple_partition_map_init and
40788 grub_apple_partition_map_fini.
40789
40790 * util/biosdisk.c
40791 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
40792 to access >2 TiB disks).
40793
40794 Print disk->total_sectors with %llu instead of %lu, since this
40795 variable is always 64-bit (prevents wrong disk size from being displayed
40796 on either >2 TiB disk or big-endian CPU).
40797
40798 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
40799 into a generic case that supports all (sane) partition maps.
40800
40801 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
40802 breaks big-endian.
40803
40804 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
40805 and grub_apple_partition_map_fini() after that.
40806
0f23eb74 408072007-06-01 Robert Millan <rmh@aybabtu.com>
40808
40809 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
40810
40811 * util/grub.d/00_header.in: Only enable gfxterm when
40812 convert_system_path_to_grub_path() succeeds.
40813
42c71976 408142007-05-20 Robert Millan <rmh@aybabtu.com>
40815
40816 * util/update-grub_lib.in: New file.
40817 * DISTLIST: Add update-grub_lib.in.
40818 * conf/common.rmk: Generate update-grub_lib and install it in
40819 $(lib_DATA).
40820 * Makefile.in: Add install routine for $(lib_DATA).
40821
40822 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
40823 function provided by update-grub_lib to support arbitrary paths of
40824 unifont.pff.
40825 * util/update-grub.in: Use convert_system_path_to_grub_path() to
40826 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
40827
5beb2291 408282007-05-19 Robert Millan <rmh@aybabtu.com>
40829
40830 * commands/i386/cpuid.c: New module.
40831 * DISTLIST: Add it.
40832 * conf/i386-efi.rmk: Enable cpuid.mod.
40833 * conf/i386-pc.rmk: Likewise.
40834
7262eca1 408352007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40836
40837 * kern/disk.c (grub_disk_read): Check return value of
40838 grub_realloc().
40839
260ba823 408402007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
40841
40842 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
40843 arrays.
40844 * disk/raid.c (grub_raid_open): Likewise.
40845
1ecb6cf2 408462007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40847
40848 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
40849 stack instead of on the heap.
40850
40851 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
40852 before doing a read on it.
40853
40854 * configure.ac: Only use -fno-stack-protector for the target
40855 environment.
f19dbdb7 40856
21c8cbb1 408572007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
40858
40859 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
40860 __attribute_ ((unused)) to mode_type argument.
40861
40862 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 40863
21c8cbb1 40864 * kern/misc.c (memcmp): Fix prototype.
40865
40866 * include/grub/partition.h [GRUB_UTIL]
40867 (grub_gpt_partition_map_init): Add prototype.
40868 (grub_gpt_partition_map_fini): Likewise.
40869
40870 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
40871 at the right place.
40872
40873 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
40874 (grub_fat_read_data): Likewise.
40875 (grub_fat_find_dir): Likewise.
40876
40877 * font/manager.c (find_glyph): Make table a const.
40878 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 40879
849d55d3 408802007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
40881
40882 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
40883 code, first search for device in /dev/mapper, then in /dev.
40884 (grub_util_get_grub_dev): New function.
40885 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
40886 prototype.
40887 * util/grub-probe.c (probe): Remove check for RAID, call
40888 grub_util_get_grub_dev() instead of
40889 grub_util_biosdisk_get_grub_dev().
40890 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
40891 grub_util_biosdisk_get_grub_dev().
40892 * util/i386/pc/grub-setup.c (main): Likewise.
40893
8fff7c2f 408942007-05-16 Robert Millan <rmh@aybabtu.com>
40895
40896 * DISTLIST: Update for the latest changes.
40897 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
40898 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
40899 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
40900 grub/util/biosdisk.h.
40901 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
40902 grub/util/biosdisk.h.
40903
48e12b52 409042007-05-16 Robert Millan <rmh@aybabtu.com>
40905
40906 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
40907
46b9d128 409082007-05-16 Robert Millan <rmh@aybabtu.com>
40909
40910 * util/i386/efi/grub-install.in: New.
40911 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
40912 newly added grub-install.
40913 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
40914 include.
40915 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
40916 grub/util/biosdisk.h.
40917 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
40918 grub/util/biosdisk.h.
40919
2d1a40a9 409202007-05-16 Robert Millan <rmh@aybabtu.com>
40921
40922 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
40923 * include/grub/util/biosdisk.h: ... here.
40924 * util/i386/pc/biosdisk.c: Moved to ...
40925 * util/biosdisk.c: ... here.
40926 * util/i386/pc/getroot.c: Moved to ...
40927 * util/getroot.c: ... here.
40928 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
40929 * util/grub-mkdevicemap.c: ... here.
40930 * util/i386/pc/grub-probe.c: Moved to ...
40931 * util/grub-probe.c: ... here.
40932
9e26e3bc 409332007-05-15 Robert Millan <rmh@aybabtu.com>
40934
40935 * util/update-grub.in: Remove duplicated line in grub.cfg header
40936 message.
40937
57f96397 409382007-05-13 Robert Millan <rmh@aybabtu.com>
40939
40940 * util/update-grub.in: Fix a few assumptions about the devices holding
40941 /, /boot and /boot/grub being the same.
40942 * util/grub.d/00_header.in: Likewise.
40943 * util/grub.d/10_hurd.in: Likewise.
40944 * util/grub.d/10_linux.in: Likewise.
40945
40946 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
40947 patterns. Use that to define the `.old' suffix as older than `'.
40948
40949 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
40950
40951 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
40952 the grub.cfg header message.
40953
2e610d62 409542007-05-11 Robert Millan <rmh@aybabtu.com>
40955
40956 * util/update-grub.in: Create device.map if it doesn't already exist,
40957 before attempting to run grub-probe.
40958 Check for grub-probe and grub-mkdevicemap with the same code
40959 grub-install is using.
40960 Remove test mode.
40961
3f6a10ef 409622007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
40963
40964 * Makefile.in: Add the datarootdir autoconf variable.
40965
02e7b75e 409662007-05-09 Robert Millan <rmh@aybabtu.com>
40967
40968 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 40969 fail gracefully if dev->disk->partition == NULL.
02e7b75e 40970
75f396cc 409712007-05-07 Robert Millan <rmh@aybabtu.com>
40972
40973 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
40974 determine partition map module.
40975 * util/i386/pc/grub-install.in: Use this feature to decide which
40976 partition module to load, instead of hardcoding pc and gpt.
40977
da65cb36 409782007-05-07 Robert Millan <rmh@aybabtu.com>
40979
40980 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
40981 source directory differs from build directory.
40982
b57d6a91 409832007-05-05 Robert Millan <rmh@aybabtu.com>
40984
40985 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
40986 initialisation.
40987
509d00f1 409882007-05-05 Robert Millan <rmh@aybabtu.com>
40989
40990 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
40991
c48f23ef 409922007-05-05 Robert Millan <rmh@aybabtu.com>
40993
40994 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
40995 command-line arguments via ${GRUB_CMDLINE_LINUX}.
40996
20b97658 409972007-05-05 Robert Millan <rmh@aybabtu.com>
40998
40999 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41000 (grub_probe_SOURCES): Likewise.
41001 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41002 GPT and initialize dos_part and bsd_part accordingly.
41003 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41004 install_bsd_part.
41005 (main): Activate gpt module for use during partition identification,
41006 and deactivate it afterwards.
41007 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41008 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41009 partition identification, and deactivate it afterwards.
41010
99123174 410112007-05-05 Robert Millan <rmh@aybabtu.com>
41012
41013 * term/i386/pc/console.c (grub_console_fini): Call
41014 grub_term_set_current() before grub_term_unregister().
41015
ebd97f6e 410162007-05-04 Robert Millan <rmh@aybabtu.com>
41017
41018 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41019 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41020 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41021 and update-grub_DATA.
41022 * conf/common.rmk: Build and install update-grub components.
41023 * conf/common.mk: Regenerate.
41024 * util/update-grub.in: New. Core of update-grub.
41025 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41026 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41027 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41028 * util/grub.d/README: New. Document grub.d directory layout.
41029
b06a264d 410302007-05-01 Robert Millan <rmh@aybabtu.com>
41031
41032 * util/grub-emu.c: Move initialization functions
41033 grub_util_biosdisk_init() and grub_init_all() before
41034 grub_util_biosdisk_get_grub_dev(), which relies on them.
41035
41f0050e 410362007-04-19 Robert Millan <rmh@aybabtu.com>
41037
41038 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41039 it is used later.
41040
04582bb3 410412007-04-18 Jerone Young <jerone@gmail.com>
41042
f19dbdb7 41043 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 41044 stanza.
41045
08db4632 410462007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 41047
08db4632 41048 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41049 continue on and look for device node with real device name.
41050
801b76be 410512007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 41052
fe6b695a 41053 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 41054 ability.
41055 * Makefile.in: Add autoconf package transformation code.
41056 * util/i386/pc/grub-install.in: Likewise.
41057 * util/powerpc/ieee1275/grub-install.in: Likewise.
41058
6795c4e1 410592007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41060
41061 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41062 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41063 (EXT2_REVISION): Likewise.
41064 (EXT2_INODE_SIZE): Likewise.
41065 (struct grub_ext2_block_group): Added a missing member
41066 "used_dirs".
41067 (grub_ext2_read_inode): Divide by the inode size in a superblock
41068 instead of 128 to obtain INODES_PER_BLOCK.
41069 Use the macro EXT2_INODE_SIZE instead of directly using
41070 SBLOCK->INODE_SIZE.
41071
d70af616 410722007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41073
41074 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41075 superblock instead of the structure size to compute an
41076 offset. This fixes the problem that GRUB could not read a
41077 filesystem when inode size is different from 128-byte.
41078
3b801603 410792007-03-05 Marco Gerards <marco@gnu.org>
41080
41081 * normal/main.c (read_config_file): When "menu" is not set, create
41082 an initial context.
41083
4785bfe4 410842007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41085
41086 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41087 (HEAP_LIMIT): New macro.
41088 (grub_claim_heap): Claim memory up to `heaplimit'.
41089
a0cbb023 410902007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41091
41092 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41093 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41094 (_start): Likewise.
41095 (grub_arch_modules_addr): Return address after `_end'.
41096 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41097 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41098 (add_segments): Calculate `_end' from phdr size and location.
41099 (ALIGN_UP): Moved to ...
41100 * include/grub/misc.h: here.
41101 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41102 New macro.
41103 (GRUB_IEEE1275_MODULE_BASE): Removed.
41104
fd7d8eba 411052007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41106
41107 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41108 loop boundary.
41109
9b09e6fc 411102007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41111
41112 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41113 All users updated.
41114 (grub_elf64_load_hook_t): Likewise.
41115 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41116 debug output.
41117
3ce27299 411182007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41119
41120 * kern/mm.c: Update copyright.
41121 (grub_mm_debug): Correct syntax error.
41122 (grub_mm_dump_free): New function.
41123 (grub_debug_free): Call `grub_free'.
41124 * include/grub/mm.h: Update copyright.
41125 (grub_mm_dump_free): Add declaration.
41126
077d5fee 411272007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41128
41129 * include/grub/ieee1275/ieee1275.h: Update copyright.
41130 * kern/powerpc/ieee1275/init.c: Likewise.
41131 * kern/powerpc/ieee1275/openfw.c: Likewise.
41132
41133 * loader/powerpc/ieee1275/linux.c: Likewise.
41134 * include/grub/elfload.h: Likewise.
41135 * kern/elf.c: Likewise.
41136 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41137 callers.
41138 (grub_elf64_load): Likewise.
41139 (grub_elf32_load_segment): Move to a nested function.
41140 (grub_elf64_load_segment): Likewise.
41141
dc946850 411422007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41143
41144 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41145 prototype.
41146 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41147 (grub_heap_len): Likewise.
41148 (HEAP_SIZE): New macro.
41149 (grub_claim_heap): New function.
41150 (grub_machine_init): Don't claim heap directly. Call
41151 `grub_claim_heap'.
41152 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41153 (grub_available_iterate): New function.
41154
baa2a121 411552007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41156
41157 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41158 * configure.ac: Use it for testing the HOST and TARGET compilers.
41159
4fe9862e 411602006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41161
41162 * Makefile.in (enable_grub_emu): New variable.
41163 * configure.ac (--enable-grub-emu): New option.
41164 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41165 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41166 * conf/i386-pc.rmk: Likewise.
41167 * conf/powerpc-ieee1275.rmk: Likewise.
41168 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41169
a8aa5762 411702006-12-12 Marco Gerards <marco@gnu.org>
41171
41172 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41173
41174 * kern/env.c (grub_env_unset): Don't free the member `value' when
41175 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41176 pointer.
41177
41178 * normal/main.c (current_menu): Removed.
41179 (free_menu): Unset the `menu' environment variable.
41180 (grub_normal_menu_addentry): Make use of the environment variable
41181 `menu', instead of using the global `current_menu'. Allocate
41182 memory for the sourcecode of this entry.
41183 (read_config_file): New argument `nested', changed all callers.
41184 Only in the case of a new context, initialize a new menu. Set the
41185 `menu' environment variable.
41186 (grub_normal_execute): Don't set and unset the environment
41187 variable `menu' here anymore. Only free the menu when leaving the
41188 context.
41189
41190 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41191 leak.
41192
957b3a3e 411932006-12-11 Marco Gerards <marco@gnu.org>
41194
41195 * normal/menu_entry.c (run): Fix off by one bug so the last line
41196 is executed. Move the loader check to outside the loop.
41197
ef875714 411982006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41199
41200 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41201
4e739985 412022006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41203
41204 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41205 the number of sectors. Reported by Andrey Shuvikov
41206 <mr_hyro@yahoo.com>.
f19dbdb7 41207
790707f2 412082006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41209
41210 * kern/disk.c (grub_disk_read): When there is a read error, always
41211 try to read only the necessary data.
f19dbdb7 41212
790707f2 41213 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41214 disk/raid.c.
41215 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41216 prototype.
41217 [GRUB_UTIL] (grub_raid_fini): Likewise.
41218 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 41219 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 41220 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41221 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41222 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41223 and grub_raid_fini().
f19dbdb7 41224
03e58196 412252006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41226
41227 * include/grub/types.h (__unused): Rename to UNUSED.
41228 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41229 (grub_elf64_size): Likewise.
f19dbdb7 41230
ae4f23bf 412312006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41232
41233 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41234 grub_error_push and grub_error_pop in the error-handling path.
41235 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41236 length.
41237
2166cc83 412382006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41239
41240 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41241 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41242 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41243 (kernel_elf_SOURCES): Likewise.
41244 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41245 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41246 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41247 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41248 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41249 (elf_mod_SOURCES): New variable.
41250 (elf_mod_CFLAGS): Likewise.
41251 (elf_mod_LDFLAGS): Likewise.
41252 * include/grub/types.h (__unused): New macro.
41253 * include/grub/elfload.h: New file.
41254 * kern/elf.c: Likewise.
41255 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41256 (ELF32_LOADMASK): New macro.
41257 (ELF64_LOADMASK): Likewise.
41258 (vmlinux): Removed.
41259 (grub_linux_load32): New function.
41260 (grub_linux_load64): Likewise.
41261 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41262 Use grub_elf_t instead of grub_file_t.
41263
a09d5aa5 412642006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41265
41266 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41267 `catch_result' to struct set_color_args.
41268
d976fc51 412692006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41270
41271 * normal/menu.c: Include grub/script.h.
41272 * normal/menu_entry.c: Likewise.
41273 * include/grub/normal.h: Do not include grub/script.h.
41274
67507549 412752006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41276
41277 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41278
69203a99 412792006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41280
41281 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41282 disk.
41283 (grub_disk_close): Print debug messages when closing a disk.
41284 (grub_disk_read): Print debug messages when disk read fails.
41285 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41286 filesystem type.
41287 * kern/partition.c: Include misc.h.
41288 (grub_partition_iterate): Print debug messages when detecting
41289 partition type.
41290
e2b8278c 412912006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41292
41293 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41294 is negative.
41295 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41296
97b2f2ff 412972006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41298
41299 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41300 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41301
6555d655 413022006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41303
41304 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41305 instead of sizeof(lv). Patch by Michael Guntsche.
41306
4d42b77f 413072006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41308
41309 * disk/lvm.c: Rename VGS to VG_LIST.
41310 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41311 (grub_lvm_open): Likewise.
41312 Thanks to Michael Guntsche for finding this bug.
41313
5d74d927 413142006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41315
41316 * configure.ac (AC_INIT): Bumped to 1.95.
41317
a1bb27e4 413182006-10-14 Robert Millan <rmh@aybabtu.com>
41319
41320 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41321 with "/dev/.static/dev/md".
41322
e0994b8b 413232006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41324
41325 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41326 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41327 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41328 DRIVE_NAME are always freed.
41329
41330 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41331 DOS_PART, as a DOS partition is counted from one instead of zero
41332 now. Reported by Robert Millan.
41333
ddd5cee9 413342006-10-14 Robert Millan <rmh@aybabtu.com>
41335
41336 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41337 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41338 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41339 string returned by grub_guess_root_device.
41340 * util/i386/pc/grub-setup.c: Likewise.
41341 * util/i386/pc/grub-probefs.c: Likewise.
41342
41343 * util/i386/pc/grub-probefs.c: Rename to ...
41344 * util/i386/pc/grub-probe.c: ... this.
41345 * DISTLIST: Remove grub-probefs, add grub-probe.
41346 * conf/i386-efi.rmk: Likewise.
41347 * conf/i386-pc.rmk: Likewise.
41348 * util/i386/pc/grub-install.in: Likewise.
41349
41350 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41351 choose which information we want to print.
41352
2b002173 413532006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41354
41355 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41356 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41357 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41358 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41359 video/readers/tga.c and video/i386/pc/vbeutil.c.
41360
413612006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41362
41363 Added support for RAID and LVM.
f19dbdb7 41364
2b002173 41365 * disk/lvm.c: New file.
41366 * disk/raid.c: Likewise.
41367 * include/grub/lvm.h: Likewise.
f19dbdb7 41368 * include/grub/raid.h: Likewise.
2b002173 41369 * include/grub/util/lvm.h: Likewise.
41370 * include/grub/util/raid.h: Likewise.
41371 * util/lvm.c: Likewise.
41372 * util/raid.c: Likewise.
41373
41374 * include/grub/disk.h (grub_disk_dev_id): Add
41375 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41376 (grub_disk_get_size): New prototype.
41377 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41378 returns a partition.
41379 (grub_disk_get_size): New function.
f19dbdb7 41380
2b002173 41381 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41382 verbatim if grub_install_dos_part is -2.
41383
41384 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41385 and LVM devices.
41386
41387 * util/i386/pc/grub-setup.c (setup): New argument
41388 MUST_EMBED. Force embedding of GRUB when the argument is
41389 true. Close FILE before returning.
41390 (main): Add support for RAID and LVM.
f19dbdb7 41391
2b002173 41392 * conf/common.rmk: Add RAID and LVM modules.
41393 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41394 util/lvm.c.
41395 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41396
41397 * kern/misc.c (grub_strstr): New function.
41398 * include/grub/misc.h (grub_strstr): New prototype.
41399
050548d0 414002006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41401
41402 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41403
da849d2d 414042006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41405
41406 * kern/misc.c (grub_strtoull): Guess the base only if not
41407 specified.
41408
97b2f2ff 414092006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 41410
41411 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41412 PowerMac support.
41413
97b2f2ff 414142006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 41415
41416 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41417
41418 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41419 Remove `flags' argument. All callers changed.
41420 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41421 (IEEE1275_IHANDLE_INVALID): New variable.
41422 (IEEE1275_CELL_INVALID): New variable.
41423 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41424 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41425 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41426 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41427 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41428 codes from Open Firmware. All callers updated.
41429 (grub_ieee1275_next_property): Directly return Open Firmware return
41430 code.
41431 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41432 Standardize error checking from `grub_ieee1275_get_property'.
41433 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41434 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41435
97b2f2ff 414362006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 41437
41438 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41439 `instance_to_package_args' to `instance_to_path_args'.
41440
41441 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41442 `grub_ieee1275_chosen'.
41443
41444 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41445 `grub_ieee1275_interpret'.
41446
97b2f2ff 414472006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 41448
41449 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41450
97b2f2ff 414512006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 41452
41453 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41454 (__cmpdi): Likewise.
41455
41456 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41457 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41458 `grub_ssize_t'.
41459
02bb8acc 41460 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 41461
41462 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41463 to type `grub_ssize_t'.
41464 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41465
7f9a8531 414662006-09-22 Marco Gerards <marco@gnu.org>
41467
41468 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41469 newlines.
41470
b5ef1102 414712006-09-22 Marco Gerards <marco@gnu.org>
41472
41473 * commands/echo.c: New file.
41474
41475 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41476
41477 * conf/common.rmk (echo_mod_SOURCES): New variable.
41478 (echo_mod_CFLAGS): Likewise.
41479 (echo_mod_LDFLAGS): Likewise.
41480
2cff3677 414812006-09-22 Marco Gerards <marco@gnu.org>
41482
41483 * normal/main.c (get_line): Malloc memory instead of using
41484 preallocated memory. Removed the arguments `cmdline' and
41485 `max_len'. Updated all callers.
41486
6ba4688b 414872006-09-22 Marco Gerards <marco@gnu.org>
41488
41489 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41490 (normal_mod_DEPENDENCIES): Likewise.
41491
41492 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41493 (normal_mod_DEPENDENCIES): Likewise.
41494
41495 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41496
e02ac02c 414972006-09-22 Johan Rydberg <jrydberg@gnu.org>
41498
41499 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41500 programs.
41501 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41502 (normal_mod_DEPENDENCIES): Likewise.
41503 * conf/i386-pc.mk: Regenerate.
41504 * conf/i386-efi.mk: Likewise
41505 * conf/common.mk: Likewise.
41506 * conf/powerpc-ieee1275.mk: Likewise.
41507 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 41508
8d252e44 415092006-09-22 Robert Millan <rmh@aybabtu.com>
41510
41511 Sync with i386 version.
41512 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41513 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41514
209bf7ac 415152006-09-21 Robert Millan <rmh@aybabtu.com>
41516
41517 Import from GRUB Legacy (lib/device.c):
41518 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41519 (init_device_map) [__linux__]: Add support for I2O devices.
41520
6b146090 415212006-09-14 Marco Gerards <marco@gnu.org>
41522
41523 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41524 `-melf_i386'.
41525
e38600a8 415262006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 41527
41528 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41529 /boot/grub/*.lst.
78fa1790 41530
2952da5d 41531 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 41532
2952da5d 41533 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41534 before adding it to device.map.
41535
01b82a64 415362006-08-15 Johan Rydberg <jrydberg@gnu.org>
41537
fe6b695a 41538 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 41539 compiles a file; using the -MD option.
41540 * conf/common.mk: Regenerate.
41541 * conf/i386-pc.mk: Likewise.
41542 * conf/i386-efi.mk: Likewise.
41543 * conf/powerpc-ieee1275.mk: Likewise.
41544 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 41545
1064790d 415462006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41547
41548 Move the prototypes of grub_setjmp and grub_longjmp to
41549 cpu/setjmp.h, so that each architecture may specify different
41550 attributes.
f19dbdb7 41551
1064790d 41552 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41553 (grub_longjmp): Likewise.
41554 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41555 (grub_longjmp): Likewise.
41556 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41557 (grub_longjmp): Likewise.
41558
41559 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41560 [!GRUB_UTIL] (grub_longjmp): Removed.
41561
29dda3ed 415622006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41563
41564 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41565 "color!" method does not return any value.
41566
ad2a06ed 415672006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41568
41569 * include/grub/bitmap.h: New file.
41570
41571 * include/grub/i386/pc/vbeutil.h: Likewise.
41572
41573 * video/bitmap.c: Likewise.
41574
41575 * video/readers/tga.c: Likewise.
41576
41577 * video/i386/pc/vbeutil.c: Likewise.
41578
41579 * commands/videotest.c: Code cleanup and updated to reflect to new
41580 video API.
41581
41582 * term/gfxterm.c: Likewise.
41583
41584 * video/video.c: Likewise.
41585
41586 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41587 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41588 (bitmap_mod_SOURCES): New entry.
41589 (bitmap_mod_CFLAGS): Likewise.
41590 (bitmap_mod_LDFLAGS): Likewise.
41591 (tga_mod_SOURCES): Likewise.
41592 (tga_mod_CFLAGS): Likewise.
41593 (tga_mod_LDFLAGS): Likewise.
41594
41595 * include/grub/video.h (grub_video_blit_operators): New enum type.
41596 (grub_video_render_target): Changed as forward declaration and moved
41597 actual definition to be video driver specific.
41598 (grub_video_adapter.blit_bitmap): Added blitting operator.
41599 (grub_video_adapter.blit_render_target): Likewise.
41600 (grub_video_blit_bitmap): Likewise.
41601 (grub_video_blit_render_target): Likewise.
41602
41603 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41604 driver specific render target definition.
41605 (grub_video_vbe_map_rgba): Added driver internal helper.
41606 (grub_video_vbe_unmap_color): Updated to use
41607 grub_video_i386_vbeblit_info.
41608 (grub_video_vbe_get_video_ptr): Likewise.
41609
41610 * include/grub/i386/pc/vbeblit.h
41611 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41612 grub_video_i386_vbeblit_info.
41613 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41614 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41615 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41616 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41617 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41618 (grub_video_i386_vbeblit_index_index): Likewise.
41619 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41620 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41621 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41622 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41623 operator.
41624 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41625 operator.
41626
41627 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41628 include/grub/i386/pc/vbeblit.h.
41629
41630 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41631 Updated to use grub_video_i386_vbeblit_info.
41632 (grub_video_i386_vbefill_R8G8B8): Likewise.
41633 (grub_video_i386_vbefill_index): Likewise.
41634 (grub_video_i386_vbefill): Added generic filler.
41635
41636 * video/i386/pc/vbefill.c: Updated to reflect changes on
41637 include/grub/i386/pc/vbefill.h.
41638
41639 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41640 grub_video_i386_vbeblit_info.
41641 (grub_video_vbe_unmap_color): Likewise.
41642 (grub_video_vbe_blit_glyph): Likewise.
41643 (grub_video_vbe_scroll): Likewise.
41644 (grub_video_vbe_draw_pixel): Removed function.
41645 (grub_video_vbe_get_pixel): Likewise.
41646 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41647 updated code to use it.
41648 (common_blitter): Added common blitter for render target and bitmap.
41649 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41650 (grub_video_vbe_blit_render_target): Likewise.
41651
bc8c036d 416522006-07-30 Johan Rydberg <jrydberg@gnu.org>
41653
41654 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41655 is in text mode if there is no console control protocol instance
41656 available.
41657
684a8eff 416582006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41659
41660 * include/grub/video.h: Code cleanup.
41661
41662 * include/grub/i386/pc/vbe.h: Likewise.
41663
41664 * video/i386/pc/vbe.c: Likewise.
41665
41666 * video/i386/pc/vbeblit.c: Likewise.
41667
41668 * video/i386/pc/vbefill.c: Likewise.
41669
41670 * video/video.c: Likewise. Also added more comments.
41671
5915059b 416722006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41673
41674 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
41675 (struct grub_biosdisk_dap): Likewise.
41676
41677 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
41678 linkage settings for all functions.
41679
90ce5d56 416802006-07-12 Marco Gerards <marco@gnu.org>
41681
41682 * configure.ac (--enable-mm-debug): Fix typo.
41683
41684 * genkernsyms.sh.in: Use proper quoting for `CC'.
41685
43e7f879 416862006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
41687
41688 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
41689 (normal_mod_ASFLAGS): Remove "-m32".
41690
4889bdec 416912006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
41692
41693 * util/misc.c: Include config.h.
41694 [!HAVE_MEMALIGN]: Do not include malloc.h.
41695 (grub_memalign): Use posix_memalign, if present. Then, use
41696 memalign, if present. Otherwise, emit an error.
41697
41698 * util/grub-emu.c: Do not include malloc.h.
41699
41700 * include/grub/util/misc.h: Include unistd.h. This is required for
41701 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
41702 D. Eades III <hde@foobar-qux.org>.
41703
41704 * configure.ac (AC_GNU_SOURCE): Added.
41705 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
41706 type.
41707
fd39d4da 417082006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
41709
41710 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
41711 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
41712
b786f3b5 417132006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
41714
41715 * include/grub/types.h (grub_host_addr_t): Rename to
41716 grub_target_addr_t.
41717 (grub_host_off_t): Rename to grub_target_off_t.
41718 (grub_host_size_t): Rename to grub_target_size_t.
41719 (grub_host_ssize_t): Rename to grub_target_ssize_t.
41720 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
41721
41722 * include/grub/kernel.h (struct grub_module_header): Change type
41723 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
41724 (grub_module_info): Likewise.
f19dbdb7 41725
051988bb 417262006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41727
41728 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
41729 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
41730 Velazquez <jesus.velazquez@gmail.com>.
41731
deae281b 417322006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
41733
41734 Count partitions from 1 instead of 0 in the string representation
41735 of partitions. Still use 0-based internally.
f19dbdb7 41736
deae281b 41737 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
41738 (sun_partition_map_iterate): Use grub_partition_t instead of
41739 struct grub_partition *. Cast DESC->START_CYLINDER to
41740 grub_uint64_t after converting the endian.
41741 (sun_partition_map_probe): Subtract 1 for PARTNUM.
41742 (sun_partition_map_get_name): Add 1 to P->INDEX.
41743
41744 * partmap/pc.c (grub_partition_parse): Subtract 1 for
41745 PCDATA->DOS_PART.
41746 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
41747
41748 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
41749 zero instead of one.
41750 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
41751 (gpt_partition_map_get_name): Add 1 into P->INDEX.
41752
41753 * partmap/apple.c (apple_partition_map_iterate): Change the type
41754 of POS to unsigned.
41755 (apple_partition_map_probe): Subtract 1 for PARTNUM.
41756 (apple_partition_map_get_name): Add 1 into P->INDEX.
41757
41758 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
41759 of POS to unsigned.
41760 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
41761 calculate the offset of a partition.
41762 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
41763 (amiga_partition_map_get_name): Add 1 into P->INDEX.
41764
41765 * partmap/acorn.c (acorn_partition_map_find): Change the type of
41766 SECTOR to grub_disk_addr_t.
41767 (acorn_partition_map_iterate): Likewise.
41768 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
41769 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
41770 top.
41771 (acorn_partition_map_get_name): Add 1 into P->INDEX.
41772
41773 * kern/i386/pc/init.c (make_install_device): Add 1 into
41774 GRUB_INSTALL_DOS_PART.
41775
41776 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
41777 conditional.
41778
524a1e6a 417792006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
41780
41781 Clean up the code to support 64-bit addressing in disks and
41782 files. This change is not enough for filesystems yet.
f19dbdb7 41783
524a1e6a 41784 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
41785 type of "start" to grub_uint64_t.
41786 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
41787 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
41788 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
41789 convert addresses.
41790
41791 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
41792 to grub_disk_addr_t.
41793
41794 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
41795 string.
41796
41797 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41798
41799 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
41800 to char *.
41801
41802 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
41803
41804 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
41805
41806 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
41807
41808 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
41809 to grub_off_t, to detect an error from grub_file_seek.
41810 (grub_multiboot_load_elf32): Likewise.
41811
41812 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
41813 maximum unsigned long value when an overflow is detected.
41814 (grub_strtoull): New function.
41815 (grub_divmod64): Likewise.
41816 (grub_lltoa): use grub_divmod64.
41817
41818 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
41819 grub_disk_addr_t.
41820 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
41821 the pointer to next character. Use grub_strtoull instead of
41822 grub_strtoul.
41823 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
41824 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
41825 respectively.
41826
fe6b695a 41827 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 41828 return value is signed.
41829 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
41830 test if OFFSET is less than zero, as OFFSET is unsigned now.
41831
41832 * kern/disk.c (struct grub_disk_cache): Change the type of
41833 "sector" to grub_disk_addr_t.
41834 (grub_disk_cache_get_index): Change the type of SECTOR to
41835 grub_disk_addr_t. Calculate the hash with SECTOR casted to
41836 unsigned after shifting.
41837 (grub_disk_cache_invalidate): Change the type of SECTOR to
41838 grub_disk_addr_t.
41839 (grub_disk_cache_unlock): Likewise.
41840 (grub_disk_cache_store): Likewise.
41841 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
41842 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
41843 grub_disk_addr_t and grub_uint64_t, respectively.
41844 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
41845 body, as the value of OFFSET is tweaked by
41846 grub_disk_check_range. Change the types of START_SECTOR, LEN and
41847 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
41848 respectively.
41849 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
41850 body, as the value of OFFSET is tweaked by
41851 grub_disk_check_range. Change the types of LEN and N to
41852 grub_size_t.
41853
41854 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
41855 and "saved_offset" to grub_off_t.
41856 (test_header): Cast BUF to char *.
41857 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
41858 to char *.
41859 (grub_gzio_read): Change the types of OFFSET and SIZE to
41860 grub_off_t and grub_size_t, respectively.
41861
41862 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
41863 Removed.
41864 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
41865 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
41866 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
41867 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
41868 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
41869
41870 * include/grub/types.h (grub_off_t): Unconditionally set to
41871 grub_uint64_t.
41872 (grub_disk_addr_t): Changed to grub_uint64_t.
41873
41874 * include/grub/partition.h (struct grub_partition): Change the
41875 types of "start", "len" and "offset" to grub_disk_addr_t,
41876 grub_uint64_t and grub_disk_addr_t, respectively.
41877 (grub_partition_get_start): Return grub_disk_addr_t.
41878 (grub_partition_get_len): Return grub_uint64_t.
41879
41880 * include/grub/misc.h (grub_strtoull): New prototype.
41881 (grub_divmod64): Likewise.
41882
41883 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
41884 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
41885 grub_off_t, respectively.
41886 All callers and references changed.
41887
41888 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
41889 grub_size_t in "read".
41890 All callers and references changed.
41891
41892 * include/grub/file.h (struct grub_file): Change the types of
41893 "offset" and "size" to grub_off_t and grub_off_t,
41894 respectively. Change the type of SECTOR to grub_disk_addr_t in
41895 "read_hook".
41896 (grub_file_read): Change the type of LEN to grub_size_t.
41897 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
41898 grub_off_t.
41899 (grub_file_size): Return grub_off_t.
41900 (grub_file_tell): Likewise.
41901 All callers and references changed.
41902
41903 * include/grub/disk.h (struct grub_disk_dev): Change the types of
41904 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
41905 "write".
41906 (struct grub_disk): Change the type of "total_sectors" to
41907 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 41908 "read_hook".
524a1e6a 41909 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
41910 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
41911 (grub_disk_write): Likewise.
41912 All callers and references changed.
41913
41914 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
41915 char * for grub_strncmp to silence gcc.
41916 (grub_iso9660_mount): Likewise.
41917 (grub_iso9660_mount): Likewise.
41918 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
41919 return statement.
41920 (grub_iso9660_iterate_dir): Likewise.
41921 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
41922
41923 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
41924 LEN to grub_disk_addr_t and grub_size_t, respectively.
41925
41926 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41927
41928 * fs/jfs.c (grub_jfs_read_file): Likewise.
41929
41930 * fs/minix.c (grub_jfs_read_file): Likewise.
41931
41932 * fs/sfs.c (grub_jfs_read_file): Likewise.
41933
41934 * fs/ufs.c (grub_jfs_read_file): Likewise.
41935
41936 * fs/xfs.c (grub_jfs_read_file): Likewise.
41937
41938 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
41939 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
41940 respectively.
41941
41942 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
41943 BLKNR to -1 instead of returning GRUB_ERRNO.
41944 (grub_ext2_read_file): Change the types of SECTOR and
41945 LEN to grub_disk_addr_t and grub_size_t, respectively.
41946
41947 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
41948 LEN to grub_disk_addr_t and grub_size_t, respectively.
41949
41950 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
41951 grub_file_read.
41952
41953 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
41954 string. Do not cast SECTOR explicitly.
41955
41956 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
41957 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
41958 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
41959 grub_disk_addr_t and grub_size_t, respectively. If the sector is
41960 over 2TB and LBA mode is not supported, raise an error.
41961 (get_safe_sectors): New function.
41962 (grub_biosdisk_read): Use get_safe_sectors.
41963 (grub_biosdisk_write): Likewise.
41964
41965 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
41966 (grub_efidisk_write): Likewise.
41967
41968 * disk/loopback.c (delete_loopback): Cosmetic changes.
41969 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
41970 correctly.
41971 (grub_loopback_open): Likewise.
41972 (grub_loopback_read): Likewise. Also, change the type of POS to
41973 grub_off_t, and fix the usage of grub_memset.
41974
41975 * commands/i386/pc/play.c: Include grub/machine/time.h.
41976
41977 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
41978 print FILE->SIZE.
41979
41980 * commands/configfile.c: Include grub/env.h.
41981
41982 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
41983 GRUB_ERRNO directly instead. Change the type of POS to
41984 grub_off_t. Follow the coding standard.
41985
41986 * commands/blocklist.c: Include grub/partition.h.
41987 (grub_cmd_blocklist): Return an error if the underlying device is
41988 not a disk. Take the starting sector of a partition into account,
41989 if a partition is used.
41990
41991 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
41992 a length field.
41993 (lba_mode): Support 64-bit addresses.
41994 (chs_mode): Likewise.
41995 (copy_buffer): Adapted to the new offsets of a length field and a
41996 segment field.
41997 (blocklist_default_start): Allocate 64-bit space.
41998
41999 * boot/i386/pc/boot.S (force_lba): Removed.
42000 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 42001 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 42002 space.
42003 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42004 is useless.
42005 (lba_mode): Refactored to support a 64-bit address. More size
42006 optimization.
42007 (setup_sectors): Likewise.
42008
53af98ad 420092006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42010
42011 * DISTLIST: Added include/grub/i386/linux.h. Removed
42012 include/grub/i386/pc/linux.h
42013
42014 * configure.ac (AC_INIT): Bumped to 1.94.
42015
42016 * config.guess: Updated from gnulib.
42017 * config.sub: Likewise.
42018 * install-sh: Likewise.
42019 * mkinstalldirs: Likewise.
42020
b4c1940a 420212006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42022
42023 * conf/common.rmk (grub_modules_init.lst): Depended on
42024 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42025 MODSRCFILES.
42026
42027 * genmk.rb (PModule::rule): Reverted the previous change.
42028
cfca1cfd 420292006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42030
42031 * conf/common.rmk (grub_modules_init.lst): Depends on
42032 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42033 that the target does not exist before producing.
42034 (grub_modules_init.h): Remove the target before generating.
42035 (grub_emu_init.c): Likewise.
42036
42037 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42038
aa6d7826 420392006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42040
42041 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42042 for the target-specific tests. Make sure that we also have the
42043 up-to-date target variables for those tests.
42044
26c607b9 420452006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42046
42047 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42048 (PModule::rule): Likewise.
42049
0162321a 420502006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42051
42052 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42053 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42054 target-specific flags should be prefixed.
42055 (PModule::rule): Likewise.
42056
6c826348 420572006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42058
42059 * configure.ac (CMP): Check if cmp is available explicitly.
42060
b977bf01 420612006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42062
42063 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42064 (target_cpu): New variable.
42065 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 42066
b977bf01 42067 * util/i386/pc/grub-install.in (host_cpu): Removed.
42068 (target_cpu): New variable.
42069 (pkglibdir): Use target_cpu instead of host_cpu.
42070
42071 * util/genmoddep.c: Removed.
f19dbdb7 42072
b977bf01 42073 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42074 instead of GRUB_HOST_SIZEOF_VOID_P.
42075 * kern/dl.c: Likewise.
42076
42077 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42078 ...
42079 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42080 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42081 (GRUB_TARGET_SIZEOF_LONG): ... this.
42082 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42083 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42084 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42085 to ...
42086 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42087 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42088 (GRUB_TARGET_SIZEOF_LONG): ... this.
42089 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42090 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42091 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42092 to ...
42093 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42094 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42095 (GRUB_TARGET_SIZEOF_LONG): ... this.
42096 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42097 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42098
42099 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42100 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42101 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42102 instead of GRUB_HOST_SIZEOF_LONG.
42103 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42104 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42105 GRUB_CPU_WORDS_BIGENDIAN.
42106 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42107 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42108 grub_host_ssize_t.
42109
42110 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42111 (genmoddep_SOURCES): Likewise.
42112 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42113 (genmoddep_SOURCES): Likewise.
42114 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42115 (genmoddep_SOURCES): Likewise.
42116 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42117 Likewise.
42118 (genmoddep_SOURCES): Likewise.
42119
42120 * genmoddep.awk: New file.
42121
42122 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42123 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42124 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42125 (PModule::rule): Likewise.
42126 (Program::rule): Likewise.
42127 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42128 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42129 respectively.
42130
42131 * configure.ac: Rewritten intensively to use host and target
42132 instead of build and host, respectively.
42133
42134 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42135 (host_cpu): Removed.
42136 (target_cpu): New variable.
42137 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42138 (BUILD_CC): Removed.
42139 (BUILD_CFLAGS): Likewise.
42140 (BUILD_CPPFLAGS): Likewise.
42141 (TARGET_CC): New variable.
42142 (TARGET_CFLAGS): Likewise.
42143 (TARGET_CPPFLAGS): Likewise.
42144 (TARGET_LDFLAGS): Likewise.
42145 (AWK): Likewise.
42146 (include): Use target_cpu instead of host_cpu.
42147 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 42148
b977bf01 42149 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42150
f09771a1 421512006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42152
42153 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42154 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42155 field 'false' to 'exec_on_false'.
42156 (grub_script_create_cmdif): Renamed argument names to reflect above
42157 changes.
42158
42159 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42160
42161 * normal/script.c (grub_script_create_cmdif): Likewise.
42162
118f4fb3 421632006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42164
42165 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42166 top.
42167 (grub_hfsplus_btree_recptr): Likewise.
42168 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42169 FILEBLOCK both to pass a block number and store next block
42170 number.
42171 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42172 overflow file correctly. Specify errors appropriately, because
42173 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42174 grub_hfsplus_btree_recptr to get the pointer to a found key.
42175 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42176 is found.
42177
42178 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42179 linux.mod.
42180 (_linux_mod_SOURCES): New variable.
42181 (_linux_mod_CFLAGS): Likewise.
42182 (_linux_mod_LDFLAGS): Likewise.
42183 (linux_mod_SOURCES): Likewise.
42184 (linux_mod_CFLAGS): Likewise.
42185 (linux_mod_LDFLAGS): Likewise.
42186
42187 * DISTLIST: Added loader/i386/efi/linux.c,
42188 loader/i386/efi/linux_normal.c and
42189 include/grub/i386/efi/loader.h.
42190
42191 * loader/i386/efi/linux.c: New file.
42192 * loader/i386/efi/linux_normal.c: Likewise.
42193 * include/grub/i386/efi/loader.h: Likewise.
42194
89a7d726 421952006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42196
42197 * commands/blocklist.c: New file.
42198
42199 * DISTLIST: Added commands/blocklist.c.
42200
42201 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 42202 color for the background, and a darker color for the foreground.
89a7d726 42203 (grub_console_checkkey): Return READ_KEY.
42204 (grub_console_cls): Set the background to
42205 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42206
42207 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42208
42209 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42210 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42211
42212 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42213 prototype.
42214
42215 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42216 BG. The spec is wrong again.
42217
42218 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42219 prototype.
42220 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42221
42222 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42223 commands/blocklist.c.
42224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 42225
89a7d726 42226 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42227 (blocklist_mod_SOURCES): New variable.
42228 (blocklist_mod_CFLAGS): Likewise.
42229 (blocklist_mod_LDFLAGS): Likewise.
42230
75c8f258 422312006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42232
42233 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42234 duplication.
42235 (lba_mode): Use %eax more intensively to reduce the code size.
42236
da2eb181 422372006-05-20 Marco Gerards <marco@gnu.org>
42238
42239 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42240
42241 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42242 for `menuentry'.
42243 (script): Accept leading newlines.
42244 (newlines): New rule to describe 0 or more newlines.
42245 (commands): Accept `command' with trailing newline. Fixed the
42246 order in which arguments were passed to `grub_script_add_cmd'.
42247 Accept commands separated by newlines.
42248 (function): Changed to accept newlines.
42249 (menuentry) Rewritten.
42250
42251 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42252 front of the list, instead of to the end.
42253
577b4050 422542006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42255
42256 * util/i386/pc/grub-install.in (bindir): New variable.
42257 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42258 Shaver <lbgwjl@gmail.com>.
42259
0d6e1189 422602006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42261
42262 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42263 grub/machine/linux.h
42264 * loader/i386/pc/linux.c: Likewise.
42265
42266 * include/grub/i386/pc/linux.h: Moved to ...
42267 * include/grub/i386/linux.h: ... here.
42268
42269 * include/grub/i386/linux.h (struct linux_kernel_params): New
42270 struct.
f19dbdb7 42271
31b86e9f 422722006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42273
42274 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42275 checking.
42276 (grub_video_vbe_blit_glyph): Likewise.
42277 (grub_video_vbe_blit_bitmap): Likewise.
42278 (grub_video_vbe_blit_render_target): Likewise.
42279
83b984de 422802006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42281
42282 * configure.ac (--with-platform): Properly quote the square
42283 brackets.
42284
5f0413bd 422852006-05-08 Marco Gerards <marco@gnu.org>
42286
42287 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42288 this...
42289 (kernel_elf_HEADERS): ...to this. Updated all users.
42290 (grubof_symlist.c): Renamed from this...
42291 (kernel_elf_symlist.c): ...to this. Updated all users.
42292 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42293 (grubof_SOURCES): Renamed from this...
42294 (kernel_elf_SOURCES): ...to this.
42295 (grubof_HEADERS): Renamed from this...
42296 (kernel_elf_HEADERS): ...to this.
42297 (grubof_CFLAGS): Renamed from this...
42298 (kernel_elf_CFLAGS): ...to this.
42299 (grubof_ASFLAGS): Renamed from this...
42300 (kernel_elf_ASFLAGS): ...to this.
42301 (grubof_LDFLAGS): Renamed from this...
42302 (kernel_elf_LDFLAGS): ...to this.
42303
42304 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42305 this...
42306 (kernel_elf_HEADERS): ...to this. Updated all users.
42307 (grubof_symlist.c): Renamed from this...
42308 (kernel_elf_symlist.c): ...to this. Updated all users.
42309 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42310 (grubof_SOURCES): Renamed from this...
42311 (kernel_elf_SOURCES): ...to this.
42312 (grubof_HEADERS): Renamed from this...
42313 (kernel_elf_HEADERS): ...to this.
42314 (grubof_CFLAGS): Renamed from this...
42315 (kernel_elf_CFLAGS): ...to this.
42316 (grubof_ASFLAGS): Renamed from this...
42317 (kernel_elf_ASFLAGS): ...to this.
42318 (grubof_LDFLAGS): Renamed from this...
42319 (kernel_elf_LDFLAGS): ...to this.
42320
42321 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42322 `kernel.elf' instead of `grubof'.
42323
05568c2e 423242006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42325
42326 Add --with-platform to configure. Use pkglibdir instead of
42327 pkgdatadir. This is reported by Roger Leigh.
42328
42329 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42330 (host_vendor): Likewise.
42331 (host_os): Likewise.
42332 (pkgdatadir): Likewise.
42333 (platform): New variable.
42334 (pkglibdir): Likewise.
42335 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 42336
05568c2e 42337 * util/i386/pc/grub-install.in (datadir): Removed.
42338 (host_vendor): Likewise.
42339 (host_os): Likewise.
42340 (pkgdatadir): Likewise.
42341 (platform): New variable.
42342 (pkglibdir): Likewise.
42343 Use PKGLIBDIR instead of PKGDATADIR.
42344
42345 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42346 instead of GRUB_DATADIR.
42347 (main): Likewise.
42348 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42349 (main): Likewise.
42350 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42351 (main): Likewise.
42352
42353 * configure.ac (--with-platform): New option.
42354 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42355
42356 * Makefile.in: Include a makefile based on PLATFORM instead of
42357 HOST_VENDOR.
42358 (pkgdatadir): Not appended by the machine type.
42359 (pkglibdir): Appended by the machine type.
42360 (host_vendor): Removed.
42361 (platform): New variable.
42362 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42363 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42364 (uninstall): Likewise.
42365
4e93851c 423662006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42367
42368 Use the environment context in the menu. Remove the commands
42369 "default" and "timeout", and use variables instead.
f19dbdb7 42370
4e93851c 42371 * normal/menu.c: Include grub/env.h.
42372 (print_entry): Cast TITLE to silence gcc.
42373 (get_timeout): New function.
42374 (set_timeout): Likewise.
42375 (get_entry_number): Likewise.
42376 (run_menu): Use a default entry, a fallback entry and a timeout
42377 in the environment variables "default", "fallback" and
42378 "timeout". Also, tweak the default entry if it is not within the
42379 current menu entries.
42380 (grub_menu_run): Use a fallback entry in the environment variable
42381 "fallback".
42382
42383 * normal/main.c (read_config_file): Do not initialize
42384 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42385 NEWMENU->TIMEOUT.
42386 (grub_normal_execute): Use a data slot to store the menu.
42387
42388 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42389 fallback_entry and timeout.
42390 (struct grub_menu_list): Removed.
42391 (grub_menu_list_t): Likewise.
42392 (struct grub_context): Likewise.
42393 (grub_context_t): Likewise.
42394 (grub_context_get): Likewise.
42395 (grub_context_get_current_menu): Likewise.
42396 (grub_context_push_menu): Likewise.
42397 (grub_context_pop_menu): Likewise.
42398 (grub_default_init): Likewise.
42399 (grub_default_fini): Likewise.
42400 (grub_timeout_init): Likewise.
42401 (grub_timeout_fini): Likewise.
42402
42403 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42404 and timeout.mod.
42405 (normal_mod_SOURCES): Removed normal/context.c.
42406
42407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42408 commands/default.c, commands/timeout.c and normal/context.c.
42409 (normal_mod_SOURCES): Removed normal/context.c.
42410
42411 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42412 commands/timeout.c and normal/context.c.
42413 (normal_mod_SOURCES): Removed normal/context.c.
42414
42415 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42416 commands/default.c, commands/timeout.c and normal/context.c.
42417 (normal_mod_SOURCES): Removed normal/context.c.
42418
42419 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42420 timeout.mod.
42421 (default_mod_SOURCES): Removed.
42422 (default_mod_CFLAGS): Likewise.
42423 (default_mod_LDFLAGS): Likewise.
42424 (timeout_mod_SOURCES): Removed.
42425 (timeout_mod_CFLAGS): Likewise.
42426 (timeout_mod_LDFLAGS): Likewise.
42427
42428 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42429 normal/context.c.
42430
42431 * commands/default.c: Removed.
42432 * commands/timeout.c: Likewise.
42433 * normal/context.c: Likewise.
42434
1eb9cc1d 424352006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42436
42437 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42438
385bd9c1 424392006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42440
42441 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42442 "next" to "prev" for readability.
42443 (struct grub_env_sorted_var): New struct.
42444 (grub_env_context): Renamed to ...
42445 (initial_context): ... this.
42446 (grub_env_var_context): Renamed to ...
42447 (current_context): ... this.
42448 (grub_env_find): Look only at CURRENT_CONTEXT.
42449 (grub_env_context_open): Rewritten to copy exported variables from
42450 previous context.
42451 (grub_env_context_close): Rewritten according to the new
42452 scheme. Also, add an assertion to prevent the initial context from
42453 removed.
42454 (grub_env_insert): Removed the code for the sorted list.
42455 (grub_env_remove): Likewise.
42456 (grub_env_export): Simply mark the variable with
42457 GRUB_ENV_VAR_GLOBAL.
42458 (grub_env_set): A cosmetic change for naming consistency.
42459 (grub_env_get): Likewise.
42460 (grub_env_unset): Likewise.
42461 (grub_env_iterate): Rewritten to sort variables within this
42462 function.
42463 (grub_register_variable_hook): Fixed for naming consistency. Call
42464 grub_env_find again, only if NAME is not found at the first time.
42465 (mangle_data_slot_name): New function.
42466 (grub_env_set_data_slot): Likewise.
42467 (grub_env_get_data_slot): Likewise.
42468 (grub_env_unset_data_slot): Likewise.
42469
42470 * include/grub/env.h (grub_env_var_type): New enum.
42471 (GRUB_ENV_VAR_LOCAL): New constant.
42472 (GRUB_ENV_VAR_GLOBAL): Likewise.
42473 (GRUB_ENV_VAR_DATA): Likewise.
42474 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42475 "type".
42476 (grub_env_set): Replace VAR with NAME for consistency.
42477 (grub_register_variable_hook): Likewise.
42478 (grub_env_export): Specify the name of the argument.
42479 (grub_env_set_data_slot): New prototype.
42480 (grub_env_get_data_slot): Likewise.
42481 (grub_env_unset_data_slot): Likewise.
42482
7f362539 424832006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42484
42485 Extend the loader so that GRUB can accept a loader which comes
42486 back to GRUB when a loaded image exits. Also, this change adds
42487 support for a chainloader on EFI.
f19dbdb7 42488
7f362539 42489 * term/efi/console.c: Include grub/misc.h.
42490 (grub_console_checkkey): Display a scan code on the top for
42491 debugging. This will be removed once the EFI port gets stable.
42492 Correct the scan code mapping.
42493
42494 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42495 allocate memory from larger regions, in order to reduce the number
42496 of allocated regions. Otherwise, the MacOSX loader panics.
42497 (filter_memory_map): Avoid less than 1MB for compatibility with
42498 other loaders.
42499 (add_memory_regions): Allocate from the tail of a region, if
42500 possible, to avoid allocating a region near to 1MB, for the MacOSX
42501 loader.
42502
42503 * kern/efi/init.c (grub_efi_set_prefix): Specify
42504 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42505
42506 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42507 argument IMAGE_HANDLE and specify it to get a loaded image.
42508 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42509 grub_efi_get_loaded_image.
fe6b695a 42510 (grub_efi_get_filename): Divide the length by the size of
7f362539 42511 grub_efi_char16_t.
42512 (grub_efi_get_device_path): New function.
42513 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42514 the length by the size of grub_efi_char16_t for a file path device
42515 path node.
42516
42517 * kern/loader.c (grub_loader_noreturn): New variable.
42518 (grub_loader_set): Accept a new argument NORETURN. Set
42519 GRUB_LOADER_NORETURN to NORETURN.
42520 All callers changed.
42521 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42522 grub_machine_fini.
42523
42524 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42525 prototype.
42526 (grub_efi_get_loaded_image): Take an argument to specify an image
42527 handle.
42528
42529 * include/grub/loader.h (grub_loader_set): Added one more argument
42530 NORETURN.
42531
42532 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42533 instead of grub_efi_open_protocol.
42534 (grub_efidisk_get_device_name): Likewise.
42535 (grub_efidisk_close): Print a newline.
42536 (grub_efidisk_get_device_handle): Fixed to use
42537 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42538 GRUB_EFI_DEVICE_PATH_TYPE.
42539
42540 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42541 * kern/efi/efi.c (device_path_guid): ... here.
42542
42543 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42544 chain.mod.
42545 (kernel_mod_HEADERS): Added efi/disk.h.
42546 (_chain_mod_SOURCES): New variable.
42547 (_chain_mod_CFLAGS): Likewise.
42548 (_chain_mod_LDFLAGS): Likewise.
42549 (chain_mod_SOURCES): Likewise.
42550 (chain_mod_CFLAGS): Likewise.
42551 (chain_mod_LDFLAGS): Likewise.
42552
42553 * DISTLIST: Added include/grub/efi/chainloader.h,
42554 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42555
42556 * include/grub/efi/chainloader.h: New file.
42557 * loader/efi/chainloader.c: Likewise.
42558 * loader/efi/chainloader_normal.c: Likewise.
42559
c0111d6e 425602006-04-30 Marco Gerards <marco@gnu.org>
42561
42562 * commands/configfile.c (grub_cmd_source): New function.
42563 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42564 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42565
df5341da 425662006-04-30 Marco Gerards <marco@gnu.org>
42567
42568 * normal/execute.c (grub_script_execute_cmd): Change the return
42569 type to `grub_err_t'. Correctly return the error.
42570 (grub_script_execute_cmdline): In case a command line is not a
42571 command or a function, try to interpret it as an assignment.
42572
f85934bd 425732006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42574
42575 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42576 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42577 skip a node whose name is obviously invalid as UTF-16,
42578 i.e. contains a NUL character. Stop the iteration when the last
42579 directory entry is found. Instead of using the return value of
42580 grub_hfsplus_btree_iterate_node, store the value in RET and use
42581 it, because the iterator can be stopped by the last directory
42582 entry.
42583
8f8a2cf8 425842006-04-30 Marco Gerards <marco@gnu.org>
42585
42586 * include/grub/env.h (grub_env_export): New prototype. Reported
42587 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42588
a27e84ce 425892006-04-30 Marco Gerards <marco@gnu.org>
42590
42591 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42592 size of the extents in a catalog file record.
42593
eaef0553 425942006-04-29 Marco Gerards <marco@gnu.org>
42595
42596 * commands/configfile.c (grub_cmd_configfile): Execute the
42597 configfile within its own context.
42598
42599 * include/grub/env.h (grub_env_context_open): New prototype.
42600 (grub_env_context_close): Likewise.
42601
42602 * kern/env.c (grub_env): Removed.
42603 (grub_env_sorted): Likewise.
42604 (grub_env_context): New variable.
42605 (grub_env_var_context): Likewise.
42606 (grub_env_find): Search both the active context and the global
42607 context.
42608 (grub_env_context_open): New function.
42609 (grub_env_context_close): Likewise.
42610 (grub_env_insert): Likewise.
42611 (grub_env_remove): Likewise.
42612 (grub_env_export): Likewise.
42613 (grub_env_set): Changed to use helper functions to avoid code
42614 duplication.
42615 (grub_env_iterate): Rewritten so both the current context and the
42616 global context are being used.
42617
42618 * normal/command.c (export_command): New function.
42619 (grub_command_init): Register the `export' function.
42620
7b455f4d 426212006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42622
42623 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42624 explicitly to suppress gcc's warnings.
42625 * fs/fat.c (grub_fat_find_dir): Likewise.
42626 (grub_fat_label): Likewise.
42627 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42628 (grub_xfs_mount): Likewise.
42629 (grub_xfs_label): Likewise.
42630 * fs/affs.c (grub_affs_mount): Likewise.
42631 (grub_affs_label): Likewise.
42632 (grub_affs_iterate_dir): Likewise.
42633 * fs/sfs.c (grub_sfs_mount): Likewise.
42634 (grub_sfs_iterate_dir): Likewise.
42635 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42636 * fs/hfs.c (grub_hfs_mount): Likewise.
42637 (grub_hfs_cmp_catkeys): Likewise.
42638 (grub_hfs_find_dir): Likewise.
42639 (grub_hfs_dir): Likewise.
42640 (grub_hfs_label): Likewise.
42641 * fs/jfs.c (grub_jfs_mount): Likewise.
42642 (grub_jfs_opendir): Likewise.
42643 (grub_jfs_getent): Likewise.
42644 (grub_jfs_lookup_symlink): Likewise.
42645 (grub_jfs_label): Likewise.
42646 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42647 (grub_hfsplus_iterate_dir): Likewise.
42648 (grub_hfsplus_btree_iterate_node): Made static.
42649
42650 * util/grub-emu.c (prefix): New variable.
42651 (grub_machine_set_prefix): New function.
42652 (main): Do not set the environment variable "prefix" here. Only
42653 set PREFIX, which is used later by grub_machine_set_prefix.
42654
42655 * include/grub/video.h: Do not include grub/symbol.h.
42656 (grub_video_register): Not exported. This symbol is not defined in
42657 the kernel.
42658 (grub_video_unregister): Likewise.
42659 (grub_video_iterate): Likewise.
42660 (grub_video_setup): Likewise.
42661 (grub_video_restore): Likewise.
42662 (grub_video_get_info): Likewise.
42663 (grub_video_get_blit_format): Likewise.
42664 (grub_video_set_palette): Likewise.
42665 (grub_video_get_palette): Likewise.
42666 (grub_video_set_viewport): Likewise.
42667 (grub_video_get_viewport): Likewise.
42668 (grub_video_map_color): Likewise.
42669 (grub_video_map_rgb): Likewise.
42670 (grub_video_map_rgba): Likewise.
42671 (grub_video_fill_rect): Likewise.
42672 (grub_video_blit_glyph): Likewise.
42673 (grub_video_blit_bitmap): Likewise.
42674 (grub_video_blit_render_target): Likewise.
42675 (grub_video_scroll): Likewise.
42676 (grub_video_swap_buffers): Likewise.
42677 (grub_video_create_render_target): Likewise.
42678 (grub_video_delete_render_target): Likewise.
42679 (grub_video_set_active_render_target): Likewise.
42680
42681 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
42682 Undefined.
42683 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
42684
42685 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
42686 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42687 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42688 instead of $(srcdir)/genkernsyms.sh.
42689
42690 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
42691 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42692 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42693 instead of $(srcdir)/genkernsyms.sh.
42694
42695 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
42696 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42697 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42698 instead of $(srcdir)/genkernsyms.sh.
42699
42700 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
42701 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
42702 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
42703 instead of $(srcdir)/genkernsyms.sh.
42704
42705 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
42706 genkernsyms.sh.
42707
42708 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
42709 genkernsyms.sh.
42710 (gensymlist.sh): New target.
42711 (genkernsyms.sh): Likewise.
42712
42713 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
42714 genkernsyms.sh.in and gensymlist.sh.in.
42715
42716 * genkernsyms.sh: Removed.
42717 * gensymlist.sh: Likewise.
f19dbdb7 42718
7b455f4d 42719 * genkernsyms.sh.in: New file.
42720 * gensymlist.sh.in: Likewise.
42721
1885bb27 427222006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42723
42724 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
42725 clobber "prefix", since we may have already set it manually.
42726
71538dff 427272006-04-25 Hollis Blanchard <hollis@penguinppc.org>
42728
42729 * kern/misc.c (abort): New alias for grub_abort.
42730
2965c7cc 427312006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
42732
42733 A new machine-specific function "grub_machine_set_prefix" is
42734 defined. This is called after loading modules, so that a prefix
42735 initialization can use modules. Also, this change adds an
42736 intensive debugging feature for the memory manager via the
42737 configure option "--enable-mm-debug".
f19dbdb7 42738
2965c7cc 42739 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
42740 PART.LEN.
42741
42742 * kern/sparc64/ieee1275/init.c (abort): Removed.
42743 (grub_stop): Likewise.
42744 (grub_exit): New function.
42745 (grub_set_prefix): Renamed to ...
42746 (grub_machine_set_prefix): ... this.
42747 (grub_machine_init): Do not call grub_set_prefix.
42748
42749 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
42750 (grub_machine_set_prefix): ... this.
42751 (grub_machine_init): Do not call grub_set_prefix.
42752
42753 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
42754 (grub_machine_init): Do not set the prefix here.
42755
42756 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
42757
42758 * kern/efi/init.c: Include grub/mm.h.
42759 (grub_efi_set_prefix): New function.
42760
42761 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
42762 (grub_efi_get_filename): New function.
42763 (grub_print_device_path): Renamed to ...
42764 (grub_efi_print_device_path): ... this.
42765
42766 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
42767 [MM_DEBUG] (grub_realloc): Likewise.
42768 [MM_DEBUG] (grub_free): Likewise.
42769 [MM_DEBUG] (grub_memalign): Likewise.
42770 [MM_DEBUG] (grub_mm_debug): New variable.
42771 [MM_DEBUG] (grub_debug_malloc): New function.
42772 [MM_DEBUG] (grub_debug_free): New function.
42773 [MM_DEBUG] (grub_debug_realloc): New function.
42774 [MM_DEBUG] (grub_debug_memalign): New function.
42775
42776 * kern/misc.c (grub_abort): Print a newline to distinguish
42777 the message.
42778
42779 * kern/main.c (grub_main): Call grub_machine_set_prefix and
42780 grub_set_root_dev after loading modules. This is necessary when
42781 setting a prefix depends on modules.
42782
42783 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
42784 (grub_efi_print_device_path): ... this.
42785 (grub_efi_get_filename): New prototype.
42786 (grub_efi_set_prefix): Likewise.
42787
42788 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
42789 and grub/disk.h.
42790 (grub_efidisk_get_device_handle): New prototype.
42791 (grub_efidisk_get_device_name): Likewise.
42792
42793 * include/grub/mm.h: Include config.h.
42794 (MM_DEBUG): Removed.
42795 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
42796 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
42797 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
42798 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
42799 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
42800 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
42801 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
42802 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
42803 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
42804
42805 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
42806
42807 * disk/efi/efidisk.c: Include grub/partition.h.
42808 (iterate_child_devices): New function.
42809 (add_device): First, compare only last device path nodes, so that
42810 devices are sorted by the types.
42811 (grub_efidisk_get_device_handle): New function.
42812 (grub_efidisk_get_device_name): Likewise.
42813
42814 * configure.ac (--enable-mm-debug): New option to enable the
42815 memory manager debugging feature. This makes the binary much
42816 bigger, so is disabled by default.
42817
9cacaa17 428182006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
42819
42820 Use grub_abort instead of grub_stop, and grub_exit must be
42821 define in each architecture now. Also, this change adds support
42822 for EFI disks.
f19dbdb7 42823
9cacaa17 42824 * util/i386/pc/grub-probefs.c: Include grub/term.h.
42825 (grub_getkey): New function.
42826 (grub_term_get_current): Likewise.
42827
42828 * util/i386/pc/grub-setup.c: Include grub/term.h.
42829 (grub_getkey): New function.
42830 (grub_term_get_current): Likewise.
42831
42832 * util/misc.c (grub_stop): Renamed to ...
42833 (grub_exit): ... this.
42834
42835 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
42836 (grub_exit): ... this.
42837 (grub_machine_init): Use grub_abort instead of abort.
42838 (grub_stop): Removed.
42839
42840 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
42841 abort.
42842
42843 * kern/i386/pc/startup.S (grub_exit): New function.
42844 (cold_reboot): New label.
42845
42846 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
42847 (grub_efi_init): Call grub_efidisk_init.
42848 (grub_efi_fini): Call grub_efidisk_fini.
42849
42850 * kern/efi/efi.c: Include grub/mm.h.
42851 (grub_efi_console_control_guid): Renamed to ...
42852 (console_control_guid): ... this.
42853 (grub_efi_loaded_image_guid): Renamed to ...
42854 (loaded_image_guid): ... this.
42855 (grub_efi_locate_handle): New function.
42856 (grub_efi_open_protocol): Likewise.
42857 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
42858 GRUB_EFI_CONSOLE_CONTROL_GUID.
42859 (grub_efi_exit): Removed.
42860 (grub_stop): Likewise.
42861 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
42862 (grub_exit): New function.
42863 (grub_print_device_path): Likewise.
42864
42865 * kern/rescue.c (grub_rescue_cmd_exit): New function.
42866 (grub_enter_rescue_mode): Register "exit".
42867
42868 * kern/misc.c (grub_real_dprintf): A cosmetic change.
42869 (grub_abort): New function.
42870
42871 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
42872
42873 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
42874
42875 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
42876
42877 * include/grub/efi/efi.h (grub_efi_exit): Removed.
42878 (grub_print_device_path): New prototype.
42879 (grub_efi_locate_handle): Likewise.
42880 (grub_efi_open_protocol): Likewise.
42881
42882 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
42883 * disk/efi/efidisk.c: Likewise.
42884
42885 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
42886
42887 * include/grub/efi/console_control.h
42888 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
42889
42890 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
42891 last 8 bytes as an array.
42892 (GRUB_EFI_DISK_IO_GUID): New macro.
42893 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
42894 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
42895 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
42896 grub_uint8_t.
42897 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
42898 (struct grub_efi_device_path): Rename the member "sub_type" to
42899 "subtype".
42900 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
42901 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
42902 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
42903 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
42904 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
42905 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
42906 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
42907 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
42908 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
42909 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
42910 (struct grub_efi_pci_device_path): New structure.
42911 (grub_efi_pci_device_path_t): New type.
42912 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
42913 (struct grub_efi_pccard_device_path): New structure.
42914 (grub_efi_pccard_device_path_t): New type.
42915 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
42916 (struct grub_efi_memory_mapped_device_path): New structure.
42917 (grub_efi_memory_mapped_device_path_t): New type.
42918 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
42919 (struct grub_efi_vendor_device_path): New structure.
42920 (grub_efi_vendor_device_path_t): New type.
42921 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
42922 (struct grub_efi_controller_device_path): New structure.
42923 (grub_efi_controller_device_path_t): New type.
42924 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
42925 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
42926 (struct grub_efi_acpi_device_path): New structure.
42927 (grub_efi_acpi_device_path_t): New type.
42928 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
42929 (struct grub_efi_expanded_acpi_device_path): New structure.
42930 (grub_efi_expanded_acpi_device_path_t): New type.
42931 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
42932 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
42933 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
42934 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
42935 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
42936 (struct grub_efi_atapi_device_path): New structure.
42937 (grub_efi_atapi_device_path_t): New type.
42938 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
42939 (struct grub_efi_fibre_channel_device_path): New structure.
42940 (grub_efi_fibre_channel_device_path_t): New type.
42941 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
42942 (struct grub_efi_1394_device_path): New structure.
42943 (grub_efi_1394_device_path_t): New type.
42944 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
42945 (struct grub_efi_usb_device_path): New structure.
42946 (grub_efi_usb_device_path_t): New type.
42947 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
42948 (struct grub_efi_usb_class_device_path): New structure.
42949 (grub_efi_usb_class_device_path_t): New type.
42950 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
42951 (struct grub_efi_i2o_device_path): New structure.
42952 (grub_efi_i2o_device_path_t): New type.
42953 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
42954 (struct grub_efi_mac_address_device_path): New structure.
42955 (grub_efi_mac_address_device_path_t): New type.
42956 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
42957 (struct grub_efi_ipv4_device_path): New structure.
42958 (grub_efi_ipv4_device_path_t): New type.
42959 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
42960 (struct grub_efi_ipv6_device_path): New structure.
42961 (grub_efi_ipv6_device_path_t): New type.
42962 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
42963 (struct grub_efi_infiniband_device_path): New structure.
42964 (grub_efi_infiniband_device_path_t): New type.
42965 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
42966 (struct grub_efi_uart_device_path): New structure.
42967 (grub_efi_uart_device_path_t): New type.
42968 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
42969 (struct grub_efi_vendor_messaging_device_path): New structure.
42970 (grub_efi_vendor_messaging_device_path_t): New type.
42971 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
42972 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
42973 (struct grub_efi_hard_drive_device_path): New structure.
42974 (grub_efi_hard_drive_device_path_t): New type.
42975 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
42976 (struct grub_efi_cdrom_device_path): New structure.
42977 (grub_efi_cdrom_device_path_t): New type.
42978 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
42979 (struct grub_efi_vendor_media_device_path): New structure.
42980 (grub_efi_vendor_media_device_path_t): New type.
42981 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
42982 (struct grub_efi_file_path_device_path): New structure.
42983 (grub_efi_file_path_device_path_t): New type.
42984 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
42985 (struct grub_efi_protocol_device_path): New structure.
42986 (grub_efi_protocol_device_path_t): New type.
42987 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
42988 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
42989 (struct grub_efi_bios_device_path): New structure.
42990 (grub_efi_bios_device_path_t): New type.
42991 (struct grub_efi_disk_io): New structure.
42992 (grub_efi_disk_io_t): New type.
42993 (struct grub_efi_block_io_media): New structure.
42994 (grub_efi_block_io_media_t): New type.
42995 (struct grub_efi_block_io): New structure.
42996 (grub_efi_block_io_t): New type.
42997
42998 * include/grub/misc.h (grub_stop): Removed.
42999 (grub_exit): New prototype.
43000 (grub_abort): Likewise.
43001
43002 * include/grub/disk.h (enum grub_disk_dev_id): Added
43003 GRUB_DISK_DEVICE_EFIDISK_ID.
43004
43005 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43006 disk/efi/efidisk.c.
43007 (kernel_syms.lst): Remove the target if an error occurs.
43008
49986a9f 430092006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43010
43011 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43012 as it was simply too buggy.
43013
970d3b8a 430142006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43015
43016 * kern/misc.c (grub_lltoa): New function.
43017 (grub_vsprintf): Added support for the long long suffix,
43018 i.e. "ll".
43019
ff04ec24 430202006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43021
43022 * Makefile.in (LDFLAGS): Add variable.
43023 (LD): Remove variable.
43024 * configure.ac: Add -m32 to LDFLAGS.
43025 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43026 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43027 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43028 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43029 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43030 variables.
43031 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43032 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43033 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43034
37e5e1a4 430352006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43036
43037 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43038 length for unknown glyph.
43039
c352d8dd 430402006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43041
2eab1c0d 43042 Add support for pre-loaded modules into the EFI port.
f19dbdb7 43043
2eab1c0d 43044 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43045 completely. Accept one more argument DIR. The caller has changed.
43046
43047 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43048
43049 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43050 (grub_efi_loaded_image_guid): New variable.
43051 (grub_efi_get_loaded_image): New function.
43052 (grub_arch_modules_addr): Likewise.
43053
43054 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43055 prototype.
43056
43057 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43058 (struct grub_efi_loaded_image): New structure.
43059 (grub_efi_loaded_image_t): New type.
43060
430612006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43062
c352d8dd 43063 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43064 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43065 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43066
6d01d6b4 430672006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43068
43069 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43070
976a4ea0 430712006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43072
43073 * DISTLIST: Added include/grub/efi/console.h,
43074 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43075 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43076
43077 * include/grub/efi/console.h: New file.
43078 * include/grub/efi/time.h: Likewise.
43079 * include/grub/i386/efi/kernel.h: Likewise.
43080 * kern/efi/init.c: Likewise.
43081 * kern/efi/mm.c: Likewise.
43082 * term/efi/console.c: Likewise.
f19dbdb7 43083
976a4ea0 43084 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43085 (grub_stop): Removed.
43086 (grub_get_rtc): Likewise.
43087 (grub_machine_init): Simply call grub_efi_init.
43088 (grub_machine_fini): Call grub_efi_fini.
43089
43090 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43091 (grub_efi_output_string): Removed.
43092 (grub_efi_stall): New function.
43093 (grub_stop): Likewise.
43094 (grub_get_rtc): Likewise.
43095
43096 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43097 (grub_efi_stall): New prototype.
43098 (grub_efi_allocate_pages): Likewise.
43099 (grub_efi_free_pages): Likewise.
43100 (grub_efi_get_memory_map): Likewise.
43101 (grub_efi_mm_init): Likewise.
43102 (grub_efi_mm_fini): Likewise.
43103 (grub_efi_init): Likewise.
43104 (grub_efi_fini): Likewise.
43105
43106 * include/grub/i386/efi/time.h: Do not include
43107 grub/symbol.h. Include grub/efi/time.h.
43108 (GRUB_TICKS_PER_SECOND): Removed.
43109 (grub_get_rtc): Likewise.
43110
43111 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43112 Added padding. The EFI spec is buggy.
43113 (GRUB_EFI_BLACK): New macro.
43114 (GRUB_EFI_BLUE): Likewise.
43115 (GRUB_EFI_GREEN): Likewise.
43116 (GRUB_EFI_CYAN): Likewise.
43117 (GRUB_EFI_RED): Likewise.
43118 (GRUB_EFI_MAGENTA): Likewise.
43119 (GRUB_EFI_BROWN): Likewise.
43120 (GRUB_EFI_LIGHTGRAY): Likewise.
43121 (GRUB_EFI_BRIGHT): Likewise.
43122 (GRUB_EFI_DARKGRAY): Likewise.
43123 (GRUB_EFI_LIGHTBLUE): Likewise.
43124 (GRUB_EFI_LIGHTGREEN): Likewise.
43125 (GRUB_EFI_LIGHTCYAN): Likewise.
43126 (GRUB_EFI_LIGHTRED): Likewise.
43127 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43128 (GRUB_EFI_YELLOW): Likewise.
43129 (GRUB_EFI_WHITE): Likewise.
43130 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43131 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43132 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43133 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43134 (GRUB_EFI_BACKGROUND_RED): Likewise.
43135 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43136 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43137 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43138 (GRUB_EFI_TEXT_ATTR): Likewise.
43139
43140 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43141 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43142 (kernel_mod_HEADERS): Added efi/time.h.
43143
83709125 431442006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43145
43146 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43147 include/grub/efi/api.h, include/grub/efi/console_control.h,
43148 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43149 include/grub/i386/efi/time.h, kern/efi/efi.c,
43150 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43151 and util/i386/efi/grub-mkimage.c.
43152
43153 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43154
43155 * genmk.rb (PModule#rule): Do not export symbols if
43156 #{prefix}_EXPORTS is set to "no".
43157
43158 * conf/i386-efi.mk: New file.
43159 * conf/i386-efi.rmk: Likewise.
43160 * include/grub/efi/api.h: Likewise.
43161 * include/grub/efi/console_control.h: Likewise.
43162 * include/grub/efi/efi.h: Likewise.
43163 * include/grub/efi/pe32.h: Likewise.
43164 * include/grub/i386/efi/time.h: Likewise.
43165 * kern/efi/efi.c: Likewise.
43166 * kern/i386/efi/init.c: Likewise.
43167 * kern/i386/efi/startup.S: Likewise.
43168 * util/i386/efi/grub-mkimage.c: Likewise.
43169
431702006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 43171
43172 * include/grub/script.h: Include <grub/parser.h> and
43173 "grub_script.tab.h".
43174 (struct grub_lexer_param): New struct.
43175 (struct grub_parser_param): Likewise.
43176 (grub_script_create_arglist): Pass the state in an argument.
43177 (grub_script_add_arglist): Likewise.
43178 (grub_script_create_cmdline): Likewise.
43179 (grub_script_create_cmdblock): Likewise.
43180 (grub_script_create_cmdif): Likewise.
43181 (grub_script_create_cmdmenu): Likewise.
43182 (grub_script_add_cmd): Likewise.
43183 (grub_script_arg_add): Likewise.
43184 (grub_script_lexer_ref): Likewise.
43185 (grub_script_lexer_deref): Likewise.
43186 (grub_script_lexer_record_start): Likewise.
43187 (grub_script_lexer_record_stop): Likewise.
43188 (grub_script_mem_record): Likewise.
43189 (grub_script_mem_record_stop): Likewise.
43190 (grub_script_malloc): Likewise.
43191 (grub_script_yylex): Likewise.
43192 (grub_script_yyparse): Likewise.
43193 (grub_script_yyerror): Likewise.
43194 (grub_script_yylex): Likewise.
43195 (grub_script_lexer_init): Return the state.
43196
43197 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43198 (grub_script_lexer_done): Likewise.
43199 (grub_script_lexer_getline): Likewise.
43200 (grub_script_lexer_refs): Likewise.
43201 (script): Likewise.
43202 (newscript): Likewise.
43203 (record): Likewise.
43204 (recording): Likewise.
43205 (recordpos): Likewise.
43206 (recordlen): Likewise.
43207 (grub_script_lexer_init): Return the state instead of setting
43208 global variables.
43209 (grub_script_lexer_ref): Use the newly added argument for state
43210 instead of globals.
43211 (grub_script_lexer_deref): Likewise.
43212 (grub_script_lexer_record_start): Likewise.
43213 (grub_script_lexer_record_stop): Likewise.
43214 (recordchar): Likewise.
43215 (nextchar): Likewise.
43216 (grub_script_yylex2): Likewise.
43217 (grub_script_yylex): Likewise.
43218 (grub_script_yyerror): Likewise.
43219
43220 * normal/parser.y (func_mem): Removed variable.
43221 (menu_entry): Likewise.
43222 (err): Likewise.
43223 (%lex-param): New parser option.
43224 (%parse-param): Likewise.
43225 (script): Always return the AST.
43226 (argument): Pass the state around.
43227 (arguments): Likewise.
43228 (grubcmd): Likewise.
43229 (commands): Likewise.
43230 (function): Likewise.
43231 (menuentry): Likewise.
43232 (if_statement): Likewise.
43233 (if): Likewise.
43234
43235 * normal/script.c (grub_script_memused): Removed variable.
43236 (grub_script_parsed): Likewise.
43237 (grub_script_malloc): Added a state argument. Use that instead of
43238 global variables.
43239 (grub_script_mem_record): Likewise.
43240 (grub_script_mem_record_stop): Likewise.
43241 (grub_script_arg_add): Likewise.
43242 (grub_script_add_arglist): Likewise.
43243 (grub_script_create_cmdline): Likewise.
43244 (grub_script_create_cmdif): Likewise.
43245 (grub_script_create_cmdmenu): Likewise.
43246 (grub_script_add_cmd): Likewise.
43247 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 43248
e2a8c904 432492006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 43250
43251 * normal/command.c (grub_command_init): Remove the title command.
43252
43253 * normal/lexer.c (grub_script_yylex): Renamed from this...
43254 (grub_script_yylex2): ... to this.
43255 (grub_script_yylex): New function. Temporary
43256 introduced to filter some tokens.
43257 (grub_script_yyerror): Print a newline.
43258
43259 * normal/main.c (read_config_file): Output information about the
43260 lines that contain errors. Wait for a key after all lines have
43261 been processed. Don't return an empty menu.
43262
43263 * normal/parser.y (func_mem): Don't initialize.
43264 (menu_entry): Likewise.
43265 (err): New variable.
43266 (script): Don't return anything when an error was encountered.
43267 (ws, returns): Removed rules.
43268 (argument): Disabled concatenated variable support.
43269 (arguments): Remove explicit separators.
43270 (grubcmd): Likewise.
43271 (function): Likewise.
43272 (menuentry): Likewise.
43273 (if): Likewise.
43274 (commands): Likewise. Add error handling.
43275
43276 * normal/script.c (grub_script_create_cmdline): If
43277 `grub_script_parsed' is 0, assume the parser encountered an error.
43278
c9a86192 432792006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43280
43281 * configure.ac: Add support for EFI. Fix the typo
43282 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43283
70f3b243 432842006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43285
43286 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43287 foreign multibyte characters should be shown correctly.
43288
65f201ad 432892006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43290
43291 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43292 calculation.
43293 (read_config_file): Made it to close file before returning.
43294
b4b93674 432952006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43296
43297 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43298 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43299 video/i386/pc/vbefill.c.
43300
43301 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43302 video/i386/pc/vbefill.c.
43303
43304 * include/grub/video.h (grub_video_blit_format): New enum.
43305 (grub_video_mode_info): Added new member blit_format.
43306 (grub_video_get_blit_format): New function prototype.
43307
43308 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43309 function prototype.
43310 (grub_video_vbe_map_rgb): Likewise.
43311 (grub_video_vbe_unmap_color): Likewise.
43312
43313 * include/grub/i386/pc/vbeblit.h: New file.
43314
43315 * include/grub/i386/pc/vbefill.h: New file.
43316
43317 * video/video.c (grub_video_get_blit_format): New function.
43318 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43319 (grub_video_vbe_map_rgb): Likewise.
43320 (grub_video_vbe_unmap_color): Likewise.
43321
43322 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43323 optimized fills.
43324 (grub_video_vbe_blit_render_target): Changed to use more optimized
43325 blits.
43326 (grub_video_vbe_setup): Added detection for optimized settings.
43327 (grub_video_vbe_create_render_target): Likewise.
43328
43329 * video/i386/pc/vbeblit.c: New file.
43330
43331 * video/i386/pc/vbefill.c: New file.
43332
c2379b9c 433332006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43334
43335 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43336 here...
43337
43338 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43339 parsing to support both hex and dec ranges. If filename was missing
43340 show usage information.
43341
bd0d7896 433422006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43343
43344 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43345 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43346
43347 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43348 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43349 (video_mod_SOURCES): Added.
43350 (video_mod_CFLAGS): Likewise.
43351 (video_mod_LDFLAGS): Likewise.
43352 (gfxterm_mod_SOURCES): Likewise.
43353 (gfxterm_mod_CFLAGS): Likewise.
43354 (gfxterm_mod_LDFLAGS): Likewise.
43355 (videotest_mod_SOURCES): Likewise.
43356 (videotest_mod_CFLAGS): Likewise.
43357 (videotest_mod_LDFLAGS): Likewise.
43358 (vesafb_mod_SOURCES): Removed.
43359 (vesafb_mod_CFLAGS): Likewise.
43360 (vesafb_mod_LDFLAGS): Likewise.
43361 (vga_mod_SOURCES): Likewise.
43362 (vga_mod_CFLAGS): Likewise.
43363 (vga_mod_LDFLAGS): Likewise.
43364
43365 * commands/videotest.c: New file.
43366
43367 * font/manager.c (fill_with_default_glyph): Modified to use
43368 grub_font_glyph.
43369 (grub_font_get_glyph): Likewise.
43370 (fontmanager): Renamed from this...
43371 (font_manager): ... to this.
43372
43373 * include/grub/font.h (grub_font_glyph): Added new structure.
43374 (grub_font_get_glyph): Modified to use grub_font_glyph.
43375
43376 * include/grub/misc.h (grub_abs): Added as inline function.
43377
43378 * include/grub/video.h: New file.
43379
43380 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43381 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43382 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43383 (grub_vbe_get_controller_info): Renamed from this...
43384 (grub_vbe_bios_get_controller_info): ... to this.
43385 (grub_vbe_get_mode_info): Renamed from this...
43386 (grub_vbe_bios_get_mode_info): ... to this.
43387 (grub_vbe_set_mode): Renamed from this...
43388 (grub_vbe_bios_set_mode): ... to this.
43389 (grub_vbe_get_mode): Renamed from this...
43390 (grub_vbe_bios_get_mode): ... to this.
43391 (grub_vbe_set_memory_window): Renamed from this...
43392 (grub_vbe_bios_set_memory_window): ... to this.
43393 (grub_vbe_get_memory_window): Renamed from this...
43394 (grub_vbe_bios_get_memory_window): ... to this.
43395 (grub_vbe_set_scanline_length): Renamed from this...
43396 (grub_vbe_set_scanline_length): ... to this.
43397 (grub_vbe_get_scanline_length): Renamed from this...
43398 (grub_vbe_bios_get_scanline_length): ... to this.
43399 (grub_vbe_set_display_start): Renamed from this...
43400 (grub_vbe_bios_set_display_start): ... to this.
43401 (grub_vbe_get_display_start): Renamed from this...
43402 (grub_vbe_bios_get_display_start): ... to this.
43403 (grub_vbe_set_palette_data): Renamed from this...
43404 (grub_vbe_bios_set_palette_data): ... to this.
43405 (grub_vbe_set_pixel_rgb): Removed.
43406 (grub_vbe_set_pixel_index): Likewise.
43407
43408 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43409 from this...
43410 (grub_vbe_bios_get_controller_info): ... to this.
43411 (grub_vbe_get_mode_info): Renamed from this...
43412 (grub_vbe_bios_get_mode_info): ... to this.
43413 (grub_vbe_set_mode): Renamed from this...
43414 (grub_vbe_bios_set_mode): ... to this.
43415 (grub_vbe_get_mode): Renamed from this...
43416 (grub_vbe_bios_get_mode): ... to this.
43417 (grub_vbe_set_memory_window): Renamed from this...
43418 (grub_vbe_bios_set_memory_window): ... to this.
43419 (grub_vbe_get_memory_window): Renamed from this...
43420 (grub_vbe_bios_get_memory_window): ... to this.
43421 (grub_vbe_set_scanline_length): Renamed from this...
43422 (grub_vbe_set_scanline_length): ... to this.
43423 (grub_vbe_get_scanline_length): Renamed from this...
43424 (grub_vbe_bios_get_scanline_length): ... to this.
43425 (grub_vbe_set_display_start): Renamed from this...
43426 (grub_vbe_bios_set_display_start): ... to this.
43427 (grub_vbe_get_display_start): Renamed from this...
43428 (grub_vbe_bios_get_display_start): ... to this.
43429 (grub_vbe_set_palette_data): Renamed from this...
43430 (grub_vbe_bios_set_palette_data): ... to this.
43431 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43432 getting corrupted after calling it. Added more pushes and pops.
43433 (grub_vbe_bios_set_mode): Likewise.
43434 (grub_vbe_bios_get_mode): Likewise.
43435 (grub_vbe_bios_get_memory_window): Likewise.
43436 (grub_vbe_bios_set_scanline_length): Likewise.
43437 (grub_vbe_bios_get_scanline_length): Likewise.
43438 (grub_vbe_bios_get_display_start): Likewise.
43439 (grub_vbe_bios_set_palette_data): Likewise.
43440
43441 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43442 (cl_insert): Likewise.
43443 (cl_delete): Likewise.
43444
43445 * term/gfxterm.c: New file.
43446
43447 * term/i386/pc/vesafb.c: Removed file.
43448
43449 * video/video.c: New file.
43450
43451 * video/i386/pc/vbe.c (real2pm): Added new function.
43452 (grub_video_vbe_draw_pixel): Likewise.
43453 (grub_video_vbe_get_video_ptr): Likewise.
43454 (grub_video_vbe_get_pixel): Likewise
43455 (grub_video_vbe_init): Likewise.
43456 (grub_video_vbe_fini): Likewise.
43457 (grub_video_vbe_setup): Likewise.
43458 (grub_video_vbe_get_info): Likewise.
43459 (grub_video_vbe_set_palette): Likewise.
43460 (grub_video_vbe_get_palette): Likewise.
43461 (grub_video_vbe_set_viewport): Likewise.
43462 (grub_video_vbe_get_viewport): Likewise.
43463 (grub_video_vbe_map_color): Likewise.
43464 (grub_video_vbe_map_rgb): Likewise.
43465 (grub_video_vbe_map_rgba): Likewise.
43466 (grub_video_vbe_unmap_color): Likewise.
43467 (grub_video_vbe_fill_rect): Likewise.
43468 (grub_video_vbe_blit_glyph): Likewise.
43469 (grub_video_vbe_blit_bitmap): Likewise.
43470 (grub_video_vbe_blit_render_target): Likewise.
43471 (grub_video_vbe_scroll): Likewise.
43472 (grub_video_vbe_swap_buffers): Likewise.
43473 (grub_video_vbe_create_render_target): Likewise.
43474 (grub_video_vbe_delete_render_target): Likewise.
43475 (grub_video_vbe_set_active_render_target): Likewise.
43476 (grub_vbe_set_pixel_rgb): Remove function.
43477 (grub_vbe_set_pixel_index): Likewise.
43478 (index_color_mode): Remove static variable.
43479 (active_mode): Likewise.
43480 (framebuffer): Likewise.
43481 (bytes_per_scan_line): Likewise.
43482 (grub_video_vbe_adapter): Added new static variable.
43483 (framebuffer): Likewise.
43484 (render_target): Likewise.
43485 (initial_mode): Likewise.
43486 (mode_in_use): Likewise.
43487 (mode_list): Likewise.
43488
5f97350b 434892006-03-10 Marco Gerards <marco@gnu.org>
43490
43491 * configure.ac (AC_INIT): Bumped to 1.93.
43492
43493 * DISTLIST: Added `include/grub/hfs.h'.
43494
a3c5c6f8 434952006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43496
43497 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43498 18H, which might help the BIOS falling back to next boot media.
43499
6de53d26 435002006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43501
43502 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43503 Poe Chen <poe.poechen@gmail.com>.
43504
77c4a393 435052006-01-17 Marco Gerards <marco@gnu.org>
43506
43507 * include/grub/normal.h: Include <grub/script.h>.
43508 (grub_command_list): Removed struct.
43509 (grub_command_list_t): Removed type.
43510 (grub_menu_entry): Remove members `num' and `command_list'. Add
43511 members `commands' and `sourcecode'.
43512 * include/grub/script.h: Add inclusion guards.
43513 (grub_script_cmd_menuentry): New struct.
43514 (grub_script_execute_menuentry): New prototype.
43515 (grub_script_lexer_record_start): Likewise.
43516 (grub_script_lexer_record_stop): Likewise.
43517 * normal/execute.c (grub_script_execute_menuentry): New function.
43518 * normal/lexer.c (record, recording, recordpos, recordlen): New
43519 variables.
43520 (grub_script_lexer_record_start): New function.
43521 (grub_script_lexer_record_stop): Likewise.
43522 (recordchar): Likewise.
43523 (nextchar): Likewise.
43524 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43525 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43526 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43527 (current_menu): New variable.
43528 (free_menu): Mainly rewritten.
43529 (grub_normal_menu_addentry): New function.
43530 (read_config_file): Rewritten.
43531 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 43532 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 43533 the menu entry.
43534 (run): Mainly rewritten.
43535 * normal/parser.y (menu_entry): New variable.
43536 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43537 (menuentry): New rule.
43538 (command): Add `menuentry'.
43539 (if_statement): Allow additional returns before `fi'.
43540 * normal/script.c (grub_script_create_cmdmenu): New function.
43541
144f1f98 435422006-01-03 Marco Gerards <marco@gnu.org>
43543
43544 * INSTALL: GNU Bison is required.
43545 * configure.ac: Rewritten the test to detect Bison.
43546 * Makefile.in (YACC): New variable. Reported by Xun Sun
43547 <xun.sun.cn@gmail.com>.
43548
af4b2d89 435492006-01-03 Marco Gerards <marco@gnu.org>
43550
43551 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43552 the HFS+ filesystem to filesystem blocks.
43553 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43554 GCC warning is silenced.
43555
15643b71 435562006-01-03 Marco Gerards <marco@gnu.org>
43557
43558 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43559 read from disk from big endian to host byte order.
43560
00905879 435612006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43562
43563 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43564 documentation.
43565 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43566 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43567 embedded HFS+ filesystem.
43568 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43569 (grub_hfs_sblock): Move from here...
43570 * include/grub/hfs.h: To here... New file.
43571 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43572 documentation.
43573 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43574 New macros.
43575 (grub_hfsplus_volheader): Change type of member `magic' to
43576 `grub_uint16_t'.
43577 (grub_hfsplus_data): Add new member `embedded_offset'.
43578 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43579 returned block.
43580 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43581 Calculate the offset.
43582
8899bc3e 435832005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43584
43585 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43586 Removed.
43587 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43588
ae8c0277 435892005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43590
43591 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43592 ENV->NAME is NULL after allocating ENV->VALUE.
43593
07084456 435942005-12-25 Marco Gerards <marco@gnu.org>
43595
43596 * kern/env.c (grub_env_set): Rewritten the error handling code.
43597
4750f5f1 435982005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43599
43600 * geninit.sh: Made more robust, and more portable.
43601
50214199 436022005-12-25 Marco Gerards <marco@gnu.org>
43603
43604 Add support for Apple HFS+ filesystems.
f19dbdb7 43605
50214199 43606 * fs/hfsplus.c: New file.
43607
43608 * DISTLIST: Added `fs/hfsplus.c'.
43609
43610 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43611 (hfsplus_mod_SOURCES): New variable.
43612 (hfsplus_mod_CFLAGS): Likewise.
43613 (hfsplus_mod_LDFLAGS): Likewise.
43614 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43615 (grub_setup_SOURCES): Likewise.
43616 (grub_mkdevicemap_SOURCES): Likewise.
43617 (grub_emu_SOURCES): Likewise.
43618 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43619
43620 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43621
43622 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43623
befaed6c 436242005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43625
43626 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43627 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43628 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43629 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43630 normal/lexer.c, normal/parser.y, normal/script.c, and
43631 partmap/gpt.c.
43632 Removed kern/sparc64/cache.c.
43633
43634 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43635 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43636 grub_emu_init.c.
43637
43638 * configure.ac (AC_INIT): Bumped to 1.92.
43639
6a124103 436402005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43641
43642 * kern/err.c (grub_error_push): Added new function to support error
43643 stacks.
43644 (grub_error_pop): Likewise.
43645 (grub_error_stack_items): New local variable to support error stacks.
43646 (grub_error_stack_pos): Likewise.
43647 (grub_error_stack_assert): Likewise.
43648 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43649 stack depth.
43650 (grub_print_error): Added support to print errors from error stack.
43651
43652 * include/grub/err.h (grub_error_push): Added function prototype.
43653 (grub_error_pop): Likewise.
43654
be973c1b 436552005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43656
43657 * configure.ac: Accept `powerpc64' as host_cpu.
43658 (amd64): Rename to `biarch32'.
43659
43660 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43661 non-cacheline-aligned addresses.
43662
43663 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43664 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
43665 if `size' is non-zero.
43666
b04216ab 436672005-12-03 Marco Gerards <mgerards@xs4all.nl>
43668
43669 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
43670 and `cd' to make sure the filename is not prefixed with a
43671 directory name.
43672 (pkgdata_MODULES): Add `gpt.mod'.
43673 (gpt_mod_SOURCES): New variable.
43674 (gpt_mod_CFLAGS): Likewise.
43675 (gpt_mod_LDFLAGS): Likewise.
43676
43677 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
43678
43679 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
43680 New macro.
43681
43682 * partmap/gpt.c: New file.
43683
43684 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
43685 GPT partition map is detected.
43686
41730ed9 436872005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
43688
43689 * commands/i386/pc/play.c: New file.
43690 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
43691 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
43692 macros.
f19dbdb7 43693
95dc3643 436942005-11-27 Marco Gerards <mgerards@xs4all.nl>
43695
43696 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
43697 ((unused))' to silence gcc warning.
43698
1569ec51 436992005-11-26 Hollis Blanchard <hollis@penguinppc.org>
43700
43701 * configure.ac: Correct `AC_PROG_YACC' test.
43702
9abde152 437032005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43704
43705 * util/powerpc/ieee1275/grub-install.in: Run the mount point
43706 check before installing files.
43707
44b83271 437082005-11-22 Mike Small <smallm@panix.com>
43709
43710 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
43711 number regex so multidigit numbers are recognized correctly.
43712
437132005-11-22 Mike Small <smallm@panix.com>
43714
43715 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
43716 debugging message before attempting to claim memory.
43717 (grub_rescue_cmd_initrd): Add a claim debugging message and try
43718 multiple addresses in case of failure.
43719
9c12956b 437202005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43721
43722 * term/tparm.c (get_space): Remove empty `if' statement.
43723
43724 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
43725
43726 * kern/parser.c (check_varstate): Rename `state' to 's'.
43727
aeaf81d9 437282005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43729
43730 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
43731 variable definitions to the beginning of each function. Sort stack
43732 variables by size.
43733 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
43734 `buf' argument to `char *'.
43735
79bbb63f 437362005-11-22 Hollis Blanchard <hollis@penguinppc.org>
43737
43738 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
43739 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 43740 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 43741 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43742 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43743 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43744 configfile.mod, search.mod, gzio.mod and test.mod.
43745 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43746 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43747 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43748 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43749 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43750 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43751 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43752 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43753 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43754 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43755 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43756 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43757 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43758 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43759 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43760 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43761 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43762 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43763 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43764 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43765 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43766 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43767 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
43768
43769 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
43770 `grep --include'.
43771 (pkgdata_MODULES): Add test.mod.
43772
233b1628 437732005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43774
43775 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
43776 appending to variables with "+=".
43777 (PModule): Use full pathname to generate *.lst filenames.
43778
43779 * Makefile.in: Fixed list rules moved from genmk.rb.
43780 (.DELETE_ON_ERROR): New special target.
43781 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
43782
43783 * conf/i386-pc.rmk: Include conf/common.mk.
43784 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 43785 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 43786 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
43787 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
43788 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
43789 configfile.mod, search.mod, gzio.mod and test.mod.
43790 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
43791 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
43792 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
43793 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
43794 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
43795 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
43796 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
43797 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
43798 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
43799 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
43800 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
43801 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
43802 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
43803 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
43804 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
43805 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
43806 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
43807 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
43808 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
43809 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
43810 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
43811 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
43812 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
43813 here...
43814 * conf/common.rmk: ... to here. New file.
43815
43816 * conf/common.mk: New file.
43817
16f820c8 438182005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
43819
43820 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
43821 (grub_script.tab.c): ... here.
43822
43823 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
43824 (grub_script.tab.c): ... here.
43825
43826 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
43827 (grub_script.tab.c): ... here.
43828
43829 * normal/command.c (grub_command_find): Fixed a memory leak of
43830 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
43831
63ba1554 438322005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43833
43834 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
43835 "@" which marks the start of a comment on ARM.
43836 (VARIABLE): Likewise.
43837
7f67dc13 438382005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
43839
79bbb63f 43840 Add support for Linux/ADFS partition tables.
7f67dc13 43841
43842 * partmap/acorn.c: New file.
43843
43844 * include/grub/acorn_filecore.h: Likewise.
43845
43846 * DISTLIST: Added `partmap/acorn.c' and
43847 `include/grub/acorn_filecore.h'.
f19dbdb7 43848
7f67dc13 43849 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43850 `partmap/acorn.c'.
43851 (pkgdata_MODULES): Add `acorn.mod'.
43852 (acorn_mod_SOURCES): New variable.
43853 (acorn_mod_CFLAGS): Likewise.
43854
43855 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43856 `partmap/acorn.c'.
43857 (pkgdata_MODULES): Add `acorn.mod'.
43858 (acorn_mod_SOURCES): New variable.
43859 (acorn_mod_CFLAGS): Likewise.
43860
43861 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
43862 (pkgdata_MODULES): Add `acorn.mod'.
43863 (acorn_mod_SOURCES): New variable.
43864 (acorn_mod_CFLAGS): Likewise.
43865 (acorn_mod_LDFLAGS): Likewise.
43866
43867 * include/types.h (grub_disk_addr_t): New typedef.
43868
6d099807 438692005-11-13 Marco Gerards <mgerards@xs4all.nl>
43870
43871 * geninit.sh: New file.
43872
43873 * geninitheader.sh: Likewise.
43874
43875 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
43876 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
43877 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
43878 * commands/configfile.c (grub_configfile_init)
43879 (grub_configfile_fini): Likewise.
43880 * commands/default.c (grub_default_init, grub_default_fini):
43881 Likewise.
43882 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
43883 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
43884 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
43885 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
43886 Likewise.
43887 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
43888 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
43889 Likewise.
43890 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 43891 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 43892 Likewise.
43893 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
43894 Likewise.
fe6b695a 43895 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 43896 Likewise.
43897 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
43898 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
43899 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
43900 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
43901 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
43902 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
43903 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
43904 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
43905 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
43906 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
43907 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
43908 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
43909 * partmap/amiga.c (grub_amiga_partition_map_init)
43910 (grub_amiga_partition_map_fini): Likewise.
43911 * partmap/apple.c (grub_apple_partition_map_init)
43912 (grub_apple_partition_map_fini): Likewise.
43913 * partmap/pc.c (grub_pc_partition_map_init)
43914 (grub_pc_partition_map_fini): Likewise.
43915 * partmap/sun.c (grub_sun_partition_map_init,
43916 grub_sun_partition_map_fini): Likewise.
43917 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
43918 Likewise.
43919
43920 * util/grub-emu.c: Include <grub_modules_init.h>.
43921 (main): Don't initialize and de-initialize any modules directly,
43922 use `grub_init_all' and `grub_fini_all' instead.
43923
43924 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
43925 `grub_vesafb_mod_init'.
43926 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
43927 all users.
43928 * term/i386/pc/vga.c (grub_vga_init): Renamed to
43929 `grub_vga_mod_init'. Updated all users.
43930 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 43931
6d099807 43932 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
43933 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
43934 rules.
43935
43936 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
43937 Generate a function to initialize the module in utilities.
43938 Updated all callers.
43939 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
43940 initialize the module in utilities. Updated all callers.
43941
9046bcf0 439422005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43943
43944 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
43945 escape sequence and a literal ^L to clear the screen.
43946
43947 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
43948 when returning from Open Firmware.
43949
d13ea639 439502005-11-09 Hollis Blanchard <hollis@penguinppc.org>
43951
43952 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
43953 (grub_ofconsole_height): Likewise.
43954 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
43955 manually insert a '\n'.
43956 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
43957 `grub_ofconsole_height'. Return early if these are already set.
43958
a8fcf206 439592005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
43960
43961 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
43962 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
43963 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
43964 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
43965 and `normal/script.c'.
43966 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43967 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43968 (test_mod_SOURCES): New variable.
43969 (test_mod_CFLAGS): Likewise.
43970 (test_mod_LDFLAGS): Likewise.
43971 (pkgdata_MODULES): Add `test.mod'.
43972 (grub_script.tab.c): New rule.
43973 (grub_script.tab.h): Likewise.
43974
b6b32745 439752005-11-07 Marco Gerards <mgerards@xs4all.nl>
43976
43977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
43978 `commands/test.c', `normal/execute.c', `normal/lexer.c',
43979 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43980 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
43981 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
43982 (test_mod_SOURCES): New variable.
43983 (test_mod_CFLAGS): Likewise.
43984 (pkgdata_MODULES): Add `test.mod'.
43985 (grub_script.tab.c): New rule.
43986 (grub_script.tab.h): Likewise.
43987
daac212a 439882005-11-06 Marco Gerards <mgerards@xs4all.nl>
43989
43990 Add initial scripting support.
43991
43992 * commands/test.c: New file.
43993 * include/grub/script.h: Likewise.
43994 * normal/execute.c: Likewise.
43995 * normal/function.c: Likewise.
43996 * normal/lexer.c: Likewise.
43997 * normal/parser.y: Likewise.
43998 * normal/script.c: Likewise.
43999
44000 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 44001
daac212a 44002 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44003 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44004 `normal/function.c' and `normal/script.c'.
44005 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44006 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 44007 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44008 variables.
daac212a 44009 (pkgdata_MODULES): Add `test.mod'.
44010 (grub_script.tab.c): New rule.
44011 (grub_script.tab.h): Likewise.
44012
44013 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44014
44015 * include/grub/normal.h (grub_test_init): New prototype.
44016 (grub_test_fini): Likewise.
f19dbdb7 44017
daac212a 44018 * normal/command.c: Include <grub/script.h>.
44019 (grub_command_execute): Rewritten.
f19dbdb7 44020
daac212a 44021 * util/grub-emu.c (main): Call `grub_test_init' and
44022 `grub_test_fini'.
44023
77500b2b 440242005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44025
44026 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44027 to 0.
44028 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44029 there are no pending characters.
44030
e45deb9e 440312005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44032
44033 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44034 `grub_strndup' to drop device arguments. Replace unnecessary
44035 `grub_strndup' with `grub_strdup'.
44036
4ce32619 440372005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44038
44039 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44040 `debug' environment variable has been set.
44041
440422005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 44043
4ce32619 44044 * Makefile.in (install-local): Use $(DATA).
44045 (uninstall): Likewise.
44046 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44047 (sbin_UTILITIES): ... to here.
44048 (sbin_SCRIPTS): New variable.
44049 (grub_install_SOURCES): New variable.
44050 * util/powerpc/ieee1275/grub-install.in: New file.
44051 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44052 variable.
44053 (add_segments): Call `grub_util_get_path'.
44054
25fe6f03 440552005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44056
44057 From Timothy Baldwin:
44058 * commands/ls.c (grub_ls_list_files): Close FILE with
44059 grub_file_close.
44060 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44061
04ccf3ec 440622005-10-24 Marco Gerards <mgerards@xs4all.nl>
44063
44064 * include/grub/parser.h: New file.
44065
44066 * kern/parser.c: Likewise.
44067
44068 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44069 (grub_setup_SOURCES): Likewise.
44070 (grub_probefs_SOURCES): Likewise.
44071 (grub_emu_SOURCES): Likewise.
44072 (kernel_img_HEADERS): Add `parser.h'.
44073
44074 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44075 (grub_emu_SOURCES): Add `kern/parser.c'.
44076 (grubof_SOURCES): Likewise.
44077
44078 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44079 (grubof_SOURCES): Add `kern/parser.c'.
44080
44081 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44082
44083 * kern/misc.c (grub_split_cmdline): Removed function.
44084
44085 * kern/rescue.c: Include <grub/parser.h>.
44086 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44087 of `grub_split_cmdline'.
44088
44089 * normal/command.c: Include <grub/parser.h>.
44090 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44091 of `grub_split_cmdline'.
44092
44093 * normal/completion.c: Include <grub/parser.h>.
44094 (cmdline_state): New variable.
44095 (iterate_dir): End the filename with a quote depending on the
44096 command line state.
44097 (get_state): new function.
44098 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44099 split the arguments and determine the current argument. When the
44100 argument string is not quoted, escape all spaces.
44101
6d8f4b0e 441022005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44103
44104 * normal/sparc64/setjmp.S: New file.
44105
15cf03ed 441062005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44107
44108 * include/grub/sparc64/libgcc.h: New file.
44109 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44110 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44111 normal/sparc64/setjmp.c.
44112
03e8661a 441132005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44114
44115 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44116 * kern/sparc64/cache.S: New file.
44117 * kern/sparc64/cache.c: Removed.
44118 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44119 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44120 -mtune=ultrasparc.
44121 (COMMON_LDFLAGS): Add -melf64_sparc.
44122 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44123 (grubof_SOURCES): Use cache.S instead of cache.c.
44124 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44125 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44126 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44127 commented though.
44128 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44129 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44130 (linux_mod_CFLAGS): Commented out.
44131 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44132 out because module isn't built.
44133 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44134 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44135 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44136 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44137 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44138 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44139 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44140 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44141 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44142 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44143 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44144 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44145 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44146 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44147
34eeec8a 441482005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44149
44150 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44151 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44152 longer, because HFS should not be used on PC.
44153
708367a3 441542005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44155
44156 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44157 consistently within the loop.
44158
6fa1251a 441592005-10-15 Marco Gerards <mgerards@xs4all.nl>
44160
44161 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44162 directory can not be read.
44163
4801580b 441642005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44165
44166 * configure.ac (AC_INIT): Increase the version number to 1.91.
44167
44168 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44169 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44170 term/i386/pc/serial.c.
44171
219ad426 441722005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44173
44174 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44175 file size must be permitted.
44176
44177 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44178 between %ah and %al.
44179
688e5699 441802005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44181
44182 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44183 grub_uint64_t.
44184 Call the hook with a NUL-terminated filename.
44185 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44186 grub_cpu_to_be32.
44187
44188 * kern/term.c (cursor_state): New variable.
44189 (grub_term_set_current): Reset the cursor state on a new
44190 terminal.
44191 (grub_setcursor): Rewritten to use CURSOR_STATE.
44192 (grub_getcursor): New function.
44193
44194 * include/grub/term.h (grub_getcursor): New prototype.
44195
44196 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44197 integers on ARM. Reported by Timothy Baldwin
44198 <T.E.Baldwin99@members.leeds.ac.uk>.
44199
bb34586c 442002005-10-11 Marco Gerards <mgerards@xs4all.nl>
44201
44202 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44203 allocated.
44204 (grub_sfs_dir): Likewise.
44205
9a909877 442062005-10-09 Marco Gerards <mgerards@xs4all.nl>
44207
44208 Add support for the SFS filesystem.
44209
44210 * fs/sfs.c: New file.
44211
44212 * DISTLIST: Added `fs/sfs.c'.
44213
44214 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44215 (grub_probefs_SOURCES): Likewise.
44216 (grub_emu_SOURCES): Likewise.
44217 (pkgdata_MODULES): Add `sfs.mod'.
44218 (sfs_mod_SOURCES): New variable.
44219 (sfs_mod_CFLAGS): Likewise.
44220 (sfs_mod_LDFLAGS): Likewise.
44221
44222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44223 (pkgdata_MODULES): Add `sfs.mod'.
44224 (sfs_mod_SOURCES): New variable.
44225 (sfs_mod_CFLAGS): Likewise.
44226
44227 * util/grub-emu.c (main): Call `grub_sfs_init' and
44228 `grub_sfs_fini'.
44229
44230 * include/grub/fs.h (grub_sfs_init): New prototype.
44231 (grub_sfs_fini): Likewise.
44232
57bdbde3 442332005-10-07 Marco Gerards <mgerards@xs4all.nl>
44234
44235 Add support for the AFFS filesystem.
44236
44237 * fs/affs.c: New file.
44238
44239 * DISTLIST: Added `fs/affs.c'.
44240
44241 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44242 (grub_probefs_SOURCES): Likewise.
44243 (grub_emu_SOURCES): Likewise.
44244 (pkgdata_MODULES): Add `affs.mod'.
44245 (affs_mod_SOURCES): New variable.
44246 (affs_mod_CFLAGS): Likewise.
44247 (affs_mod_LDFLAGS): Likewise.
44248
44249 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44250 (pkgdata_MODULES): Add `affs.mod'.
44251 (affs_mod_SOURCES): New variable.
44252 (affs_mod_CFLAGS): Likewise.
44253
44254 * util/grub-emu.c (main): Call `grub_affs_init' and
44255 `grub_affs_fini'.
44256
44257 * include/grub/fs.h (grub_affs_init): New prototype.
44258 (grub_affs_fini): Likewise.
44259
047b67e0 442602005-10-01 Marco Gerards <mgerards@xs4all.nl>
44261
44262 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44263
59b8208a 442642005-10-01 Marco Gerards <mgerards@xs4all.nl>
44265
44266 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44267 `-m32' to CFLAGS.
44268
44269 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44270 linking.
f19dbdb7 44271
59b8208a 44272 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44273 (COMMON_LDFLAGS): New variable.
44274 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44275 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44276 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44277 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44278 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44279 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44280 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44281 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44282 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44283 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44284 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44285 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44286 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44287 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44288 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44289 variables.
44290 (normal_mod_ASFLAGS): Add `-m32'.
44291
44292 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44293 (grub_host_size_t, grub_host_ssize_t): New types.
44294 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 44295 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 44296 `GRUB_HOST_SIZEOF_VOID_P'.
44297
44298 * include/grub/kernel.h (struct grub_module_header): Type of
44299 member offset changed to `grub_host_off_t'. Type of member size
44300 changed to `grub_host_size_t'.
44301 (struct grub_module_info): Type of member offset changed to
44302 `grub_host_off_t'. Type of member size changed to
44303 `grub_host_size_t'.
44304
b4093103 443052005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44306
44307 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 44308
b4093103 44309 * kern/i386/pc/startup.S (multiboot_header): New label.
44310 (multiboot_entry): Likewise.
44311 (multiboot_trampoline): Likewise.
44312
44313 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44314 Increased to 0x4A0.
44315
44316 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44317 put parentheses after a question mark.
44318 [!GRUB_UTIL] (my_mod): New variable.
44319
44320 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44321
b2499b29 443222005-09-28 Marco Gerards <mgerards@xs4all.nl>
44323
44324 Adds support for the XFS filesystem. Btrees are not supported
44325 yet.
44326
44327 * fs/xfs.c: New file.
44328
44329 * DISTLIST: Added `fs/xfs.c'.
44330
44331 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44332 (grub_probefs_SOURCES): Likewise.
44333 (grub_emu_SOURCES): Likewise.
44334 (pkgdata_MODULES): Add `xfs.mod'.
44335 (xfs_mod_SOURCES): New variable.
44336 (xfs_mod_CFLAGS): Likewise.
44337
44338 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44339 (pkgdata_MODULES): Add `xfs.mod'.
44340 (xfs_mod_SOURCES): New variable.
44341 (xfs_mod_CFLAGS): Likewise.
44342
44343 * util/grub-emu.c (main): Call `grub_xfs_init' and
44344 `grub_xfs_fini'.
44345
44346 * include/grub/fs.h (grub_xfs_init): New prototype.
44347 (grub_xfs_fini): Likewise.
44348
f19dbdb7 44349
83d37a62 443502005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44351
44352 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44353 color modes, allow greater than 16 colors to be configured as
44354 a default palette.
44355
47d2d65e 443562005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44357
44358 * normal/completion.c (complete_arguments): Add the qualifier
44359 const into OPTIONS.
44360
44361 From Omniflux <omniflux+lists@omniflux.com>:
44362 * include/grub/terminfo.h: New file.
44363 * include/grub/tparm.h: Likewise.
44364 * include/grub/i386/pc/serial.h: Likewise.
44365 * term/terminfo.c: Likewise.
44366 * term/tparm.c: Likewise.
44367 * term/i386/pc/serial.c: Likewise.
44368 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44369 serial.mod.
44370 (terminfo_mod_SOURCES): New variable.
44371 (terminfo_mod_CFLAGS): Likewise.
44372 (serial_mod_SOURCES): Likewise.
44373 (serial_mod_CFLAGS): Likewise.
44374
48b671ff 443752005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44376
44377 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44378 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44379 and kern/powerpc/ieee1275/cmain.c, respectively.
44380
44381 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44382 * kern/powerpc/ieee1275/crt0.S: ... here.
44383
44384 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44385 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 44386
48b671ff 44387 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44388 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44389 instead of boot/powerpc/ieee1275/crt0.S and
44390 boot/powerpc/ieee1275/cmain.c, respectively.
44391
44392 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44393 sectors. It was not used anyway.
44394
09fc77a7 443952005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44396
44397 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44398 `unused parameter' warning.
44399
003789c7 444002005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44401
44402 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44403 function.
44404 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44405 getcharwidth.
44406
67f44c86 444072005-08-28 Marco Gerards <metgerards@student.han.nl>
44408
44409 * include/grub/normal.h (enum grub_completion_type): Added
44410 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44411
44412 * normal/cmdline.c (print_completion): Handle
44413 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44414 * normal/menu_entry.c (store_completion): Likewise.
44415
44416 * normal/completion.c (complete_arguments): New function.
44417 (grub_normal_do_completion): Call `complete_arguments' when the
44418 current words start with a dash.
44419
0b5abe02 444202005-08-27 Marco Gerards <metgerards@student.han.nl>
44421
44422 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44423 `gzio.mod' instead of `io.mod').
44424
d9864ee1 444252005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44426
44427 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44428 (DISTDIRS): Added io and video.
44429 Rewrite the search routine to make an output consistently.
44430
44431 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44432 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44433 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44434 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44435 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44436 util/powerpc/ieee1275/misc.c.
f19dbdb7 44437
d9864ee1 44438 * include/grub/gzio.h: New file.
44439 * io/gzio.c: Likewise.
f19dbdb7 44440
d9864ee1 44441 * kern/file.c (grub_file_close): Call grub_device_close only if
44442 FILE->DEVICE is not NULL.
44443
44444 * include/grub/mm.h [!NULL] (NULL): New macro.
44445
44446 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44447
44448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44449 (pkgdata_MODULES): Added gzio.mod.
44450 (gzio_mod_SOURCES): New variable.
44451 (gzio_mod_CFLAGS): Likewise.
44452
44453 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44454 (pkgdata_MODULES): Added gzio.mod.
44455 (gzio_mod_SOURCES): New variable.
44456 (gzio_mod_CFLAGS): Likewise.
44457
44458 * commands/cat.c: Include grub/gzio.h.
44459 (grub_cmd_cat): Use grub_gzfile_open instead of
44460 grub_file_open.
f19dbdb7 44461
d9864ee1 44462 * commands/cmp.c: Include grub/gzio.h.
44463 (grub_cmd_cmp): Use grub_gzfile_open instead of
44464 grub_file_open.
44465
44466 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44467 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44468 grub_file_open.
44469 (grub_rescue_cmd_module): Likewise.
44470
fa46f4b5 444712005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44472
44473 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44474 kern/sparc64/ieee1275/init.c because it contains _start.
44475 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44476
e9211b5d 444772005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44478
44479 * configure.ac: Add support for sparc64 host with ieee1275
44480 firmware.
44481 * configure: Generated from configure.ac.
44482 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44483 instead of int.
44484 (grub_ofdisk_read): Likewise.
44485 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44486 pointers as (void *) to remove a warning.
44487 (grub_ofdisk_close): Likewise.
44488 (grub_ofdisk_read): Likewise.
44489 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44490 returns, so make it return void to remove a warning.
44491 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44492 Corresponding prototype change.
44493 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44494 values, and cast the pointers as (void *) to remove a warning.
44495 (grub_mm_dump): Likewise.
44496 * conf/sparc64-ieee1275.mk: New file.
44497 * conf/sparc64-ieee1275.rmk: Likewise.
44498 * include/grub/sparc64/setjmp.h: Likewise.
44499 * include/grub/sparc64/types.h: Likewise.
44500 * include/grub/sparc64/ieee1275/console.h: Likewise.
44501 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44502 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44503 * include/grub/sparc64/ieee1275/time.h: Likewise.
44504 * kern/sparc64/cache.c: Likewise.
44505 * kern/sparc64/dl.c: Likewise.
44506 * kern/sparc64/ieee1275/init.c: Likewise.
44507 * kern/sparc64/ieee1275/openfw.c: Likewise.
44508
385c6a92 445092005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44510
44511 * util/console.c (grub_ncurses_putchar): If C is greater than
44512 0x7f, set C to a question mark.
44513 (grub_ncurses_getcharwidth): New function.
44514 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44515 getcharwidth.
44516
44517 * normal/menu.c (print_entry): Made aware of Unicode. First,
44518 convert TITLE to UCS-4, and predict the cursor position by
44519 grub_getcharwidth.
44520
44521 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44522 const to SRC.
44523 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44524
16ccb8b1 445252005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44526
44527 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44528 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44529 grub_strcat.
44530
44531 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44532 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44533 grub_strcpy and grub_strlen. Take it into account that a space
44534 character is inserted as a delimiter.
44535
6a85ce79 445362005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44537
44538 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 44539 invalid magic in the error.
6a85ce79 44540
44541 * commands/search.c: New file.
f19dbdb7 44542
6a85ce79 44543 * util/grub-emu.c (main): Call grub_search_init and
44544 grub_search_fini.
44545
44546 * kern/rescue.c (grub_rescue_print_disks): Removed.
44547 (grub_rescue_print_devices): New function.
44548 (grub_rescue_cmd_ls): Use grub_device_iterate with
44549 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44550 grub_rescue_print_disks.
44551
44552 * kern/partition.c (grub_partition_iterate): Return the result of
44553 PARTMAP->ITERATE instead of GRUB_ERRNO.
44554
44555 * kern/device.c: Include grub/partition.h.
44556 (grub_device_iterate): New function.
44557
44558 * include/grub/partition.h (grub_partition_iterate): Return int
44559 instead of grub_err_t.
44560
44561 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44562 prototype.
44563 [GRUB_UTIL] (grub_search_fini): Likewise.
44564
44565 * include/grub/device.h (grub_device_iterate): New prototype.
44566
44567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44568 commands/search.c.
44569 (pkgdata_MODULES): Added search.mod.
44570 (search_mod_SOURCES): New variable.
44571 (search_mod_CFLAGS): Likewise.
44572
44573 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44574 (pkgdata_MODULES): Added search.mod.
44575 (search_mod_SOURCES): New variable.
44576 (search_mod_CFLAGS): Likewise.
44577
44578 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44579 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44580 All callers changed.
44581
44582 * DISTLIST: Added commands/search.c.
44583
ef095434 445842005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44585
44586 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44587 conversion.
44588 (grub_getcharwidth): New function.
44589
44590 * kern/misc.c (grub_utf8_to_ucs4): New function.
44591
44592 * include/grub/term.h (struct grub_term): Added a new member
44593 "getcharwidth".
44594 (grub_getcharwidth): New prototype.
44595
44596 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44597
44598 * term/i386/pc/console.c (map_char): New function. Segregated from
44599 grub_console_putchar.
44600 (grub_console_putchar): Use map_char.
44601 (grub_console_getcharwidth): New function.
44602 (grub_console_term): Specified grub_console_getcharwidth as
44603 getcharwidth.
44604
44605 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44606 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44607
44608 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44609 GRUB_ERRNO.
44610 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44611 on grub_strtoul completely.
44612 (write_char): Declare local variables in the beginning of the
44613 function.
44614 (grub_vesafb_getcharwidth): New function.
44615 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44616 getcharwidth.
44617
1f0a95e4 446182005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44619
44620 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44621 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44622 commands/i386/pc/vbetest.c.
44623
44624 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44625 call grub_vbe_get_controller_info again, because the returned
44626 information is volatile.
44627 (grub_vbe_set_video_mode): Mostly rewritten.
44628 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44629 grub_vbe_status_t correctly.
44630 (grub_vbe_get_video_mode_info): Likewise.
44631 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44632 several if statements.
44633
44634 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44635 * commands/i386/pc/vbeinfo.c: ... this.
44636
44637 * commands/i386/pc/vbe_test.c: Renamed to ...
44638 * commands/i386/pc/vbetest.c: ... this.
44639
44640 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44641 ...
44642 (grub_cmd_vbeinfo): ... this. Save video modes before
44643 iterating. Skip a video mode, if it is not available, not enough
44644 information is given or it is monochrome. Show the memory
44645 model. Leave the interpretation of MODEVAR to grub_strtoul
44646 completely.
44647 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44648 (GRUB_MOD_FINI): Likewise.
44649
44650 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44651 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44652 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44653 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44654 grub_strtoul completely.
44655 (real2pm): Removed.
44656 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44657 (GRUB_MOD_FINI): Likewise.
44658
44659 * normal/misc.c: Include grub/mm.h.
44660
44661 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44662 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44663 (vbe_list_modes_mod_SOURCES): Removed.
44664 (vbe_list_modes_mod_CFLAGS): Likewise.
44665 (vbe_test_mod_SOURCES): Likewise.
44666 (vbe_test_mod_CFLAGS): Likewise.
44667 (vbeinfo_mod_SOURCES): New variable.
44668 (vbeinfo_mod_CFLAGS): Likewise.
44669 (vbetest_mod_SOURCES): Likewise.
44670 (vbetest_mod_CFLAGS): Likewise.
44671
992ffbbe 446722005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
44673
44674 * normal/misc.c: New file.
44675
44676 * DISTLIST: Added normal/misc.c.
f19dbdb7 44677
992ffbbe 44678 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
44679 DISK to HOOK. Call HOOK with DISK.
44680 * partmap/apple.c (apple_partition_map_iterate): Likewise.
44681 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44682 * partmap/sun.c (sun_partition_map_iterate): Likewise.
44683
44684 * normal/menu_entry.c (struct screen): Added a new member
44685 "completion_shown".
44686 (completion_buffer): New global variable.
44687 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
44688 (store_completion): New function.
44689 (complete): Likewise.
44690 (clear_completions): Likewise.
44691 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
44692 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
44693 a tab, call complete.
44694
44695 * normal/completion.c (disk_dev): Removed.
44696 (print_simple_completion): Likewise.
44697 (print_partition_completion): Likewise.
44698 (print_func): New global variable.
44699 (add_completion): Do not take the arguments WHAT or PRINT any
44700 longer. Added a new argument TYPE. Instead of printing directly,
44701 call PRINT_FUNC if not NULL.
44702 All callers changed.
44703 (complete_device): Use a local variable DEV instead of
44704 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
44705 (grub_normal_do_completion): Take a new argument HOOK. Do not
44706 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
44707 empty string, return NULL instead.
44708 All callers changed.
44709
44710 * normal/cmdline.c (print_completion): New function.
44711
44712 * kern/partition.c (grub_partition_iterate): Add an argument DISK
44713 to HOOK.
44714 All callers changed.
44715
44716 * kern/disk.c (grub_print_partinfo): Removed.
44717
44718 * include/grub/partition.h (struct grub_partition_map): Add a new
44719 argument DISK into HOOK of ITERATE.
44720 (grub_partition_iterate): Add a new argument DISK to HOOK.
44721
44722 * include/grub/normal.h (enum grub_completion_type): New enum.
44723 (grub_completion_type_t): New type.
44724 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
44725 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
44726 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
44727 (GRUB_COMPLETION_TYPE_FILE): Likewise.
44728 (grub_normal_do_completion): Added a new argument HOOK.
44729 (grub_normal_print_device_info): New prototype.
44730
44731 * include/grub/disk.h (grub_print_partinfo): Removed.
44732
44733 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
44734 (normal_mod_SOURCES): Likewise.
44735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44736 (normal_mod_SOURCES): Likewise.
44737
44738 * commands/ls.c (grub_ls_list_disks): Use
44739 grub_normal_print_device_info instead of grub_print_partinfo. Free
44740 PNAME.
44741 (grub_ls_list_files): Use grub_normal_print_device_info instead of
44742 duplicating the code.
44743
0bd41162 447442005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44745
44746 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 44747 follow GCS more precisely.
44748 * commands/i386/pc/vbe_test.c: Likewise.
44749 * include/grub/i386/pc/vbe.h: Likewise.
44750 * term/i386/pc/vesafb.c: Likewise.
44751 * video/i386/pc/vbe.c: Likewise.
0bd41162 44752
6323696a 447532005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
44754
44755 * DISTLIST: Added term/i386/pc/vesafb.c
44756 DISTLIST: Added video/i386/pc/vbe.c
44757 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
44758 DISTLIST: Added commands/i386/pc/vbe_test.c.
44759 * commands/i386/pc/vbe_list_modes.c: New file.
44760 * commands/i386/pc/vbe_test.c: Likewise.
44761 * term/i386/pc/vesafb.c: Likewise.
44762 * video/i386/pc/vbe.c: Likewise.
44763 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
44764 (grub_vbe_probe) Added prototype.
44765 (grub_vbe_set_video_mode) Likewise.
44766 (grub_vbe_get_video_mode) Likewise.
44767 (grub_vbe_get_video_mode_info) Likewise.
44768 (grub_vbe_set_pixel_rgb) Likewise.
44769 (grub_vbe_set_pixel_index) Likewise.
44770 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
44771 (pkgdata_MODULES): Added vesafb.mod.
44772 (pkgdata_MODULES): Added vbe_list_modes.mod.
44773 (pkgdata_MODULES): Added vbe_test.mod.
44774 (vbe_mod_SOURCES): Added.
44775 (vbe_mod_CFLAGS): Likewise.
44776 (vesafb_mod_SOURCES): Likewise.
44777 (vesafb_mod_CFLAGS): Likewise.
44778 (vbe_list_modes_mod_SOURCES): Likewise.
44779 (vbe_list_modes_mod_CFLAGS): Likewise.
44780 (vbe_test_mod_SOURCES): Likewise.
44781 (vbe_test_mod_CFLAGS): Likewise.
44782
0a74e62f 447832005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
44784
0a74e62f 44785 * normal/command.c (grub_command_execute): If INTERACTIVE is
44786 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
44787 CMDLINE. Disable the pager if INTERACTIVE is true.
44788 All callers are changed.
44789
44790 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
44791 before reading a config file.
44792 * normal/main.c (read_config_file): Even if a command is not
44793 found, register it if it is within an entry.
44794
44795 * util/grub-emu.c: Include sys/types.h and unistd.h.
44796 (options): Added --hold.
44797 (struct arguments): Added a new member "hold".
44798 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
44799 missing.
44800 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
44801 cleared by a debugger, if it is not zero.
44802
44803 * include/grub/normal.h (grub_command_execute): Add an argument
44804 INTERACTIVE.
44805
e51f85ae 448062005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
44807
44808 * DISTLIST: Added include/grub/i386/pc/vbe.h.
44809
e9c6f39b 448102005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
44811
44812 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
44813 program with another one, because the old one didn't detect a bug
44814 in gcc-3.4. Always use regparm 2, because the new test is still
44815 not enough for gcc-4.0. Someone must investigate a simple test
44816 case which detects a bug in gcc-4.0.
44817
8de3495c 448182005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
44819
44820 * DISTLIST: Added normal/completion.c.
44821
44822 * normal/completion.c: New file.
f19dbdb7 44823
8de3495c 44824 * term/i386/pc/console.c (grub_console_getwh): New function.
44825 (grub_console_term): Assign grub_console_getwh to getwh.
44826
44827 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
44828 function is defined in normal/completion.c as
44829 grub_normal_do_completion.
44830 (grub_cmdline_get): Use grub_normal_do_completion instead of
44831 grub_tab_complete.
44832
44833 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
44834 returns non-zero, otherwise return 0.
44835 (grub_partition_iterate): First, probe the partition map. Then,
44836 call ITERATE only for this partition map.
44837
44838 * kern/misc.c (grub_strncmp): Rewritten.
44839
44840 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
44841 returns non-zero. Otherwise return 0.
44842
44843 * include/grub/partition.h (grub_partition_map_iterate): Return
44844 int instead of void.
44845
44846 * include/grub/normal.h (grub_normal_do_completion): New prototype.
44847
44848 * include/grub/misc.h (grub_strncmp): Change the type of N to
44849 grub_size_t.
44850
44851 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
44852 of void.
44853
44854 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 44855 unsigned explicitly before comparing it with I.
8de3495c 44856
44857 * kern/main.c (grub_env_write_root): Add the attribute unused into
44858 VAR.
44859
44860 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44861 normal/completion.c.
44862 (normal_mod_SOURCES): Likewise.
44863 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
44864 (normal_mod_SOURCES): Likewise.
44865
44866 * normal/command.c (grub_iterate_commands): If ITERATE returns
44867 non-zero, return one immediately.
44868
e85e144b 448692005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
44870
44871 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
44872 * kern/i386/pc/startup.S: Updated Global Descriptor table's
44873 descriptions.
44874 (grub_vbe_get_controller_info): New function.
44875 (grub_vbe_get_mode_info): Likewise.
44876 (grub_vbe_set_mode): Likewise.
44877 (grub_vbe_get_mode): Likewise.
44878 (grub_vbe_set_memory_window): Likewise.
44879 (grub_vbe_get_memory_window): Likewise.
44880 (grub_vbe_set_scanline_length): Likewise.
44881 (grub_vbe_get_scanline_length): Likewise.
44882 (grub_vbe_set_display_start): Likewise.
44883 (grub_vbe_get_display_start): Likewise.
44884 (grub_vbe_set_palette_data): Likewise.
44885 * include/grub/i386/pc/vbe.h: New file.
44886
c46153d2 448872005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44888
44889 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44890 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
44891 * DISTLIST: Likewise.
44892 * kern/ieee1275/of.c: Moved to ...
44893 * kern/ieee1275/ieee1275.c: ... here.
44894
0cb90c45 448952005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44896
44897 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
44898 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
44899 Pass 0 as `end' parameter to grub_strtoul().
44900
a19fb360 449012005-08-08 Hollis Blanchard <hollis@penguinppc.org>
44902
44903 * include/grub/powerpc/ieee1275/console.h: Do not include
44904 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
44905 ifdef.
44906 (grub_console_cur_color): Remove i386-specific prototype.
44907 (grub_console_real_putchar): Likewise.
44908 (grub_console_checkkey): Likewise.
44909 (grub_console_getkey): Likewise.
44910 (grub_console_getxy): Likewise.
44911 (grub_console_gotoxy): Likewise.
44912 (grub_console_cls): Likewise.
44913 (grub_console_setcursor): Likewise.
44914 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
44915 Include <grub/machine/console.h>.
44916 * term/ieee1275/ofconsole.c: Likewise.
44917
4ac9bd04 449182005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
44919
44920 * Makefile.in (LIBLZO): New variable.
44921
44922 * configure.ac: Check for LZO version 2.
44923
44924 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
44925 lzo/lzo1x.h instead of lzo1x.h.
44926
44927 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
44928 of -llzo.
44929
44930 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
44931 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
44932
44933 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
44934 copying the data from PARTITION to P.
44935
f4917dfd 449362005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44937
44938 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
44939 negative, unload the module.
44940
44941 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
44942 map is "pc_partition_map" but not "pc".
44943 (usage): Fix the description. The options are --boot-image and
44944 --core-image but not --boot-file or --core-file.
44945 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
44946 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
44947 DEFAULT_DIRECTORY.
44948
44949 * util/i386/pc/grub-install.in: Do not specify --boot-file or
44950 --core-file. Specify INSTALL_DEVICE as an argument.
44951
44952 * util/console.c: Include config.h.
44953 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
44954 [HAVE_NCURSES_H]: Include ncurses.h.
44955 [HAVE_CURSES_H]: Include curses.h.
44956 [!A_NORMAL] (A_NORMAL): Defined as zero.
44957 [!A_STANDOUT] (A_STANDOUT): Likewise.
44958
44959 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
44960 -lncurses.
44961 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
44962
44963 * configure.ac: Check for curses libraries and headers.
44964
44965 * Makefile.in (LIBCURSES): New variable.
44966
44967 * genmk.rb (Script::rule): Set the executable bits.
44968
44969 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
44970 name of the PC partition map is "pc_partition_map" but not "pc".
44971
0e143073 449722005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44973
44974 * util/i386/pc/grub-install.in (grub_probefs): New variable.
44975 (modules): Likewise.
44976 (usage): Added descriptions for --modules and --grub-probefs.
44977 Handle --modules and --grub-probefs. Save the arguments in MODULES
44978 and GRUB_PROBEFS, respectively.
44979 Auto-detect a filesystem module against GRUBDIR. If the result is
44980 empty and modules are not specified explicitly, abort the
44981 installation. Add the result to MODULES.
44982
44983 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
44984 disk/powerpc/ieee1275/ofdisk.c,
44985 include/grub/powerpc/ieee1275/init.h and
44986 term/powerpc/ieee1275/ofconsole.c.
44987 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
44988 term/ieee1275/ofconsole.c.
44989
44990 * include/grub/powerpc/ieee1275/console.h: Resurrected.
44991
44992 * COPYING: Upgraded to the latest version. Only the address of the
44993 FSF office has changed.
f19dbdb7 44994
efd6e6d5 449952005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
44996
44997 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
44998 kern/ieee1275.c with kern/ieee1275/of.c.
44999
45000 * kern/ieee1275.c: Moved to ...
45001 * kern/ieee1275/of.c: ... here.
45002
8ceafda2 450032005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45004
45005 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 45006 readability.
8ceafda2 45007
45008 * config.guess: Updated to the latest version from gnulib.
45009 * config.sub: Likewise.
45010 * install.sh: Likewise.
45011 * mkinstalldirs: Likewise.
45012
45013 * include/grub/console.h: Removed. This file is arch-specific. Do
45014 not put this in include/grub.
45015
45016 * include/grub/i386/pc/console.h: Resurrected.
45017
45018 * util/console.c: Include grub/machine/console.h instead of
45019 grub/console.h.
45020 * util/grub-emu.c: Likewise.
45021
267f6cd9 450222005-08-04 Marco Gerards <metgerards@student.han.nl>
45023
45024 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45025 hardcoded value.
f19dbdb7 45026
267f6cd9 45027 From Vincent Pelletier <subdino2004@yahoo.fr>
45028 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45029 Redefined to use grub_getwh.
45030 (grub_term): New member named getwh.
45031 (grub_getwh): New prototype.
45032 * kern/term.c (grub_getwh): New function.
45033 * term/i386/pc/console.c (grub_console_getwh): New function.
45034 (grub_console_term): New member `getwh'.
45035 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45036 (grub_vga_term): New member `getwh'.
0b5abe02 45037 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 45038 grub_ssize_t.
45039 (grub_ofconsole_getw): New function.
45040 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45041 (grub_ofconsole_term): New field named getwh and new initial
45042 value.
45043
3be7266d 450442005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45045
45046 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45047 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45048 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45049 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45050 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45051 of <grub/machine/ieee1275.h>.
45052 * commands/ieee1275/reboot.c: Likewise.
45053 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45054 * kern/ieee1275.c: ... to here. All users updated. Change all
45055 parameter structs to use new type `grub_ieee1275_cell_t'.
45056 * term/powerpc/ieee1275/ofconsole.c: Move ...
45057 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45058 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45059 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45060 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45061 to return int.
45062 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45063 Remove unused prototypes. All users updated.
45064 * include/grub/powerpc/ieee1275/console.h: Removed.
45065 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45066 `grub_ieee1275_cell_t'.
45067 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45068 Cast comparisons with -1 to the correct type.
45069 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45070 type to match `grub_ieee1275_entry_fn'.
45071
8b5f3938 450722005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45073
45074 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45075
45076 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45077 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45078 partmap/sun.c.
45079 (grub_probefs_SOURCES): New variable.
45080
45081 * util/i386/pc/grub-probefs.c: New file.
45082
45083 * util/i386/pc/grub-setup.c (main): Call
45084 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45085 grub_hfs_init and grub_jfs_init to initialize the system. Call
45086 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45087 grub_pc_partition_map_fini to finish the system.
45088
ea409713 450892005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45090
45091 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45092 function.
45093 (grub_multiboot_load_elf32): Likewise.
45094 (grub_multiboot_is_elf64): Likewise.
45095 (grub_multiboot_load_elf64): Likewise.
45096 (grub_multiboot_load_elf): Likewise.
45097 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45098 an ELF32 or ELF64 file.
45099 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45100
45101 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45102 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45103 NULL before calling FS->LABEL.
45104 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45105 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45106 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45107 before calling FS->LABEL.
45108
141a288b 451092005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45110
45111 * util/i386/pc/grub-install.in (datadir): New variable.
45112 (libdir): Removed.
45113 (pkgdatadir): New variable.
45114 (pkglibdir): Removed.
45115
0d5f8a54 451162005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45117
45118 * DISTLIST: Added util/i386/pc/grub-install.in.
45119
45120 * util/i386/pc/grub-install.in: New file.
45121
45122 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45123 (grub_install_SOURCES): Likewise.
45124
45125 * genmk.rb: Added support for scripts.
45126 (Script): New class.
45127 (scripts): New variable.
45128
45129 * Makefile.in (install-local): Install sbin_SCRIPTS by
45130 INSTALL_SCRIPT.
45131 (uninstall): Remove sbin_SCRIPTS.
45132
45133 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45134 device, try to get a GRUB device by
45135 grub_util_biosdisk_get_grub_dev.
45136 Free DEST_DEV.
45137
45138 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45139 description for --device-map.
45140
5f968e1e 451412005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45142
45143 Change the semantics of variable hooks. They now return strings
45144 instead of error values.
f19dbdb7 45145
5f968e1e 45146 * util/i386/pc/grub-setup.c: Include grub/env.h.
45147 (setup): Use grub_device_set_root instead of grub_env_set.
45148
45149 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45150 grub_env_get instead of grub_device_set_root and
45151 grub_device_get_root, respectively.
45152
45153 * kern/main.c (grub_env_write_root): New function.
45154 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45155 grub_env_set instead of grub_device_set_root.
45156
45157 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45158 many variables.
45159 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45160 rather than calling ENV->WRITE_HOOK afterwards.
45161 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45162 passing a pointer of a pointer.
45163 (grub_register_variable_hook): Change the types of "read_hook" and
45164 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45165 respectively.
45166 Allocate the default empty string on the heap, because this string
45167 may be freed later.
45168
45169 * kern/device.c: Include grub/env.h.
45170 (grub_device_set_root): Removed.
45171 (grub_device_get_root): Likewise.
45172 (grub_device_open): Use grub_env_get instead of
45173 grub_device_get_root.
45174
45175 * include/grub/env.h (grub_env_read_hook_t): New type.
45176 (grub_env_write_hook_t): Likewise.
45177 (grub_env_var): Change the types of "read_hook" and "write_hook"
45178 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45179 (grub_register_variable_hook): Likewise.
45180
45181 * include/grub/device.h (grub_device_set_root): Removed.
45182 (grub_device_set_root): Likewise.
45183
45184 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45185 make sure that DIRNAME terminates with '/', so that
45186 grub_fat_find_dir will fail if PATH is not a directory.
45187
45188 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45189 from DIRNAME.
45190 Use the qualifier auto for print_files and print_files_long.
45191 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45192 as a regular file.
45193 Put a newline only if there is no error.
45194 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45195 used.
45196
896f0afd 451972005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45198
45199 * kern/partition.c (grub_partition_probe): Initialize PART to
45200 NULL. Otherwise, when no partition map is registered, this returns
45201 a garbage.
45202
b28b81b2 452032005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45204
45205 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45206 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45207 valid.
45208
5f3607e0 452092005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45210
45211 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45212 information on each device, if it does not have partitions. Print
45213 "Device" instead of "Disk", because this function is not specific
45214 to disk devices.
45215
45216 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45217 static to ensure that it is put on the memory rather than a
45218 register.
45219
502c87e8 452202005-07-17 Yoshinori Okuji <okuji@enbug.org>
45221
45222 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45223 (grub_cat_init): Likewise.
45224 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45225 (options): Likewise.
45226 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45227 (grub_configfile_init): Likewise.
45228 * font/manager.c (GRUB_MOD_INIT): Likewise.
45229 * commands/help.c (GRUB_MOD_INIT): Likewise.
45230 (grub_help_init): Likewise.
45231 * normal/command.c (grub_command_init): Likewise.
45232 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45233 * disk/loopback.c (grub_loop_init): Likewise.
45234 (GRUB_MOD_INIT): Likewise.
45235 * commands/ls.c (grub_ls_init): Likewise.
45236 (GRUB_MOD_INIT): Likewise.
45237 (options): Likewise.
45238 * commands/boot.c (grub_boot_init): Likewise.
45239 (GRUB_MOD_INIT): Likewise.
45240 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45241 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45242 (GRUB_MOD_INIT): Likewise.
45243 * commands/cmp.c (grub_cmp_init): Likewise.
45244 (GRUB_MOD_INIT): Likewise.
45245
45246 * normal/arg.c: Use <> instead of "" to include header files.
45247 (SHORT_ARG_HELP): New macro.
45248 (SHORT_ARG_USAGE): Likewise.
45249 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45250 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45251 descriptions.
45252 (find_short): Check if C is 'h' or 'u' explicitly.
45253 (grub_arg_show_help): Use space characters instead of tabs. Treat
45254 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45255 are shown with --help and --usage only if they are not used for
45256 the command itself.
45257 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45258 'h' and 'u'.
45259
45260 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45261 const into "longarg". Change the type of "shortarg" to int.
45262
f806d18e 452632005-07-17 Yoshinori Okuji <okuji@enbug.org>
45264
45265 * boot/i386/pc/boot.S (boot_drive_check): New label.
45266
45267 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45268 macro.
45269
45270 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45271 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45272
e293232b 452732005-07-17 Yoshinori Okuji <okuji@enbug.org>
45274
45275 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45276 When turning off Gate A20, skip the check and return immediately,
45277 because this is not fatal usually.
45278
ebedfd00 452792005-07-17 Yoshinori Okuji <okuji@enbug.org>
45280
45281 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45282 be 0x7C00 instead of 0x8000.
45283
45284 * boot/i386/pc/pxeboot.S: Rewritten.
45285
45286 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45287 EXT_C.
45288 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45289 result.
45290
654fc59f 452912005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45292
45293 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45294 robustness. This routine now supports a BIOS call and System
45295 Control Port A to modify the gate A20.
45296
45297 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45298 Increased to 0x440.
45299
09f9923f 453002005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45301
45302 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45303 device path and resulting ihandle.
45304 (grub_ofdisk_close): dprintf the ihandle being closed.
45305 (grub_ofdisk_read): dprintf function parameters.
45306 * kern/mm.c (grub_mm_init_region): Likewise.
45307 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45308 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45309 size, and boot arguments.
45310 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45311 before loading into memory.
45312 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45313 before loading into memory.
45314
7ef504d8 453152005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45316
45317 * kern/mm.c: Added much documentation.
45318 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45319 8, set to 5 instead of 8.
45320
e0f050c2 453212005-07-10 Yoshinori Okuji <okuji@enbug.org>
45322
45323 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45324
45325 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45326 (grub_mkdevicemap_SOURCES): New variable.
45327
45328 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45329 lib/device.c of GRUB Legacy.
45330
7224189a 453312005-07-10 Yoshinori Okuji <okuji@enbug.org>
45332
45333 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45334 instead of PATH is NULL.
45335
68c864eb 453362005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45337
45338 * commands/cmp.c (BUFFER_SIZE): New macro.
45339 (grub_cmd_cmp): Close the right file at the right time. Compare
45340 only data just read. Don't report files of different size as
45341 identical. Dynamically allocate buffers. Move variable
45342 declarations at the beginning of function.
45343
e6f3e614 453442005-07-09 Yoshinori Okuji <okuji@enbug.org>
45345
45346 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45347 reverse.
45348
f8f1559a 453492004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45350
45351 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45352 when backspace is pressed at beginning of line.
45353
39c9d41d 453542005-07-03 Yoshinori Okuji <okuji@enbug.org>
45355
45356 * DISTLIST: Added genfslist.sh.
45357
45358 * normal/main.c (fs_module_list): New variable.
45359 (autoload_fs_module): New function.
45360 (read_fs_list): Likewise.
45361 (grub_normal_execute): Call read_fs_list.
45362
45363 * kern/fs.c (grub_fs_autoload_hook): New variable.
45364 (grub_fs_probe): Added support for auto-loading.
45365
45366 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45367 (grub_fs_module_list_t): New type.
45368
45369 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45370 (grub_fs_autoload_hook): New prototype.
45371
45372 * genfslist.sh: New file.
f19dbdb7 45373
39c9d41d 45374 * genmk.rb: Added a rule to generate a filesystem list.
45375
121c1d83 453762005-06-30 Marco Gerards <metgerards@student.han.nl>
45377
45378 * configure.ac: Fix the test for cross-compiling.
45379
45380 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45381 define GRUB_UTIL anymore.
45382
45383 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45384 so this function works on other systems than just big endian.
45385 (load_modules): Likewise.
45386 (add_segments): Likewise.
45387
e75d76e1 453882005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45389
45390 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45391 contains `l' modifier, get a long from va_arg().
45392
50b5a0a7 453932005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45394
45395 * kern/mm.c (grub_free): If the next free block which is being
45396 merged is the first free block, set the first block to the block
45397 being freed.
45398 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45399
89371b20 454002005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45401
45402 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45403 `grub_ieee1275_chosen'.
45404
168d6e58 454052005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45406
45407 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45408 (grub_ieee1275_chosen): New variable.
45409 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45410 `chosen'.
45411 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45412 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45413 Rename first argument to `phandle' for consistency.
45414 (grub_ieee1275_get_property_length): Likewise.
45415 (grub_ieee1275_next_property): Likewise. Change type of first argument
45416 to grub_ieee1275_phandle_t.
45417 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45418 Move export next to declaration.
45419 (grub_ieee1275_chosen): New variable.
45420 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45421 Correct cosmetic typo.
45422 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45423 `grub_ieee1275_chosen'.
45424 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45425 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45426 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45427 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45428 `grub_ieee1275_chosen'.
45429
ca5baa3f 454302005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45431
45432 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45433 /chosen/bootargs.
45434 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45435 /chosen/bootargs as "variable=value" pairs.
45436
708b345f 454372005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45438
45439 * include/grub/misc.h (grub_dprintf): New macro.
45440 (grub_real_dprintf): New prototype.
45441 (grub_strword): Likewise.
45442 (grub_iswordseparator): Likewise.
45443 * kern/misc.c (grub_real_dprintf): New function.
45444 (grub_strword): Likewise.
45445 (grub_iswordseparator): Likewise.
45446
f4c5e67c 454472005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45448
45449 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45450 (roundup): Remove macro.
45451 (grub_ieee1275_flags): Make static.
45452 (grub_ieee1275_realmode): Remove.
45453 (grub_ieee1275_test_flag): New function.
45454 (grub_ieee1275_set_flag): Likewise.
45455 (find_options): Rename to `grub_ieee1275_find_options'; update
45456 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45457 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45458 (cmain): New prototype.
45459 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45460 `grub_ieee1275_flags' directly.
45461 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45462 machine/biosdisk.h.
45463 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45464 Don't include grub/machine/init.h.
45465 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45466 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45467 Remove prototype.
45468 (grub_ieee1275_realmode): Likewise.
45469 (grub_ieee1275_flag): New enum.
45470 (grub_ieee1275_test_flag): New prototype.
45471 (grub_ieee1275_set_flag): New prototype.
45472 * include/grub/powerpc/ieee1275/init.h: Remove file.
45473 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45474 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45475 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45476 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45477 comment.
45478 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45479 `grub_ieee1275_test_flag'.
45480 (grub_ieee1275_encode_devname): Likewise.
45481
ed16607e 454822005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45483
45484 * include/grub/powerpc/ieee1275/ieee1275.h
45485 (grub_ieee1275_encode_devname): New prototype.
45486 (grub_ieee1275_get_filename): Likewise.
45487 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45488 function.
45489 (grub_set_prefix): Likewise.
45490 (grub_machine_init): Call grub_set_prefix.
45491 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45492 (grub_parse_type): New enum.
45493 (grub_ieee1275_get_devargs): New function.
45494 (grub_ieee1275_get_devname): Likewise.
45495 (grub_ieee1275_parse_args): Likewise.
45496 (grub_ieee1275_get_filename): Likewise.
45497 (grub_ieee1275_encode_devname): Likewise.
45498
be369920 454992005-03-30 Marco Gerards <metgerards@student.han.nl>
45500
45501 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45502 `grub_loader_unset'.
45503
a5ce3a4a 455042005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45505
45506 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45507 instead of grub_ieee1275_interpret.
45508 (grub_halt_init): New function.
45509 (grub_halt_fini): Likewise.
45510 (GRUB_MOD_INIT): Correct message grammar.
45511 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45512 instead of grub_ieee1275_interpret.
45513 (grub_reboot_init): New function.
45514 (grub_reboot_fini): Likewise.
45515 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45516 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45517 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45518 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45519 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45520 function.
45521 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45522 Add prototype.
45523 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45524 prototype.
45525 (grub_halt): Likewise.
45526 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45527 (cmain): Remove __attribute__((unused)).
45528 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45529 (grub_heap_len): Likewise.
45530 (grub_machine_fini): New function.
45531 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45532 (grub_halt): Likewise.
45533 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45534 function.
45535 * util/powerpc/ieee1275/misc.c: New file.
45536
0058f771 455372005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45538
45539 * DISTLIST: New file.
45540 * gendistlist.sh: Likewise.
f19dbdb7 45541
0058f771 45542 * Makefile.in (COMMON_DISTFILES): Removed.
45543 (BOOT_DISTFILES): Likewise.
45544 (CONF_DISTFILES): Likewise.
45545 (DISK_DISTFILES): Likewise.
45546 (FS_DISTFILES): Likewise.
45547 (INCLUDE_DISTFILES): Likewise.
45548 (KERN_DISTFILES): Likewise.
45549 (LOADER_DISTFILES): Likewise.
45550 (TERM_DISTFILES): Likewise.
45551 (UTIL_DISTFILES): Likewise.
45552 (DISTFILES): Likewise.
45553 (uninstall): Uninstall files in $(pkgdata_DATA).
45554 (DISTLIST): New target.
45555 (distdir): Use the contents of the file DISTLIST to get a list of
45556 distributed files.
45557
46b3b8a5 455582005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45559
45560 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45561 descriptor. This is ported from GRUB Legacy.
45562
45563 * gencmdlist.sh: Added an extra semicolon to make it work with
45564 old sed versions. Reported by Robert Bihlmeyer
45565 <robbe@orcus.priv.at>.
45566
5822ff87 455672005-03-08 Yoshinori Okuji <okuji@enbug.org>
45568
45569 Automatic loading of commands is supported.
f19dbdb7 45570
5822ff87 45571 * normal/main.c (read_command_list): New function.
45572 (grub_normal_execute): Call read_command_list.
45573
45574 * normal/command.c (grub_register_command): Return zero or CMD.
45575 Allocate CMD->NAME from the heap.
45576 Initialize CMD->MODULE_NAME to zero.
45577 Find the same name as well. If the same command is found and it is
45578 a dummy command, overwrite members. If it is not a dummy command,
45579 return zero.
45580 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45581 (grub_command_find): If a dummy command is found, load a module
45582 and retry to find a command only once.
45583
45584 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45585 make sure that each command is loaded.
45586
45587 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45588 macro.
45589 (struct grub_command): Remove const from the member `name'.
45590 Add a new member `module_name'.
45591 (grub_register_command): Return grub_command_t.
45592
45593 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45594 sure that each command is loaded.
45595
45596 * genmk.rb (PModule::rule): Specify a module name without the
45597 suffix ".mod" to gencmdlist.sh.
45598
7b1f4b57 455992005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45600
45601 * gencmdlist.sh: New file.
f19dbdb7 45602
7b1f4b57 45603 * genmk.rb (PModule::rule): Generate a rule for a command list.
45604 Clean command.lst.
45605 Generate command.lst from $(COMMANDFILES).
45606
45607 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45608 (DATA): Added $(pkgdata_DATA).
45609 (install-local): Install files in $(pkgdata_DATA).
45610
062aaf39 456112005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45612
45613 * term/i386/pc/vga.c (debug_command): Removed.
45614 (GRUB_MOD_INIT): Do not register the command "debug".
45615
45616 From Hollis Blanchard:
45617 * commands/configfile.c: New file.
45618 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45619 commands/configfile.c.
45620 (pkgdata_MODULES): Added configfile.mod.
45621 (configfile_mod_SOURCES): New variable.
45622 (configfile_mod_CFLAGS): Likewise.
45623 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45624 commands/configfile.c.
45625 (pkgdata_MODULES): Added configfile.mod.
45626 (configfile_mod_SOURCES): New variable.
45627 (configfile_mod_CFLAGS): Likewise.
45628 * util/grub-emu.c (main): Call grub_configfile_init and
45629 grub_configfile_fini.
45630 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45631 prototype.
45632 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 45633
cee01aa6 456342005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45635
45636 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45637 address.
45638
45639 * commands/help.c (grub_cmd_help): Do not print newlines after
45640 the last command in print_command_help.
45641
93f3a1d8 456422005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45643
45644 * commands/default.h: New file.
45645 * commands/timeout.h: Likewise.
45646 * normal/context.c: Likewise.
f19dbdb7 45647
93f3a1d8 45648 * util/misc.c: Do not include sys/times.h.
45649 Include sys/time.h and grub/machine/time.h.
45650 (grub_get_rtc): Rewritten with gettimeofday.
45651
45652 * util/grub-emu.c (main): Call grub_default_init and
45653 grub_timeout_init before grub_normal_init, and call
45654 grub_timeout_fini and grub_default_fini after grub_main.
45655
45656 * util/console.c (grub_ncurses_checkkey): Return the read
45657 character or -1.
45658
45659 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45660 timeouts.
45661
45662 * normal/main.c (read_config_file): Push MENU. If this fails,
45663 print an error and wait for a user input.
45664 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
45665 If a menu is empty or an error occurs, pop MENU.
45666 (grub_normal_execute): Pop and free MENU after grub_menu_run
45667 returns.
45668
45669 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
45670
45671 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
45672 include time.h.
45673 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45674 without GRUB_UTIL.
45675 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
45676 time.h.
45677 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
45678 without GRUB_UTIL.
45679
45680 * include/grub/normal.h (struct grub_menu_list): New struct.
45681 (grub_menu_list_t): New type.
45682 (struct grub_context): New struct.
45683 (grub_context_t): New type.
45684 (grub_register_command): Got rid of EXPORT_FUNC.
45685 (grub_unregister_command): Likewise.
45686 (grub_context_get): New prototype.
45687 (grub_context_get_current_menu): Likewise.
45688 (grub_context_push_menu): Likewise.
45689 (grub_context_pop_menu): Likewise.
45690 [GRUB_UTIL] (grub_default_init): Likewise.
45691 [GRUB_UTIL] (grub_default_fini): Likewise.
45692 [GRUB_UTIL] (grub_timeout_init): Likewise.
45693 [GRUB_UTIL] (grub_timeout_fini): Likewise.
45694
45695 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
45696 commands/timeout.c and normal/context.c.
45697 (pkgdata_MODULES): Added default.mod and timeout.mod.
45698 (normal_mod_SOURCES): Added normal/context.c.
45699 (default_mod_SOURCES): New variable.
45700 (default_mod_CFLAGS): Likewise.
45701 (timeout_mod_SOURCES): Likewise.
45702 (timeout_mod_CFLAGS): Likewise.
45703 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
45704 conf/i386-pc.rmk.
45705 (pkgdata_MODULES): Added default.mod and timeout.mod.
45706 (normal_mod_SOURCES): Added normal/context.c.
45707 (default_mod_SOURCES): New variable.
45708 (default_mod_CFLAGS): Likewise.
45709 (timeout_mod_SOURCES): Likewise.
45710 (timeout_mod_CFLAGS): Likewise.
45711
45712 * Makefile.in (all-local): Added $(MKFILES).
45713
4ed2e1dd 457142005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
45715
45716 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
45717 (grub_emu_SOURCES): Likewise.
45718 (pkgdata_MODULES): Add `sun.mod'.
45719 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45720 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45721 `partmap/sun.c'.
45722 (pkgdata_MODULES): Add `sun.mod'.
45723 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
45724 * include/grub/partition.h (grub_sun_partition_map_init): New
45725 prototype.
45726 (grub_sun_partition_map_fini): Likewise.
45727 * partmap/sun.c: New file.
45728 * util/grub-emu.c (main): Initialize and de-initialize the sun
45729 partitionmap support.
45730
4d4e372e 457312005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
45732
45733 This implements an Emacs-like menu entry editor.
f19dbdb7 45734
4d4e372e 45735 * normal/menu_entry.c: New file.
f19dbdb7 45736
4d4e372e 45737 * util/console.c (grub_ncurses_putchar): Translate some Unicode
45738 characters to ASCII.
45739 (saved_char): New variable.
45740 (grub_ncurses_checkkey): Rewritten completely.
45741 (grub_ncurses_getkey): Likewise.
45742 (grub_ncurses_init): Call raw instead of cbreak.
45743
45744 * normal/menu.c (print_entry): Do not put a space.
45745 (init_page): Renamed to ...
45746 (grub_menu_init_page): ... this. All callers changed.
45747 (edit_menu_entry): Removed.
45748 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
45749
45750 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
45751
45752 * kern/misc.c (grub_vprintf): Call grub_refresh.
45753
45754 * normal/menu.c (DISP_LEFT): Renamed to ...
45755 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
45756 * normal/menu.c (DISP_UP): Renamed to ...
45757 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
45758 * normal/menu.c (DISP_RIGHT): Renamed to ...
45759 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
45760 * normal/menu.c (DISP_DOWN): Renamed to ...
45761 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
45762 * normal/menu.c (DISP_HLINE): Renamed to ...
45763 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
45764 * normal/menu.c (DISP_VLINE): Renamed to ...
45765 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
45766 * normal/menu.c (DISP_UL): Renamed to ...
45767 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
45768 * normal/menu.c (DISP_UR): Renamed to ...
45769 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
45770 * normal/menu.c (DISP_LL): Renamed to ...
45771 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
45772 * normal/menu.c (DISP_LR): Renamed to ...
45773 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
45774 * normal/menu.c (TERM_WIDTH): Renamed to ...
45775 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
45776 * normal/menu.c (TERM_HEIGHT): Renamed to ...
45777 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
45778 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
45779 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
45780 * normal/menu.c (TERM_MARGIN): Renamed to ...
45781 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
45782 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
45783 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
45784 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
45785 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
45786 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
45787 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
45788 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
45789 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
45790 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
45791 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
45792 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
45793 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
45794 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
45795 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
45796 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
45797 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
45798 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
45799 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
45800 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
45801 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
45802 All callers changed.
45803
45804 * include/grub/normal.h: New prototype.
45805
45806 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45807 normal/menu_entry.c.
45808 (normal_mod_SOURCES): Likewise.
45809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45810 (normal_mod_SOURCES): Likewise.
45811
e6b92c8a 458122005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
45813
45814 * include/grub/normal.h (grub_halt_init): New prototype.
45815 (grub_halt_fini): Likewise.
45816 (grub_reboot_init): Likewise.
45817 (grub_reboot_fini): Likewise.
45818
45819 * util/grub-emu.c: Include signal.h.
45820 (main_env): New global variable.
45821 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
45822 catch C-c.
45823 (grub_machine_fini): New function.
45824 (main): Call grub_halt_init and grub_reboot_init before
45825 grub_main, and grub_reboot_fini and grub_halt_fini after it.
45826 Call setjmp with MAIN_ENV to go back afterwards.
45827 Call grub_machine_fini right before return.
45828
45829 * include/grub/util/misc.h: Include setjmp.h.
45830 (main_env): New prototype.
45831
45832 * include/grub/kernel.h (grub_machine_fini): New prototype.
45833 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
45834 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
45835
45836 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
45837 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
45838 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 45839
e6b92c8a 45840 * util/i386/pc/misc.c: New file.
f19dbdb7 45841
e6b92c8a 45842 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45843 util/i386/pc/misc.c, commands/i386/pc/halt.c and
45844 commands/i386/pc/reboot.c.
45845
c642636f 458462005-02-14 Guillem Jover <guillem@hadrons.org>
45847
45848 * include/grub/dl.h (grub_dl_check_header): New prototype.
45849 (grub_arch_dl_check_header): Change return type to grub_err_t,
45850 remove size parameter and export function. Update all callers.
45851 * kern/dl.c (grub_dl_check_header): New function.
45852 (grub_dl_load_core): Use `grub_dl_check_header' instead of
45853 `grub_arch_dl_check_header'. Check ELF type. Check if sections
45854 are inside the core.
45855 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
45856 independent ELF header checks.
45857 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
45858 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
45859 `grub_dl_check_header' instead of explicit checks. Check for the
45860 ELF type.
45861 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
45862 `grub_dl_check_header' instead of explicit checks. Remove arch
45863 specific ELF header checks.
45864
e6b92c8a 45865 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
45866 argument SIZE.
45867
5eabe94b 458682005-02-13 Hollis Blanchard <hollis@penguinppc.org>
45869
45870 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
45871 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
45872
1b14a681 458732005-02-12 Hollis Blanchard <hollis@penguinppc.org>
45874
45875 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 45876 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 45877 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 45878 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 45879 * partmap/amiga.c (amiga_partition_map_iterate): Return
45880 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
45881 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45882
aca108aa 458832005-02-01 Guillem Jover <guillem@hadrons.org>
45884
45885 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
45886 help info.
45887
c9f9c556 458882005-01-31 Marco Gerards <metgerards@student.han.nl>
45889
45890 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
45891 Removed prototype.
45892 (grub_rescue_cmd_linux): New prototype.
45893 (grub_rescue_cmd_initrd): Likewise.
45894 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
45895 `bi_rec'.
45896 (grub_linux_release_mem): Release the memory for the initrd.
45897 (grub_load_linux): Renamed from this...
45898 (grub_rescue_cmd_linux): ...To this. Changed all callers.
45899 Changed `entry' not to be static. Loop over memory regions to
45900 find another one when the default fails.
45901 (grub_rescue_cmd_initrd): New function.
45902 (grub_linux_init): Remove function.
45903 (grub_linux_fini): Likewise.
45904 (GRUB_MOD_INIT): Register `initrd'.
45905 (GRUB_MOD_FINI): Unregister `initrd'.
45906 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
45907 Function removed.
45908 (grub_linux_normal_fini): Likewise.
45909 (GRUB_MOD_INIT): Register `initrd'.
45910 (GRUB_MOD_FINI): Unregister `initrd'.
45911
990cf3aa 459122005-01-31 Marco Gerards <metgerards@student.han.nl>
45913
45914 * commands/help.c: New file.
45915 * normal/arg.c (show_help): Renamed to...
45916 (grub_arg_show_help): ... this.
45917 * commands/i386/pc/halt.c: New file.
45918 * commands/i386/pc/reboot.c: Likewise.
45919 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
45920 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
45921 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
45922 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
45923 variables.
45924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45925 `commands/help.c'.
45926 (pkgdata_MODULES): Add `help.mod'.
45927 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
45928 * grub/i386/pc/init.h (grub_reboot): New prototype.
45929 (grub_halt): Likewise.
45930 * include/grub/normal.h (grub_arg_show_help): New prototype.
45931 (grub_help_init): Likewise.
45932 (grub_help_fini): Likewise.
45933 * util/grub-emu.c (main): Initialize and deinitialize the help
45934 command.
45935
45936 * normal/cmdline.c (grub_cmdline_get): Doc fix.
45937
45938 * normal/command.c (grub_command_init): Fixed the description of
45939 the `set' and `unset' commands.
45940
459412005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 45942
45943 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
45944 function.
45945 * commands/ieee1275/halt.c: New file.
45946 * commands/ieee1275/reboot.c: Likewise.
45947 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
45948 `__attribute__ ((unused))'. Some GCS related fixed.
45949 (grub_suspend_init) [GRUB_UTIL]: Function removed.
45950 (grub_suspend_fini): Likewise.
45951 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
45952 and `halt.mod'.
45953 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
45954 (halt_mod_CFLAGS): New variables.
45955 * include/grub/powerpc/ieee1275/ieee1275.h
45956 (grub_ieee1275_interpret): New prototype.
45957
1ab09cc7 459582005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
45959
45960 * include/grub/misc.h (memmove): New prototype.
45961 (memcpy): Likewise.
45962
8b8cbdb2 459632005-01-22 Hollis Blanchard <hollis@penguinppc.org>
45964
45965 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
45966 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
45967
e3741a27 459682005-01-22 Marco Gerards <metgerards@student.han.nl>
45969
45970 * kern/misc.c (grub_strndup): Function rewritten.
45971
776bd780 459722005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
45973
45974 * normal/menu.c (TERM_WIDTH): Macro redefined.
45975 (TERM_TOP_BORDER_Y): Likewise.
45976 (draw_border): Replaced while-loop by a for-loop. Make the number
45977 of lines consistent with the number of lines displayed in
45978 print_entries. Added a margin below the rectangle.
45979 (print_entry): Make the entry fit in the rectangle.
45980 (print_entries): Display the scroll arrows next to the right
45981 border.
45982
78026bce 459832005-01-21 Marco Gerards <metgerards@student.han.nl>
45984
45985 * fs/minix.c (grub_minix_find_file): Reserve more space for
45986 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
45987 `grub_strncpy' to copy `path' into it.
45988
67bbaf0f 459892005-01-21 Marco Gerards <metgerards@student.han.nl>
45990
45991 Add the loopback device, a device via which files can be accessed
45992 as devices.
f19dbdb7 45993
67bbaf0f 45994 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
45995 (pkgdata_MODULES): Add loopback.mod.
45996 (loopback_mod_SOURCES): New variable.
45997 (loopback_mod_CFLAGS): Likewise.
45998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45999 `disk/loopback.c'.
46000 (pkgdata_MODULES): Add loopback.mod.
46001 (loopback_mod_SOURCES): New variable.
46002 (loopback_mod_CFLAGS): Likewise.
46003 * disk/loopback.c: new file.
46004 * include/grub/normal.h (grub_loop_init): New prototype.
46005 (grub_loop_fini): New prototype.
46006 * util/grub-emu.c (main): Initialize and de-initialize loopback
46007 support.
46008 * include/grub/disk.h (grub_disk_dev_id): Add
46009 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46010
6f1c18bd 460112005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46012
46013 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46014 function.
46015 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46016 (suspend_mod_SOURCES): New variable.
46017 (suspend_mod_CFLAGS): Likewise.
46018 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46019 New prototype.
46020 * commands/ieee1275/suspend.c: New file.
46021
b38551da 460222005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46023
46024 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 46025 ((unused))' to `__attribute__ ((used))'.
b38551da 46026 (GRUB_MOD_FINI): Likewise.
46027 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46028 * genmk.rb (PModule): Assign space to common symbols when linking
46029 modules.
46030
777aff39 460312005-01-20 Marco Gerards <metgerards@student.han.nl>
46032
46033 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46034 `unsigned' arguments to `grub_size_t'.
46035 (grub_malloc): Likewise.
46036 (grub_realloc): Likewise.
46037 (grub_memalign): Likewise.
46038 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46039 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46040 * util/misc.c (grub_malloc): Likewise.
46041 (grub_realloc): Likewise.
46042 * kern/mm.c (get_header_from_pointer): Change the casts to
46043 `unsigned' into a cast to `grub_size_t'.
46044
46045 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46046 point to `currnode' when `currnode' is changed.
46047
46048 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46049 Schottelius <nico-linux@schottelius.org>.
46050
d0ff18e1 460512005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46052
46053 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46054 (note_path): Remove variable.
46055 (GRUB_IEEE1275_NOTE_NAME): New macro.
46056 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46057 (grub_ieee1275_note_hdr): New structure.
46058 (grub_ieee1275_note_desc): Likewise.
46059 (grub_ieee1275_note): Likewise.
46060 (load_note): Remove `dir' argument. All callers updated. Remove
46061 `note_img' and `path'. Do not load a file from `note_path'.
46062 Initialize a struct grub_ieee1275_note and write that to `out'.
46063 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46064
4ca7004c 460652005-01-05 Marco Gerards <metgerards@student.han.nl>
46066
46067 * util/misc.c (grub_util_read_image): Revert last change. It
46068 called `grub_util_read_at', which seeks from the beginning of the
46069 file.
46070
0b412211 460712005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46072
46073 * TODO: Add note about endianness in grub-mkimage.
46074 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46075 section.
46076 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46077 (grub_mkimage_SOURCES): New target.
46078 * include/grub/kernel.h (grub_start_addr): Remove variable.
46079 (grub_end_addr): Likewise.
46080 (grub_total_module_size): Likewise.
46081 (grub_kernel_image_size): Likewise.
46082 (GRUB_MODULE_MAGIC): New constant.
46083 (grub_module_info): New structure.
46084 (grub_arch_modules_addr): New prototype.
46085 (grub_get_end_addr): Remove prototype.
46086 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46087 * include/grub/powerpc/ieee1275/kernel.h: New file.
46088 * include/grub/util/misc.h (grub_util_get_fp_size): New
46089 prototype.
46090 (grub_util_read_at): Likewise.
46091 (grub_util_write_image_at): Likewise.
46092 * kern/main.c (grub_get_end_addr): Remove function.
46093 (grub_load_modules): Call grub_arch_modules_addr instead of using
46094 grub_end_addr. Look for a grub_module_info struct in memory. Use
46095 the grub_module_info fields instead of calling grub_get_end_addr
46096 as loop conditions. Move grub_add_unused_region code here.
46097 (grub_add_unused_region): Remove function.
46098 * kern/i386/pc/init.c: Include grub/cache.h.
46099 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46100 one call to add_mem_region.
46101 (grub_arch_modules_addr): New function.
46102 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46103 (grub_total_module_size): Likewise.
46104 Include grub/machine/kernel.h.
46105 (grub_arch_modules_addr): New function.
46106 * util/grub-emu.c (grub_end_addr): Remove variable.
46107 (grub_total_module_size): Likewise.
46108 (grub_arch_modules_addr): New function.
46109 * util/misc.c: Include unistd.h.
46110 (grub_util_get_fp_size): New function.
46111 (grub_util_read_at): Likewise.
46112 (grub_util_write_image_at): Likewise.
46113 (grub_util_read_image): Call grub_util_read_at.
46114 (grub_util_write_image): Call grub_util_write_image_at.
46115 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46116 additional memory in kernel_img for a struct grub_module_info.
46117 Fill in that grub_module_info.
46118 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46119
458786f8 461202005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46121
46122 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46123 New function.
46124 * include/grub/powerpc/ieee1275/ieee1275.h
46125 (grub_ieee1275_milliseconds): New prototype.
46126 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46127 Change to 1000.
46128 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46129 grub_ieee1275_milliseconds.
46130
ac507d1b 461312005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46132
46133 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46134 variable.
46135 (find_options): New function.
46136 (cmain): Call find_options.
46137 * include/grub/powerpc/ieee1275/ieee1275.h
46138 (grub_ieee1275_realmode): New extern variable.
46139 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46140 grub_map if grub_ieee1275_realmode is false.
46141
6b8fd1c4 461422004-12-29 Marco Gerards <metgerards@student.han.nl>
46143
46144 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46145 lines are inserted and make it work like readline. Reported by
46146 Vincent Pelletier <subdino2004@yahoo.fr>.
46147
8514a1e0 461482004-12-28 Marco Gerards <metgerards@student.han.nl>
46149
46150 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46151
46152 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46153 `kern/powerpc/cache.S'.
46154
924b6140 461552004-12-27 Marco Gerards <metgerards@student.han.nl>
46156
46157 * genmk.rb: Handle the `Program' class in the main loop. Written
46158 by Johan Rydberg <jrydberg@gnu.org>.
46159 (Program): New class.
46160 (programs): New variable.
46161 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46162 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46163 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46164 (help_arch): Function removed.
46165 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46166 `powerpc/libgcc.h' and `loader.h'.
46167 (pkgdata_PROGRAMS): New variable.
46168 (sbin_UTILITIES): Variable removed.
46169 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46170 (grubof_SOURCES): Variable re-defined so it only includes the
46171 core functionality.
46172 (grubof_CFLAGS): Remove `-DGRUBOF'.
46173 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46174 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46175 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46176 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46177 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46178 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46179 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46180 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46181 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46182 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46183 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46184 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46185 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46186 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46187 (pc_mod_CFLAGS): New variables.
46188 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46189 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46190 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46191 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46192 Moved from here...
46193 * include/grub/i386/pc/init.h (grub_os_area_addr)
46194 (rub_os_area_size): ... to here.
46195 * include/grub/powerpc/ieee1275/ieee1275.h
46196 (grub_ieee1275_entry_fn): Export symbol.
46197 * include/grub/powerpc/ieee1275/init.h: New file.
46198 * include/grub/powerpc/libgcc.h: Likewise.
46199 * include/grub/cache.h: Likewise.
46200 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46201 <hollis@penguinppc.org>.
46202 * kern/dl.c: Include <grub/cache.h>.
46203 (grub_dl_flush_cache): New function.
46204 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46205 for this module.
46206 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46207 (grub_console_init): Removed prototypes.
46208 (grub_machine_init): Don't initialize the modules anymore.
46209 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46210 static.
46211 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46212 Macro undef removed.
46213 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46214 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46215 relocation `R_PPC_REL32'. Return an error when the relocation is
46216 unknown.
46217 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46218 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46219 * util/misc.c (grub_arch_sync_caches): Likewise.
46220
e4b47e0c 462212004-12-19 Marco Gerards <metgerards@student.han.nl>
46222
46223 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46224 `symlist.c', add `grubof_symlist.c'.
46225 (symlist.c): Variable removed.
46226 (grubof_HEADERS): Variable added.
46227 (grubof_symlist.c): New target.
46228 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46229 `kernel_img_HEADERS'.
46230 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46231 * kern/powerpc/dl.c: New file.
46232 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46233 Function removed.
46234 (grub_arch_dl_relocate_symbols): Likewise.
46235 (grub_register_exported_symbols): Likewise.
46236
4ceb3636 462372004-12-13 Marco Gerards <metgerards@student.han.nl>
46238
46239 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46240 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46241 to fail instead. Reported by Vincent Pelletier
46242 <subdino2004@yahoo.fr>.
46243
46244 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46245 it is not allocated. Reported by Vincent Pelletier
46246 <subdino2004@yahoo.fr>.
46247
46248 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46249 output so the output looks better.
f19dbdb7 46250
3f1578fe 462512004-12-04 Marco Gerards <metgerards@student.han.nl>
46252
46253 Modulize the partition map support and add support for the amiga
46254 partition map.
f19dbdb7 46255
3f1578fe 46256 * commands/ls.c: Include <grub/partition.h> instead of
46257 <grub/machine/partition.h>.
46258 * kern/disk.c: Likewise.
46259 * kern/rescue.c: Likewise.
46260 * loader/i386/pc/chainloader.c: Likewise.
46261 * normal/cmdline.c: Likewise.
46262 * kern/powerpc/ieee1275/init.c: Likewise.
46263 (grub_machine_init): Call `grub_pc_partition_map_init',
46264 `grub_amiga_partition_map_init' and
46265 `grub_apple_partition_map_init'.
46266 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46267 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46268 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46269 `partition.h' and `pc_partition.h'.
46270 (grub_setup_SOURCES): Remove
46271 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46272 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46273 (grub_emu_SOURCES): Likewise.
46274 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46275 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46276 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46278 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46279 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46280 (grubof_SOURCES): Likewise.
46281 * disk/i386/pc/partition.c: File removed.
46282 * disk/powerpc/ieee1275/partition.c: Likewise.
46283 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46284 * include/grub/i386/pc/partition.h: Likewise.
46285 * kern/partition.c: New file.
46286 * partmap/amiga.c: Likewise.
46287 * partmap/apple.c: Likewise.
46288 * partmap/pc.c: Likewise.
46289 * include/grub/partition.h: Likewise..
46290 * include/grub/pc_partition.h: Likewise.
46291 * util/grub-emu.c: Include <grub/partition.h> instead of
46292 <grub/machine/partition.h>.
46293 (main): Call `grub_pc_partition_map_init',
46294 `grub_amiga_partition_map_init' and
46295 `grub_apple_partition_map_init' and deinitialize afterwards.
46296 * util/i386/pc/biosdisk.c: Include `#include
46297 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46298 `<grub/machine/partition.h>'.
46299 * util/i386/pc/grub-setup.c: Likewise.
46300 * util/i386/pc/biosdisk.c: Likewise.
46301 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46302 partition information in case of a PC partition.
46303 * util/i386/pc/grub-setup.c: Include `#include
46304 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46305 `<grub/machine/partition.h>'.
46306 (setup): Only access the PC specific partition information in case
46307 of a PC partition.
46308
0ef4ced9 463092004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 46310
0ef4ced9 46311 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46312 (grub_longjmp): Likewise.
46313 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46314 20.
46315 * normal/powerpc/setjmp.S: New file.
46316 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46317 `normal/powerpc/setjmp.S'.
46318 (grubof_CFLAGS): Add `-DGRUBOF'.
46319 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46320 [GRUB_UTIL && !GRUBOF].
f19dbdb7 46321
19950e29 463222004-11-16 Marco Gerards <metgerards@student.han.nl>
46323
46324 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46325 property named `name'. Correctly handle the error returned by
46326 `grub_ieee1275_finddevice' if a device can not be opened.
46327
a2fea427 463282004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46329
46330 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46331 `actual' for negativity.
46332 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46333 kern/fshelp.c.
46334
41ea0ea3 463352004-11-01 Marco Gerards <metgerards@student.han.nl>
46336
46337 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46338 (PAGE_OFFSET): New macro.
46339 (CRTC_ADDR_PORT): Likewise.
46340 (CRTC_DATA_PORT): Likewise.
46341 (START_ADDR_HIGH_REGISTER): Likewise.
46342 (START_ADDR_LOW_REGISTER): Likewise.
46343 (GRAPHICS_ADDR_PORT): Likewise.
46344 (GRAPHICS_DATA_PORT): Likewise.
46345 (READ_MAP_REGISTER): Likewise.
46346 (INPUT_STATUS1_REGISTER): Likewise.
46347 (INPUT_STATUS1_VERTR_BIT): Likewise.
46348 (page): New variable.
46349 (wait_vretrace): New function.
46350 (set_read_map): Likewise.
46351 (set_start_address): Likewise.
46352 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46353 the right page.
46354 (check_vga_mem): Take the page into account.
46355 (write_char): Likewise.
46356 (write_cursor): Likewise.
46357 (scroll_up): Likewise. Copy the page to the page that is not
46358 shown and switch between both pages.
46359 (grub_vga_putchar): Fix off by one error.
46360 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46361 account.
46362
ad0bd20b 463632004-11-01 Marco Gerards <metgerards@student.han.nl>
46364
46365 Add support for iso9660 (including rockridge).
f19dbdb7 46366
ad0bd20b 46367 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46368 (iso9660_mod_SOURCES): New variable.
46369 (iso9660_mod_CFLAGS): Likewise.
46370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46371 * include/grub/fs.h (grub_iso9660_init): New prototype.
46372 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46373 * fs/iso9660.c: New file.
46374
46375 * include/grub/misc.h (grub_strncat): New prototype.
46376 * kern/misc.c (grub_strncat): New function.
f19dbdb7 46377
ad0bd20b 46378 * fs/hfs.c (grub_hfs_mount): Translate the error
46379 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46380 * fs/jfs.c (grub_jfs_mount): Likewise.
46381 * fs/ufs.c (grub_ufs_mount): Likewise.
46382
a5477a59 463832004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46384
46385 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46386 which initialized BAT registers.
46387 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46388 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46389 Move from here...
46390 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46391 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46392 ... to here.
46393 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46394 (grub_mapclaim): Likewise.
46395 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46396 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46397 hand.
46398
9304c1f8 463992004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46400
46401 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46402 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46403 -ffreestanding and -msoft-float.
46404
86f4ae25 464052004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46406
46407 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46408 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46409 set in grub_ieee1275_flags.
46410
38912228 464112004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46412
46413 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46414 prototype.
46415 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46416 grub_console_init first.
46417 Change the memory range used for grub_ieee1275_claim and
46418 grub_mm_init_region.
46419 Print an error message if the claim fails.
46420 Include <grub/misc.h>.
46421
d1923dc8 464222004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46423
46424 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46425 Call grub_children_iterate for device nodes of type `scsi',
46426 `ide', or `ata'.
46427 (grub_ofdisk_open): Remove manual device alias resolution.
46428 Fix memory leak when device cannot be opened.
f19dbdb7 46429 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 46430 (grub_children_iterate): New prototype.
46431 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46432 New function.
46433 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46434 Return -1 if args.size was -1.
46435
4512e4f3 464362004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46437
46438 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46439 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46440 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46441 Open Firmware's memory for it; claim memory from _start to _end.
46442 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46443 (_end): New extern.
46444 (_start): Zero BSS from __bss_start to _end.
46445 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46446 New extern.
46447 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46448
4d61feb0 464492004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46450
ad0bd20b 46451 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46452 -1 if args.base was -1.
4d61feb0 46453
026fa2f9 464542004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46455
46456 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46457 escape sequence instead of a literal ^L. Also call
46458 grub_ofconsole_gotoxy.
46459
9f2220ef 464602004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46461
46462 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46463 void * arguments to grub_addr_t. All callers updated. Also make
46464 the `result' argument optional.
46465 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46466 All callers updated.
46467
8a572cd7 464682004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46469
46470 * commands/ls.c (grub_ls_list_files): Use the string following the
46471 initial ')', if present, as the filesystem path.
46472 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46473
46474 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46475
18aa81f2 464762004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46477
46478 Make the source code of the menu interface more readable.
f19dbdb7 46479
18aa81f2 46480 * normal/menu.c: Include grub/mm.h.
46481 (TERM_WIDTH): New macro.
46482 (TERM_HEIGHT): Likewise.
46483 (TERM_INFO_HEIGHT): Likewise.
46484 (TERM_MARGIN): Likewise.
46485 (TERM_SCROLL_WIDTH): Likewise.
46486 (TERM_TOP_BORDER_Y): Likewise.
46487 (TERM_LEFT_BORDER_X): Likewise.
46488 (TERM_BORDER_WIDTH): Likewise.
46489 (TERM_MESSAGE_HEIGHT): Likewise.
46490 (TERM_BORDER_HEIGHT): Likewise.
46491 (TERM_NUM_ENTRIES): Likewise.
46492 (TERM_FIRST_ENTRY_Y): Likewise.
46493 (TERM_ENTRY_WIDTH): Likewise.
46494 (TERM_CURSOR_X): Likewise.
46495 (draw_border): Use macros instead of magic numbers.
46496 (print_entry): Likewise.
46497 (print_entries): Likewise.
46498 (run_menu): Likewise. Also, handle the key 'e'.
46499 (run_menu_entry): Ignore empty command lines.
46500 (print_message): Added a new argument EDIT. If EDIT is true,
46501 print a different message.
46502 (init_page): Likewise.
46503 (edit_menu_entry): New function. Not implemented yet.
46504
b47efe30 465052004-09-17 Marco Gerards <metgerards@student.han.nl>
46506
46507 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46508 can be loaded from normal mode.
f19dbdb7 46509
b47efe30 46510 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46511 `multiboot.mod'.
46512 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46513 (multiboot_mod_CFLAGS): New variables.
46514 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 46515 * loader/i386/pc/multiboot_normal.c: Likewise.
46516
b47efe30 46517 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46518 attribute `unused'.
f19dbdb7 46519
b47efe30 46520 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46521 `fdiro' to read the mode information from instead of `diro'.
46522
46523 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46524 looking up a symlink.
46525
46526 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46527 macro.
46528 * normal/command.c (grub_command_execute): Don't parse the
46529 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46530 flags of the command.
46531
46532 * normal/menu.c (grub_menu_run): Fix typo.
46533
da75ac71 465342004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46535
46536 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46537
46538 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46539 `y + 1' instead of `y - 1'.
46540
46541 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 46542
062b24c2 465432004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46544
46545 From Hollis Blanchard <hollis@penguinppc.org>:
46546 * kern/misc.c (memmove): New alias for grub_memmove.
46547 (memcmp): New alias for grub_memcmp.
46548 (memset): New alias for grub_memset.
f19dbdb7 46549 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 46550 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 46551 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 46552 (grub_ieee1275_get_property): Likewise.
f19dbdb7 46553
8ddad845 465542004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46555
46556 Added normal mode command `chainloader' as module chain.mod, which
46557 depends on normal.mod and _chain.mod.
f19dbdb7 46558
8ddad845 46559 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46560 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46561 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46562 Deleted prototype.
46563 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46564 but arguments parsing moved to ...
46565 (grub_chainloader_cmd): ... here. New function.
46566 * include/grub/i386/pc/chainloader.h: New file.
46567 * loader/i386/pc/chainloader_normal.c: Likewise.
46568
2c1f4ce3 465692004-09-11 Marco Gerards <metgerards@student.han.nl>
46570
46571 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46572 (grub_mkimage_LDFLAGS): Likewise.
46573 (grub_emu_SOURCES): Likewise.
46574 (kernel_img_HEADERS): Added fshelp.h.
46575 * fs/ext2.c: Include <grub/fshelp.h>.
46576 (FILETYPE_REG): New macro.
46577 (FILETYPE_INO_REG): Likewise.
46578 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46579 Changed all users.
46580 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46581 all users.
46582 (grub_fshelp_node): New struct.
46583 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46584 to a pointer.
46585 (grub_ext2_get_file_block): Removed function.
46586 (grub_ext2_read_block): New function.
46587 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46588 This function was written.
46589 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46590 (grub_ext2_find_file): Removed function.
46591 (grub_ext2_read_symlink): New function.
46592 (grub_ext2_iterate_dir): Likewise.
46593 (grub_ext2_open): Rewritten.
46594 (grub_ext2_dir): Rewritten.
46595 * include/grub/fshelp.h: New file.
46596 * fs/fshelp.c: Likewise.
46597
3c52136a 465982004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46599
46600 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46601 (print_message): Add a missing newline.
46602 (run_menu): Added timeout support.
46603 (run_menu_entry): New local function.
46604 (grub_menu_run): Added support for booting.
46605
46606 * kern/loader.c (grub_loader_is_loaded): New function.
46607
46608 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46609 (grub_get_rtc): Exported.
46610
46611 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46612 (grub_get_rtc): Exported.
46613
46614 * include/grub/normal.h (struct grub_command_list): Remove
46615 constant from the member `command'.
46616
46617 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46618
46619 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46620
46621 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46622
aa033560 466232004-08-28 Marco Gerards <metgerards@student.han.nl>
46624
46625 Add support for the JFS filesystem.
46626
46627 * fs/jfs.c: New file.
46628 * include/grub/fs.h (grub_jfs_init): New prototype.
46629 (grub_jfs_fini): New prototype.
46630 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46631 (grub_emu_SOURCES): Likewise.
46632 (pkgdata_MODULES): Add jfs.mod.
46633 (jfs_mod_SOURCES): New variable.
46634 (jfs_mod_CFLAGS): Likewise.
46635 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46636 (grubof_SOURCES): Likewise.
46637 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46638
46639 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46640 endian to the host endian.
46641 (grub_fat_utf16_to_utf8): Move function from there...
46642 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 46643 the endianness of the source string anymore.
aa033560 46644 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46645
94bc45af 466462004-08-24 Marco Gerards <metgerards@student.han.nl>
46647
46648 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46649 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46650 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46651 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 46652
94bc45af 46653 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46654 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46655 for `node_found' and `it_dir'.
46656 (grub_hfs_dir): Add prototype for `dir_hook'.
46657
46658 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46659 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46660 and `indir32' to silence a gcc warning.
46661
46662 * include/grub/fs.h (grub_hfs_init): New prototype.
46663 (grub_hfs_fini): Likewise.
f19dbdb7 46664
46665
97543f08 466662004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
46667
46668 Each disk device has its own id now. This is useful to make use
46669 of multiple disk devices.
f19dbdb7 46670
97543f08 46671 * include/grub/disk.h (grub_disk_dev_id): New enum.
46672 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
46673 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
46674
46675 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
46676 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46677
46678 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
46679 GRUB_DISK_DEVICE_OFDISK_ID as an id.
46680
46681 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
46682 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
46683
46684 * include/grub/disk.h (struct grub_disk_dev): Added a new member
46685 "id" which is used by the cache manager.
46686
46687 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
46688 of just "GRUB".
46689
64372eb4 466902004-08-18 Marco Gerards <metgerards@student.han.nl>
46691
46692 * fs/hfs.c: New file.
46693 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
46694 (grub_emu_SOURCES): Likewise.
46695 (pkgdata_MODULES): Add hfs.mod.
46696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
46697 (grubof_SOURCES): Likewise.
46698 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
46699
46700 * include/grub/misc.h (grub_strncasecmp): Add prototype.
46701 * kern/misc.c (grub_strncasecmp): Add function.
46702
cc61b58f 467032004-08-14 Marco Gerards <metgerards@student.han.nl>
46704
46705 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
46706 with parentheses.
46707
46708 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
46709 (grub_ext2_dir): In case the directory entry type is unknown, read
46710 it from the inode.
46711
0ef123f6 467122004-08-02 Peter Bruin <pjbruin@dds.nl>
46713
46714 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
46715 grub_load_linux instead of grub_rescue_cmd_linux as second
46716 argument of grub_rescue_register_command.
46717
46718 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
46719
a447c5df 467202004-07-27 Marco Gerards <metgerards@student.han.nl>
46721
46722 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
46723 function.
46724 * commands/boot.c: Remove the check for `GRUB_UTIL'.
46725 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46726 `loader/powerpc/ieee1275/linux.c',
46727 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
46728 * include/grub/powerpc/ieee1275/ieee1275.h
46729 (grub_ieee1275_release): New prototype.
46730 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
46731 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
46732 normal, boot, linux and linux_normal.
46733 * loader/powerpc/ieee1275/linux.c: New file.
46734 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
46735
5a9e3546 467362004-07-12 Marco Gerards <metgerards@student.han.nl>
46737
46738 * normal/arg.c (grub_arg_parse): Correct error handling after
46739 reallocating the argumentlist (check if `argl' is not null instead
46740 of checking if `args' is not null).
46741 * kern/mm.c (grub_realloc): Return the same pointer when using the
46742 same region, instead of returning the header address.
46743
e15199cb 467442004-07-11 Marco Gerards <metgerards@student.han.nl>
46745
46746 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
46747 one block instead of two when looking for the initial partition.
46748 (grub_partition_probe): Initialize the local variable `p' with 0.
46749 Use base 10 for the grub_strtoul call.
46750 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
46751 need for one local variable.
46752 (grub_strtoul): Don't add the new value to `num', instead of that
46753 just assign it.
46754
020616c2 467552004-07-11 Marco Gerards <metgerards@student.han.nl>
46756
46757 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
46758 (pxeboot_img_SOURCES): New variable.
46759 (pxeboot_img_ASFLAGS): Likewise.
46760 (pxeboot_img_LDFLAGS): Likewise.
46761 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
46762 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
46763 <lode_leroy@hotmail.com>.
46764
6c51eb64 467652004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46766
46767 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
46768 there was no input.
46769
cfb12aff 467702004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46771
46772 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
46773 the history buffer logic.
46774
6eabba74 467752004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
46776
46777 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
46778 (FILETYPE_INO_SYMLINK): New macros.
46779 (grub_ext2_find_file): Check if the node is a directory using the
46780 inode stat information instead of using the filetype in the
46781 dirent. Exclude the first character of an absolute symlink.
46782 (grub_ext2_dir): Mask out the filetype part of the mode member of
46783 the inode.
46784
66e19ef8 467852004-05-24 Marco Gerards <metgerards@student.han.nl>
46786
46787 Add support for UFS version 1 and 2. Add support for the minix
46788 filesystem version 1 and 2, both the variants with 14 and 30 long
46789 filenames.
f19dbdb7 46790
66e19ef8 46791 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
46792 fs/minix.c.
46793 (grub_emu_SOURCES): Likewise.
46794 (pkgdata_MODULES): Add ufs.mod and minix.mod.
46795 (ufs_mod_SOURCES): New variable.
46796 (ufs_mod_CFLAGS): Likewise.
46797 (minix_mod_SOURCES): Likewise.
46798 (minix_mod_CFLAGS): Likewise.
46799 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
46800 fs/minix.c.
46801 (grubof_SOURCES): Likewise.
46802 * fs/ufs.c: New file.
46803 * fs/minix.c: New file.
46804 * include/grub/fs.h (grub_ufs_init): New prototype.
46805 (grub_ufs_fini): Likewise.
46806 (grub_minix_init): Likewise.
46807 (grub_minix_fini): Likewise.
46808 * util/grub-emu.c (main): Initialize and deinitialize UFS and
46809 minix fs.
46810
cc2e748a 468112004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
46812
46813 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
46814 commands/ls.c, commands/terminal.c, commands/boot.c,
46815 commands/cmp.c and commands/cat.c.
46816 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
46817
46818 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
46819 "env.h"
46820
4b13b216 468212004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46822
46823 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
46824 and grub_, respectively. Because the conversion is trivial and
46825 mechanical, I omit the details here. Please refer to the CVS
46826 if you need more information.
46827
6a142551 468282004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
46829
46830 * include/pupa: Renamed to ...
46831 * include/grub: ... this.
46832 * util/i386/pc/pupa-mkimage.c: Renamed to ...
46833 * util/i386/pc/grub-mkimage.c: ... this.
46834 * util/i386/pc/pupa-setup.c: Renamed to ...
46835 * util/i386/pc/grub-setup.c: ... this.
46836 * util/pupa-emu.c: Renamed to ...
46837 * util/grub-emu.c: ... this.
46838
e56cdf21 468392004-03-29 Marco Gerards <metgerards@student.han.nl>
46840
46841 Add support for the newworld apple macintosh (PPC). This has been
46842 tested on the powerbook 2000 only. It only adds support for
46843 generic ieee1275 functions, console and disk support. This should
46844 be easy to port to other architectures with support for Open
46845 Firmware.
f19dbdb7 46846
e56cdf21 46847 * configure.ac: Accept the powerpc as host_cpu. In the case of
46848 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
46849 specific tests are only executed while building for the i386.
46850 Inverse test for crosscompile.
46851 * genmk.rb (Utility): Allow assembler files.
46852 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
46853 * conf/powerpc-ieee1275.rmk: New file.
46854 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
46855 * disk/powerpc/ieee1275/partition.c: Likewise.
46856 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
46857 * include/pupa/powerpc/ieee1275/console.h: Likewise.
46858 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
46859 * include/pupa/powerpc/ieee1275/time.h: Likewise.
46860 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
46861 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
46862 * include/pupa/powerpc/ieee1275/loader.h
46863 * include/pupa/powerpc/setjmp.h: Likewise.
46864 * include/pupa/powerpc/types.h: Likewise.
46865 * kern/powerpc/ieee1275/init.c: Likewise.
46866 * kern/powerpc/ieee1275/openfw.c: Likewise.
46867 * term/powerpc/ieee1275/ofconsole.c: Likewise.
46868
46869 These files were written by Johan Rydberg
46870 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 46871
e56cdf21 46872 * boot/powerpc/ieee1275/cmain.c: New file.
46873 * boot/powerpc/ieee1275/crt0.S: Likewise.
46874 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
46875 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
46876
8c8cc205 468772004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
46878
46879 * Makefile.in: Update copyright.
46880 * genmodsrc.sh: Likewise.
46881 * gensymlist.sh: Likewise.
46882 * term/i386/pc/vga.c: Indent correctly.
46883
46884 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
46885 bugreporting address.
46886 * util/i386/pc/pupa-setup.c (usage): Likewise,
46887 (main): Call pupa_ext2_init and pupa_ext2_fini.
46888
f19dbdb7 46889 * fs/fat.c (log2): Renamed to ...
8c8cc205 46890 (fat_log2): ... this.
46891 All callers changed.
46892 * kern/misc.c (memcpy): Alias to pupa_memmove.
46893 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
46894 lvalue cast.
46895 * util/console.c (pupa_ncurses_fini): Return 0.
46896
46897 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
46898 Move fail label here.
46899 [__GNU__]: Don't warn when using stat.
46900 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
46901 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
46902 long int. Use strtol instead of strtoul.
f19dbdb7 46903
db1771cf 469042004-03-14 Marco Gerards <metgerards@student.han.nl>
46905
46906 * commands/boot.c: New file.
46907 * commands/cat.c: Likewise.
46908 * commands/cmp.c: Likewise.
46909 * commands/ls.c: Likewise.
46910 * commands/terminal.c: Likewise.
46911 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
46912 (pupa_register_command): Changed interface to match the new
46913 argument parser.
46914 (pupa_command_execute): Changed (almost rewritten) so it uses
46915 pupa_split_command. Added support for setting variables using the
46916 syntax `foo=bar'.
46917 (rescue_command): Changed to work with the new argument parser.
46918 (terminal_command): Moved from here to commands/terminal.c.
46919 (set_command): New function.
46920 (unset_command): New function.
46921 (insmod_command): New function.
46922 (rmmod_command): New function.
46923 (lsmod_command): New function.
46924 (pupa_command_init): Don't initialize the command terminal
46925 anymore. Initialize the commands set, unset, insmod, rmmod and
46926 lsmod.
46927 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
46928 (kernel_img_HEADERS): Add arg.h and env.h.
46929 (pupa_mkimage_LDFLAGS): Add kern/env.c.
46930 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
46931 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
46932 normal/arg.c.
46933 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
46934 terminal.mod.
46935 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
46936 (boot_mod_SOURCES): New variable.
46937 (terminal_mod_SOURCES): Likewise.
46938 (ls_mod_SOURCES): Likewise.
46939 (cmp_mod_SOURCES): Likewise.
46940 (cat_mod_SOURCES): Likewise.
46941
46942 * normal/arg.c: New file.
46943 * kern/env.c: Likewise.
46944 * include/pupa/arg.h: Likewise.
46945 * include/pupa/env.h: Likewise.
46946 * font/manager.c (font_command): Changed to match argument parsing
46947 interface changes.
46948 (PUPA_MOD_INIT): Likewise.
46949 * hello/hello.c (pupa_cmd_hello): Likewise.
46950 (PUPA_MOD_INIT): Likewise.
46951 * include/pupa/disk.h: Include <pupa/device.h>.
46952 (pupa_print_partinfo): New prototype.
46953 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
46954 (pupa_dl_get_prefix): Likewise.
46955 * include/pupa/misc.h: Include <pupa/err.h>.
46956 (pupa_isgraph): New prototype.
46957 (pupa_isdigit): Likewise.
46958 (pupa_split_cmdline): Likewise.
46959 * include/pupa/normal.h: Include <pupa/arg.h>.
46960 (pupa_command): Changed the prototype of the member `func' to
46961 match the argument parsing interface. Added member `options'.
46962 (pupa_register_command): Updated to match function.
46963 (pupa_arg_parse): New prototype.
46964 (pupa_hello_init) [PUPA_UTIL]: New prototype.
46965 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
46966 (pupa_ls_init) [PUPA_UTIL]: Likewise.
46967 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
46968 (pupa_cat_init) [PUPA_UTIL]: Likewise.
46969 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
46970 (pupa_boot_init) [PUPA_UTIL]: Likewise.
46971 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
46972 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
46973 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
46974 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
46975 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
46976 * kern/disk.c: Include <pupa/file.h>.
46977 (pupa_print_partinfo): New function.
46978 * kern/dl.c: Include <pupa/env.h>.
46979 (pupa_dl_dir): Variable removed.
46980 (pupa_dl_load): Use the environment variable `prefix' instead of
46981 the variable pupa_dl_dir.
46982 (pupa_dl_set_prefix): Function removed.
46983 (pupa_dl_get_prefix): Likewise.
46984 * kern/i386/pc/init.c: Include <pupa/env.h>.
46985 (pupa_machine_init): Use the environment variable `prefix' instead of
46986 using pupa_dl_set_prefix to set the prefix.
46987 * kern/main.c: Include <pupa/env.h>.
46988 (pupa_set_root_dev): Use the environment variable `prefix' instead of
46989 using pupa_dl_get_prefix to get the prefix.
46990 * kern/misc.c: Include <pupa/env.h>.
46991 (pupa_isdigit): New function.
46992 (pupa_isgraph): Likewise.
46993 (pupa_ftoa): Likewise.
46994 (pupa_vsprintf): Added support for printing values of the type
46995 `double'. Make it possible to format variable output when using
46996 formatting like `%1.2%f'.
46997 (pupa_split_cmdline): New function.
46998 * kern/rescue.c: Include <pupa/env.h>.
46999 (next_word): Removed function.
47000 (pupa_rescue_cmd_prefix): Likewise.
47001 (pupa_rescue_cmd_set): New function.
47002 (pupa_rescue_cmd_unset): New function.
47003 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47004 split the command line instead of splitting it here. Added
47005 support for setting variables using the syntax `foo=bar'. Don't
47006 initialize the prefix command anymore. Initialized the set and
47007 unset commands.
47008 * normal/cmdline.c: Include <pupa/env.h>.
47009 (pupa_tab_complete): Added prototypes for print_simple_completion,
47010 print_partition_completion, add_completion, iterate_commands,
47011 iterate_dev, iterate_part and iterate_dir. Moved code to print
47012 partition information from here to kern/disk.c.
fe6b695a 47013 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 47014 * normal/main.c: Include <pupa/env.h>.
47015 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47016 instead of using pupa_dl_get_prefix to get the prefix.
47017 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47018 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47019 warning.
47020 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47021 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47022 ((unused))' to silence a gcc warning.
47023 (pupa_vga_setcolor): Likewise.
47024 (debug_command): Changed to match argument parsing
47025 interface changes.
47026 * util/pupa-emu.c: Include <pupa/env.h>.
47027 (options): Added 0's for unused fields to silence a gcc warning.
47028 (argp): Likewise.
47029 (main): Use the environment variable `prefix' instead of using
47030 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47031 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47032 and terminal.
47033
47034 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47035 * util/misc.c: Include <malloc.h>.
47036 (pupa_malloc): Rewritten so errors are correctly reported.
47037 (pupa_realloc): Likewise.
47038 (pupa_memalign): Likewise.
47039 (pupa_mm_init_region): Declare unused variables with
47040 `__attribute__ ((unused))' to silence a gcc warning.
47041 * normal/i386/setjmp.S: Remove tab at the end of the file to
47042 silence a gcc warning.
47043 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47044 variables with `__attribute__ ((unused))' to silence a gcc
47045 warning.
47046 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47047 local variable i unsigned to silence a gcc warning.
47048
47049 * kern/term.c: Include <pupa/misc.h>.
47050 (pupa_more_lines): New variable.
47051 (pupa_more): Likewise.
47052 (pupa_putcode): When the pager is active pause at the end of every
47053 screen.
47054 (pupa_set_more): New function.
47055 * include/pupa/term.h (pupa_set_more): New prototype.
47056
47057
3b1139cb 470582004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47059
47060 Now this project is GRUB 2 rather than PUPA. The location of
47061 the CVS repository was moved to GRUB's.
f19dbdb7 47062
3b1139cb 47063 * configure.ac: Use bug-grub as the reporting address.
47064 Use GRUB instead of PUPA.
47065 Change the version number to 1.90.
47066
8367695c 470672004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47068
47069 * genkernsyms.sh: Updated copyright information.
47070 * genmk.rb: Likewise.
47071 * genmodsrc.sh: Likewise.
47072 * gensymlist.sh: Likewise.
47073 * boot/i386/pc/boot.S: Likewise.
47074 * boot/i386/pc/diskboot.S: Likewise.
47075 * disk/i386/pc/biosdisk.c: Likewise.
47076 * disk/i386/pc/partition.c: Likewise.
47077 * font/manager.c: Likewise.
47078 * fs/ext2.c: Likewise.
47079 * fs/fat.c: Likewise.
47080 * include/pupa/boot.h: Likewise.
47081 * include/pupa/device.h: Likewise.
47082 * include/pupa/disk.h: Likewise.
47083 * include/pupa/dl.h: Likewise.
47084 * include/pupa/elf.h: Likewise.
47085 * include/pupa/err.h: Likewise.
47086 * include/pupa/file.h: Likewise.
47087 * include/pupa/font.h: Likewise.
47088 * include/pupa/fs.h: Likewise.
47089 * include/pupa/kernel.h: Likewise.
47090 * include/pupa/loader.h: Likewise.
47091 * include/pupa/misc.h: Likewise.
47092 * include/pupa/mm.h: Likewise.
47093 * include/pupa/net.h: Likewise.
47094 * include/pupa/normal.h: Likewise.
47095 * include/pupa/rescue.h: Likewise.
47096 * include/pupa/setjmp.h: Likewise.
47097 * include/pupa/symbol.h: Likewise.
47098 * include/pupa/term.h: Likewise.
47099 * include/pupa/types.h: Likewise.
47100 * include/pupa/i386/setjmp.h: Likewise.
47101 * include/pupa/i386/types.h: Likewise.
47102 * include/pupa/i386/pc/biosdisk.h: Likewise.
47103 * include/pupa/i386/pc/boot.h: Likewise.
47104 * include/pupa/i386/pc/console.h: Likewise.
47105 * include/pupa/i386/pc/init.h: Likewise.
47106 * include/pupa/i386/pc/kernel.h: Likewise.
47107 * include/pupa/i386/pc/linux.h: Likewise.
47108 * include/pupa/i386/pc/loader.h: Likewise.
47109 * include/pupa/i386/pc/memory.h: Likewise.
47110 * include/pupa/i386/pc/multiboot.h: Likewise.
47111 * include/pupa/i386/pc/partition.h: Likewise.
47112 * include/pupa/i386/pc/time.h: Likewise.
47113 * include/pupa/i386/pc/vga.h: Likewise.
47114 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47115 * include/pupa/util/getroot.h: Likewise.
47116 * include/pupa/util/misc.h: Likewise.
47117 * include/pupa/util/resolve.h: Likewise.
47118 * kern/device.c: Likewise.
47119 * kern/disk.c: Likewise.
47120 * kern/dl.c: Likewise.
47121 * kern/err.c: Likewise.
47122 * kern/file.c: Likewise.
47123 * kern/fs.c: Likewise.
47124 * kern/loader.c: Likewise.
47125 * kern/main.c: Likewise.
47126 * kern/misc.c: Likewise.
47127 * kern/mm.c: Likewise.
47128 * kern/rescue.c: Likewise.
47129 * kern/term.c: Likewise.
47130 * kern/i386/dl.c: Likewise.
47131 * kern/i386/pc/init.c: Likewise.
47132 * kern/i386/pc/lzo1x.S: Likewise.
47133 * kern/i386/pc/startup.S: Likewise.
47134 * loader/i386/pc/chainloader.c: Likewise.
47135 * loader/i386/pc/linux.c: Likewise.
47136 * loader/i386/pc/multiboot.c: Likewise.
47137 * normal/cmdline.c: Likewise.
47138 * normal/command.c: Likewise.
47139 * normal/main.c: Likewise.
47140 * normal/menu.c: Likewise.
47141 * normal/i386/setjmp.S: Likewise.
47142 * term/i386/pc/console.c: Likewise.
47143 * term/i386/pc/vga.c: Likewise.
47144 * util/console.c: Likewise.
47145 * util/genmoddep.c: Likewise.
47146 * util/misc.c: Likewise.
47147 * util/pupa-emu.c: Likewise.
47148 * util/resolve.c: Likewise.
47149 * util/unifont2pff.rb: Likewise.
47150 * util/i386/pc/biosdisk.c: Likewise.
47151 * util/i386/pc/getroot.c: Likewise.
47152 * util/i386/pc/pupa-mkimage.c: Likewise.
47153 * util/i386/pc/pupa-setup.c: Likewise.
47154
e6eced71 471552004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47156
47157 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47158 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47159 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47160 reading and reset it after reading.
47161 (pupa_ext2_close): Return PUPA_ERR_NONE.
47162
47163 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47164 Correct value.
47165 (struct linux_kernel_header): Add kernel_version and
47166 initrd_addr_max.
47167 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47168 pupa_file_read succeeds.
47169 (pupa_rescue_cmd_initrd): Implement.
47170
5aded270 471712003-12-03 Marco Gerards <metgerards@student.han.nl>
47172
47173 * fs/ext2.c (pupa_ext2_label): New function.
47174 (pupa_ext2_fs): Added label.
47175 * fs/fat.c (pupa_fat_label): New function.
47176 (pupa_fat_fs): Added label.
47177 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47178
47179 * kern/misc.c (pupa_strndup): New function.
47180 * include/pupa/misc.h (pupa_strndup): New prototype.
47181
47182 * include/pupa/normal.h: Include <pupa/err.h>.
47183 (pupa_set_history): New prototype.
47184 (pupa_iterate_commands): New prototype.
47185 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47186 <pupa/disk.h>, <pupa/file.h>.
47187 (hist_size): New variable.
47188 (hist_lines): Likewise.
47189 (hist_end): Likewise.
47190 (hist_used): Likewise.
47191 (pupa_set_history): New function.
47192 (pupa_history_get): Likewise.
47193 (pupa_history_add): Likewise.
47194 (pupa_history_replace): Likewise.
47195 (pupa_tab_complete): Likewise.
47196 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47197 completion shows partitionnames while completing partitions, this
47198 feature was suggested by Jeff Bailey.
47199 * normal/command.c (pupa_iterate_commands): New function.
47200 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47201 (pupa_normal_init): Initialize history buffer.
47202 (PUPA_MOD_INIT): Likewise.
47203 (pupa_normal_fini): Free the history buffer.
47204 (PUPA_MOD_FINI): Likewise.
47205
47206 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47207 key.
47208
47209 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47210 * configure.ac [i386]: Check for regparam bug.
47211 (NESTED_FUNC_ATTR) [! i386]: Defined.
47212
1f7315a3 472132003-11-17 Marco Gerards <metgerards@student.han.nl>
47214
47215 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47216 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47217 (pupa_emu_SOURCES): New variable.
47218 (pupa_emu_LDFLAGS): Likewise.
47219 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47220 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47221 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47222 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47223 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47224 (pupa_jmp_buf): New typedef.
47225 (pupa_setjmp) [PUPA_UTIL]: New macro.
47226 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47227 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47228 (pupa_refresh): New prototype.
47229 * include/pupa/util/getroot.h: New file.
47230 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47231 it.
47232 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47233 (pupa_rescue_cmd_cat): Likewise.
47234 (pupa_rescue_cmd_ls): Likewise.
47235 (pupa_rescue_cmd_testload): Likewise.
47236 (pupa_rescue_cmd_lsmod): Likewise.
47237 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47238 * normal/menu.c (run_menu): Likewise.
47239 * kern/term.c (pupa_cls): Likewise.
47240 (pupa_refresh): New function.
47241 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47242 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47243 * util/console.c: New file.
f19dbdb7 47244
1f7315a3 47245 * util/i386/pc/getroot.c: New file.
47246 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47247 (pupa_putchar): New function.
47248 (pupa_refresh): Likewise.
47249 (xgetcwd): Function moved to ...
47250 (strip_extra_slashes): Likewise.
47251 (get_prefix): Likewise.
f19dbdb7 47252 * util/i386/pc/getroot.c: ... here.
1f7315a3 47253 (find_root_device): Function moved and renamed to...
47254 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47255 Changed all callers.
47256 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47257 and renamed to...
47258 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47259 Changed all callers.
47260 * util/misc.c (pupa_memalign): New function.
47261 (pupa_mm_init_region): Likewise.
47262 (pupa_register_exported_symbols): Likewise.
47263 (pupa_putchar): Function removed.
47264 * util/pupa-emu.c: New file.
47265
9a5c1ade 472662003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47267
47268 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47269 (_multiboot_mod_SOURCES): New variable.
47270 (_multiboot_mod_CFLAGS): Likewise.
47271 * loader/i386/pc/multiboot.c: New file.
47272 * include/pupa/i386/pc/multiboot.h: Likewise.
47273 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47274 (pupa_multiboot_real_boot): New function.
47275 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47276 (pupa_multiboot_real_boot): New prototype.
47277 (pupa_rescue_cmd_multiboot): Likewise
47278 (pupa_rescue_cmd_module): Likewise.
47279
47280 * kern/loader.c (pupa_loader_set): Continue when
47281 pupa_loader_unload_func() fails.
47282 (pupa_loader_unset): New function.
47283 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47284
47285 * kern/misc.c (pupa_stpcpy): New function.
47286 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47287
8e72a9c0 472882003-11-12 Marco Gerards <metgerards@student.han.nl>
47289
47290 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47291 for available extensions.
47292
47293 * include/pupa/i386/pc/time.h: New file.
47294 * kern/disk.c: Include <pupa/machine/time.h>.
47295 (PUPA_CACHE_TIMEOUT): New macro.
47296 (pupa_last_time): New variable.
47297 (pupa_disk_open): Flush the cache when there was a timeout.
47298 (pupa_disk_close): Reset the timer.
47299 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47300 pupa_currticks.
47301 * util/misc.c: Include <sys/times.h>
47302 (pupa_get_rtc): New function.
47303
c4adbd32 473042003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47305
47306 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47307 as blocks.
47308 (pupa_ext2_get_file_block): Use blocks member.
47309
47310 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47311 first block. Return -1 instead of pupa_errno on error.
47312
bfd30f06 473132003-10-27 Marco Gerards <metgerards@student.han.nl>
47314
47315 * README: In the pupa-mkimage example use _chain instead of chain
47316 and ext2 instead of fat.
47317 * TODO: Replace ext2fs with jfs as an example. Add an item for
47318 adding journal playback for ext2fs.
47319 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47320 (pkgdata_MODULES): Added ext2.mod.
47321 (ext2_mod_SOURCES): New variable.
47322 (ext2_mod_CFLAGS): Likewise.
47323 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47324 * include/pupa/misc.h (pupa_strncpy): New prototype.
47325 (pupa_strcat): Likewise.
47326 (pupa_strncmp): Likewise.
47327 * kern/misc.c (pupa_strcat): Enable function.
47328 (pupa_strncpy): New function.
47329 (pupa_strncmp): Likewise.
47330 * fs/ext2.c: New file.
f19dbdb7 47331
bfd30f06 47332 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47333 when the read failed before retrying.
47334 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47335 (_FILE_OFFSET_BITS): Likewise.
47336 * configure.ac: Added AC_SYS_LARGEFILE.
47337
98d15063 473382003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47339
47340 * genmk.rb (PModule#rule): Make sure to get only symbol names
47341 from the output of nm.
59cad637 47342 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 47343
18d9c7cd 473442003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47345
47346 I forgot to check in these changes for a long time. This adds
47347 incomplete support for VGA console, and this is still very
47348 buggy. Also, a lot of consideration is required for I18N,
47349 UNICODE, and VGA font issues. Therefore, assume that this is
47350 such that "better than nothing".
f19dbdb7 47351
18d9c7cd 47352 * font/manager.c: New file.
47353 * include/pupa/font.h: Likewise.
47354 * include/pupa/i386/pc/vga.h: Likewise.
47355 * term/i386/pc/vga.c: Likewise.
47356 * util/unifont2pff.rb: Likewise.
47357
47358 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47359 (pkgdata_MODULES): Added vga.mod and font.mod.
47360 (vga_mod_SOURCES): New variables.
47361 (vga_mod_CFLAGS): Likewise.
47362 (font_mod_SOURCES): Likewise.
47363 (font_mod_CFLAGS): Likewise.
47364
47365 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47366
47367 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 47368 (struct pupa_term): Added init and fini.
18d9c7cd 47369 Changed the argument of putchar to pupa_uint32_t.
47370
47371 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47372 (pupa_console_real_putchar): New prototype.
47373 (pupa_console_putchar): Removed.
47374 (pupa_console_checkkey): Exported.
47375 (pupa_console_getkey): Likewise.
47376
47377 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47378 characters.
47379
47380 * kern/term.c (pupa_term_set_current): Rewritten.
47381 (pupa_putchar): Likewise.
47382 (pupa_putcode): New function.
47383
47384 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47385 (pupa_console_real_putchar): ... this.
47386 (pupa_vga_set_mode): New function.
47387 (pupa_vga_get_font): Likewise.
47388
47389 * normal/command.c: Include pupa/term.h.
47390 (terminal_command): New function.
47391 (pupa_command_init): Register the command "terminal".
47392
47393 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47394 (DISP_UP): Likewise.
47395 (DISP_RIGHT): Likewise.
47396 (DISP_DOWN): Likewise.
47397 (DISP_HLINE): Likewise.
47398 (DISP_VLINE): Likewise.
47399 (DISP_UL): Likewise.
47400 (DISP_UR): Likewise.
47401 (DISP_LL): Likewise.
47402 (DISP_LR): Likewise.
47403
47404 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 47405
977329f5 474062003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47407
47408 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47409 FIX. Reverse the path_list.
47410
47411 * include/pupa/normal.h: Export pupa_register_command and
47412 pupa_unregister_command.
47413
47414 * hello/hello.c (pupa_cmd_hello): New module.
47415 * conf/i386-pc.rmk: Added hello.mod.
47416
1f5ab428 474172003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47418
47419 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 47420
1f5ab428 47421 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47422 (compress_kernel): New variable.
47423 (generate_image): Heavily modified to support compressing a
47424 large part of the core image.
47425
47426 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47427 leak.
47428 (pupa_util_load_image): New function.
47429
47430 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47431 (pupa_compressed_size): New variable.
47432 (codestart): Enable Gate A20 here.
47433 Decompress the compressed part of the core image.
47434 Rearrange the code to put functions and variables which are
47435 required for initialization in the non-compressed part.
47436 Include lzo1x.S.
47437
47438 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47439 here.
47440
47441 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47442
f19dbdb7 47443 * include/pupa/i386/pc/kernel.h
1f5ab428 47444 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47445 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47446 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47447 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47448 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47449
47450 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47451
47452 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47453 (Utility#rule): Likewise.
47454
47455 * configure.ac: Check if LZO is available.
47456
ce5bf700 474572003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47458
47459 * include/pupa/normal.h: New file.
47460 * include/pupa/setjmp.h: Likewise.
47461 * include/pupa/i386/setjmp.h: Likewise.
47462 * normal/cmdline.c: Likewise.
47463 * normal/command.c: Likewise.
47464 * normal/main.c: Likewise.
47465 * normal/menu.c: Likewise.
47466 * normal/i386/setjmp.S: Likewise.
f19dbdb7 47467
ce5bf700 47468 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47469 (pupa_rescue_cmd_initrd): Likewise.
47470
47471 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47472 Likewise.
47473
47474 * kern/i386/pc/startup.S (translation_table): New variable.
47475 (translate_keycode): New function.
47476 (pupa_console_getkey): Call translate_keycode.
47477
47478 * kern/rescue.c (attempt_normal_mode): New function.
47479 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47480 it failed, print a message.
47481
47482 * kern/mm.c (pupa_real_malloc): Print more information when a
47483 free magic is broken.
47484 (pupa_free): If the first free header is not free actually, set
47485 it to P.
47486
47487 * kern/main.c (pupa_load_normal_mode): Just load the module
47488 "normal".
47489 (pupa_main): Don't print the message
47490 "Entering into rescue mode..." here.
47491
47492 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47493 Declared.
47494 (pupa_rescue_cmd_initrd): Likewise.
47495 (pupa_rescue_cmd_initrd): Likewise.
47496
47497 * include/pupa/symbol.h (FUNCTION): Specify the type.
47498 (VARIABLE): Likewise.
47499
47500 * include/pupa/err.h (pupa_err_t): Added
47501 PUPA_ERR_UNKNOWN_COMMAND.
47502
47503 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47504 (pupa_dl_get_prefix): Likewise.
47505
47506 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47507 Added _chain.mod and _linux.mod instead of chain.mod and
47508 linux.mod.
47509 (chain_mod_SOURCES): Renamed to ...
47510 (_chain_mod_SOURCES): ... this.
47511 (chain_mod_CFLAGS): Renamed to ...
47512 (_chain_mod_CFLAGS): ... this.
47513 (linux_mod_SOURCES): Renamed to ...
47514 (_linux_mod_SOURCES): ... this.
47515 (linux_mod_CFLAGS): Renamed to ...
47516 (_linux_mod_CFLAGS): ... this.
47517 (normal_mod_SOURCES): New variable.
47518 (normal_mod_CFLAGS): Likewise.
47519 (normal_mod_ASFLAGS): Likewise.
47520
475212003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47522
47523 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47524 possible.
47525
fe6b695a 47526 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 47527 recursively.
47528 (pupa_dl_unref): Unrefer depending modules recursively.
47529 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47530 a module is unloaded before one depending on that module is
47531 unloaded.
47532 (pupa_dl_unload): Unload depending modules explicitly,
47533 if possible.
47534
c04da074 475352003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47536
47537 * include/pupa/i386/pc/linux.h: New file.
47538 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 47539
c04da074 47540 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47541 Removed.
47542 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47543 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47544 of PUPA_CHAINLOADER_BOOT_SECTOR.
47545
47546 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47547 (pupa_linux_prot_size): New variable.
47548 (pupa_linux_tmp_addr): Likewise.
47549 (pupa_linux_real_addr): Likewise.
47550 (pupa_linux_boot_zimage): New function.
47551 (pupa_linux_boot_bzimage): Likewise.
47552
47553 * kern/i386/pc/init.c (struct mem_region): New structure.
47554 (MAX_REGIONS): New macro.
47555 (mem_regions): New variable.
47556 (num_regions): Likewise.
47557 (pupa_os_area_addr): Likewise.
47558 (pupa_os_area_size): Likewise.
47559 (pupa_lower_mem): Likewise.
47560 (pupa_upper_mem): Likewise.
47561 (add_mem_region): New function.
47562 (compact_mem_regions): Likewise.
47563 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47564 the size of the conventional memory and that of so-called upper
47565 memory (before the first memory hole).
47566 Instead of adding each found region to free memory, use
47567 add_mem_region and add them after removing overlaps.
47568 Also, add only 1/4 of the upper memory to free memory. The rest
47569 is used for loading OS images. Maybe this is ad hoc, but this
47570 makes it much easier to relocate OS images when booting.
47571
47572 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47573 (pupa_enter_rescue_mode): Don't register initrd and module.
47574
47575 * kern/mm.c: Include pupa/dl.h.
47576
47577 * kern/main.c: Include pupa/file.h and pupa/device.h.
47578
47579 * kern/loader.c (pupa_loader_load_module_func): Removed.
47580 (pupa_loader_load_module): Likewise.
47581
47582 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47583 ``.o''.
47584
47585 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47586 (pupa_linux_tmp_addr): Likewise.
47587 (pupa_linux_real_addr): Likewise.
47588 (pupa_linux_boot_zimage): Likewise.
47589 (pupa_linux_boot_bzimage): Likewise.
47590
47591 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47592 (pupa_upper_mem): Likewise.
47593 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47594 module is too dangerous.
47595
47596 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47597 (pupa_os_area_size): Likewise.
47598 (pupa_loader_set): Remove the first argument. Loader doesn't
47599 manage modules or initrd any longer.
47600 (pupa_loader_load_module): Removed.
47601
47602 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47603 (linux_mod_SOURCES): New variable.
47604 (linux_mod_CFLAGS): Likewise.
47605
a13f9237 476062003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47607
47608 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47609 the length of a blocklist correctly.
47610
47611 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47612 Use ioctl only if the OS file is a block device.
47613 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47614 not very useful for normal files.
47615
47616 * kern/main.c (pupa_set_root_dev): New function.
47617 (pupa_load_normal_mode): Likewise.
47618 (pupa_main): Call those above.
47619
47620 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47621 pupa_uint16_t.
47622
47623 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47624
a5ffe966 476252003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47626
47627 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47628 (setup): Configure the installed partition information and the
47629 dl prefix.
47630
47631 * loader/i386/pc/chainloader.c (my_mod): New variable.
47632 (pupa_chainloader_unload): New function.
47633 (pupa_rescue_cmd_chainloader): Refer itself.
47634 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47635
47636 * kern/i386/pc/startup.S (install_partition): Removed.
47637 (version_string): Likewise.
47638 (config_file): Likewise.
47639 (pupa_install_dos_part): New variable.
47640 (pupa_install_bsd_part): Likewise.
47641 (pupa_prefix): Likewise.
47642 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47643
47644 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47645 and pupa/misc.h.
47646 (make_install_device): New function.
47647 (pupa_machine_init): Set the dl prefix.
47648
47649 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47650 (buf): Renamed to ...
47651 (linebuf): ... this.
47652 (pupa_rescue_cmd_prefix): New function.
47653 (pupa_rescue_cmd_insmod): Likewise.
47654 (pupa_rescue_cmd_rmmod): Likewise.
47655 (pupa_rescue_cmd_lsmod): Likewise.
47656 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47657 rmmod and lsmod.
47658
47659 * kern/mm.c (pupa_memalign): If failed even after invalidating
47660 disk caches, unload unneeded modules and retry.
47661
47662 * kern/misc.c (pupa_memmove): New function.
47663 (pupa_memcpy): Removed.
47664 (pupa_strcpy): New function.
47665 (pupa_itoa): Made static.
47666
47667 * kern/dl.c (pupa_dl_iterate): New function.
47668 (pupa_dl_ref): Likewise.
47669 (pupa_dl_unref): Likewise.
47670 (pupa_dl_unload): Return if succeeded or not.
47671 (pupa_dl_unload_unneeded): New function.
47672 (pupa_dl_unload_all): Likewise.
47673 (pupa_dl_init): Renamed to ...
47674 (pupa_dl_set_prefix): ... this.
47675 (pupa_dl_get_prefix): New function.
47676
47677 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
47678 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
47679 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47680 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47681 (pupa_install_dos_part): Declared.
47682 (pupa_install_bsd_part): Likewise.
47683 (pupa_prefix): Likewise.
47684 (pupa_boot_drive): Likewise.
47685
47686 * include/pupa/types.h: Fix a typo.
47687
47688 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
47689 pupa_memmove.
47690 (pupa_memmove): Declared.
47691 (pupa_strcpy): Likewise.
47692
47693 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
47694 pupa_mod_init takes one argument, its own module.
47695 (pupa_dl_unload_unneeded): Declared.
47696 (pupa_dl_unload_all): Likewise.
47697 (pupa_dl_ref): Likewise.
47698 (pupa_dl_unref): Likewise.
47699 (pupa_dl_iterate): Likewise.
47700 (pupa_dl_init): Renamed to ...
47701 (pupa_dl_set_prefix): ... this.
47702 (pupa_dl_get_prefix): Declared.
47703
47704 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 47705 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 47706 unloaded.
47707 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
47708 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
47709
47710 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
47711 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
47712
012d7999 477132003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47714
47715 * util/i386/pc/pupa-setup.c (setup): Define the internal
47716 function find_first_partition_start at the top level, because GCC
47717 3.0.x cannot compile internal functions in deeper scopes
47718 correctly.
47719 (find_root_device): Use lstat instead of stat.
47720 Don't follow symbolic links.
47721 Fix the path-constructing code.
47722
47723 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
47724 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
47725 by a BLKGETSIZE ioctl first, because block devices don't fill
47726 the member st_mode of the structure stat on Linux.
47727 [__linux__] (linux_find_partition): Use a temporary buffer
47728 REAL_DEV for the working space. Copy it to DEV before returning.
47729 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
47730 buffer cache consistent.
47731 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
47732 strncmp. The previous value was merely wrong.
47733 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
47734
47735 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
47736 FAT size is 12. The previous value was merely wrong.
47737
47738 * kern/main.c (pupa_main): Don't split the starting message from
47739 newlines.
47740
47741 * kern/term.c (pupa_putchar): Put CR after LF instead of before
47742 LF, because BIOS goes crazy about character attributes in this
47743 case.
47744
1cc73a62 477452003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
47746
47747 * include/i386/pc/util/biosdisk.h: New file.
47748 * util/i386/pc/biosdisk.c: Likewise.
47749 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 47750
1cc73a62 47751 * Makefile.in (INCLUDE_DISTFILES): Added
47752 include/pupa/i386/pc/util/biosdisk.h.
47753 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
47754 directory util/i386/pc.
47755 (install-local): Added a rule for sbin_UTILITIES.
47756 (uninstall): Likewise.
47757
47758 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
47759
47760 * util/misc.c (xrealloc): New function.
47761 (pupa_malloc): Likewise.
47762 (pupa_free): Likewise.
47763 (pupa_realloc): Likewise.
47764 (pupa_stop): Likewise.
47765 (pupa_putchar): Likewise.
47766
47767 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
47768
47769 * include/pupa/util/misc.h (xrealloc): Declared.
47770
47771 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
47772 macro.
47773 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
47774 (PUPA_BOOT_MACHINE_BPB_END): ... this.
47775
47776 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
47777 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47778
47779 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
47780 way should be implemented.
47781 [PUPA_UTIL] (pupa_fat_fini): Likewise.
47782
47783 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
47784 the size of NAME for safety.
47785 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
47786 0x88.
47787
47788 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
47789 (pupa_setup_SOURCES): Likewise.
47790
47791 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
47792
08b70fe8 477932002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47794
47795 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
47796 bunch of pushl's from pusha, because this destroys the return
47797 value.
47798
62ddcc8f 477992002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
47800
47801 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
47802 This means that any missing prototypes could be fatal. Also, you
47803 must take care when writing assembly code. See the comments at
47804 the beginning of startup.S, for more details.
f19dbdb7 47805
62ddcc8f 47806 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
47807 compilation mechanism.
47808 (pupa_chainloader_real_boot): Likewise.
47809 (pupa_biosdisk_rw_int13_extensions): Likewise.
47810 (pupa_biosdisk_rw_standard): Likewise.
47811 (pupa_biosdisk_check_int13_extensions): Likewise.
47812 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
47813 (pupa_biosdisk_get_diskinfo_standard): Likewise.
47814 (pupa_get_memsize): Likewise.
47815 (pupa_get_mmap_entry): Likewise.
47816 (pupa_console_putchar): Likewise.
47817 (pupa_console_setcursor): Likewise.
47818 (pupa_getrtsecs): Use pushl instead of push.
47819
47820 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
47821 memory instead of the stack for a mmap entry, because some
47822 BIOSes may ignore the maximum size and overflow.
47823
47824 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
47825
47826 * genmk.rb (PModule#rule): Compile automatically generated
47827 sources with module-specific CFLAGS as well as other sources.
47828
9962ed99 478292002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47830
47831 * configure.ac: Check ld.
47832 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
47833 respectively, before checking endianness and sizes.
47834
47835 * Makefile.in (LD): New variable.
f19dbdb7 47836
abdfc3c5 478372002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47838
47839 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
47840
6a161fa9 478412002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
47842
47843 * Changelog: New file.
47844