]> git.proxmox.com Git - grub2.git/blame - ChangeLog
Ignore po/POTFILES-shell.in
[grub2.git] / ChangeLog
CommitLineData
34b22f5c
AB
12013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
2
3 * docs/grub.texi (Device syntax): Clarify description of network
4 drives.
5
0f7e980b
VS
62013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7
8 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
9 for vasprintf presence.
10
30b03dc2
VS
112013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12
13 * util/grub-install.in: Handle efibootmgr presence check.
14 Reported by: Leif Lindholm.
15
0dc11c08
VS
162013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
17
18 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
19 new strings to translate.
20
f8024c3f
VS
212013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
24 yet another string (pun intended) to translate.
25
b4c1da62
VS
262013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
27
28 * po/POTFILES-shell.in: Autogenerate it.
29
0ef7478b
VS
302013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
31
32 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
33
8200fa15
VS
342013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
35
36 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
37 misnomer.
38
091945b2
AB
392013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
40
41 * docs/grub.texi (Network): Add description of net_default_interface,
42 net_default_ip and net_default_mac. Rewrite variables description
43 to emphasize that they are per-interface.
44
0e7b2e32
VS
452013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
46
47 New test: cmdline and cat.
48
16f7c8f6
VS
492013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
50
51 * grub-core/commands/cat.c: Show UTF-8 characters.
52
3e912fda
VS
532013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
54
55 * conf/Makefile.common: Poison float and double on non-emu.
56
ee0220bc
VS
572013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * configure.ac: Don't disable extended registers on emu.
60
89e0240c
VS
612013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
62
63 * configure.ac: Don't use extended registers on x86_64.
64 Reported by: Peter Jones.
65
e56d9637
VS
662013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * grub-core/term/efi/console.c: Fix compile error.
69
8098f655
VS
702013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
71
72 Compressed HFS+ support.
73
16940e07
VS
742013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
77 pixel".
78
c5dbc13d
VS
792013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
80
81 Menu color test.
82
011f8ae8
VS
832013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
84
85 * grub-core/tests/setjmp_test.c: New test.
86
2aa072d7
VS
872013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
88
89 New variables 'net_default_*' to determine MAC/IP of default interface.
90
43fe02cb
VS
912013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
92
93 * tests/gettext_strings_test.in: A test to check for strings not
94 marked for translation.
95
bed06142
VS
962013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * autogen.sh: Exclude unused libgcrypt files from translation.
99
fb2666b5
VS
1002013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
101
102 Simplify few strings.
103
d22840ec
VS
1042013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
105
106 Mark few forgotten strings for translation.
107
e34092fd
VS
1082013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
111 rather than printf.
112
47cf82b4
VS
1132013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
114
115 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
116 rather than printf.
117 * grub-core/video/readers/tga.c: Likewise.
118
1eed0e6e
VS
1192013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
120
121 * tests/priority_queue_unit_test.cc: New test.
122
c5b7697b
VS
1232013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
124
125 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
126 than printf.
127
5945c2f8
AB
1282013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
129
130 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
131 variable for one time boot menu entry.
132
fa292343
B
1332013-05-05 Bean <bean123ch@gmail.com>
134
135 * grub-core/commands/testspeed.c: New command testspeed.
136
310d4214
VS
1372013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
138
139 Factor-out human-size printing.
140
85002bf3
VS
1412013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
142
143 Agglomerate more mallocs to speed-up gfxterm.
144
22b06e96
VS
1452013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
146
147 Speed-up gfxterm by slightly agglomerating mallocs.
148
b7c036bc
VS
1492013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
150
151 More video checks.
152
92323d1f
VS
1532013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
154
155 Speed-up gfxterm by saving intermediate results in index+alpha
156 format.
157
0fb356a3
VS
1582013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
159
160 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
161 test.
162
44dea3f9
VS
1632013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
164
165 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
166 line of timeout as it may contain the rest of long line.
167
14af86e4
VS
1682013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
169
170 * grub-core/normal/main.c: Fix freed memory dereference.
171
03f7c8c3
VS
1722013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
173
174 Fix several memory leaks.
175
c686014c
VS
1762013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
177
178 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
179
0788a695
VS
1802013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
181
182 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
183
daf01d61
VS
1842013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
185
186 Fix test -a and -o precedence.
187 Reported by: adrian15.
188
82ae74d7
VS
1892013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
190
191 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
192
8cec7bd4
AB
1932013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
194
195 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
196 and add it as source to functional_test module.
197
aa73d688
VS
1982013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
199
200 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
201
c104b6f9
VS
2022013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
203
204 New series of tests for gfxterm and gfxmenu.
205
7391c4d5
VS
2062013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
207
208 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
209 the theme path relative to $prefix/themes.
210
cff50118
VS
2112013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
214 Fix order bug.
215 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
216
7c332bdc
VS
2172013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
218
219 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
220 descriptor.
221
a4f9a5ff
VS
2222013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
223
224 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
225 grub_gfxmenu_timeout_notifications.
226 (grub_gfxmenu_view_destroy): Likewise.
227
b5a2114d
VS
2282013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
229
230 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
231
a8905e8a
VS
2322013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
233
234 Several fixes to ieee1275 and big-endian video.
235
813c1622
VS
2362013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
237
238 Add missing exports on mips.
239
3f3e7326
VS
2402013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
241
242 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
243 if no unifont is found.
244 Restore original keyboard.
245
095accd1
VS
2462013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
247
248 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
249 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
250
50361660
VS
2512013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
252
253 First automated video test (running videotest and comparing results)
254
cd0f6eec
VS
2552013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
256
257 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
258 instead of 2 to have full RGB/CMY test pattern.
259
3f9634e5
VS
2602013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
261
262 Add few more tests.
263
583e5b64
VS
2642013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
265
266 * include/grub/arc/arc.h: Account for missing "other" peripheral on
267 ARCS. All users updated.
268
aa7bcb99
VS
2692013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
270
271 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
272
95ef1a54
VS
2732013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
274
275 * grub-core/partmap/amiga.c: Fix size of checksummed block.
276
46546fc5
VS
2772013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
278
279 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
280 Reported by: qwertial.
281
3476e0ef
VT
2822013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
283
284 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
285 with syntax "XXX deg"/"XXX °".
286
96f33fed
VS
2872013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
288
289 Make PCI init in i386-qemu port more robust.
290
2912013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
292
293 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
294 cached view is reused.
295 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
296 open boot menus.
297
c53b4e67
VS
2982013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
299
300 Unify more code in grub-install_header.
301
f7457fb2
VS
3022013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
303
304 Add few new tests.
305
e2f27a8c
VS
3062013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
307
308 Enforce disabling of firmware disk drivers when native drivers kick in.
309
ef9d8cd5
VS
3102013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
311
312 * grub-core/commands/nativedisk.c: Customize the list of modules on
313 platform. Don't try to search for disks already using native drivers.
314
f7bf6c31
VS
3152013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
316
317 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
318 platforms.
319
bdc4add8
VS
3202013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
321
322 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
323 handling of variables containing backslash.
324
e9e46c9a
VS
3252013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
328 dereference.
329 Reported by: qwertial.
330
0e90dee8
VS
3312013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
334
e0aacf24
VS
3352013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
336
337 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
338 dereference.
339 Reported by: qwertial.
340
3c0003c3
VS
3412013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
342
343 * docs/grub.texi: Add a comment about usefullness of nativedisk.
344
adb7d667
VS
3452013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
346
347 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
348
7cd0df84
VS
3492013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
350
351 New command `nativedisk'.
352
02adbb93
VS
3532013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
354
355 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
356 * grub-core/loader/i386/bsd.c: Likewise.
357
9fb0fd4f
VS
3582013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
359
360 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
361
bd69257a
VS
3622013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
363
364 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
365 grub_get_unaligned16 rather than shifts.
366
178c2764
VS
3672013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
368
369 * grub-core/kern/file.c: Use const char * rather than casting to
370 non-const.
371
eadfad24
VS
3722013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
373
374 * grub-core/commands/probe.c: Add missing grub_device_close.
375
9f73ebd4
VS
3762013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
377
378 * INSTALL: Document linguas.sh.
379
965fa829
VS
3802013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
381
382 Remove POTFILES.in and regenerate it in autogen.sh.
383
d417ddc4
VS
3842013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
385
386 Move --directory/--override-directorry to grub-install_header and unify.
387
f97ec546
VS
3882013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
389
390 * grub-core/term/morse.c: Macroify dih and dah.
391
b2d7470c
PFS
3922013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
393
394 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
395
141e2a78
VS
3962013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
397
398 * grub-core/term/ns8250.c: Systematically probe ports by writing
399 to SR before using them.
400
1dd70ebd
PFS
4012013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
402
403 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
404 disks.
405 (check_sas): Get sas_adress info.
406
c796a107
VS
4072013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
408
409 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
410 ports.
411
43168646
LD
4122013-04-27 Leon Drugi <eyak>
413
414 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
415 BSS clearing.
416
e7b8fd08
VS
4172013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
418
419 Core compression test.
420
17f9fd29
VS
4212013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
422
423 Implement grub_machine_get_bootlocation for ARC.
424
dc2a6c8b
VS
4252013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
426
427 Improve AHCI detection and command issuing.
428
f25a2ba6
VS
4292013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
430
431 Fix pseries test.
432
a6393224
VS
4332013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
434
435 Make 'make check' work on emu.
436
db99fbe8
VS
4372013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
438
439 Replace libcurses with our own vt100 handling for the ease of testing
440 and decreasing prerequisites.
441
b24ca7cd
VS
4422013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
443
444 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
445
63314aa4
VS
4462013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
447
448 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
449 compile when not needed.
450
c1b00fff
VS
4512013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
452
453 * tests/pseries_test.in: New test.
454
f93e89ef
VS
4552013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
456
457 Add test to check that different boot mediums work.
458
c4b456d3
VS
4592013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
460
461 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
462 ofw limited ISO support.
463
5fe67f39
VS
4642013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
465
466 * configure.ac: Fix loongson conditional.
467
7f63a64f
VS
4682013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
469
470 Enable mipsel-arc.
471
b04b5990
VS
4722013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
473
474 Add serial on ARC platform.
475
88d2f302
VS
4762013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
477
478 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
479 commit.
480
86eb23bc
VS
4812013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
482
483 * tests/partmap_test.in: Add missing double semicolon.
484
eec3bb75
VS
4852013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
486
487 * util/grub-mkrescue.in: Fix loongson filename.
488
e0810df3
VS
4892013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * util/grub-mkrescue.in: Move all files that don't have a location
492 set in stone under /boot/grub. Use ISO hard links rather than copies
493 to save some space.
494
65a6b30b
VS
4952013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
496
497 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
498 bogus SLOF values.
499
6aff0107
VS
5002013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
501
502 Make check work on mips-arc.
503
5e013e56
VS
5042013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
505
506 * util/grub-mkrescue.in: Alias sashARCS as sash.
507
d1989e2e
VS
5082013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
511 it's serial.
512
1a25e72c
VS
5132013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * util/grub-install.in: Fix target fo qemu_mips.
516 Fix extension on EFI.
517
a59a9826
VS
5182013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
519
520 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
521 in front of chosen entry to mark it even if highlighting is lost.
522
1a40f80c
VS
5232013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
524
525 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
526 gfxpayload=keep if cbfb is active.
527
e343549c
VS
5282013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
529
530 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
531
45fbd9a2
VS
5322013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
533
534 Add missing video ids to coreboot and ieee1275 video.
535
ab1440bd
VS
5362013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * util/grub-mkrescue.in: Add mips-arc support.
539
cdeb8324
VS
5402013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
543
8528c879
VS
5442013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
545
546 Move mips-arc link address. Previous link address was chosen
547 in belief that RAM on SGI platforms grows down while in fact it
548 grows up from an unusual base.
549
17fca573
VS
5502013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
551
552 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
553 Fix a type which prevented CD-ROM and floppy boot.
554
d178788e
VS
5552013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
556
557 Support coreboot framebuffer.
558
559 * grub-core/video/i386/coreboot/cbfb.c: New file.
560
fe4c3e7e
VS
5612013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
562
563 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
564 detecting too small regions.
565
ec2dd179
VS
5662013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
567
568 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
569
872dac83
VS
5702013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
571
572 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
573 Remove dprintf.
574 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
575
90ec4b7f
VS
5762013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
579 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
580 * grub-core/loader/powerpc/ieee1275/linux.c
581 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
582
f32555dd
VS
5832013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
584
585 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
586 Look for /boot-rom as well as /rom/boot-rom.
587
38649799
VS
5882013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
589
590 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
591 handling when creating text_layer failed.
592 * grub-core/video/video.c (grub_video_create_render_target):
593 Set result to 0 on error.
594 (grub_video_delete_render_target): Do not dereference NULL.
595
aeace7f7
VS
5962013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
599 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
600 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
601 (grub_linux_load64): Mask out 2 high bits.
602
4eafa175
AB
6032013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
604
605 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
606 more place.
607
daaa64bd
VS
6082013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
609
610 Add support for pseries and other bootinfo machines to grub-mkrescue.
611
612 Tested by: Paulo Flabiano Smorigo.
613
d0d2daa6
VS
6142013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * util/grub-mkrescue.in: Add GPT for EFI boot.
617
b193e100
VS
6182013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
619
620 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
621 It improves performance in qemu.
622
a0f8f3ac
VS
6232013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * build-aux/snippet: Add missing gnulib files.
626
284df0e2
AB
6272013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
628
629 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
630
740201f3
AB
6312013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
632
633 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
634
a7e03923
PJ
6352013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6362013-04-15 Peter Jones <pjones@redhat.com>
637
638 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
639 sectors.
640 Based on patch by Peter Jones.
641
25fc51a8
VS
6422013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
643
644 Fix DMRAID partition handling.
645
88017d47
VS
6462013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
647
648 * tests/grub_cmd_date.in: Skip on sparc64.
649
fa7d914e
VS
6502013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
651
652 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
653 firmware error messages.
654
cbe57a48
VS
6552013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
656
657 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
658 source and destination differ.
659
21aecce0
VS
6602013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
661
662 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
663 detection.
664
25092d29
VS
6652013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
668 match config-util.h to avoid warnings and increase compatibility.
669
79451522 6702013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 6712013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
672
673 Add option to compress files on install/image creation.
674
78b7d77b
VS
6752013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * docs/grub-dev.texi: Rearrange menu to match the section order.
678 Reported by: Bryan Hundven.
679
cc2fa5ec
VS
6802013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
681
682 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
683
b49fe879
VS
6842013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
685
686 Move GRUB out of system area when using xorriso 1.2.9 or later.
687
5351da81
VS
6882013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
689
690 * tests/grub_cmd_date.in: Add missing exit 1.
691
c9d586ea
VS
6922013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
693
694 * tests/partmap_test.in: Skip on sparc64.
695
3f729741
VS
6962013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
697
698 Support grub-shell on sparc64.
699
8ca86b3a
VS
7002013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
701
702 Support mkrescue on sparc64.
703
aa1af9bb
VS
7042013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
705
706 Allow IEEE1275 ports on path even if it wasn't detected automatically.
707 Needed on OpenBIOS due to incomplete device tree.
708
ac4fea79
VS
7092013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
710
711 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
712 would be otherwise excluded.
713
7142013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
715
716 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
717 Inline name defines used only once.
718
fe22b071
VS
7192013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
720
721 Fix memory leaks in ofnet.
722 Reported by: Francesco Lavra.
723
9d21381b
VS
7242013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
725
726 * docs/man/grub-glue-efi.h2m: Add missing file.
727
07aec23c
VS
7282013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
729
730 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
731
67ab8353
VS
7322013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
733
734 Better support Apple Intel Macs on CD.
735
ba44ca6d
VS
7362013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
737
738 Replace stpcpy with grub_stpcpy in tools.
739
bbdd6305
VS
7402013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
741
742 Handle Japanese special keys.
743 Reported by: Hiroyuki YAMAMORI.
744 Codes supplied by: Hiroyuki YAMAMORI.
745
8573d302
VS
7462013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
747
748 * util/grub-mkimage.c: Document memdisk implying --prefix.
749
d70dbab7
VS
7502013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
751
752 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
753 much we can do about it anyway.
754
51a4c3e3
AN
7552013-04-12 Aleš Nesrsta <starous@volny.cz>
756
757 Fix handling of split transfers.
758
92c8f58d
VS
7592013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
760
761 * grub-core/net/http.c: Fix bad free.
762
b7d17a49
VS
7632013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
764
765 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
766 than buffer size.
767
a3d566d4
VS
7682013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
769
770 Disable partmap check on i386-ieee1275 due to openfirmware issues.
771
a936af56
VS
7722013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
773
774 * tests/util/grub-shell.in: Fix it on powerpc.
775
51212234
VS
7762013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
777
778 Turn off QEMU ACPI-way since new releases don't have shutdown port
779 anymore.
780
a21eec9e
VS
7812013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
782
783 * docs/grub.texi: Update coreboot status info.
784
e3734b84
VS
7852013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
786
787 * tests/grub_cmd_date.in: New test for datetime.
788
f9d40055
VS
7892013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
790
791 * tests/partmap_test.in: Fix missing qemudisk setting.
792
dbc56d8f
VS
7932013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
794
795 Support i386-ieee1275 grub-mkrescue and make check on it.
796
a79b8a15
VS
7972013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
798
799 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
800 feature for it.
801
48f39bb4
VS
8022013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
805 GRUB_CMDLINE_XEN_DEFAULT.
806 Reported by: Marc Warne (GigaTux) <gigatux>
807
053cfcdd
VS
8082013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
809
810 Import new gnulib.
811
93cd84df
VS
8122013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
813
814 Use ACPI shutdown intests as traditional port was removed.
815
f4b1fa4f
AB
8162013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
817
818 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
819 distinction.
820
49818a59
VS
8212013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
822
823 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
824 Fix few warining messages and leaks while on it.
825
9277a306
AB
8262013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
827
828 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
829 links under grub-core/lib/libgcrypt-grub/mpi.
830
d5e2a158
VS
8312013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
832
833 Fix ia64-efi image generation on big-endian machines. Deduplicate
834 some code while on it.
835 Reported by: Leif Lindholm.
836
18866643
AB
8372013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
838
839 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
840 as extra_dist.
841
ca53deb8
AB
8422013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
843
844 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
845
d4c4b8e1
BH
8462013-04-08 Bryan Hundven <bryanhundven@gmail.com>
847
848 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
849 texinfo-5.1.
850
47043f95
VS
8512013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
852
853 * grub-core/normal/term.c: Few more fixes for menu entry editor
854 rendering.
855 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
856
a3216068
VS
8572013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
858
859 * grub-core/normal/term.c: Few more fixes for menu entry editor
860 rendering.
861 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
862
21026747
AB
8632013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
864
865 * conf/Makefile.extra-dist (EXTRA_DIST): Add
866 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
867
59624ca8
AB
8682013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
869
870 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
871 instead of hardcoding grub.mo.
872
1f44478c
FN
8732013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
874
875 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
876
eeada7b1
VS
8772013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
878
879 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
880 grub-core/disk/geli.c.
881
132867de
VS
8822013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
883
884 * util/grub-mkfont.c: Prefer enum to #define.
885
de73de17
VS
8862013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
887
888 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
889
1865baa7
VS
8902013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
891
892 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
893
ce7d92a9
VS
8942013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
895
896 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
897
52eab656
VS
8982013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
901
98b23b95
VS
9022013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * include/grub/bsdlabel.h: Use enums.
905
0467a5dd
VS
9062013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
907
908 Move GRUB_CHAR_BIT to types.h.
909
16cc9f03
AB
9102013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
911
912 * docs/grub.texi: Document more user commands.
913
3152aecb
AB
9142013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
915
916 * docs/grub.texi: Document menuentry --id option.
917
c506fc30
FL
9182013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
919
920 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
921
aa428238
VS
9222013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
923
924 Unify file copying setup across different install scripts. Add
925 options for performing partial install.
926
efe0cdda
PJ
9272013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
9282013-04-04 Peter Jones <pjones@redhat.com>
929
930 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
931
f75835bd
VS
9322013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
933
934 Use TSC as a possible time source on i386-ieee1275.
935
2cd5ce6c
VS
9362013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
939 Init err.
940
c9625630
VS
9412013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * util/grub-setup.c (setup): Handle some corner cases.
944
be008941
VS
9452013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
946
947 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
948
1a78d573
VS
9492013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
950
951 * grub-core/commands/verify.c: Save verified file to avoid it being
952 tampered with after verification was done.
953
db8ff59f
VS
9542013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
955
956 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
957 reported width by one to compensate for curesor algorithm problem.
958
91bf46b1
VS
9592013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
960
961 Fix screen corruption in menu entry editor and simplify the code
962 flow while on it.
963
a7b1d693
AB
9642013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
965
966 * util/grub-mount.c (fuse_init): Return error if fuse_main
967 failed.
968
31df9ad8
FL
9692013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
970
971 * include/grub/elf.h: Add missing ARM relocation codes and fix
972 existing ones.
973
07f392eb
VT
9742013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
975
976 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
977
9efd73ec 9782013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
9792013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
982 into account when calculating radius.
983
9842013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
985
986 * grub-core/gfxmenu/view.c: Fix off-by-one error.
987
4985ddaa
VT
9882013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
989
990 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
991
8c3635ff
RS
9922013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
993
994 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
995 missing closing bracket.
996
74a35e69
RS
9972013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
998
999 * INSTALL: Mention xorriso requirement.
1000
40f1c000
AB
10012013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
1002
1003 * grub-core/commands/verify.c: Fix hash algorithms values for
1004 the first three hashes - they start with 1, not with 0.
1005
e75fdee4
VS
10062013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
1007
1008 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
1009 Try terminating EFI services several times due to quirks in some
1010 implementations.
1011
33028f4c
CW
10122013-03-26 Colin Watson <cjwatson@ubuntu.com>
1013
1014 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
1015 skipping Event, Device, Processor, PowerRes, ThermalZone, and
1016 BankField extended opcodes.
1017 (get_sleep_type): Add minimal scope handling (just enough to
1018 handle setting the scope to the root path).
1019 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
1020 * include/grub/acpi.h: Add enumeration values for Event, Device,
1021 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
1022
33871a10
VT
10232013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
1024
1025 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
1026 memory leak.
1027
8990963a
VS
10282013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1029
1030 * grub-core/disk/ahci.c: Give more time for AHCI request.
1031
daae8f9e
VS
10322013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
1035 command.
1036
6a7fb94b
VS
10372013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 Replace the region at 0 from coreboot tables to available in BSD
1040 memory map.
1041
ff99babd
VS
10422013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
1045 non-BIOS platforms.
1046
30d6b1b2
VS
10472013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
1050 platforms.
1051
6ccd0b31
VS
10522013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1053
1054 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
1055 handling of multi-device filesystems.
1056
23c9cc04
VS
10572013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1058
1059 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
1060 platforms.
1061
ce50dbd7
VS
10622013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
1063
1064 Add new 'proc' filesystem framework and put luks_script into it.
1065
d975e8d5
VS
10662013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
1067
1068 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
1069 and qemu.
1070
e73ba5e8
VS
10712013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1072
1073 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
1074
92750e4c
VS
10752013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1076
1077 Add ability to generate newc additions on runtime.
1078
0ec45a68
VS
10792013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
1080
1081 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
1082 description.
1083
320abd43
VS
10842013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 * po/POTFILES.in: Regenerate.
1087
d7a6506e
VS
10882013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 * grub-core/commands/verify.c (hashes): Add several hashes
1091 from the spec.
1092
8fe05def
VS
10932013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1094
1095 Slight improve in USB-related boot-time checkpoints.
1096
524e2766
VS
10972013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1098
1099 * grub-core/commands/boottime.c: Fix copyright header.
1100
cc19857a
VS
11012013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1102
1103 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
1104 coreboot tables content. Support for cbmemc.
1105
ef8810e9
VS
11062013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1107
1108 Fix a conflict between ports structures with 2 controllers of
1109 same kind.
1110
e9dabdfa
VS
11112013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 * include/grub/boottime.h: Add missing file.
1114
f6df57d2
VS
11152013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 Initialize USB ports in parallel to speed-up boot.
1118
d745dda7
VS
11192013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1120
1121 Fix USB devices not being detected when requested
1122 due to delayed attach.
1123
e5a2dd7b
VS
11242013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1125
e744219b
VS
1126 Implement boot time analysis framework.
1127
11282013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
1131 descriptor to just receive it as argument rather than endpoint
1132 address.
1133
5dd6f587
VS
11342013-03-19 Aleš Nesrsta <starous@volny.cz>
1135
1136 Better estimate the maximum USB transfer size.
1137
2f1071d5
VS
11382013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 Resend a packet if we got the wrong buffer in status.
1141
46ecfc49
VS
11422013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
1145 multiplication rather than division.
1146
ea811130
VS
11472013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
1150 than divisions.
1151
d2789cf0
VS
11522013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
1155 operations to have intended shifts and not divisions.
1156
a9c94590
VS
11572013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1158
1159 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
1160 intended shifts rather than division.
1161
84cfe81b
VS
11622013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1163
1164 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
1165 computation for some years before epoch. Avode confusing division
1166 while on it.
1167
21344ef6
VS
11682013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 * grub-core/video/i386/pc/vbe.c
1171 (grub_video_vbe_print_adapter_specific_info): Replace division by
1172 shifts.
1173
3f2b4d1a
VS
11742013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1175
1176 Adjust types in gdb module to have intended unsigned shifts rather than
1177 signed divisions.
1178
3dac5878
VS
11792013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
1182 maximum size is 4G - 1 on hfs
1183
5341c0fb
VS
11842013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
1187
fc3ff2a2
VS
11882013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
1189
1190 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
1191 function.
1192
81455e8e
AB
11932013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
1194
1195 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
1196 causing gcc error with gcc 4.7.1.
1197
efd4f117
NZ
11982013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1199
1200 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
1201 dereference null pointer. While the code is technically correct, gcc
1202 may eliminate a null check if pointer is already dereferenced.
1203
e11645f4
NZ
12042013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
1205
1206 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
1207 OOM check.
1208 * grub-core/normal/term.c (read_terminal_list): Likewise.
1209
77468368
VS
12102013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
1211
1212 Lift up core size limits on some platforms. Fix potential memory
1213 corruption with big core on small memory systems. Document remaining
1214 limits.
1215
f6b58fe5
VS
12162013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
1217
1218 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
1219 gotoxy to 0,0.
1220
19ce697d
VS
12212013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1222
1223 Remove all trampoline support. Add -Wtrampolines when
1224 present. Remove symbols used for trampolines to make
1225 link fail if trampolines are present.
1226
73b5d90f
VS
12272013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1228
1229 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
1230 append out of its parent.
1231
cb758e96
VS
12322013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1233
1234 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
1235 parent.
1236
3188131f
VS
12372013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
1240 all vars to a macro. All users updated.
1241
e42b2514
VS
12422013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
1243
1244 * grub-core/disk/ieee1275/nand.c: Fix compilation on
1245 i386-ieee1275.
1246
83e1a1a1
VS
12472013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
1250
1d5a880f
VS
12512013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1252
1253 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
1254
6e4146c4
VS
12552013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1256
1257 Move to more hookless approach in IEEE1275 devices handling.
1258
99fcda8a
VS
12592013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1260
1261 * grub-core/kern/term.c (grub_term_normal_color),
1262 (grub_term_highlight_color): Add back lost defaults.
1263
73bf57e2
VS
12642013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 Make elfload not use hooks. Opt for flags and iterators instead.
1267
7f8c105f
VS
12682013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
1271 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
1272
396d4091
VS
12732013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/script/execute.c (gettext_append): Remove nested functions.
1276
12772013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
1280 hook pass-through parameter. All users updated and unnested.
1281
74a27421
VS
12822013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1283
1284 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
1285 out of its parent.
1286
b46d4213
VS
12872013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
1288
1289 * grub-core/fs/hfs.c: Remove nested functions.
1290
e114c3cc
VS
12912013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1292
1293 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
1294 the context through.
1295 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
1296
f9b7d780
VS
12972013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * util/grub-editenv.c (list_variables): Move print_var out of its
1300 parent.
1301
ca9c2608
VS
13022013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
1305 function.
1306
5d983f5f
VS
13072013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1308
1309 * grub-core/gentrigtables.c: Make tables const.
1310
3056d3e7
VS
13112013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1312
1313 Remove nested functions from videoinfo iterators.
1314
e2303774
VS
13152013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1316
1317 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
1318 for 64-bit platforms.
1319
f42e3a2f
VS
13202013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1321
1322 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
1323 a FOR_CHILDREN macro.
1324
be174e5e
VS
13252013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
1328 platform from firmware path.
1329
0789b672
VS
13302013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1331
1332 Enable linux16 on non-BIOS systems for i.a. memtest.
1333
1334 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
1335 correctly.
1336 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
1337
005a9c32
VS
13382013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1339
1340 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
1341 Fix end of table condition.
1342
ff2b3cd9
VS
13432013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
1346 out of its parent.
1347
4fc40ff8
VS
13482013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1349
1350 * grub-core/fs/jfs.c: Remove nested functions.
1351
be42d97a
VS
13522013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1353
1354 * grub-core/fs/minix.c: Remove nested functions.
1355
99373ce4
VS
13562013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * grub-core/fs/iso9660.c: Remove nested functions.
1359
5aec2afe
VS
13602013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1361
1362 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
1363 of parent function.
1364
6c69e691
VS
13652013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * util/grub-fstest.c: Remove nested functions.
1368
43c91882
VS
13692013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1370
1371 * grub-core/loader/machoXX.c: Remove nested functions.
1372
4eb8b756
CW
13732013-02-27 Colin Watson <cjwatson@ubuntu.com>
1374
1375 Remove nested functions from disk and file read hooks.
1376
1377 * include/grub/disk.h (grub_disk_read_hook_t): New type.
1378 (struct grub_disk): Add read_hook_data member.
1379 * include/grub/file.h (struct grub_file): Likewise.
1380 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
1381 argument.
1382
1383 Update all callers.
1384
df6da5a5
AB
13852012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
1386
1387 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
1388 Fix off by one error in enumerating extended partitions.
1389
21aecde5
AB
13902013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
1391
1392 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
1393 memory leak if device name is not found.
1394
f1a19118
AB
13952013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1396
1397 * grub-core/normal/menu_entry.c (update_screen): remove
1398 unused variable `off' which caused scroll down arrow to be always shown.
1399
958bfd20
AB
14002013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1401
1402 * grub-core/normal/menu_entry.c (insert_string): fix off by one
1403 access to unallocated memory.
1404
b7b78edb
AB
14052013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
1406
1407 * Makefile.util.def: Add partmap/msdos.c to common library.
1408 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
1409 * grub-core/disk/ldm.c: Check for existence of
1410 GRUB_PC_PARTITION_TYPE_LDM.
1411
28d468d6
VS
14122013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
1413
1414 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
1415 sizes and display sector size.
1416
d55ffb02
VS
14172013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
1418
1419 Implement new command cmosdump.
1420
b5ea6ce0
VS
14212013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1422
1423 Support Openfirmware disks with non-512B sectors.
1424
1425 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
1426 size of the disk.
1427 * (grub_ofdisk_get_block_size): New function.
1428 * (grub_ofdisk_prepare): Use the correct block size.
1429 * (grub_ofdisk_read): Likewise.
1430 * (grub_ofdisk_write): Likewise.
1431 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
1432 New proto.
1433
cc0e476f
VS
14342013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
1435
1436 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
1437
c5dbdc33
VS
14382013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
1439
1440 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
1441 on first error.
1442
3f078c0f
VS
14432013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1444
1445 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
1446 freeing it.
1447
66a93674
VS
14482013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1449
1450 Implement USBDebug (full USB stack variant).
1451
c9f0c134
VS
14522013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1453
1454 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
1455 unless they have unexpected values.
1456
cfe1288b
VS
14572013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1458
1459 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
1460 grub_print_error.
1461
e42b9969
VS
14622013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
1463
1464 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
1465 zero-out of port structure.
1466
cf94fd62
VS
14672013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
1468
1469 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
1470 of extended attributes.
1471
f81ef4b5
AB
14722013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
1473
1474 * util/grub-install.in: change misleading comment about
1475 device.map creation
1476
af18fdb4
VS
14772013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
1480 when menu highlight color isn't set.
1481
08bcec50
M
14822013-01-27 C. Masloch <pushbx@38.de>
1483
1484 Improve FreeDOS direct loading support compatibility.
1485
1486 * include/grub/i386/relocator.h (grub_relocator16_state):
1487 New member ebp.
1488 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
1489 variable.
1490 (grub_relocator16_boot): Handle %ebp.
1491 * grub-core/lib/i386/relocator16.S: Likewise.
1492 * grub-core/loader/i386/pc/freedos.c:
1493 Load BPB to pass kernel which partition to load from.
1494 Check that kernel file is not too large.
1495 Set register dl to BIOS unit number as well.
1496
7782b8a6
CW
14972013-01-22 Colin Watson <cjwatson@ubuntu.com>
1498
1499 * util/grub-reboot.in (usage): Document the need for
1500 GRUB_DEFAULT=saved.
1501 * util/grub-set-default.in (usage): Likewise.
1502 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
1503
e661c180
VS
15042013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1505
1506 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
1507 than defining WORDS_BIGENDIAN manually.
1508
1c22ca9a
VS
15092013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1510
1511 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
1512 invariants.
1513
d44892fe
CW
15142013-01-21 Colin Watson <cjwatson@ubuntu.com>
1515
1516 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
1517 nested.
1518 (blit_comb: add_device_width): Likewise.
1519
5fdbaed1
CW
15202013-01-21 Colin Watson <cjwatson@ubuntu.com>
1521
1522 Remove nested functions from USB iterators.
1523
1524 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
1525 (grub_usb_controller_iterate_hook_t): Likewise.
1526 (grub_usb_iterate): Add hook_data argument.
1527 (grub_usb_controller_iterate): Likewise.
1528 (struct grub_usb_controller_dev.iterate): Likewise.
1529
1530 Update all implementations and callers.
1531
4250985a
VS
15322013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
1535 margin when not needed.
1536
7d8848f3
VS
15372013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1538
bc136973 1539 Make color variables global instead of it being per-terminal.
7d8848f3
VS
1540
15412013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1542
bc136973
VS
1543 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
1544 asterisk.
7d8848f3 1545
ed12a003
CW
15462013-01-21 Colin Watson <cjwatson@ubuntu.com>
1547
1548 Fix powerpc and sparc64 build failures caused by un-nesting memory
1549 map iterators.
1550
6a0db449
CW
15512013-01-21 Colin Watson <cjwatson@ubuntu.com>
1552
1553 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
1554 parameter declarations.
1555
ccd86b21
VS
15562013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1557
1558 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
1559
822b726b
VS
15602013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 Improve spkmomdem reliability by adding a separator between bytes.
1563
115c2cc1
CW
15642013-01-21 Colin Watson <cjwatson@ubuntu.com>
1565
1566 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
1567 an Acer registration utility with several sightings in the wild.
1568 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
1569
fc524edf
CW
15702013-01-21 Colin Watson <cjwatson@ubuntu.com>
1571
1572 Remove nested functions from filesystem directory iterators.
1573
1574 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
1575 (struct grub_fs.dir): Add hook_data argument.
1576
1577 Update all implementations and callers.
1578
53d3e4e3
CW
15792013-01-21 Colin Watson <cjwatson@ubuntu.com>
1580
1581 * docs/grub.texi (Multi-boot manual config): Fix typo for
1582 "recommended".
1583
c821711f
LL
15842013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1585
1586 * util/grub-mkimage.c (main): Postpone freeing arguments.output
1587 until after its use in generate_image.
1588
6a0debbd
CW
15892013-01-20 Colin Watson <cjwatson@ubuntu.com>
1590
1591 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
1592 initrd size to addr_min, since the initrd will be allocated after
1593 this address.
1594
f41e08db
AB
15952013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1596
1597 * conf/Makefile.common: Fix autogen rules to pass definition
1598 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
1599
77529e0f
LL
16002013-01-20 Leif Lindholm <leif.lindholm@arm.com>
1601
1602 * include/grub/elf.h: Update ARM definitions based on binutils.
1603
b879aa7b
VS
16042013-01-20 Aleš Nesrsta <starous@volny.cz>
1605
1606 Split long USB transfers into short ones.
1607
8eb8284d
AB
16082013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
1609
1610 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
1611 is interrupted by ESC.
1612
08dad2dc
VS
16132013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
1614
1615 * util/grub-script-check.c (main): Uniform the error message.
1616
6c724b85
CW
16172013-01-20 Colin Watson <cjwatson@ubuntu.com>
1618
1619 Remove nested functions from ELF iterators.
1620
25239370
CW
16212013-01-20 Colin Watson <cjwatson@ubuntu.com>
1622
1623 Remove nested functions from device iterators.
1624
1625 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
1626 (grub_arc_iterate_devs): Add hook_data argument.
1627 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
1628 (struct grub_ata_dev.iterate): Add hook_data argument.
1629 * include/grub/device.h (grub_device_iterate_hook_t): New type.
1630 (grub_device_iterate): Add hook_data argument.
1631 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
1632 (struct grub_disk_dev.iterate): Add hook_data argument.
1633 (grub_disk_dev_iterate): Likewise.
1634 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
1635 Likewise.
1636 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
1637 Likewise.
1638 * include/grub/partition.h (grub_partition_iterate_hook_t): New
1639 type.
1640 (struct grub_partition_map.iterate): Add hook_data argument.
1641 (grub_partition_iterate): Likewise.
1642 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
1643 (struct grub_scsi_dev.iterate): Add hook_data argument.
1644
1645 Update all callers.
1646
6c0314d6
CW
16472013-01-20 Colin Watson <cjwatson@ubuntu.com>
1648
1649 Fix typos for "developer" and "development".
1650
600dc5f1
VS
16512013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
1652
1653 Add license header to spkmodem-recv.c.
1654
17334a6b
VS
16552013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
1656
1657 Rewrite spkmodem to use PIT for timing. Double the speed.
1658
7d462559
VS
16592013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 Add new command pcidump.
1662
b78d6c32
VS
16632013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1664
1665 New terminal outputs using serial: morse and spkmodem.
1666
34f71cb8
VS
16672013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1668
1669 Improve bidi handling in entry editor.
1670
4542e71b
VS
16712013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
1672
1673 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
1674 argument to prevent name collision.
1675
09fd6d82
CW
16762013-01-15 Colin Watson <cjwatson@ubuntu.com>
1677
1678 Remove nested functions from script reading and parsing.
1679
1680 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
1681 getline_data argument, passed to getline.
1682 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
1683 getline_data argument, passed to grub_parser_split_cmdline.
1684 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
1685 lexerstate->getline_data to lexerstate->getline.
1686 (grub_script_lexer_init): Add getline_data argument, saved in
1687 lexerstate->getline_data.
1688 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
1689 argument, passed to grub_script_parse.
1690 * grub-core/script/script.c (grub_script_parse): Add getline_data
1691 argument, passed to grub_script_lexer_init.
1692 * include/grub/parser.h (grub_parser_split_cmdline): Update
1693 prototype. Update all callers to pass appropriate getline data.
1694 (struct grub_parser.parse_line): Likewise.
1695 (grub_rescue_parse_line): Likewise.
1696 * include/grub/reader.h (grub_reader_getline_t): Add void *
1697 argument.
1698 * include/grub/script_sh.h (struct grub_lexer_param): Add
1699 getline_data member.
1700 (grub_script_parse): Update prototype. Update all callers to pass
1701 appropriate getline data.
1702 (grub_script_lexer_init): Likewise.
1703 (grub_normal_parse_line): Likewise.
1704
1705 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
1706 data argument.
1707 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
1708 static instead of nested. Rename to ...
1709 (grub_parser_execute_getline): ... this.
1710 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
1711 data argument.
1712 * grub-core/normal/main.c (read_config_file: getline): Make static
1713 instead of nested. Rename to ...
1714 (read_config_file_getline): ... this.
1715 (grub_normal_read_line): Add unused data argument.
1716 * grub-core/script/execute.c (grub_script_execute_sourcecode:
1717 getline): Make static instead of nested. Rename to ...
1718 (grub_script_execute_sourcecode_getline): ... this.
1719 * util/grub-script-check.c (main: get_config_line): Make static
1720 instead of nested.
1721
d0d4b8a0
CW
17222013-01-15 Colin Watson <cjwatson@ubuntu.com>
1723
1724 Remove nested functions from memory map iterators.
1725
1726 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
1727 argument, passed to hook.
1728 * grub-core/kern/i386/coreboot/mmap.c
1729 (grub_linuxbios_table_iterate): Likewise.
1730 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
1731 instead of nested.
1732 (grub_machine_mmap_iterate): Add hook_data argument.
1733 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
1734 Add hook_data argument, passed to hook.
1735 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
1736 Likewise.
1737 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
1738 Likewise.
1739 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
1740 Likewise.
1741 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
1742 Likewise.
1743 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
1744 Likewise.
1745 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
1746 Likewise.
1747 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
1748 (grub_machine_mmap_iterate): Likewise.
1749 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
1750 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
1751 prototype.
1752 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
1753 Remove NESTED_FUNC_ATTR from here and from all users.
1754 (grub_mmap_iterate): Update prototype.
1755 (grub_efi_mmap_iterate): Update prototype. Update all callers to
1756 pass appropriate hook data.
1757 (grub_machine_mmap_iterate): Likewise.
1758
1759 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
1760 static instead of nested.
1761 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
1762 Rename to ...
1763 (lsmmap_hook): ... this.
1764 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
1765 Likewise.
1766 (grub_efiemu_mmap_fill: fill_hook): Likewise.
1767 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
1768 heap_init): Likewise.
1769 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
1770 Rename to ...
1771 (mmap_iterate_hook): ... this.
1772 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
1773 Likewise.
1774 * grub-core/lib/ieee1275/relocator.c
1775 (grub_relocator_firmware_get_max_events: count): Likewise.
1776 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
1777 to ...
1778 (grub_relocator_firmware_fill_events_iter): ... this.
1779 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
1780 hook): Likewise. Rename to ...
1781 (grub_relocator_alloc_chunk_align_iter): ... this.
1782 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
1783 Rename to ...
1784 (generate_e820_mmap_iter): ... this.
1785 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
1786 Rename to ...
1787 (count_hook): ... this.
1788 (grub_linux_boot: hook): Likewise. Rename to ...
1789 (grub_linux_boot_mmap_find): ... this.
1790 (grub_linux_boot: hook_fill): Likewise. Rename to ...
1791 (grub_linux_boot_mmap_fill): ... this.
1792 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
1793 hook): Likewise. Rename to ...
1794 (grub_fill_multiboot_mmap_iter): ... this.
1795 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
1796 hook): Likewise. Rename to ...
1797 (count_hook): ... this.
1798 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
1799 hook): Likewise. Rename to ...
1800 (grub_fill_multiboot_mmap_iter): ... this.
1801 * grub-core/loader/powerpc/ieee1275/linux.c
1802 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
1803 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
1804 Likewise. Rename to ...
1805 (alloc_phys_choose): ... this.
1806 (determine_phys_base: get_physbase): Likewise.
1807 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
1808 find_hook): Likewise.
1809 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
1810 (malloc_hook: count_hook): Likewise.
1811 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
1812 Likewise. Rename to ...
1813 (lower_hook): ... this.
1814 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1815 (upper_hook): ... this.
1816 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1817 (post64_hook): ... this.
1818 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1819 Likewise. Rename to ...
1820 (lower_hook): ... this.
1821 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1822 (upper_hook): ... this.
1823 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1824 (grub_mmap_iterate: fill_hook): Likewise.
1825 (fill_mask): Pass addr and mask within a single struct.
1826 (grub_cmd_badram: hook): Make static instead of nested. Rename
1827 to ...
1828 (badram_iter): ... this.
1829 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1830 (cutmem_iter): ... this.
1831
22099030
VS
18322013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1833
1834 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1835 delimit path in strings using quotes.
1836 * util/getroot.c (grub_guess_root_devices): Likewise.
1837 (grub_make_system_path_relative_to_its_root): Likewise.
1838 * util/grub-probe.c (probe): Likewise.
1839 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1840 (xrealpath): Likewise.
1841
4a9950ec
VS
18422013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 Fix compilation with older compilers.
1845
1846 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1847 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1848 declarations.
1849 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1850 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1851 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1852 identifier with b.
1853 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1854 * include/grub/crypto.h: Add type defines.
1855 * util/import_gcrypth.sed: Remove duplicate type defines.
1856
adcc6020
VS
18572013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1858
1859 New command list_trusted.
1860
1861 * grub-core/commands/verify.c (grub_cmd_list): New function.
1862
a4528937
CW
18632013-01-13 Colin Watson <cjwatson@ubuntu.com>
1864
1865 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1866 info message.
1867
ca3a7446
CW
18682013-01-13 Colin Watson <cjwatson@ubuntu.com>
1869
1870 Remove nested functions from PCI iterators.
1871
1872 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1873 passed to hook. Update all callers to pass appropriate hook data.
1874 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1875 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1876 Remove NESTED_FUNC_ATTR from here and from all users.
1877 (grub_pci_iterate): Update prototype.
1878 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1879 instead of nested. Rename to ...
1880 (grub_cs5536_find_iter): ... this.
1881 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1882 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1883 Likewise.
1884 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1885 Likewise.
1886 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1887 Likewise.
1888 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1889 Likewise.
1890 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1891 * grub-core/video/radeon_fuloong2e.c
1892 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1893 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1894 find_card): Likewise.
1895 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1896 Likewise.
1897
f8e98fee
VS
18982013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1899
1900 * grub-core/commands/verify.c: Mark messages for translating.
1901
055b36b6
VS
19022013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1903
1904 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1905 fatal.
1906
f7ff879b
VS
19072013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1910 fatal.
1911
19122013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
1913
1914 * autogen.sh: Do not try to delete nonexistant files.
1915 * util/import_gcrypth.sed: Add some missing header removals.
1916
01323d49
CW
19172013-01-12 Colin Watson <cjwatson@ubuntu.com>
1918
1919 Clean up dangling references to grub-setup.
1920 Fixes Ubuntu bug #1082045.
1921
1922 * docs/grub.texi (Images): Refer generally to grub-install rather
1923 than directly to grub-setup.
1924 (Installing GRUB using grub-install): Remove direct reference to
1925 grub-setup.
1926 (Device map) Likewise.
1927 (Invoking grub-install): Likewise.
1928 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1929 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1930 * util/grub-install.in (usage): Likewise.
1931
1932 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1933 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1934 grub-setup.
1935 * configure.ac: Remove grub_setup output variable.
1936
1937 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1938 to grub-bios-setup.
1939 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1940 grub-setup to grub-sparc64-setup.
1941
5e3b8dcb
VS
19422013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 Import gcrypt public-key cryptography and implement signature checking.
1945
535714bd
VS
19462013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1947
1948 * grub-core/fs/ntfs.c: Ue more appropriate types.
1949 * grub-core/fs/ntfscomp.c: Likewise.
1950 * include/grub/ntfs.h: Likewise.
1951
3e4f3566
VS
19522013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 Support Apple FAT binaries on non-Apple platforms.
1955
1956 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1957 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1958 Likewise.
1959 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1960 Apple FAT binaries.
1961
4dedb13f
VS
19622013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1963
1964 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1965 sector devices.
1966
f8861eaf
CW
19672013-01-07 Colin Watson <cjwatson@ubuntu.com>
1968
1969 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1970 explicitly zeroing elements.
1971 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1972 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1973 of elements in a structure already allocated using grub_zalloc.
1974 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1975
86065b0a
CW
19762013-01-07 Colin Watson <cjwatson@ubuntu.com>
1977
1978 * docs/grub.texi (grub_cpu): New subsection.
1979 (grub_platform): Likewise.
1980
c6f1e92f
VS
19812013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1984
f797ec85
VS
19852013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1988 divisions.
1989
033d0b4b
VS
19902013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1993 * grub-core/fs/ntfscomp.c: Likewise.
1994 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1995 (grub_ntfs_comp): Likewise.
1996
21d1b9a0
VS
19972013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1998
1999 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
2000 Rename to ...
2001 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
2002 of groups_per_block. All users updated.
2003
10ca8645
VS
20042013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
2005
2006 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
2007 grub_error properly.
2008 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
2009 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
2010
a4c3ed4c
VS
20112013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
2014 always in /boot/zfs.
2015 Reported by: Yuta Satoh.
2016
0b716507
YS
20172013-01-03 Yuta Satoh <nigoro>
2018
2019 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
2020 ${grub_probe}
2021
00c05e22
VS
20222013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2023
2024 * configure.ac: Extend -Wno-trampolines to host.
2025
dadddb76
VS
20262013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
2029 entry->len = 0.
2030
54ce53ca
CW
20312013-01-03 Colin Watson <cjwatson@ubuntu.com>
2032
2033 * docs/grub.texi (Invoking grub-mkrelpath): New section.
2034 (Invoking grub-script-check): Likewise.
2035
8912efca
CW
20362013-01-03 Colin Watson <cjwatson@ubuntu.com>
2037
2038 * docs/grub.texi (Invoking grub-mount): New section.
2039 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
2040
c3fc8394
CW
20412013-01-02 Colin Watson <cjwatson@ubuntu.com>
2042
2043 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
2044 test failures, so that a failing unit test correctly causes 'make
2045 check' to fail.
2046
45d26abb
CW
20472013-01-02 Colin Watson <cjwatson@ubuntu.com>
2048
2049 Fix failing printf test.
2050
2051 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
2052 '$' in the correct order when collecting type information.
2053
971dd2c6
CW
20542013-01-02 Colin Watson <cjwatson@ubuntu.com>
2055
2056 * docs/grub.texi (configfile): Explain environment variable
2057 handling.
2058 (source): New section.
2059 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
2060
5c67ea6c
CW
20612012-12-31 Colin Watson <cjwatson@ubuntu.com>
2062
2063 Remove several trivially-unnecessary uses of nested functions.
2064
2065 * grub-core/commands/i386/pc/sendkey.c
2066 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
2067 instead of nested.
2068 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
2069 Rename to ...
2070 (legacy_file_getline): ... this.
2071 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
2072 Likewise.
2073 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
2074 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
2075 to ...
2076 (probe_dummy_iter): ... this.
2077 * grub-core/kern/i386/coreboot/mmap.c
2078 (grub_linuxbios_table_iterate: check_signature): Likewise.
2079 * grub-core/kern/parser.c (grub_parser_split_cmdline:
2080 check_varstate): Likewise. Mark inline.
2081 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
2082 an additional parameter.
2083 (find_long: fnd_long): Likewise. Pass two additional parameters.
2084 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
2085 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
2086 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
2087 Likewise. Rename to ...
2088 (grub_cmos_find_port_iter): ... this.
2089 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
2090 Rename to ...
2091 (find_rtc_iter): ... this.
2092
2093 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
2094 function directly into the function body, since it is only called
2095 once.
2096
33a68ac6
CW
20972012-12-30 Colin Watson <cjwatson@ubuntu.com>
2098
2099 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
2100 __attribute__ ((unused)).
2101 * grub-core/video/bochs.c (find_card): Likewise.
2102 * grub-core/video/cirrus.c (find_card): Likewise.
2103 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
2104 * grub-core/video/sis315pro.c (find_card): Likewise.
2105 * grub-core/video/sm712.c (find_card): Likewise.
2106
608b647a
CW
21072012-12-28 Colin Watson <cjwatson@ubuntu.com>
2108
2109 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
2110 Fixes Savannah bug #37821.
2111
fd49ceb3
CW
21122012-12-28 Colin Watson <cjwatson@ubuntu.com>
2113
2114 Apply program name transformations at build-time rather than at
2115 run-time. Fixes Debian bug #696465.
2116
2117 * acinclude.m4 (grub_TRANSFORM): New macro.
2118 * configure.ac: Create output variables with transformed names for
2119 most programs.
2120 * util/bash-completion.d/grub-completion.bash.in: Use
2121 pre-transformed variables for program names.
2122 * util/grub-install.in: Likewise.
2123 * util/grub-kbdcomp.in: Likewise.
2124 * util/grub-mkconfig.in: Likewise.
2125 * util/grub-mkconfig_lib.in: Likewise.
2126 * util/grub-mknetdir.in: Likewise.
2127 * util/grub-mkrescue.in: Likewise.
2128 * util/grub-mkstandalone.in: Likewise.
2129 * util/grub-reboot.in: Likewise.
2130 * util/grub-set-default.in: Likewise.
2131 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
2132 * tests/util/grub-shell-tester.in: Remove unused assignment.
2133 * tests/util/grub-shell.in: Likewise.
2134 * util/grub.d/00_header.in: Likewise.
2135
7024b3c0
CW
21362012-12-28 Colin Watson <cjwatson@ubuntu.com>
2137
2138 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
2139
2140 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
2141 HAVE_RAW_DECL_GETS.
2142 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
2143
e3501b13
VS
21442012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
2147 Reported by: Eriks Latosheks <foresterlv>.
2148
b40c88a9
VS
21492012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * docs/grub.texi (Network): Update instructions on generating netboot
2152 image.
2153
ce96d01c
VS
21542012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
2157 around device name if necessarry.
2158
0f596201
PFS
21592012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2160
2161 * util/grub-install.in: Follow the symbolic link parameter added
2162 to the file command.
2163
600d5bdb
AB
21642012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
2165
2166 * util/grub-install.in: Remove stale TODO.
2167
64ebd2f4
PFS
21682012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2169
2170 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
2171 dynamic allocation for the bootpath buffer.
2172
74b2fe3e
DTB
21732012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
2174
2175 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
2176 window too small.
2177
969b804f
VS
21782012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
2181 argument rather than font name. All users updated.
2182 (grub_gfxterm_set_window): Likewise.
2183
b9f5ebd6
VT
21842012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
2185
2186 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
2187 from working.
2188
258f43b7
VS
21892012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2190
2191 * util/getroot.c (convert_system_partition_to_system_disk): Support
2192 nbd disks.
2193
cc1ce5f9
VS
21942012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
2197 infinite loop on corrupted FS.
2198
e77a16ca
VS
21992012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2200
2201 Fix big-endian mtime.
2202
2203 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
2204 together sec and usec.
2205 (grub_ufs_dir): Use correct byteswapping for UFS time.
2206
d9c48c7b
VS
22072012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 Support big-endian UFS1.
2210
2211 * Makefile.util.def (libgrubmods): Add ufs_be.c
2212 * grub-core/Makefile.core.def (ufs1_be): New module.
2213 * grub-core/fs/ufs_be.c: New file.
2214 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
2215 the file.
2216
2f9f40ba
LL
22172012-11-28 Leif Lindholm <leif.lindholm@arm.com>
2218
2219 * include/grub/types.h: Fix functionality unaffecting typo in
2220 GRUB_TARGET_WORDSIZE conditional macro.
2221
48ff0889
PFS
22222012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2223
2224 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
2225
03711240
GS
22262012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
2227
2228 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
2229 that /netbsd appears first (when it exists).
2230
a31b11bd
CJ
22312012-10-12 Christoph Junghans <ottxor@gentoo.org>
2232
2233 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
2234 Fixes Savannah bug #37558.
2235
e8a5d5d4
CW
22362012-10-12 Colin Watson <cjwatson@ubuntu.com>
2237
2238 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
2239 description of extract_entries_configfile.
2240
22412012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
2242
2243 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
2244 preferred_address.
2245 (grub_cmd_linux): Likewise.
2246 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
2247 preferred_lifetime. Update all users.
2248
288c757d
CW
22492012-09-26 Colin Watson <cjwatson@ubuntu.com>
2250
2251 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
2252 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
2253
0d35da3f
CW
22542012-09-26 Colin Watson <cjwatson@ubuntu.com>
2255
2256 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
2257 errors from grub-probe to /dev/null, not stdout.
2258
b78c3127
VS
22592012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
2262 sector 1.
2263
473959f0
CW
22642012-09-24 Colin Watson <cjwatson@ubuntu.com>
2265
2266 * util/grub-install.in: Make the error message if $source_dir
2267 doesn't exist more useful.
2268
794c8c33
CW
22692012-09-22 Colin Watson <cjwatson@ubuntu.com>
2270
2271 Fix grub-emu build on FreeBSD.
2272
2273 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
2274 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
2275 headers on Linux.
2276 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
2277 implementation is currently Linux-specific.
2278 * util/getroot.c (exec_pipe): Define only on Linux or when either
2279 libzfs or libnvpair is unavailable.
2280 (find_root_devices_from_poolname): Remove unused path variable.
2281
86d08fdb
CW
22822012-09-19 Colin Watson <cjwatson@ubuntu.com>
2283
2284 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
2285 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
2286 should fit before end == 63.
2287
735abf54
CW
22882012-09-19 Colin Watson <cjwatson@ubuntu.com>
2289
2290 * util/grub-setup.c (write_rootdev): Remove unused core_img
2291 parameter. Update all callers.
2292 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
2293 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
2294 GRUB_SETUP_BIOS.
2295
140acd3c
VS
22962012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * util/grub-mkconfig_lib.in (grub_tab): New variable.
2299 (grub_add_tab): New function.
2300 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
2301 * util/grub.d/10_illumos.in: Likewise.
2302 * util/grub.d/10_kfreebsd.in: Likewise.
2303 * util/grub.d/10_linux.in: Likewise.
2304 * util/grub.d/10_netbsd.in: Likewise.
2305 * util/grub.d/10_windows.in: Likewise.
2306 * util/grub.d/10_xnu.in: Likewise.
2307 * util/grub.d/20_linux_xen.in: Likewise.
2308 * util/grub.d/30_os-prober.in: Likewise.
2309
7ddffdad
VS
23102012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2313 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
2314 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
2315 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
2316 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
2317 ieee1275-nocursor.
2318 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
2319 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
2320
4e092454
VS
23212012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2322
2323 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
2324 le-conversion.
2325 Reported by: BURETTE, Bernard.
2326
735abf54 23272012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
2328
2329 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
2330 from comment.
2331
dfd39dbd
CW
23322012-09-14 Colin Watson <cjwatson@ubuntu.com>
2333
2334 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
2335 IEEE1275 machines. Fixes powerpc-emu compilation.
2336 * include/grub/terminfo.h: Likewise.
2337
3bfa763c
VS
23382012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
2341 a const pointer.
2342 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
2343 const pointer.
2344 (efiemu_set_variable): Make vendor_guid a const pointer.
2345
250e475b
VS
23462012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2347
2348 Don't require grub-mkconfig_lib to generate manpages for programs.
2349
2350 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
2351 dependencies, don't add grub-mkconfig_lib.
2352 (program): Pass empty adddeps.
2353 (script): Pass grub-mkconfig_lib as adddeps.
2354
592fd0e4
VS
23552012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2356
2357 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
2358 * util/getroot.c (grub_find_device): Likewise.
2359 (get_mdadm_uuid): Likewise.
2360 (grub_util_is_imsm): Likewise.
2361 (grub_util_pull_device): Likewise.
2362 * util/grub-probe.c (probe): Likewise.
2363
801a3027
BG
23642012-09-10 Benoit Gschwind <gschwind>
2365
2366 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
2367 (devs): Add devpath_8.
2368
c5052c81
PJ
23692012-09-08 Peter Jones <pjones@redhat.com>
2370
2371 * grub-core/Makefile.core.def (efifwsetup): New module.
2372 * grub-core/commands/efi/efifwsetup.c: New file.
2373 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
2374 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
2375 New define.
2376 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
2377
8e832f71
JS
23782012-09-05 Jiri Slaby <jslaby@suse.cz>
2379
2380 * configure.ac: Add SuSe path.
2381
f0f55752
CW
23822012-09-05 Colin Watson <cjwatson@ubuntu.com>
2383
2384 * NEWS: Fix typo.
2385
ecadc4c2
CW
23862012-09-05 Colin Watson <cjwatson@ubuntu.com>
2387
2388 * util/import_gcry.py: Sort cipher_files, to make build system
2389 generation more deterministic.
2390
64498f25
VS
23912012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2392
2393 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
2394 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
2395 (grub_set_datetime): Likewise.
2396
9cc836a2
VS
23972012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2398
2399 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
2400 warnings.
2401
bcfcea01
VS
24022012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2403
2404 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
2405
a4099485
VS
24062012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2407
2408 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
2409
265c162a
CW
24102012-09-04 Colin Watson <cjwatson@ubuntu.com>
2411
2412 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
2413 required for checkouts from bzr, but it may be useful for users or
2414 distributors wishing to update translations against a tarball
2415 distribution, and it can be helpful for the tarball to be a superset
2416 of what's in bzr.
2417
3d171e95
CW
24182012-09-04 Colin Watson <cjwatson@ubuntu.com>
2419
2420 * Makefile.am (EXTRA_DIST): Add
2421 grub-core/tests/boot/linux.init-mips.S,
2422 grub-core/tests/boot/linux.init-ppc.S, and
2423 grub-core/tests/boot/linux-ppc.cfg.
2424
f2c2503e
CW
24252012-09-04 Colin Watson <cjwatson@ubuntu.com>
2426
2427 * grub-core/mmap/mips/loongson: Remove empty directory.
2428
24292012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
2430
2431 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
2432 gone.
2433
ab2163d5
CW
24342012-09-04 Colin Watson <cjwatson@ubuntu.com>
2435
2436 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
2437 grub-sparc64-setup.
2438
ce938140
GS
24392012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
2440
2441 * configure.ac: Strengthen the test for working -nostdinc -isystem.
2442
529f58a5
GS
24432012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2444
2445 * po/POTFILES.in: Regenerated.
2446
16cf79e9
GS
24472012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
2448
2449 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
2450 (NetBSD): New subsection.
2451
39b27f1e 24522012-07-22 Ales Nesrsta <starous@volny.cz>
2453
2454 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
2455 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
2456
a885261b
VS
24572012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2458
2459 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
2460 * util/grub.d/10_hurd.in: Add missing quoting.
2461 * util/grub.d/10_illumos.in: Likewise.
2462 * util/grub.d/10_kfreebsd.in: Likewise.
2463 * util/grub.d/10_linux.in: Likewise.
2464 * util/grub.d/20_linux_xen.in: Likewise.
2465
7bd29c01
VS
24662012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 New command `lsefi'.
2469
2470 * grub-core/Makefile.core.def (lsefi): New module.
2471 * grub-core/commands/efi/lsefi.c: New file.
2472 * include/grub/efi/api.h: Add more GUIDs.
2473
ac625d8f
VS
24742012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2475
2476 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
2477 (grub_bsd_elf32_hook): Likewise.
2478 (grub_bsd_elf64_size_hook): Likewise.
2479 (grub_bsd_elf64_hook): Likewise.
2480 (grub_bsd_load_elf): Likewise.
2481
e73bb801
VS
24822012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2483
2484 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
2485 if hash function is unavailable.
2486 (dec_stream_header): Likewise.
2487
e81db8b5
VS
24882012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2489
2490 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
2491 filter state.
2492
d187a1c3
VS
24932012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 Fix coreboot compilation.
2496
2497 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
2498 (grub_vga_text_init_real): ... this.
2499 (grub_vga_text_fini): Rename to ...
2500 (grub_vga_text_fini_real): ... this.
2501
91a05f64
VS
25022012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
2503
2504 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
2505
6af96df7
VS
25062012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2507
2508 * grub-core/lib/legacy_parse.c: Support clear and testload.
2509
4d569e12
VS
25102012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2511
2512 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
2513
073b57bb
VS
25142012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2515
2516 * grub-core/fs/ext2.c: Experimental support for 64-bit.
2517
a706f4cc
VS
25182012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2519
2520 * grub-core/net/tftp.c (ack): Fix endianness problem.
2521 (tftp_receive): Likewise.
2522 Reported by: Michael Davidsaver.
2523
e7850aa9
VS
25242012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * gentpl.py: Make mans depend on grub-mkconfig_lib.
2527
25282012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2529
2530 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
2531 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
2532 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
2533
35692881
VS
25342012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
2537 efi_mmap_size.
2538 Reported by: Stuart Hayes.
2539
c35fc5bd
VS
25402012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
2543
2544 * grub-core/Makefile.core.def (mda_text): New module.
2545 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
2546 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
2547 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
2548 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
2549 here.
2550 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
2551 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
2552 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
2553 here.
2554 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
2555 to ..
2556 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
2557 ... here
2558 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
2559 here.
2560 * grub-core/term/i386/vga_common.c: Removed.
2561 * include/grub/i386/vga_common.h: Likewise.
2562 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
2563 (grub_vga_cr_bw_read): Likewise.
2564 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
2565 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
2566 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
2567 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
2568 grub_vga_cr_read/grub_vga_cr_write.
2569 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
2570
5f91f701
VS
25712012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * configure.ac: Bump version to 2.00.
2574 * grub-core/normal/main.c (features): Add feature_200_final.
2575
0c4f85f6
VS
25762012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
25772012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
2578
2579 * NEWS: Fix unclarity and language mistakes.
2580
f923ad22
VS
25812012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
2584 additional size to 3 pages.
2585 Reported by: Stuart Hayes.
2586
d22029ba
VS
25872012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2588
2589 * NEWS: Add 2.00 entry.
2590
58eee08f
VS
25912012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2592
2593 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
2594 put explicit "/" for empty path.
2595 (wildcard_expand): Improve dprintf.
2596
c59bdff7
VS
25972012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
2598
2599 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
2600 it's equal to currnode. This can happen with "" symlink.
2601
5e6a440a
YB
26022012-06-27 Yves Blusseau <blusseau@zetam.org>
2603
2604 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
2605 echo shell command by printf command.
2606
73a68bcb
VS
26072012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
2610 the value returned by firmware is the maximal position, not diumension.
2611 (grub_terminfo_output_state): Use a more sane fallback.
2612
392a603b
VS
26132012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2614
2615 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
2616
42d0867f
VS
26172012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2618
2619 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
2620 frequency to 150 MHz.
2621
489509f4
VS
26222012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2623
2624 Apple fixes.
2625
2626 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
2627 __APPLE_
2628 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
2629 definition.
2630 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
2631
9f3fc883
VS
26322012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 Handle slash in HFS label.
2635
2636 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
2637 (grub_hfs_dir): Tanslate slash.
2638 (grub_hfs_label): Don't translate slash.
2639
54853fd7
VS
26402012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
2643 network protocol listing since it introduces problematic dependency on
2644 net module.
2645
4dc02ddf
VS
26462012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2647
2648 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
2649
c50c867d
VS
26502012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 Init video early on yeeloong to avoid being rebooted by watchdog.
2653
2654 * grub-core/Makefile.am (gensm712): New target.
2655 (sm712_start.S): Likewise.
2656 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
2657 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
2658 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
2659 description.
2660 * include/grub/vga.h: Move registry definitions to...
2661 * include/grub/vgaregs.h: ... here.
2662
5f92c8a1
VS
26632012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
2664
2665 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
2666 signedness.
2667
e9e6f111
VS
26682012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2669
2670 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
2671 platforms with firmware disk drivers in the core.
2672
754ad9eb
VS
26732012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2674
2675 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
2676 informative verbose message.
2677 (read_lv): Handle 64-bit segment size.
2678
315654c2
VS
26792012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2680
2681 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
2682
fb022c79
VS
26832012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
2686 character but still remove trainling spaces.
2687 (grub_fat_label): Ignore archive flag.
2688
8645f72c
VS
26892012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2690
2691 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
2692 cast between linux_kernel_header and linux_kernel_params.
2693
36498496
VS
26942012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
2697 type for size.
2698 (grub_raid6_recover_func_t): Likewise.
2699 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
2700 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
2701
0b5ea6b8
VS
27022012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
2705
650cfcfe
GS
27062012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
2707
2708 Fix overflow.
2709
2710 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
2711 [__NetBSD__]: Add explicit cast before bitshift.
2712
8a4d6a44
VS
27132012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2714
2715 * configure.ac: Bump to 2.00~rc1.
2716
2fb97ed3
VS
27172012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2718
2719 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
2720 half of $a0.
2721
1fa097dc
VS
27222012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
27232012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
2724
2725 * docs/grub.texi: Fix search syntax.
2726 (Multi-boot manual config): Put msdos rather than GPT example.
2727 Grammar corrections.
2728
c890ba78
VS
27292012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
2730
2731 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
2732
0f92dca7
VS
27332012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2734
2735 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
2736
3988c4a0
VS
27372012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2738
2739 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
2740 message on double free. Put the value of magic in case of mismatch.
2741
9e86d4c5
VS
27422012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 Speed-up video on yeeloong.
2745
2746 * grub-core/video/sm712.c (framebuffer): Remove render_target and
2747 add cached_ptr.
2748 (grub_video_sm712_video_fini): Unmap cached_ptr.
2749 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
2750 (grub_video_sm712_set_active_render_target): Removed.
2751 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2752 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
2753 sync caches.
2754
ed24c312
VS
27552012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2756
2757 Avoid flushing the same line multiple times on loongson.
2758
2759 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
2760 Step in 32 bytes and not 1 byte.
2761 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
2762 Likewise.
2763
d1718e7d
VS
27642012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2765
2766 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
2767 subvolumes.
2768
982f1909
VS
27692012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2770
2771 Implement flow control for http.
2772
2773 * grub-core/net/http.c (parse_line): Handle response 206.
2774 (http_receive): Stall if too many packets are in the queue.
2775 (http_establish): Fix range header.
2776 (http_seek): Fix double free.
2777 (http_close): Likewise.
2778 (http_packets_pulled): New function.
2779 (grub_http_protocol): Set http_seek
2780 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
2781 (ack_real): Set window depending on i_stall.
2782 (grub_net_send_tcp_packet): Likewise.
2783 (grub_net_tcp_stall): New function.
2784 (grub_net_tcp_unstall): Likewise.
2785 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
2786 (grub_net_tcp_unstall): Likewise.
2787
bd407d6e
VS
27882012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * grub-core/net/tftp.c: Decrease stall to 50 packets.
2791
c7564b8e
VS
27922012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
2795
a3706162
VS
27962012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2797
2798 * tests/util/grub-shell.in: Fix a typo.
2799
b27069e0
VS
28002012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 Implement flow control for tftp.
2803
2804 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
2805 packets but stop only if stop condition is satisfied.
2806 (grub_net_fs_read_real): Call packets_pulled after real read. Use
2807 `stall' instead of `eof' as stop condition.
2808 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
2809 (http_err): Likewise.
2810 * grub-core/net/tftp.c (ack): Replace the first argument with data
2811 instead of socket.
2812 (tftp_receive): Stall if too many packets are in wait queue.
2813 (tftp_packets_pulled): New function.
2814 (grub_tftp_protocol): Set packets_pulled.
2815 * include/grub/net.h (grub_net_packets): New field count.
2816 (grub_net_put_packet): Increment count.
2817 (grub_net_remove_packet): Likewise.
2818 (grub_net_app_protocol): New field `packets_pulled'.
2819 (grub_net): New field `stall'.
2820
6b9cfac6
VS
28212012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2822
2823 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2824 sync part to handle them.
2825
f35abd81
VS
28262012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2827
2828 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2829 * grub-core/net/drivers/ieee1275/ofnet.c
2830 (grub_ieee1275_net_config_real): Likewise.
2831
0e7ec820
VS
28322012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2833
2834 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2835 the direct route for server/gateway.
2836
9d611a31
VS
28372012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2840 IP address to server name since we may not hame the DNS.
2841
418f45ab
VS
28422012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2845 freeing random buffer on failure.
2846 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2847
44a0efc1
VS
28482012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2849
2850 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2851
531e2241
VS
28522012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2853
2854 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2855 reserved bytes.
2856 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2857 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2858 Handle malloc error correctly.
2859
cde393c9
VS
28602012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2861
2862 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2863 blocks.
2864
538478d0
VS
28652012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2866
2867 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2868 increment.
2869
9b55efe0
VS
28702012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2871
2872 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2873 none is explicitly specified.
2874
9eb832c3
VS
28752012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2876
2877 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2878 while reallocating.
2879
d6b7c7c9
VS
28802012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 Respect netmask from bootp/dhcp.
2883
2884 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2885 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2886 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2887 into ...
2888 (grub_net_add_ipv4_local): ... this.
2889 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2890 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2891 (grub_net_add_ipv4_local): New proto.
2892
67caf9eb
VS
28932012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2894
2895 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2896 determining EFI memory map size.
2897
43657558
VS
28982012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2899
2900 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2901
eb6d0dd3
VS
29022012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2903
2904 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2905 when looking for partition separator.
2906
31230544
VS
29072012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2908
2909 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2910 Escape commas.
2911
918a2517
VS
29122012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2913
2914 Restructure FAT driver to avoid hook in label reading as it hits a
2915 GCC bug.
2916
2917 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2918 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2919 (grub_fat_iterate_dir): Split into ...
2920 (grub_fat_iterate_init): ... this, ...
2921 (grub_fat_iterate_fini): ... this, ...
2922 (grub_fat_iterate_dir_next): ... and this. All users updated.
2923
9f1d654e
VS
29242012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2925
2926 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2927 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2928 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2929 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2930 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2931 New fields last_key and last_key_time.
2932 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2933 extended key-esc into extended key-extended key.
2934
52f0f643
VS
29352012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 Avoid unnecessary memcpy of whole video buffer.
2938
2939 * grub-core/video/fb/video_fb.c (dirty): New struct.
2940 (framebuffer): Add members current_dirty and previous_dirty.
2941 (dirty): New function.
2942 (grub_video_fb_fill_rect): Update dirty.
2943 (common_blitter): Likewise.
2944 (grub_video_fb_scroll): Likewise.
2945 (doublebuf_blit_update_screen): Copy only dirty part.
2946 (doublebuf_pageflipping_update_screen): Likewise.
2947 (grub_video_fb_doublebuf_blit_init): Init dirty.
2948 (doublebuf_pageflipping_init): Likewise.
2949 (grub_video_fb_setup): Likewise.
2950
e169a180
VS
29512012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2954 poll rate.
2955
48556879
VS
29562012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 Fix wildcard regexp dot and other special characters handling.
2959 Reported by: Robert Mabee.
2960
2961 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2962 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2963 (split_path): Trigger expansion on '?'.
2964 (unescape): New function.
2965 (wildcard_expand): Unescape parts copied without globbing.
2966 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2967 (grub_script_arglist_to_argv): Don't unescape expansions.
2968
0494408e
VS
29692012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2970
2971 * include/grub/net.h (grub_net_card): New member txbufsize.
2972 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2973 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2974 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2975 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2976 txbufsize.
2977 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2978 compatible property to check for macs. Set
2979 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2980 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2981 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2982 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2983 (send_card_buffer): Use txbuf.
2984 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2985 nested function out of the parent while on it.
2986
cc35fe8f
VS
29872012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2988
2989 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2990 presence check.
2991 (grub_ieee1275_net_config_real): Fix config pointer.
2992
970a0a09
VS
29932012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2994
2995 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2996 filename parsing to non-block devices.
2997
3e19bf87
VS
29982012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2999
3000 * grub-core/kern/device.c (grub_device_open): Remove dead code.
3001
c62d1a0c
VS
30022012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3003
3004 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
3005 All users updated.
3006
ef76bec3
VS
30072012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
3008
3009 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
3010 UUID search command even if hints probing failed.
3011
30122012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
3013
3014 * po/POTFILES.in: Regenerated.
3015
70aaf305
VS
30162012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
3017
3018 Speed-up video on fuloong.
3019
3020 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
3021 New function.
3022 (grub_pci_device_unmap_range): Handle non-cached address.
3023 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
3024 add direct_ptr.
3025 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
3026 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
3027 (grub_video_sis315pro_set_active_render_target): Removed.
3028 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
3029 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
3030 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
3031 sync caches.
3032 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
3033 New proto.
3034
10400f0b
VS
30352012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3036
3037 * docs/grub.texi (Multi-boot manual config): New section.
3038
ba67e2c6
VS
30392012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3040
3041 Avoid slow read-back from VRAM.
3042
3043 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
3044 Move from here ...
3045 * grub-core/video/fb/video_fb.c
3046 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
3047 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
3048 (front_target): Remove front_target. Add pages.
3049 (grub_video_fb_init): Skip setting front_pages.
3050 (grub_video_fb_fini): Likewise.
3051 (doublebuf_blit_update_screen): Use pages.
3052 (grub_video_fb_doublebuf_blit_init): Likewise.
3053 (doublebuf_pageflipping_init): Allocate offscreen buffer.
3054 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
3055 (grub_video_fb_setup): Prefer doublebuffing.
3056
377c98cb
VS
30572012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3058
3059 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
3060 gzio.
3061
eac49cff
VS
30622012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3063
3064 Add loongson tests.
3065
3066 * tests/util/grub-shell.in: Handle loongson.
3067 * tests/partmap_test.in: Add loongson to the list of platform using ATA
3068 drivers.
3069 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
3070 Reboot instead of shutdown if REBOOT is defined.
3071
0321415e
VS
30722012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
3075 sized ports since unlike on real hardware qemu supports only 32-bit
3076 regs.
3077
3f2bdd8f
VS
30782012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3079
3080 * Makefile.util.def (grub-mkrescue): Enable on loongson.
3081 * util/grub-mkrescue.in: Handle loongson.
3082
29a049c9
VS
30832012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3084
3085 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
3086 Set is_part appropriately.
3087 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
3088 names. Canonicalize partition without full disk.
3089
4abde346
VS
30902012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 Revert usb-quiesce since it's wrong.
3093
3094 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
3095 (grub_ofdisk_init): Don't do quiesce.
3096
61f1d93b
VS
30972012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3098
3099 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
3100 PowerMac workaround to Xserves as well.
3101 Information supplied by: Benjamin Herrenschmidt.
3102
a09eb541
VS
31032012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3104
3105 Don't assume that beginning address is also the entry point on ppc.
3106
3107 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
3108 (grub_linux_boot): Use linux_entry.
3109 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
3110 (grub_linux_load64): Likewise.
3111
505b3c9b
VS
31122012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
3115
cbe0b4ef
VS
31162012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3117
3118 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
3119 needlessly lose the console.
3120
3006e981
VS
31212012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
3124 space.
3125
4e5a96b0
VS
31262012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3127
7da036bb
VS
3128 Remove non-functional EFI grub_get_rtc. Put a better fatal message
3129 than current grub_get_rtc() not implemented when booted with
3130 coreboot without TSC.
3131
3132 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
3133 Add machine/time.h to kernel headers on loongson.
3134 * grub-core/Makefile.core.def (kernel): Remove
3135 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
3136 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
3137 (grub_get_rtc): Likewise.
3138 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
3139 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
3140 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
3141 * grub-core/kern/i386/tsc.c (grub_tsc_init)
3142 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
3143 rather than installing known non-working time source.
3144 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
3145 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
3146 * include/grub/time.h: Don't include machine/time.h.
3147 * include/grub/efi/time.h: Removed.
3148 * include/grub/i386/efi/time.h: Likewise.
3149 * include/grub/i386/ieee1275/time.h: Likewise.
3150 * include/grub/powerpc/ieee1275/time.h: Likewise.
3151 * include/grub/sparc64/ieee1275/time.h: Likewise.
3152 * include/grub/x86_64/efi/time.h: Likewise.
3153
31542012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
3157
3158 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
3159 value.
3160 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
3161 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
3162 with dotless variants when any combining above is present.
3163
5561c22d
VS
31642012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3165
3166 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
3167 text and not binary.
3168
96f7e60e
VS
31692012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3170
3171 Stop polling as soon as we have the packet we were waiting for.
3172
3173 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
3174 All users updated.
3175 * grub-core/net/arp.c (have_pending): New var.
3176 (pending_req): Likewise.
3177 (grub_net_arp_send_request): Fill pending_req and use have_pending as
3178 stop indicator.
3179 (grub_net_arp_receive): Set have_pending.
3180 * grub-core/net/dns.c (recv_data): New field stop.
3181 (recv_hook): Set stop.
3182 (grub_net_dns_lookup): Init stop and use as stop condition.
3183 * grub-core/net/http.c (http_establish): Use headers_recv as stop
3184 condition.
3185 * grub-core/net/net.c (grub_net_poll_cards): New argument
3186 stop_condition. Stop when it goes true.
3187 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
3188 indicator.
3189 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
3190
3e747239
VS
31912012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3192
3193 Keep TX and RX buffers on EFI rather than always allocate new ones.
3194
3195 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
3196 card. All users updated.
3197 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
3198 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
3199 (get_card_packet): Likewise.
3200 (grub_efinet_findcards): Init new fields.
3201
f695e99a
VS
32022012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3203
3204 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
3205 compilation error on sparc64.
3206
9e5e66d1
VS
32072012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3208
3209 Use ITC on IA64 rather than broken routine based on daytime.
3210
3211 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
3212 ia64.
3213 (grub_get_rtc) [__ia64__]: Likewise.
3214 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
3215 (get_itc): New function.
3216 (grub_rtc_get_time_ms): Likewise.
3217 (grub_machine_init): Calibrate ITC.
3218 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
3219 Keep only on non-ia64. Don't export since it's broken and used only
3220 if TSC is unavailable.
3221
a1767404
VS
32222012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
3223
3224 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
3225 even if it's used.
3226 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
3227 Skip if parent is unused.
3228
34b2bced
VS
32292012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3230
3231 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
3232
5e619f40
VS
32332012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 Fix wildcard escaping.
3236
3237 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
3238 * grub-core/script/execute.c (wildcard_escape): .. to here.
3239 Don't escape dot.
3240 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
3241 * grub-core/script/execute.c (wildcard_unescape): .. to here.
3242 Don't escape dot.
3243 * grub-core/script/execute.c (gettext_append): Always escape.
3244 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
3245 * grub-core/script/yylex.l: Don't cut away the escaping.
3246 * tests/grub_script_echo1.in: Add tests with wildcard.
3247
c8ca5855
VS
32482012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3249
3250 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
3251 (ftdi_hw_configure): Likewise.
3252 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
3253 define.
3254 (real_config): Handle 1.5 stop bits.
3255 (pl2303_hw_configure): Likewise.
3256
7183452c
VS
32572012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3258
3259 * Makefile.am: Add ppc linux bootcheck.
3260 * grub-core/tests/boot/linux-ppc.cfg: New file.
3261 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
3262
f57c84cd
VS
32632012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3264
3265 * tests/grub_script_expansion.in: Skip network protocols.
3266
ecfc6207
VS
32672012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3268
3269 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
3270
8d03d284
VS
32712012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3272
3273 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
3274 --rom-directory.
3275 Add -graft-points.
3276
61c42af0
VS
32772012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 ESCC serial driver for conducting sautomated tests in qemu.
3280 Not tested on real hardware.
3281
3282 * include/grub/serial.h (grub_serial_port): New field escc_desc.
3283 * grub-core/term/ieee1275/escc.c: New file.
3284 * grub-core/Makefile.core.def (escc): New module.
3285
08fd1291
VS
32862012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
3289 invalid on error.
3290 (serial_hw_fetch): Don't read invalid handle.
3291 (serial_hw_put): Don't write into invalid handle.
3292
08dafeea
VS
32932012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3294
3295 Add a 1.5 stop bits value.
3296
3297 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
3298 * include/grub/serial.h (grub_serial_stop_bits_t): Add
3299 GRUB_SERIAL_STOP_BITS_1_5.
3300
9068fdcf
VS
33012012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
3302
3303 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
3304 value rather than let it uninited.
3305
f4d5820f
VS
33062012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3307
3308 * grub-core/commands/wildcard.c (+check_file): New function.
3309 (wildcard_expand): Don't expand to non-existing files, expand with
3310 suffix and not attempt to expand if not needed.
3311
3d2de9a7
VS
33122012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
3315 out of partitions containing other partitions.
3316
c5c81ff9
VS
33172012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
3320 on some qemu versions with GRUB.
3321
3322 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
3323 define.
3324 (grub_openbsd_bootarg_pcibios): New struct.
3325 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
3326 Add PCIINFO.
3327
08a14e0b
VS
33282012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3329
3330 * tests/util/grub-shell.in: Trim firmware output on EFI.
3331
cede3ca3
VS
33322012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
3335 and coreboot since it's already in kernel.
3336
558d3a60
VS
33372012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
3340 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
3341 to here. New return value start. All users updated.
3342 Recursively scan linear mappings.
3343 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
3344 proto.
3345 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
3346 Use grub_util_get_dm_node_linear_info.
3347 * util/getroot.c (convert_system_partition_to_system_disk): Use
3348 grub_util_info rather than grub_dprintf.
3349 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
3350
60fde14d
VS
33512012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3352
3353 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
3354
3355 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
3356 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
3357
24bd8838
VS
33582012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * include/grub/types.h (grub_set_unaligned64): New function.
3361 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
3362 (setup): Likewise.
3363
7bc06a49
VS
33642012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
3367 (grub_ofdisk_fini): Quiesce USB devices.
3368
49cea015
VS
33692012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3370
3371 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
3372 caches.
3373
8dcbe03b
VS
33742012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
3377
5b258735
VS
33782012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3379
3380 * grub-core/disk/pata.c (grub_pata_pio_read)
3381 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
3382 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
3383
37ba07eb
VS
33842012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3385
3386 Extend automated tests to qemu-mips.
3387
3388 * Makefile.am: reorganise tests and enable qemu-mips.
3389 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
3390 * grub-core/tests/boot/linux.init-mips.S: New file.
3391 * tests/partmap_test.in: Handle ata0 disks.
3392 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
3393 non-pc i386.
3394
070038f8
VS
33952012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
3398 ia64.
3399 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
3400 quotes while on it.
3401
004be2cd
VS
34022012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
3405 (grub_halt): Likewise.
3406 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
3407
b1622487
VS
34082012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3409
3410 * grub-core/term/serial.c (grub_serial_register)
3411 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
3412 the behaviour in line with x86 platforms.
3413
b7b4ab33
VS
34142012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
3417 (grub_ata_strncpy): Likewise.
3418 (grub_ata_identify): Add missing byteswaps.
3419
5e3535ae
VS
34202012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3421
3422 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
3423 byte-swap.
3424 (screen_read_char): Likewise.
3425 (grub_vga_text_cls): Likewise.
3426
c21b17e6
VS
34272012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3428
3429 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
3430 filenames.
3431 (make_file_path): Likewise.
3432
bf293dec
VS
34332012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
3436 machines.
3437 Tested by: Paulo Flabiano Smorigo.
3438 Crucial information about API supplied by: Coleen <Last name unknown>.
3439 Reviewed by: Coleen <Last name unknown>.
3440
81f6ef0e
VS
34412012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 * util/grub-mkimage.c: Disable -Wcast-align.
3444
7284143a
VS
34452012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
3448 as they are fatal.
3449
b99f3e00
VS
34502012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
3453
944f752d
VS
34542012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * util/grub-probe.c (escape_of_path): Fix double free.
3457
6cce6f38
VS
34582012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * grub-core/commands/videoinfo.c (hook): Show pitch.
3461
1e1eb50e
VS
34622012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3463
3464 * util/grub.d/20_linux_xen.in: Skip xen-syms.
3465
1c715b5a
VS
34662012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
3467
3468 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
3469 (probe): Add ieee1275 to OFW devices.
3470
007ae52d
VS
34712012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3472
3473 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
3474
4557a36d
VS
34752012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 Handle IBM OFW path.
3478
3479 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
3480 available.
3481 (of_path_of_scsi): Handle vdevice.
3482
efbeefe9
VS
34832012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3484
3485 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
3486 Allocate in multiples of 16 to avoid adding a few bytes free region the
3487 windows bugs upon.
3488
15a940bb
VS
34892012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
3490
3491 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
3492 Allocate in multiples of 16 to avoid adding a few bytes free region the
3493 windows bugs upon.
3494 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
3495
6e5efd60
VS
34962012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
3499 resolutions.
3500 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
3501 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
3502
0d3d137e
IS
35032012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
3504
3505 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
3506
45dbe300
VS
35072012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3508
3509 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
3510 resulted in \\ at the end of the line.
3511
6d8db947
VS
35122012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
3515 (grub_parser_cmdline_state): Likewise.
3516 (grub_parser_split_cmdline): Likewise.
3517
de89d338
VS
35182012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3519
3520 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
3521 /dev/root and /dev/dm-*.
3522
00d41dee
VS
35232012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
3526 fix partially stale display.
3527
f95d1f11
VS
35282012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * grub-core/normal/menu_entry.c (backward_char): Use right line for
3531 substraction.
3532
6297e197
VS
35332012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
3534
3535 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
3536 Fix MBR remapping workaround.
3537 (grub_util_biosdisk_read) [__linux__]: Likewise.
3538
8a7ecad3
VS
35392012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 * util/grub-install.in: Check for ieee1275 and not ieee1276.
3542
2b34f944
VS
35432012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * configure.ac: Bump to beta6.
3546
684aef11
CW
35472012-05-31 Christer Weinigel <christer@weinigel.se>
3548
3549 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
3550
05b0bb91
VS
35512012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3552
3553 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
3554 (grub_cmd_linux): Likewise.
3555
bda36bfa
CW
35562012-05-31 Christer Weinigel <christer@weinigel.se>
3557
3558 Fix EHCI low-speed.
3559
3560 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
3561 (GRUB_EHCI_MULT_TWO): Likewise.
3562 (GRUB_EHCI_MULT_THREE): Likewise.
3563 (GRUB_EHCI_CMASK_MASK): New enum value.
3564 (GRUB_EHCI_SMASK_MASK): Likewise.
3565 (GRUB_EHCI_CMASK_OFF): Likewise.
3566 (GRUB_EHCI_SMASK_OFF): Likewise.
3567 (grub_ehci_pci_iter): Enable periodic schedule.
3568 (grub_ehci_parse_notrun): Likewise.
3569 (grub_ehci_restore_hw): Likewise.
3570 (grub_ehci_setup_qh): Set flags for low speed transfers.
3571 (grub_ehci_find_qh): Use periodic list for low speed.
3572 (grub_ehci_setup_transfer): Check periodic queue as well.
3573 (grub_ehci_check_transfer): Likewise.
3574 (grub_ehci_cancel_transfer): Cancel periodic transfer.
3575
e12bcb1c
PFS
35762012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3577
3578 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
3579 parameter is used.
3580
bcc75fb3
PJ
35812012-05-31 Peter Jones <pjones@redhat.com>
3582
3583 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
3584 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
3585 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
3586
f19cb95e
VS
35872012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3588
3589 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
3590 uninited variable. Allocate at least setup_sects.
3591
a4e5ca80
VS
35922012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3593
3594 Fix handling of EFI with big memory maps.
3595
3596 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
3597 (real_mode_mem): Likewise.
3598 (real_mode_target): Likewise.
3599 (real_mode_pages): Likewise.
3600 (prot_mode_pages): Likewise.
3601 (linux_params): New var.
3602 (linux_cmdline): Likewise.
3603 (free_pages): Don't set real mode variables.
3604 (allocate_pages): Don't allocate real mode memory.
3605 (grub_e820_add_region): Remove the limit.
3606 (grub_linux_boot): Allocate and copy real mode memory.
3607 (grub_linux_unload): Free linux_cmdline.
3608 (grub_cmd_linux): Use temporary storage for parameters.
3609 (grub_cmd_initrd): Likewise.
3610 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
3611 (linux_kernel_params): Make it 1K big.
3612
ddb73558
VS
36132012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3614
3615 * Makefile.util.def: Remove -Wno-format.
3616 * grub-core/Makefile.core.def: Likewise.
3617
1c4afb60
VS
36182012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3619
3620 * tests/cmp_unit_test.c: Add missing failure message.
3621 * tests/example_unit_test.c: Likewise.
3622 * tests/printf_unit_test.c: Likewise.
3623
941e3a6d
VS
36242012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3625
3626 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
3627 relaxation of protective MBR requirements.
3628
b105df76
VS
36292012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3630
3631 * configure.ac: Add condition for COND_HOST_XNU.
3632 * Makefile.util.def (10_xnu): New script.
3633 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
3634
84e1569e
VS
36352012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3636
3637 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
3638 objconv bug.
3639
130c0f77
VS
36402012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
3641
3642 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
3643 Binary on other platforms stays identical.
3644
6fd0b143
VS
36452012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
3648 Apple.
3649
0af1751d
VS
36502012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3651
3652 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
3653
176d5f7d
VS
36542012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
3657 rather than defining size_t ourselves to avoid conflict.
3658
7de5e20a
VS
36592012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
3662 initialisation to avoid __bzero reference.
3663
f7143efe
VS
36642012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
3667 version.
3668 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
3669 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
3670 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
3671 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
3672 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
3673
e6ad0555
VS
36742012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3675
3676 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
3677 * grub-core/kern/misc.c: Likewise.
3678 * grub-core/loader/i386/xnu.c: Likewise.
3679 * include/grub/i386/tsc.h: Likewise.
3680 * include/grub/symbol.h: Likewise.
3681
4a5a3c4a
VS
36822012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
3685 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
3686 on older compiler.
3687
037f6d90
VS
36882012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3689
3690 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3691 Implement Apple flavour.
3692 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
3693
f7194551
VS
36942012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
3697 (memmove) [__APPLE__]: Likewise.
3698 (memcpy) [__APPLE__]: Likewise.
3699 (memset) [__APPLE__]: Likewise.
3700 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
3701 (memmove) [__APPLE__]: Likewise.
3702 (memcpy) [__APPLE__]: Likewise.
3703 (memset) [__APPLE__]: Likewise.
3704
85a730ca
VS
37052012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
3706
3707 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
3708 dependency discard.
3709
40e80b94
VS
37102012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3711
3712 * grub-core/normal/main.c (read_config_file): Provide config_file and
3713 config_directory.
3714 * util/grub.d/41_custom.in: Use config_directoy when available.
3715
9da59c32
VS
37162012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3717
3718 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
3719 (grub_bfs_dir): Likewise.
3720
2787ae53
PJ
37212012-05-27 Peter Jones <pjones@redhat.com>
3722
3723 The old code gives arguments to a printf function which can't work
3724 correctly, and the compiler complains.
3725
3726 * grub-core/tests/example_functional_test.c (example_test): Add
3727 missing text.
3728 * grub-core/tests/lib/test.c (add_failure): Rewrite.
3729 * include/grub/test.h (grub_test_assert_helper): New declaration.
3730 (grub_test_assert): Use grub_test_assert_helper.
3731
526ef13d
VS
37322012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3733
3734 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
3735 (exfctest): ... this to avoid overlong filenames.
3736 All users updated.
3737
20dd511c
VS
37382012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 Handle "." and ".." on squashfs.
3741
3742 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
3743 Make inode numbers into stack.
3744 (grub_squash_read_symlink): Use stack.
3745 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
3746 (make_root_node): Fill stack.
3747 (grub_squash_open): Use stack.
3748
1d80c62a
VS
37492012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3750
3751 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
3752 freeing.
3753
d336f652
VS
37542012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3755
3756 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
3757 stderr on test calls.
3758
8b43f587
VS
37592012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3760
3761 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
3762
80a3dc3f
VS
37632012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3764
3765 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
3766
47e297d4
VS
37672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3768
3769 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
3770 "..".
3771
df042ccb
VS
37722012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3773
3774 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
3775 (grub_hfsplus_iterate_dir): Add "." and "..".
3776
fc977f48
VS
37772012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3778
3779 * grub-core/fs/cpio.c (canonicalize): Handle "..".
3780 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
3781
f3250e5f
VS
37822012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
3785 (find_path): Handle "." and "..".
3786
fd8ed4c5
VS
37872012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
3790 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
3791 (grub_affs_iterate_dir): Handle hardlinks.
3792
4ce776d2
MG
37932012-05-26 Matthew Garrett <mjg@redhat.com>
3794
3795 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
3796 (grub_efi_console_fini): Likewise.
3797 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
3798 (grub_video_gop_fill_mode_info): Rename to ...
3799 (grub_video_gop_fill_real_mode_info): ... this.
3800 (grub_video_gop_fill_mode_info): New function.
3801 (grub_video_gop_setup): Setup double framebuffer.
3802 (grub_video_gop_get_info_and_fini): Use original framebuffer.
3803 Free offscreen.
3804 (grub_video_gop_swap_buffers): Copy framebuffer.
3805 (grub_video_gop_fini): Free offscreen buffer.
3806 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
3807 New enum.
3808 (grub_efi_gop_blt_pixel): New struct.
3809
683031ba
VS
38102012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * gentpl.py: Remove error disabling for objconv.
3813
c2deb798
VS
38142012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * configure.ac: Remove -Wunitialized as it's not available on older
3817 compilers.
3818
38192012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
3820
3821 Fix extent overflow comparator.
3822
3823 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3824 (grub_hfsplus_read_block): Set type.
3825 (grub_hfsplus_cmp_extkey): Compare type.
3826
d6b1fd36
VS
38272012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3828
3829 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3830
0a9aa0f6
VS
38312012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3832
3833 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3834 than 0.
3835
8360e159
VS
38362012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3839 (dejavu_bold_14.pf2): New target.
3840
501b9e4b
VS
38412012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3842
3843 * configure.ac: Fix djvu font detection.
3844
7026b0e2
VS
38452012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3848 ext* instead of ext2.
3849
c2a51ade
VS
38502012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3853 name with \0.
3854
8f803a5d
JU
38552012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3856
3857 * docs/grub-dev.texi: Remove dot from .png.
3858
13c6353f
VS
38592012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3862 protective entry in any slot.
3863 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3864 if protective entry is found in any slot.
3865
3866 Protective entry in non-first slot make no sense but is a widespread
3867 brain damage.
3868
4cf6be1b
VS
38692012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3870
3871 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3872
937d1c44
VS
38732012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3876 with old reiserfs.
3877 (grub_reiserfs_open): Don't free root.
3878
021d90ec
VS
38792012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3880
3881 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3882 after freeing for safety.
3883
967b2b64
VS
38842012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3885
3886 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3887 Reported by: Jordan Uggla.
3888
34274d02
JU
38892012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3890
967b2b64
VS
3891 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3892 actual implementation. Specifically, clarify that the grub menu will
3893 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3894 passed.
34274d02 3895
dcaaae9d
BH
38962012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3897
3898 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3899 of r0.
3900
7086ad52
VS
39012012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3902
3903 Remove unjustified hard dependency of normal.mod on gfxterm.
3904
3905 * include/grub/term.h (grub_term_output): New member fullscreen.
3906 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3907 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3908 (grub_gfxterm): Set .fullscreen.
3909 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3910 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3911
37ed2c9b
VS
39122012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3913
3914 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3915 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 3916 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 3917
a4469c88
VS
39182012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3921
4e461486
VS
39222012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3925 a bad FS.
3926
aa78f5c4
VS
39272012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3928
3929 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3930 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3931
197626b5
VS
39322012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3935 (grub_jfs_mount): Fill caseins.
3936 (grub_jfs_find_file): Respect caseins.
3937
8ad3f28c
VS
39382012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3941 through UTF-16.
3942
0c6c324e
VS
39432012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3946 New argument origpath. All users updated.
3947
c6666ba6
VS
39482012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3951 (read_attr): Ensure that we read start of possibly compressed block.
3952
e28e5fe5
VS
39532012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3954
3955 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3956 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3957 All users updated.
3958
5fc23ab2
VS
39592012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3960
3961 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3962 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3963 (dejavu.pf2): Replace with ...
3964 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3965 this.
3966
79dbc21c
VS
39672012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3968
3969 * util/grub.d/20_linux_xen.in: Add missing line.
3970
d2fcfb0c
VS
39712012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3974 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3975 (grub_utf16_to_utf8): Likewise.
3976
5560e9d6
VS
39772012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3980 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3981 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3982 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3983 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3984 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3985
39862012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
3987
3988 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3989 a bad FS.
3990
5560e9d6 39912012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
3992
3993 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3994 (grub_udf_read_symlink): Handle read_string failure.
3995
5eae3175
VS
39962012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3997
3998 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3999 comment.
4000
c1ad82db
VS
40012012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4002
4003 Fix handling of UDF symlinks.
4004
4005 * grub-core/fs/udf.c (read_string): New argument outbuf.
4006 All users updated.
4007 (grub_ufs_read_symlink): Rename to ...
4008 (grub_udf_read_symlink): ... this. All users updated.
4009 Handle symlinks with more than one component.
4010
33eca6e0
VS
40112012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
4014 symlinks. Replace leading colon with a slash.
4015
57f4a70b
VS
40162012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4017
4018 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
4019 filename.
4020
38c8ee20
VS
40212012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
4024 match in inner node.
4025
2e57f28f
VS
40262012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
4027
4028 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
4029 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
4030 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
4031 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
4032 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
4033 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
4034 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
4035 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
4036 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
4037
fe8c2f11
VS
40382012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 Use grub-probe and not cmp to check that disk is empty.
4041
4042 * util/grub-install.in: Use grub-probe for zero-check.
4043 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
4044 (probe): Handle PRINT_ZERO_CHECK.
4045 (argp_parser): Handle -t zero_check.
4046
40472012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
4048
4049 Flush block cache on adding disk to device map.
4050
4051 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
4052 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
4053 adding.
4054 (read_device_map): Likewise.
4055 (open_device): Flush on opening.
4056
690434e8
VS
40572012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4058
4059 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
4060 (handle_symlink): Fix off-by-one error.
4061 Canonicalize the target.
4062 (grub_cpio_dir): Canonicalize the name.
4063 Fix memory leak.
4064 Set directory.
4065 (grub_cpio_open): Canonicalize the name.
4066
742d2be6
VS
40672012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
4070 handling.
4071
3244fe96
VS
40722012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
4075 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
4076
8aeb1837
VS
40772012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4078
4079 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
4080 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 4081 All users updated.
8aeb1837 4082
9133fd05
VS
40832012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4084
4085 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
4086 counterpart.
4087
6d521c5b
VS
40882012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 Fix UFS1 big file support.
4091
4092 * grub-core/fs/ufs.c (INODE): Removed.
4093 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
4094 64-bit.
4095 (INODE_MODE): Simplify.
4096 (grub_ufs_inode): Use uint64_t for size and not int64_t.
4097 (grub_ufs_lookup_symlink): Don't use INODE.
4098
21b82e17
VS
40992012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 Fix minixfs with non-power-of-two blocks since it's supported by minix.
4102
4103 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
4104 (grub_minix_data): Replace log_block_size with block_size.
4105 (grub_minix_read_file): Use block_size but avoid 64-bit division.
4106 (grub_minix_mount): Fill block_size.
4107
41082012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
4109
4110 * configure.ac: Bump to beta5.
4111
f417ed04
VS
41122012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 Fix wrapped HFS+ handling.
4115
4116 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
4117 blocks_start. All users updated.
4118 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
4119 wrapping offset.
4120 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
4121
607d282b
VS
41222012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 Fix long symlinks on reiserfs.
4125
4126 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
4127 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
4128 (grub_reiserfs_iterate_dir): Save size for non-directories.
4129 (grub_reiserfs_open): Don't reread stat block as we already know the
4130 size.
4131 (grub_reiserfs_read): Split into...
4132 (grub_reiserfs_read_real): ... and ...
4133 (grub_reiserfs_read): ...this.
4134
ae16024d
VS
41352012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 Fix non-indexed JFS.
4138
4139 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
4140 (grub_jfs_data): New field namecomponentlen.
4141 (grub_jfs_mount): Fill namecomponentlen.
4142 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
4143
eea1e26e
VS
41442012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
4147 * tests/grub_script_echo1.in: Add tests.
4148
df760f77
VS
41492012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 * util/grub-install.in: Ignore empty devicetree directory.
4152
5efb817d
B
41532012-05-08 Bean <bean123ch@gmail.com>
4154
4155 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
4156 All users updated.
4157 (free_rsm): Free header as well.
4158 (free_old_fragments): Fix memory leak.
4159 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
4160 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
4161 (destroy_pq): Likewise.
4162 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
4163
668ea6d2
VS
41642012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4165
4166 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
4167 resulting hash as a precaution.
4168
1739b1fe
VS
41692012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
4172 '_' in variable names.
4173 * grub-core/net/net.c (grub_net_network_level_interface_register):
4174 Likewise.
4175
6ae485aa
VS
41762012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4177
4178 Fix AFFS with non-512B blocks.
4179
4180 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
4181 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
4182 (grub_affs_data): Replace blocksize with log_blocksize.
4183 (grub_affs_read_block): Fix non-512B blocks.
4184 (grub_affs_read_symlink): Likewise.
4185 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
4186 (grub_affs_read): Fix non-512B blocks.
4187 (grub_affs_label): Likewise.
4188 (grub_affs_mtime): Likewise.
4189 (grub_affs_mount): Fix block detection routine.
4190
d20fab84
VS
41912012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
4192
4193 Add filesystem mtime to AFFS.
4194
4195 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
4196 (aftime2ctime): New function.
4197 (grub_affs_dir): Use aftime2ctime.
4198 (grub_affs_label): Fix return value.
4199 (grub_affs_mtime): New function.
4200 (grub_affs_fs): Add mtime.
4201
e87b10f5
VS
42022012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4203
4204 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
4205 UTF-8.
4206
7dceec9b
VS
42072012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4208
4209 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
4210 UTF-8.
4211
2f48221f
VS
42122012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
4215
dacd85cf
VS
42162012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
4217
4218 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
4219 flags.
4220 (FLAGS_CASE_SENSITIVE): New enum value.
4221 (cache_entry): New struct.
4222 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
4223 cache_size and cache.
4224 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
4225 Add log_blocksize and fshelp_flags.
4226 (grub_sfs_read_extent): Handle non-512 blocks.
4227 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
4228 (grub_sfs_read_file): Handle non-512 blocks.
4229 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
4230 fshelp_flags.
4231 (grub_sfs_read_symlink): Handle non-512 blocks.
4232 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
4233 (grub_sfs_dir): Free cache.
4234 (grub_sfs_close): Likewise.
4235
24e9a854
VS
42362012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4237
4238 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
4239 filesystems.
4240
62ace64d
VS
42412012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4242
4243 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
4244
83b2e89c
VS
42452012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4246
4247 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
4248
75ccaea3
VS
42492012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
4250
4251 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
4252 (grub_sfs_read_extent): Likewise.
4253 (grub_sfs_read_block): Likewise.
4254 (grub_sfs_mount): Likewise.
4255 (grub_sfs_iterate_dir): Likewise.
4256 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
4257 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
4258
1b8463f2
VS
42592012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4260
4261 Fix errors on compressed NTFS with 512B clusters.
4262
4263 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
4264 types.
4265 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
4266 not 0.
4267 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
4268 Relax check for inline extents.
4269 (ntfscomp): Return correct -1 on error and not 0.
4270
4f8e368f
VS
42712012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4272
4273 * util/grub-install.in: Fix handling of prefix containing spaces.
4274
6f5d5ee8
VS
42752012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4276
4277 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
4278 (grub_squash_read_data): Fix offset byte-swapping.
4279
ce41ab7a
VS
42802012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4281
4282 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
4283 per common usage and preffered in several parts of code.
4284 (grub_memcmp): Likewise.
4285 (grub_strncmp): Likewise.
4286 * include/grub/misc.h (grub_strcasecmp): Likewise.
4287 (grub_strncasecmp): Likewise.
4288 * Makefile.util.def (cmp_test): New test.
4289 (grub_script_strcmp): Likewise.
4290 * tests/cmp_unit_test.c: New file.
4291 * tests/grub_script_strcmp.in: Likewise.
4292 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
4293
49717bf4
VS
42942012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4295
4296 * include/grub/pci.h: Move enums into no-asm part.
4297
0a308f64
VS
42982012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4299
4300 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
4301
1796965f
ST
43022012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
4303
4304 * util/getroot.c (find_hurd_root_device): Try to make error message
4305 and comments to translators clearer.
4306
4e9b2819
VS
43072012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4308
4309 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
4310
076aeb50
VS
43112012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4312
4313 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
4314 btrfs.
4315
19424d94
VS
43162012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4317
4318 * docs/grub.cfg: Update.
4319
ebb73076
VS
43202012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4321
4322 * docs/grub.texi (PXE): Remove not present variables.
4323
9a1b669c
VS
43242012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 * grub-core/net/net.c (defserver_set_env): New function.
4327 (defserver_get_env): Likewise.
4328 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
4329
d38bf7d3
VS
43302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4331
4332 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
4333 entries.
4334
43352012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
4336
4337 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
4338 * grub-core/kern/emu/hostdisk.c: Likewise.
4339
e5e4ca48
ST
43402012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4341
4342 Handle hurd userspace partitions.
4343
4344 * util/getroot.c (find_hurd_root_device): New function.
4345 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
4346
56bb5dd5
VS
43472012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
4350 names.
4351 Reported by: Bastian Blank.
4352
9e8bc27a
VS
43532012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
4356 crossing page boundary.
4357
aa01499d
VS
43582012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 Fix B-tree search in BFS, especially in presence of non-ASCII
4361 characters.
4362
4363 * grub-core/fs/bfs.c (bfs_strcmp): New function.
4364 (find_in_b_tree): Use standard bsearch + btree algorithm.
4365
57006035
VS
43662012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4367
4368 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
4369 and so on.
4370
9d34bb85
MG
43712012-05-03 Matthew Garrett <mjg@redhat.com>
43722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 Suspend broadcom cards in order to stop their DMA.
4375
4376 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
4377 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
4378 (pci): Don't build on x86 EFI.
4379 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
4380 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
4381 New function.
4382 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
4383 stop_broadcom if running on EFI.
4384 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
4385 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
4386 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
4387 (grub_pci_find_capability): New proto.
4388
01aab997
VS
43892012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4390
4391 * docs/grub.texi: Remove dot from the extension as it apparently
4392 doesn't work with some makeinfo versions.
4393
fbd8dca6
VS
43942012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
4397 with GRUB expectance.
4398
dab797f4
VS
43992012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
4402
1516bfb4
VS
44032012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
4406 zero after directory block since last entry may be not 0-terminated if
4407 it ends on block boundary. Use continue instead of if spanning whole
4408 loop.
4409
a3a0eace
VS
44102012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4411
4412 Support 4K sectors UDF inline files.
4413
4414 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
4415 (grub_udf_extended_file_entry): Likewise.
4416 (grub_fshelp_node): Name the anonymous union. Put block at the end.
4417 All users updated.
4418 (get_fshelp_size): New function.
4419 (grub_udf_read_icb): Read whole block.
4420 (grub_udf_iterate_dir): Likewise.
4421 (grub_udf_dir): Likewise.
4422 (grub_udf_open): Likewise.
4423
c82f16c1
VS
44242012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4425
4426 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
4427
59fd2aac
VS
44282012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4429
4430 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
4431 inline symlinks in addition to workaround.
4432
3b4afb4d
VS
44332012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4434
4435 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
4436
f45c794a
VS
44372012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
4440
f25cecbd
VS
44412012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
4444
bb9a34e8
VS
44452012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 Fix reiserfs big seek times.
4448
4449 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
4450 exact. All users updated.
4451 (grub_reiserfs_read): Use nearest btree search for seeking.
4452 Fix return value on error.
4453
dc478aea
VS
44542012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
4457 entries.
4458 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
4459 * docs/grub.texi: Update menuentry description.
4460
8db10f47
VS
44612012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4462
4463 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
4464 crash when embedding onto filesystem.
4465
bcb288ed
VS
44662012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
4467
4468 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
4469 name.
4470
a626fdd7
VS
44712012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4472
4473 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
4474
b2f68477
VS
44752012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4476
4477 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
4478 commit.
4479
ba15b2af
B
44802012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
44812012-05-01 Bean <bean123ch@gmail.com>
4482
4483 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
4484
a188012e
VS
44852012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
4488 Special behaviour for len = 0 to read whole file isn't used anywhere and
4489 can cause buffer ovewrflows in several places.
4490
f0a53ed2
VS
44912012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4492
4493 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
4494
5ed554f0
VS
44952012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4496
4497 Handle RAIDZ on non-512B sectors.
4498
4499 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
4500 max_children_ashift.
4501 (fill_vdev_info_real): Fill max_children_ashift.
4502 (read_device): Use max_children_ashift.
4503
ddc58357
VS
45042012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4505
4506 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
4507
e3282399
VS
45082012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4509
4510 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
4511 disk names.
4512 * docs/grub.texi: Update device.map parts.
4513
ee618bd4
VS
45142012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 Don't scan into non-diskfilter devices having diskfilter names.
4517
4518 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
4519 (scan_disk): New argument accept_diskfilter. Fix recursion depth
4520 handling.
4521 (scan_disk_hook): New function.
4522
bdf88864
B
45232012-04-29 Bean <bean123ch@gmail.com>
4524
4525 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
4526 allocation.
4527
32745f51
MK
45282012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
4529
4530 * configure.ac: Detect starfield theme font path
4531 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
4532
bc95c8c0
VS
45332012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
4536 geometry on serial consoles.
4537
147fbcab
VS
45382012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
4541 because of network consoles.
4542
0f42c889
VS
45432012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
4546 handling.
4547
4a3594c9
VS
45482012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
4551 falls on Q syndrom.
4552
5cb53879
VS
45532012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
4556 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
4557
b282dfe5
VS
45582012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4559
4560 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
4561 Allocate at lest 8192 for temporary buffer as required for lzo.
4562
daa59f47
VS
45632012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4564
4565 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
4566 to cluster_bits, since it's already added in.
4567 (grub_fat_read_data): Likewise.
4568
986748ce
VS
45692012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
4570
4571 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
4572 as long as cluster size is multiple of 512 bytes.
4573
a20f6ad0
VS
45742012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * util/grub-mkrescue.in: Fix locale directory.
4577
385f9abb
VS
45782012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
4579
4580 * grub-core/kern/emu/hostdisk.c (map): Make static.
4581
1c557d30
B
45822012-04-23 Bean <bean123ch@gmail.com>
4583
4584 * util/grub-fstest.c (fstest): Add missing break.
4585
524b5d3a
ST
45862012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
4587
4588 Fix hurd build.
4589
4590 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
4591 not define nr variable.
fe4824e9 4592 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
4593 find_root_devices_from_poolname, find_root_devices_from_libzfs,
4594 grub_find_device): Do not define.
524b5d3a 4595
9a06490c
VS
45962012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4597
4598 Fix kfreebsd compile and behaviour.
4599
4600 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
4601 format-security.
4602 * util/getroot.c: Fix wait.h include.
4603 (grub_guess_root_devices): Error if grub_find_device fails.
4604 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
4605 (grub_util_get_dev_abstraction): Likewise.
4606 (grub_util_pull_device): Likewise.
4607 (grub_util_get_grub_dev): Likewise.
4608 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
4609
48143d96
VS
46102012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
4611
4612 Fix and unify wholedisk detection.
4613
4614 * util/getroot.c (convert_system_partition_to_system_disk): New argument
4615 is_part. All users updated.
4616 (device_is_wholedisk): Removed.
4617 (grub_util_biosdisk_get_grub_dev): Use is_part.
4618
ebbd24f3
VS
46192012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4620
4621 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
4622 mode.
4623
56f7aa1e
VS
46242012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 * configure.ac: Bump to beta4.
4627
9c815e01
VS
46282012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
4631 --fs-uuid --set UUID syntax.
4632
59e2651a
VS
46332012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
4636 disunification.
4637
54e03cfc
VS
46382012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
4641
81092a75
MK
46422012-04-18 Mads Kiilerich <mads@kiilerich.com>
4643
4644 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
4645
f8315e14
MG
46462012-04-18 Mike Gilbert <floppym@gentoo.org>
4647
4648 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
4649
1501ac21
B
46502012-04-18 Bean <bean123ch@gmail.com>
4651
4652 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
4653 place.
4654
cb7f944e
VS
46552012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4656
4657 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
4658 users updated.
4659 (grub_util_biosdisk_read): Handle Linux partitions not exactly
4660 corresponding to GRUB partitions.
4661 (grub_util_biosdisk_write): Likewise.
4662
b72d44a1
VS
46632012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4664
4665 Scan mdraid before LVM.
4666
4667 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
4668 (grub_diskfilter_register_front): ... this.
4669 (grub_diskfilter_register_back): New function.
4670 All users of grub_diskfilter_register updated.
4671
33d918b8
VS
46722012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4673
4674 * util/grub-install.in: Fix an automatic target detection bug.
4675
c6ca973d
VS
46762012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
4677
4678 * util/grub-install.in: New option --efi-directory.
4679
b41be562
VS
46802012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
4681
4682 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
4683 boot services if we have no other choice.
4684
46852012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4686
4687 * util/grub-mknetdir.in: Rename --override-directory to --directory and
4688 document it.
4689 * tests/util/grub-shell.in: Update to --directory.
4690
e0595a73
VS
46912012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4692
4693 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
4694
4ed80652
VS
46952012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4696
4697 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
4698 (grub_minix_read_file): Likewise.
4699 (grub_minix_read_inode): Likewise.
4700 (grub_minix_find_file): Likewise.
4701 (grub_minix_dir): Likewise.
4702
56008077
VS
47032012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4704
4705 * util/grub-setup.c (setup): Fix partition handling and blocklist
4706 check.
4707
ee520775
VS
47082012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4709
4710 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
4711 redundant buggy overlap check.
4712
16fc9293
VS
47132012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4714
4715 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
4716 and grub-mknetdir.
4717
9bab65c4
VS
47182012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4719
4720 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
4721 kh.loadflags on pre-2.00 kernels.
4722
3c491b47
VS
47232012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 Terminate UNDI and PXE before launching the payload to avoid problems
4726 with DMA.
4727
4728 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
4729 (grub_loader_flags): ... this. All users updated.
4730 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
4731 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
4732 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
4733 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
4734 function.
4735 (grub_pxe_restore): Likewise.
4736 (fini_hnd): New var.
4737 (GRUB_MOD_INIT): Register shutdown hook.
4738 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
4739 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
4740 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
4741 (grub_loader_set): Rename second argument to flags.
4742
851ffada
VS
47432012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4744
4745 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
4746 written bytes.
4747 (grub_get_num_of_utf8_bytes): New function.
4748 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
4749 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
4750 executing it.
4751 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
4752 (grub_ucs4_to_utf8): Change return type.
4753
491c57a8
VS
47542012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
4757 warning.
851ffada
VS
4758 * grub-core/fs/bfs.c (hop_level): Likewise.
4759 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 4760
756773df
VS
47612012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4762
4763 * grub-core/lib/adler32.c: Recode due to license unclearness.
4764
fd556a96
VS
47652012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
4768 (test_header): Likewise.
4769
9f9d3f69
VS
47702012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 Fix --help formatting.
4773
4774 * util/grub-mkconfig_lib.in (print_option_help): New function.
4775 (grub_fmt): Likewise.
4776 * util/grub-install.in: Use print_option_help and grub_fmt.
4777 * util/grub-kbdcomp.in: Likewise.
4778 * util/grub-mkconfig.in: Likewise.
4779 * util/grub-mknetdir.in: Likewise.
4780 * util/grub-mkrescue.in: Likewise.
4781 * util/grub-mkstandalone.in: Likewise.
4782 * util/grub-reboot.in: Likewise.
4783 * util/grub-set-default.in: Likewise.
4784 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4785
561ec77e
VS
47862012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4787
4788 * linguas.sh: Remove autogenerated *.po.
4789
7ec2b021
VS
47902012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4791
4792 * po/README: Move language fetcing to ...
4793 * linguas.sh: ... here.
4794 * po/README: Point to linguas.sh.
4795
a88f3270
VS
47962012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4797
4798 * po/README: Exclude ko.po due to disclaimer problems.
4799
d61357ce
VS
48002012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4801
4802 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
4803 len = 0.
4804 (grub_gettext_translate_real): Handle 0th string.
4805 (grub_gettext_translate): Ensure that "" isn't translated.
4806
505e41dc
VS
48072012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
4810 TRANSLATORS comment.
4811 (grub_diskfilter_print_partmap): Propagate changing of error into
4812 warning.
4813
e44092db
VS
48142012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4815
4816 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4817 to uint64_t to prevent overflow.
4818 (grub_diskfilter_lv): Increase start_extent and extent_count
4819 to uint64_t to prevent overflow.
4820
9b83956a
VS
48212012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * configure.ac: Increase version.
4824
da0d5b3f
VS
48252012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4826
4827 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4828
4829 * po/Rules-translit: New file.
4830 * po/arabic.sed: Likewise.
4831 * po/cyrillic.sed: Likewise.
4832 * po/greek.sed: Likewise.
4833 * po/hebrew.sed: Likewise.
4834 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4835 * po/Makefile.in.in: Add extra_dist4.
4836
ac66b453
VS
48372012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4838
4839 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4840
4841 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4842 modify names. Introduce MODE_BIGENDIAN.
4843 * grub-core/fs/minix_be.c: New file.
4844 * grub-core/fs/minix2_be.c: Likewise
4845 * grub-core/fs/minix3_be.c: Likewise.
4846 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4847 minix3_be.
4848 * grub-core/Makefile.core.def (minix_be): New module.
4849 (minix2_be): Likewise.
4850 (minix3_be): Likewise.
4851
48522012-04-01 Felix <email@hamburg.de>
4853
4854 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4855 (devs): Add MBP 2011.
4856
0a2d5a82
VS
48572012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4860
d1625889
VS
48612012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * grub-core/normal/cmdline.c (print_completion): New field
4864 prompt_len.
4865 (grub_cmdline_get): Handle width properly.
4866
6d36a236
VS
48672012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4868
4869 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4870
9576977e
VS
48712012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4872
4873 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 4874 after 29th of February.
9576977e 4875
d73ff15d
VS
48762012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4877
4878 Fix exfat endianness handling.
4879
4880 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4881 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4882 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4883 Byte-swap utf16 when necessary.
4884 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4885
bbb39a45
AB
48862012-03-31 Anton Blanchard <anton@samba.org>
48872012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4888
4889 Fix btrfs endianness handling.
4890
4891 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4892 (lower_bound): Make root uint64_t. Use root in le.
4893 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4894 (find_path): Fix template key init.
4895 (grub_btrfs_dir): Fix mtime byteswap.
4896 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4897
354e0af7
VS
48982012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4899
4900 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4901 recursion_depth. Break infinite resursions. All users updated.
4902
4e75f21c
VS
49032012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4904
4905 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4906 after free.
4907 Reported by: Peter Jones.
4908
25581802
AB
49092012-03-31 Anton Blanchard <anton@samba.org>
4910
4911 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4912 8 bit values.
4913
08fbf92e
VS
49142012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4915
4916 * util/grub-install.in: Fix nvram call for PreP.
4917
5d1182a6
VS
49182012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4919
4920 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4921 the error when some elements are missing into a warning.
4922
3f8cdd90
VS
49232012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4924
4925 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4926
51006716
CW
49272012-03-28 Colin Watson <cjwatson@ubuntu.com>
4928
4929 * docs/grub.texi (Invoking grub-probe): New section.
4930 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4931
e1bd676b
VS
49322012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4933
4934 Fix tab and wide character handling in editor and menu.
4935
4936 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4937 agglomerate control characters with combining marks.
4938 (bidi_line_wrap): Allow break on tab.
4939 (grub_unicode_get_comb_start): New function.
4940 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4941 and tab correctly.
4942 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4943 with a space.
4944 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4945 fixed_tab_size. All users updated.
4946 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4947 (grub_term_getcharwidth): Handle \t.
4948 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4949 and copy.
4950
22e6a774
VS
49512012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4952
4953 Handle big-endian mdraid.
4954
4955 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4956 * grub-core/Makefile.core.def (mdraid09_be): New module.
4957 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4958 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4959 * grub-core/disk/mdraid_linux_be.c: New file.
4960
3c0eae66
VS
49612012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4964
b6cf74c9
VS
49652012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4968 missing quotes which caused confusion among translators.
4969
83c93b9c
VS
49702012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4971
4972 * util/grub-mkconfig_lib.in: Fix typo.
4973
ac6fd218
VS
49742012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4975
4976 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4977 spaces.
4978 * tests/grub_script_leading_whitespace.in: New file.
4979 * Makefile.util.def (grub_script_leading_whitespace): New test.
4980
ba287dd8
VS
49812012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4982
4983 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4984 to work.
4985
d2d58d0a
VS
49862012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4987
4988 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4989 starts with control character.
4990
0382d9bb
VS
49912012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4992
4993 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4994 overflow.
4995 (grub_gdb_outbuf): Likewise.
4996
d83ff9f9
VS
49972012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4998
4999 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
5000 zero terminator. Fixes a crash.
5001
2282da4a
VS
50022012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5003
5004 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
5005 beyond 4 GiB.
5006 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
5007 images independently of preffered adderss field.
5008
0ae4f0bd
VS
50092012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5010
5011 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
5012 * grub-core/commands/regexp.c: Likewise.
5013 * grub-core/loader/i386/linux.c: Likewise.
5014 * grub-core/partmap/msdos.c: Likewise.
5015 * grub-core/script/execute.c: Likewise.
5016 * grub-core/term/gfxterm.c: Likewise.
5017
546fbe9b
VS
50182012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5019
5020 Add variable parsing in $"..." and fix several mismatches with bash.
5021
5022 * Makefile.util.def (grub_script_gettext): New test.
5023 * grub-core/script/execute.c (parse_string): New function.
5024 (gettext_append): Likewise.
5025 (grub_script_arglist_to_argv): Use gettext_append.
5026 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
5027 * tests/grub_script_gettext.in: New file.
5028
9fdb2d7b
VS
50292012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5030
5031 Fix handling of leading spaces in scripts.
5032
5033 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
5034 spaces.
5035 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
5036 other than skipping \r. All users updated.
5037 * tests/grub_script_echo1.in: Add space-related tests.
5038 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
5039
1a1ac4f6
VS
50402012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
5041
5042 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
5043
b63d89b6
VS
50442012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5045
5046 * configure.ac: Bump up the version to beta2.
5047
17f38c0f
VS
50482012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5049
5050 Fix gettext reload bugs (e.g. inability to disable gettext
5051 once enabled).
5052
5053 * grub-core/gettext/gettext.c: Encapsulate all static variables in
5054 main_context and secondary_context. All functions updated.
5055 (grub_gettext_translate): Rename to ...
5056 (grub_gettext_translate_real): ... this. Return NULL on failed
5057 translate.
5058 (grub_gettext_translate): Handle secondary context.
5059 (grub_gettext_delete_list): Close file and zero-out the context.
5060 (grub_mofile_open): Don't call grub_gettext_delete_list.
5061 Don't close file.
5062 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
5063 if locale="" to avoid pointless error message.
5064 (grub_gettext_env_write_lang): Update lang even if load fails.
5065 Handle secondary context.
5066 (grub_gettext_reread_prefix): New function.
5067 (read_main): Likewise.
5068 (read_secondary): Likewise.
5069 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
5070 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
5071 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
5072 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
5073
8e56f870
VS
50742012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5075
5076 * configure.ac: Decrease warning level to avoid spurious warnings and
5077 to be able to compile with GCC 4.2.
5078 * Makefile.util.def: Remove -Wno-error=logical-op.
5079
82f6d455
WB
50802012-03-10 William Bittner <william.bittner@gmail.com>
5081
5082 * util/import_unicode.py: Add missing brackets around string for
5083 python 3 support.
5084
1ecd61a4
VS
50852012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5086
5087 Fix efi chainloader on network root.
5088
5089 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
5090 network devices.
5091 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
5092 New function.
5093
14361ee8
VS
50942012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5095
5096 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
5097 unused show_text member.
5098 * docs/grub.texi: Document "text" property.
5099
922aabf3
VS
51002012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5101
5102 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
5103 in dprintf.
5104
ec316771
VS
51052012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5106
5107 Fix IMSM handling on Fedora.
5108
5109 * util/getroot.c (grub_util_is_imsm): New function.
5110 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
5111
0f021838
VS
51122012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5113
5114 * Makefile.am: Strip gold section.
5115 * conf/Makefile.common: Likewise.
5116 * gentpl.py: Likewise.
5117 * grub-core/Makefile.core.def: Likewise.
5118 * grub-core/genmod.sh.in: Likewise.
5119
1039c8eb
VS
51202012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5121
5122 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
5123 * util/grub.d/20_linux_xen.in: Likewise.
5124 Based on Debian patch.
5125
6dd412cd
VS
51262012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 * util/grub.d/10_linux.in: Fix syntax error resulting in
5129 Richard Laager's patch.
5130 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
5131
3fd8bae5
VS
51322012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
5135 dependencies.
5136
7eea1671
RL
51372012-03-10 Richard Laager <rlaager@wiktel.com>
5138
5139 * util/grub.d/10_linux.in: Fix ZFS root passing.
5140
e8e0566b
VS
51412012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5142
5143 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5144 * grub-core/commands/xnu_uuid.c: Likewise.
5145 * grub-core/loader/efi/appleloader.c: Likewise.
5146 * grub-core/script/execute.c: Likewise.
5147 * grub-core/script/main.c: Likewise.
5148 * util/grub-mkfont.c: Likewise.
5149
1acc5b1f
VS
51502012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5151
5152 * util/grub-mkfont.c (options): Use more appropriate "select" that
5153 "set" for face index.
5154
35d70620
VS
51552012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5156
5157 * util/grub-editenv.c (options): Gettextize command summaries.
5158
c9eb96b5
VS
51592012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
5162 "out of memory" error messagge.
5163
1f493136
VS
51642012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5165
5166 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
5167 of diskfilter for diskfilter on diskfilter support.
5168
6d790129
VS
51692012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5170
5171 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
5172
005f46c9
VS
51732012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5174
5175 * util/grub-install.in: Check for themes/starfield/theme.txt and not
5176 themes/starfield.
5177
c8f778a0
VS
51782012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5179
5180 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
5181
de1e64eb
VS
51822012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5183
5184 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
5185
c6d54211
VS
51862012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
5187
5188 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
5189 of error message.
5190
dd390777
VS
51912012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5192
5193 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
5194
5fd1c522
VS
51952012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
5196
5197 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
5198 message.
c6d54211 5199 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 5200
fae01f6c
VS
52012012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
5204 Gettextize.
5205 * util/grub-mount.c (options): Likewise.
5206
292fdaff
VS
52072012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5208
5209 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
5210 gettextize.
5211 * grub-core/commands/search_wrap.c (options): Likewise.
5212
ecdbae77
VS
52132012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5214
5215 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
5216
52bfedfa
VS
52172012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5218
5219 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
5220 size calculation.
5221 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
5222 none is known.
5223
55b20e58
VS
52242012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5225
5226 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
5227 "temporary" since it's used in identifier and is limited in space.
5228
fda9d101
VS
52292012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5230
5231 * po/POTFILES.in: Regenerate. Include *.h since they contain
5232 translatable strings as well.
5233
6a0295e2
VS
52342012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
5235
5236 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
5237 byte-swap on big-endian.
5238 Reported by: Lennart Sorensen
5239
807fb77c
VS
52402012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
5241
5242 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
5243 (allocate_pages): Improve dprintf.
5244 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
5245 code32_start. Fill code32_start and kernel_alignment in params.
5246 (grub_cmd_initrd): Use prot_init_space.
5247
61ac50ba
VS
52482012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5249
5250 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
5251
abdd26dd
VS
52522012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * util/grub-install.in: Add missing dot at the end of sentence.
5255
6e69da9c
VS
52562012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5257
5258 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
5259 * grub-core/commands/videotest.c: Likewise.
5260 * grub-core/loader/i386/linux.c: Likewise.
5261
4a929343
VS
52622012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5263
5264 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
5265 sentence.
5266 Reported by: Milo Casagrande.
5267
bb51c6c6
VS
52682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
5271 * grub-core/commands/gptsync.c: Likewise.
5272 * grub-core/commands/hashsum.c: Likewise.
5273 * grub-core/commands/i386/pc/sendkey.c: Likewise.
5274 * grub-core/commands/legacycfg.c: Likewise.
5275 * grub-core/io/gzio.c: Likewise.
5276 * grub-core/net/net.c: Likewise.
5277 * grub-core/term/gfxterm.c: Likewise.
5278 * grub-core/term/terminfo.c: Likewise.
5279 * grub-core/tests/test_blockarg.c: Likewise.
5280 * grub-core/video/video.c: Likewise.
5281 * util/grub-install.in: Likewise.
5282 * util/grub-mkfont.c: Likewise.
5283
b2b149cb
VS
52842012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5285
5286 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
5287
c7c080ad
VS
52882012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5289
5290 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 5291 Reported by: David Prévot.
c7c080ad 5292
f2e243c0
VS
52932012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5294
5295 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
5296 description.
5297
09963c76
VS
52982012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5299
5300 * util/grub-script-check.c (main): Fix a syntax error message which was
5301 unclear.
5302
a50514a8
VS
53032012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5304
5305 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
5306
4650daec
VS
53072012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
5308
5309 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
5310 messages.
5311
53122012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
5313
5314 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
5315 without argument.
5316 * util/grub-mount.c (options): Likewise.
5317
bbc5a342
VS
53182012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5319
5320 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
5321
ef292a87
VS
53222012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5323
5324 * grub-core/net/http.c: Add TRANSLATORS comments.
5325 * grub-core/normal/cmdline.c: Likewise.
5326 * grub-core/normal/misc.c: Likewise.
5327 * grub-core/partmap/msdos.c: Likewise.
5328 * grub-core/parttool/msdospart.c: Likewise.
5329 * grub-core/script/execute.c: Likewise.
5330 * grub-core/script/main.c: Likewise.
5331 * grub-core/term/terminfo.c: Likewise.
5332 * grub-core/video/bitmap.c: Likewise.
5333 * util/grub-install.in: Likewise.
5334 * util/grub-mkimage.c: Likewise.
5335 * util/grub-mklayout.c: Likewise.
5336 * util/grub-setup.c: Likewise.
5337
0fc19bd0
VS
53382012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5339
5340 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
5341 with similar messages in grub-fstest.
5342
d95862ef
VS
53432012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5344
5345 * util/grub-install.in: Unify "option requires an argument" message
5346 with similar messages in other files.
5347 * util/grub-mkconfig.in: Likewise.
5348
b7308f90
VS
53492012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5350
5351 * util/grub-set-default.in: Replace printf with gettext_printf (the
5352 string in in question is already translated from grub-reboot)
5353
559dc587
VS
53542012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
5355
5356 * configure.ac: Bump up the version to beta1.
5357
1a11761f
VS
53582012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5359
5360 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
5361 case when min_align = 0.
5362
24539abd
VS
53632012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5364
5365 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
5366 and fix a case when line_start overflows.
5367
32bd735b
VS
53682012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * util/grub-reboot.in (usage): Mention id posibility.
5371 * util/grub-set-default.in (usage): Likewise.
5372
1a2fd1e6
VS
53732012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5374
5375 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
5376 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
5377 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
5378 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
5379 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
5380 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5381 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
5382
90eeab76
VS
53832012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5384
5385 * grub-core/commands/menuentry.c (options): Remove
5386 GRUB_ARG_OPTION_REPEATABLE.
5387 Reported by: Andreas Vogel
5388
5ad1be82
AV
53892012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
5390
5391 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
5392
cb055286
HE
53932012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
5394
5395 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
5396 error.
5397
93b1cd79
VS
53982012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5399
5400 Use sort -V by the idea of Georgi Georgiev.
5401
5402 * util/grub-mkconfig_lib.in (version_sort): New function.
5403 (version_test_numeric): Use version_sort.
5404
0cdc126c
VS
54052012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5406
5407 Use submenus in grub-mkconfig.
5408
5409 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
5410 * util/grub-mkconfig_lib.in (grub_quote): New function.
5411 (gettext_printf): Use gettext and not gettext_quoted to fix several
5412 messages.
5413 * util/grub.d/10_hurd.in: Use submenus.
5414 * util/grub.d/10_kfreebsd.in: Likewise.
5415 * util/grub.d/10_linux.in: Likewise.
5416 * util/grub.d/10_netbsd.in: Likewise.
5417 * util/grub.d/20_linux_xen.in: Likewise.
5418 * util/grub.d/30_os-prober.in: Likewise.
5419 * util/grub.d/10_illumos.in: Add missing quoting.
5420 * util/grub.d/10_windows.in: Likewise.
5421
d9bef9bc
VS
54222012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
5423
5424 Fix menu title instability bug.
5425
5426 * grub-core/commands/menuentry.c (options): New option --id.
5427 (grub_normal_add_menu_entry): New argument id. All users updated.
5428 (grub_cmd_menuentry): Handle --id.
5429 (grub_menu_init): Accept unknown arguments.
5430 * grub-core/normal/main.c (features): Add feature_menuentry_id and
5431 feature_menuentry_options.
5432 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
5433 saved_entry.
5434 (get_entry_number): Match with id as well.
5435 * include/grub/menu.h (grub_menu_entry): New member id.
5436 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
5437 * util/grub.d/00_header.in: Define menuentry_id_option.
5438 * util/grub.d/10_hurd.in: Define id.
5439 * util/grub.d/10_illumos.in: Likewise.
5440 * util/grub.d/10_kfreebsd.in: Likewise.
5441 * util/grub.d/10_linux.in: Likewise.
5442 * util/grub.d/10_netbsd.in: Likewise.
5443 * util/grub.d/10_windows.in: Likewise.
5444 * util/grub.d/20_linux_xen.in: Likewise.
5445 * util/grub.d/30_os-prober.in: Likewise.
5446
54472012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
5448
5449 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
5450 "scope" with "body".
5451
7c8d0ce7
VS
54522012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5453
5454 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
5455 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
5456 prot_size and prot_file_size.
5457
49de079b
VS
54582012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5459
5460 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
5461 All users updated. If easily=1 require raid-5/-6 to be full.
5462 (is_node_readable): Likewise.
5463 (scan_devices): Scan incomplete but readable LVs at the end.
5464 (grub_diskfilter_memberlist): Pull missing devices.
5465 (insert_array): Skip scanning until device is complete or scan is
5466 done otherwise.
5467 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
5468 check.
5469 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
5470 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
5471
aff05d45
MG
54722012-03-03 Matthew Garrett <mjg@redhat.com>
54732012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5474
5475 Avoid EFI boot services when loading Linux.
5476
5477 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
5478 avoid_efi_bootservices. All users updated.
5479 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
5480 argument avoid_efi_bootservices. All users updated.
5481 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
5482 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
5483 align, min_align, relocatable, prefered_address. All users updated.
5484 Allocate avoiding boot services if kernel is relocatable.
5485 (grub_cmd_linux): Check if kernel is relocatable.
5486 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
5487 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
5488 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
5489 avoid_efi_boot_services.
5490 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
5491 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
5492 (linux_kernel_params): Likewise.
5493
3935dde2
MG
54942012-03-03 Matthew Garrett <mjg@redhat.com>
54952012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 Use EDID on EFI.
5498
5499 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
5500 datasize_out.
5501 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
5502 modes. Set gop_handle.
5503 (grub_video_gop_get_edid): New function.
5504 (grub_gop_get_preferred_mode): Likewise.
5505 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
5506 (grub_video_efi_gop_adapter): Set .get_edid.
5507 * include/grub/efi/edid.h: New file.
5508 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
5509
32107ec0
VS
55102012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5511
5512 * util/grub-install.in: Load efivars unconditionally.
5513
e70a2c50
VS
55142012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5515
5516 * po/Rules-piglatin: Change suffix from .po-update-en to
5517 .po-update-en-piglatin.
5518
8f9cace1
VS
55192012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5520
5521 Add a pig farm.
5522
5523 * po/piglatin.sed: New file.
5524 * po/en@piglatin.header: Likewise.
5525 * po/Rules-piglatin: Likewise.
5526 * po/README: Add en@piglatin to autogenerated languages.
5527
8f95d002
VS
55282012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
5531 "Command for ...".
5532 * grub-core/commands/hdparm.c (options): Use "Display" rather than
5533 "Check" since we don't check anything.
5534 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
5535 is 64-bit one.
5536 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
5537 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
5538 (grub_md_sha512_real): Likewise.
5539
805a8dcc
VS
55402012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
5541
5542 * grub-core/commands/gptsync.c: Fix typographic quoting.
5543 * grub-core/commands/ieee1275/suspend.c: Likewise.
5544 * grub-core/commands/parttool.c: Likewise.
5545 * grub-core/commands/search_wrap.c: Likewise.
5546 * grub-core/commands/videoinfo.c: Likewise.
5547 * grub-core/gfxmenu/gui_label.c: Likewise.
5548 * grub-core/hello/hello.c: Likewise.
5549 * grub-core/kern/emu/main.c: Likewise.
5550 * grub-core/net/net.c: Likewise.
5551 * grub-core/normal/menu.c: Likewise.
5552 * grub-core/normal/menu_text.c: Likewise.
5553 * grub-core/normal/misc.c: Likewise.
5554 * util/grub-editenv.c: Likewise.
5555 * util/grub-install.in: Likewise.
5556 * util/grub-kbdcomp.in: Likewise.
5557 * util/grub-mkconfig.in: Likewise.
5558 * util/grub-mknetdir.in: Likewise.
5559 * util/grub-mkrescue.in: Likewise.
5560 * util/grub-mkstandalone.in: Likewise.
5561 * util/grub-reboot.in: Likewise.
5562 * util/grub-set-default.in: Likewise.
5563 * util/grub-setup.c: Likewise.
5564 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5565
40211ab8
VS
55662012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5567
5568 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
5569 * grub-core/commands/keystatus.c: Likewise.
5570 * grub-core/commands/loadenv.c: Likewise.
5571 * grub-core/commands/probe.c: Likewise.
5572 * grub-core/commands/regexp.c: Likewise.
5573 * grub-core/commands/true.c: Likewise.
5574 * grub-core/commands/videoinfo.c: Likewise.
5575 * grub-core/disk/cryptodisk.c: Likewise.
5576 * grub-core/disk/ldm.c: Likewise.
5577 * grub-core/disk/loopback.c: Likewise.
5578 * grub-core/disk/luks.c: Likewise.
5579 * grub-core/fs/zfs/zfsinfo.c: Likewise.
5580 * grub-core/kern/disk.c: Likewise.
5581 * grub-core/kern/emu/hostdisk.c: Likewise.
5582
0c7d99c7
VS
55832012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5584
5585 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
5586 * util/grub-install.in: Add missing quote in the comment.
5587
e7d2559b
VS
55882012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5589
5590 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
5591 * grub-core/commands/lsmmap.c: Likewise.
5592 * grub-core/commands/minicmd.c: Likewise.
5593 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
5594 * grub-core/commands/regexp.c: Likewise.
5595 * grub-core/gdb/gdb.c: Likewise.
5596 * grub-core/term/gfxterm.c: Likewise.
5597 * util/grub-mkconfig.in: Likewise.
5598 * util/grub-mkfont.c: Likewise.
5599 * util/grub-mklayout.c: Likewise.
5600 * util/grub-mknetdir.in: Likewise.
5601 * util/grub-mkrescue.in: Likewise.
5602 * util/grub.d/30_os-prober.in: Likewise.
5603
49ce9e50
VS
56042012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
5607 with "Direct color" and "Packed" with "Packed pixel".
5608 (grub_cmd_videoinfo): Simplify legend.
5609
e4b791fa
VS
56102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5611
5612 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
5613 absolutely unclear error message.
5614
fd1265cb
VS
56152012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5616
5617 * util/grub-mkstandalone.in: Remove confusing leftover print.
5618
8822a8a0
VS
56192012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
5622 comments.
5623 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
5624 (GRUB_MOD_INIT): Likewise.
5625 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
5626 VGA mode.
5627 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
5628 comments.
5629 * util/grub-install.in (usage): Likewise.
5630 Spell ID in whole letters.
5631 Add missing ending dot.
5632 Quote variables.
5633 * util/grub-reboot.in: Fix capitalisation.
5634 * util/grub-set-default.in: Likewise.
5635
937fd0cc
VS
56362012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5637
5638 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
5639 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
5640 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
5641 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
5642 Disable -Werror for -Wdeprecated-declarations.
5643 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
5644 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
5645 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
5646 (grub_util_get_grub_dev): Make luks handling dependent on
5647 HAVE_DEVICE_MAPPER and not __linux__.
5648 (get_win32_path): Fix format security.
5649 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
5650 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
5651 Don't try grub_find_zpool_from_dir.
5652 (grub_make_system_path_relative_to_its_root) [!__linux__]:
5653 #ifdef-out paresdir.
5654
1bab1ae3
VS
56552012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5656
5657 * util/grub-pe2elf.c (usage): Add missing noreturn.
5658 (write_section_data): Rename name to shname to avoid shadowing.
5659 (write_symbol_table): Rename name to symname to avoid shadowing.
5660 Fix write_reloc_section call.
5661
ef023e42
VS
56622012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5663
5664 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
5665 to ensure that it's after the last byte of .text.
5666
48afcb75
VS
56672012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5668
5669 * util/ieee1275/ofpath.c (my_isdigit): New function.
5670 (trailing_digits): Use my_isdigit.
5671 (strip_trailing_digits): Likewise.
5672
88d51eff
VS
56732012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5674
5675 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
5676 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
5677
17edc2ba
VS
56782012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5679
5680 * grub-core/kern/i386/pc/startup.S: Define __start.
5681
ad5518d7
VS
56822012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5683
5684 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
5685 strip already transforms he format.
5686
9e95e1bf
VS
56872012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
5688
5689 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
5690
9cc3ee5c
VS
56912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5692
5693 * util/grub-install.in: Add missing gettext init.
5694 * util/grub-kbdcomp.in: Likewise.
5695 * util/grub-mkconfig.in: Likewise.
5696 * util/grub-mknetdir.in: Likewise.
5697 * util/grub-mkrescue.in: Likewise.
5698 * util/grub-mkstandalone.in: Likewise.
5699 * util/grub-reboot.in: Likewise.
5700 * util/grub-set-default.in: Likewise.
5701 * util/grub.d/00_header.in: Likewise.
5702 * util/grub.d/10_hurd.in: Likewise.
5703 * util/grub.d/10_windows.in: Likewise.
5704 * util/grub.d/30_os-prober.in: Likewise.
5705 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5706
49e08a06
VS
57072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5708
5709 * po/Rules-swiss: Fix header comment.
5710
3809cb41
AV
57112012-02-29 Andreas Vogel <anvoit>
5712
5713 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
5714 resulted in leak of arguments.
5715
fa6ec573
VS
57162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * grub-core/boot/i386/pc/startup_raw.S: Use separate
5719 reed_solomon_size const definition instead of computing it since
5720 Apple assembler doesn't support the later.
5721
22899b9c
VS
57222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5723
5724 * gentpl.py (kernel): Rewrite Apple part.
5725
a132afc3
VS
57262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5727
5728 * include/grub/kernel.h (FOR_MODULES): Check module magic.
5729
9d742bd4
VS
57302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 * util/grub-mkimagexx.c (locate_sections): Support non-standard
5733 ELF section gap.
5734 (load_image): Likewise.
5735
f04a9a21
VS
57362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5737
5738 * configure.ac: Fix a typo in previous commit.
5739
46cf439c
VS
57402012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 Don't add -Wl,-N on Apple platform.
5743
5744 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
5745 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
5746
c4c48c54
VS
57472012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5748
5749 * grub-core/Makefile.core.def (lzma_decompress): Use
5750 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
5751
31a12124
VS
57522012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5753
5754 * grub-core/genmod.sh.in: Rewrite the Apple part.
5755
4f3aa1af
VS
57562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
5759 comparison.
5760
7bd8b0c7
VS
57612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5762
5763 * acinclude.m4 (grub_CHECK_PIC): New test.
5764 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
5765
97304d7c
VS
57662012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5767
5768 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
5769 to avoid the warning.
5770
fb883812
VS
57712012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
5774 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
5775 after. All users updated.
5776
a121c964
VS
57772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5778
5779 Use the common size routine in hostfs so we can read disks as well.
5780
5781 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
5782 (grub_util_get_fd_size): ... this. Return size in bytes.
5783 All users updated.
5784 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
5785 grub_util_get_fd_size.
5786
c66d6410
VS
57872012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
5790 Add blocksize retrieval.
5791
dfc8aeb0
VS
57922012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 * configure.ac: Restore CFLAGS after efiemu check.
5795
403e25a5
VS
57962012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5797
5798 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
5799 Apple bug.
5800
382775d1
VS
58012012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5802
5803 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
5804
6fd4e6e4
VS
58052012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
5808 (grub_cmd_halt): Likewise.
5809
bea359d6
VS
58102012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5811
5812 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
5813 for local arithmetics.
5814 Break %sp init into 2 instructions.
5815 Add 0 byte at the end.
5816
32eb6ee1
VS
58172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5818
5819 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5820 before loops.
5821
e8377389
VS
58222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5825 for context.
5826
8cb17de7
VS
58272012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * grub-core/disk/ldm.c (make_vg): Init part.name.
5830 (grub_ldm_detect): Silence spurious warning.
5831 (grub_util_is_ldm): Likewise.
5832
595717e6
VS
58332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5836 sane value to avoid a spurious warning.
5837
c4b7e588
VS
58382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5839
5840 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5841 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5842
59824957
VS
58432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5844
5845 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5846 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5847
70115b99
VS
58482012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5849
5850 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5851 hardcoding the relevant info.
5852
56733740
VS
58532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5854
5855 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5856 missing const qualifiers.
5857 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5858
43481481
VS
58592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5860
5861 * util/getroot.c [__APPLE__]: Add missing includes.
5862 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5863
3cb38f01
VS
58642012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5865
5866 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5867
d9dbf11e
VS
58682012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5871 avoid conflicts.
5872
0c42a45d
VS
58732012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5876
46c34eb0
VS
58772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5880 and grub_file_close call.
5881
99ce1597
VS
58822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5883
5884 Add LZSS Mach-O support (needed for new xnu kernelcache).
5885
5886 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5887 * grub-core/loader/lzss.c: New file.
5888 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5889 on Mach-O open failure.
5890 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5891 Don't free cmdsXX in uncompressedXX is set.
5892 (grub_macho_file): Init new fields.
5893 New argument is_64bit. All users updated.
5894 Handle compressed. Error out if no suitable architecture is found.
5895 Don't close file.
5896 (grub_macho_open): New argument is_64bit. All users updated.
5897 * grub-core/loader/macho32.c: Add defines for new fields.
5898 * grub-core/loader/macho64.c: Likewise.
5899 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5900 (grub_macho_parse): Handle compressed.
5901 Defer actual processing if compressed.
5902 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5903 "filename". All users updated.
5904 (grub_macho_size): New argument "filename". All users updated.
5905 (grub_macho_get_entry_point): Likewise.
5906 (grub_macho_load): Handle compressed.
5907 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5908 (GRUB_MACHO_LZSS_OFFSET): New define.
5909 (grub_decompress_lzss): New proto.
5910 * include/grub/machoload.h (grub_macho_file): New fields to handle
5911 compressed.
5912 (grub_macho_contains_macho64): Remove proto.
5913 (grub_macho_contains_macho32): Likewise.
5914 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5915
ebd17d6f
VS
59162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5917
5918 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5919
2702b4e4
VS
59202012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5921
5922 Fix make dist.
5923
5924 * Makefile.am (starfield_theme_files): New var.
5925 (starfield_DATA): Use starfield_theme_files.
5926 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5927 Add bootcheck-related files.
5928 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5929 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5930 and font_char_metrics.txt.
5931 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5932 (setjmp): Add lib/ia64/longjmp.S.
5933 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5934 * po/POTFILES.in: Regenerate.
5935 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5936 DISTFILES.common.extra1.
5937 * util/devicemap.c: Removed.
5938 * grub-core/lib/i386/relocator_backward.S: Likewise.
5939 * util/import_gcry.py: Remove unused files. Add extra_dist for
5940 ChangeLog.
5941
cf1adfdf
VS
59422012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5943
5944 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5945 grub_gettext_delete_list before changing grub_gettext_max to avoid
5946 running out of array bounds.
5947
59482012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
5949
5950 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5951 grub_vga_text_init/grub_vga_text_fini.
5952
cf1adfdf 59532012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
5954
5955 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5956
541d92e9
VS
59572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5958
5959 * configure.ac: Bump to 2.00~beta0.
5960
7931dddf
VS
59612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5962
5963 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5964 missing initialisation.
5965
f1b16fa3
VS
59662012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5967
5968 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5969
83ddae23
VS
59702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5971
5972 Support v2 xnu boot arguments.
5973
5974 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5975 New argument fsbfreq_out.
5976 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5977 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5978 be used.
5979 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5980 darwin_version.
5981 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5982 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5983 (grub_xnu_boot_params): Rename to ...
5984 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5985 (grub_xnu_boot_params_v2): New struct.
5986
dc693fe6
VS
59872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5990 zeroing of CRC field before computing CRC.
5991
5a6e39c2
VS
59922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5993
5994 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5995 Change order of allocations to decrease fragmentation.
5996
6c21f5d7
VS
59972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5998
5999 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
6000
cfe456dc
CW
60012012-02-27 Colin Watson <cjwatson@ubuntu.com>
6002
6003 Use write-combining MTRR to speed up video with buggy BIOSes.
6004
6005 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
6006 (cpuid): New define.
6007 (rdmsr): Likewise.
6008 (wrmsr): Likewise.
6009 (mtrr_base): Likewise.
6010 (mtrr_mask): Likewise.
6011 (grub_vbe_enable_mtrr_entry): New function.
6012 (grub_vbe_enable_mtrr): Likewise.
6013 (grub_vbe_disable_mtrr): Likewise.
6014 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
6015 control off to BIOS.
6016 (grub_video_vbe_init): Fill mtrr.
6017 (grub_video_vbe_fini): Disable mtrr.
6018 (grub_video_vbe_get_info_and_fini): Likewise.
6019 (grub_video_vbe_setup): Enable mtrr.
6020
e3c78337
CW
60212012-02-27 Colin Watson <cjwatson@ubuntu.com>
6022
6023 * include/grub/partition.h (grub_partition_map): Change prototype of
6024 embed to take a maximum value for nsectors.
6025 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
6026 * include/grub/fs.h (grub_fs): Likewise.
6027 * grub-core/partmap/msdos.c (embed_signatures): New array.
6028 (pc_partition_map_embed): Check for and avoid sectors matching any
6029 of the signatures in embed_signatures, up to max_nsectors.
6030 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
6031 returned sector map to max_nsectors.
6032 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
6033 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
6034 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
6035 * util/grub-setup.c (setup): Allow for the embedding area being
6036 split into multiple blocklists. Tell dest_partmap->embed the
6037 maximum number of sectors we care about.
6038
60392012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
6042 Specify blocklist_install and reserver_first_sector for all fs.
6043 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
6044 blocklists.
6045
984b973f
VS
60462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6047
6048 * util/grub-install.in: Clarify strings.
6049 Fix source dir check.
6050
f122e0d6
RL
60512012-02-27 Richard Laager <rlaager@wiktel.com>
6052
6053 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
6054 "zfs" and "fuse.zfs" as synonyms.
6055
071114bb
VS
60562012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6057
6058 * configure.ac: Put platform and target_cpu substitutions back since
6059 they are used for directories.
6060
817e6abc
RL
60612012-02-27 Richard Laager <rlaager@wiktel.com>
60622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6063
6064 * util/grub.d/10_linux.in: Add ZFS-related arguments.
6065 * util/grub.d/20_linux_xen.in: Likewise.
6066
897b7419
RL
60672012-02-27 Richard Laager <rlaager@wiktel.com>
6068
6069 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
6070 with full paths.
6071
a414bd15
RL
60722012-02-27 Richard Laager <rlaager@wiktel.com>
6073
6074 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
6075 unescape.
6076
30ac48c4
VS
60772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6078
6079 Don't use insecure popen in getroot.
6080
6081 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
6082 (exec_pipe): ... here.
6083 (find_root_devices_from_poolname): Use exec_pipe.
6084
53f13848
VS
60852012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6086
6087 Remove platform and target_cpu replacement.
6088
6089 * configure.ac: Remove platform and target_cpu substitutions.
6090 * tests/util/grub-shell.in: Use modinfo.
6091 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
6092 explicitly.
6093
90cb2803
VS
60942012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6095
6096 Autodetect platform in grub-install but allow override.
6097
6098 * util/grub-install.in: Autodetect platform. Support --target and
6099 --directory. Read platform from modinfo.sh.
6100
b9136427
VS
61012012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6102
6103 Support btrfs multi-volume probe.
6104
6105 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
6106 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
6107 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
6108 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
6109 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
6110 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
6111 grub_find_root_devices_from_btrfs if on btrfs.
6112
c36e5cd1
VS
61132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6114
6115 Remove any awareness of *.c util files about target.
6116
6117 * Makefile.util.def (grub-setup): Split to ...
6118 (grub-bios-setup): ... and this.
6119 (grub-sparc64-setup): ... and this.
6120 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
6121 * docs/man/grub-setup.h2m: Split into ...
6122 * docs/man/grub-sparc64-setup.h2m: ... this.
6123 * docs/man/grub-bios-setup.h2m: ... and this.
6124 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
6125 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
6126 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
6127 (grub_target_addr_t): Remove.
6128 (grub_target_size_t): Remove.
6129 (grub_target_ssize_t): Remove.
6130 * util/grub-install.in: Use new grub-*-setup.
6131 * util/grub-mkimagexx.c (Elf_Word): New define.
6132 (Elf_Half): Likewise.
6133 (Elf_Section): Likewise.
6134 (ELF_ST_TYPE): Likewise.
6135 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
6136 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
6137
584b2f8a
VS
61382012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 Replace grub_target_addr with more appropriate types.
6141
6142 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
6143 grub_target_addr with grub_addr.
6144 * grub-core/commands/iorw.c (grub_cmd_read): Replace
6145 grub_target_addr with grub_port.
6146 (grub_cmd_write): Likewise.
6147 * grub-core/commands/memrw.c (grub_cmd_read): Replace
6148 grub_target_addr with grub_addr.
6149 (grub_cmd_write): Likewise.
6150 * grub-core/video/efi_uga.c (find_line_len): Likewise.
6151
5a0dc6fb
VS
61522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6153
6154 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
6155 const qualifier for vendor_guid.
6156
786aff6e
VS
61572012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6158
6159 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
6160 const qualifier.
6161 (efiemu_memequal): Likewise.
6162 (find_variable): Likewise.
6163
49017b17
VS
61642012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6165
6166 Fix missing console prototype on qemu-mips.
6167
6168 * include/grub/mips/qemu_mips/console.h: New file.
6169
c5988629
MG
61702012-02-27 Matthew Garrett <mjg@redhat.com>
61712012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
6174 * include/grub/efi/efi.h: Likewise.
6175 * include/grub/efi/api.h: Add guid for EFI-specified variables.
6176 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
6177 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
6178 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
6179 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
6180 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
6181
e33f8d69
MG
61822012-02-27 Matthew Garrett <mjg@redhat.com>
6183
6184 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
6185
fb312cd9
VS
61862012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
6189 error.
6190
7134247c
VS
61912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6192
6193 * configure.ac: Remove inappropriate use of program_transform_name
6194 on grubdir and bootdir but allow explicit specification of those
6195 variables.
6196
6a313124
VS
61972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * util/grub-mknetdir.in (grub_prefix): Removed.
6200 (subdir): Use @bootdirname@ and @grubdirname@.
6201
2311c5ca
VS
62022012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6203
6204 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
6205
7d5d60f7
VS
62062012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 * po/POTFILES.in: Regenerated.
6209
8151bc82
VS
62102012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6211
6212 Remove improper use of program_transform_name on pkglibrootdir.
6213
6214 * configure.ac (pkglibrootdir): Removed.
6215 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
6216 * util/grub-mkimage.c: Likewise.
6217
b4a6a533
VS
62182012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
6221 warning.
6222
668f304f
VS
62232012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
6224
6225 * util/grub-install.in: Use file identifier if no UUID is available
6226 or user explicitly prompted for it.
6227
665f2341
NP
62282012-02-27 Navdeep Parhar <nparhar@gmail.com>
6229
6230 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
6231 (freebsd_get_zfs): New function.
6232 (grub_freebsd_boot): Pass zfs UUID.
6233 (grub_cmd_freebsd): Set zfs UUID.
6234
8151bc82 62352012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
6236
6237 * conf/Makefile.common (platformdir): Base on pkglibdir and not
6238 pkglibrootdir.
6239
e4c498a1
MG
62402012-02-27 Mike Gilbert <floppym@gentoo.org>
6241
6242 Add configure flag to control libzfs integration.
6243
6244 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
6245
1e9a9a3f
VS
62462012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6247
6248 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
6249 device.
6250 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
6251 small devices.
6252
036985b8
VS
62532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6254
6255 Remove grub_{modname}_init and grub_{modname}_fini. They should never
6256 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
6257 be used on non-modules.
6258
6259 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
6260 Rename to grub_boot_init.
6261 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
6262 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
6263 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
6264 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
6265 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
6266 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
6267 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
6268 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
6269 includes.
6270 (grub_machine_init): Remove empty inits.
6271 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
6272 includes.
6273 (grub_machine_init): Remove empty inits.
6274 * grub-core/term/arc/console.c: Remove explicit proto.
6275 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
6276 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
6277 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6278 grub_at_keyboard_fini.
6279 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
6280 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
6281 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6282 grub_gfxterm_fini.
6283 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
6284 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
6285 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6286 grub_vgatext_fini.
6287 * grub-core/term/ieee1275/console.c: Remove explicit proto.
6288 * grub-core/term/serial.c (GRUB_MOD_INIT)
6289 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
6290 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6291 grub_serial_fini.
6292 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
6293 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
6294 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
6295 grub_terminfo_fini.
6296 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
6297 (GRUB_MOD_FINI): Likewise.
6298 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
6299 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
6300 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6301 grub_video_radeon_fuloong2e_fini.
6302 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
6303 [LOONGSON]: Rename to grub_video_sis315pro_init.
6304 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6305 grub_video_sis315pro_fini.
6306 * grub-core/video/sm712.c (GRUB_MOD_INIT)
6307 [LOONGSON]: Rename to grub_video_sm712_init.
6308 (GRUB_MOD_FINI) [LOONGSON]: Rename to
6309 grub_video_sm712_fini.
6310 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
6311 (grub_at_keyboard_fini): Likewise.
6312 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
6313 Don't declare grub_{modname}_init.
6314 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
6315 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
6316 New proto.
6317 (grub_keylayouts_fini) [!EMU]: Likewise.
6318 * include/grub/serial.h (grub_serial_init) [!EMU]:
6319 New proto.
6320 (grub_serial_fini) [!EMU]: Likewise.
6321 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
6322 New proto.
6323 (grub_terminfo_fini) [!EMU]: Likewise.
6324 * include/grub/video.h (grub_font_init) [!EMU]:
6325 New proto.
6326 (grub_font_fini) [!EMU]: Likewise.
6327 (grub_gfxterm_init) [!EMU]: Likewise.
6328 (grub_gfxterm_fini) [!EMU]: Likewise.
6329 (grub_video_sm712_init) [!EMU]: Likewise.
6330 (grub_video_sm712_fini) [!EMU]: Likewise.
6331 (grub_video_sis315pro_init) [!EMU]: Likewise.
6332 (grub_video_sis315pro_fini) [!EMU]: Likewise.
6333 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
6334 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
6335
d5534665
VS
63362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6337
6338 Make nand a prefix for nand devices.
6339
6340 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
6341
10133b5f
VS
63422012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6343
6344 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
6345 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
6346
8e307a62
VS
63472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6348
6349 * include/grub/env.h (grub_env_find): Remove prototype.
6350 * grub-core/kern/env.c (grub_env_find): Make static.
6351 (grub_env_set): Remove useless set.
6352
a4c65f34
VS
63532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6354
6355 * grub-core/kern/i386/realmode.S: Remove useless align.
6356
d87893d5
VS
63572012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6358
6359 * include/grub/dl.h (grub_dl_load_file): Don't export.
6360
50159add
VS
63612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6362
6363 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
6364 grub_dprintf.
6365
b2582b84
VS
63662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6367
6368 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
6369 grub_errors.
6370 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
6371 not reloading whole superblock but only the part which is really needed.
6372 Remove useless grub_errors.
6373 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
6374 grub_errors.
6375
e2a83395
VS
63762012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6377
6378 Don't export grub_get_rtc.
6379
6380 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
6381 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
6382
e7d2a906
VS
63832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6384
6385 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
6386
6cf1363b
VS
63872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6388
6389 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 6390 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 6391
eece3349
VS
63922012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 Remove prio_list.
6395
6396 * include/grub/list.h (grub_prio_list): Removed.
6397 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
6398 GRUB_COMMAND_PRIO_MASK.
6399 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
6400 GRUB_COMMAND_FLAG_ACTIVE.
6401 (grub_prio_list_insert): Removed.
6402 (grub_prio_list_remove): Likewise.
6403 (GRUB_AS_PRIO_LIST): Likewise.
6404 (GRUB_AS_PRIO_LIST_P): Likewise.
6405 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
6406 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
6407 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
6408 * grub-core/kern/command.c (grub_register_command_prio): Inline
6409 the prio_list code.
6410 (grub_unregister_command): Likewise.
6411
94f064b4
VS
64122012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 Fix interrupt mixup from previous commit.
6415
6416 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
6417 (grub_realidt): New var.
6418 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
6419 Load idt.
6420 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
6421 New declaration.
6422 (grub_relocator16_boot): Set grub_relocator16_idt.
6423 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
6424 (LOCAL(realidt)): ... this.
6425 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
6426 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
6427 (grub_realidt): New variable.
6428
27317084
VS
64292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6430
6431 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
6432 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
6433 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
6434 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
6435 Gettextize.
6436 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
6437 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
6438 * po/POTFILES.in: Regenerate.
6439
47b40053
VS
64402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6441
6442 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
6443 errors.
6444
2b343101
VS
64452012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
6446
6447 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
6448 \0.
6449 (add_length): Likewise.
6450
ff27c3dd
LK
64512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
64522012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
6453
6454 GDB serial and backtrace support.
6455
6456 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
6457 (prot_to_real): Likewise.
6458 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
6459 * grub-core/Makefile.core.def (backtrace): New module.
6460 (gdb): Likewise.
6461 * grub-core/gdb/cstub.c: New file.
6462 * grub-core/gdb/gdb.c: Likewise.
6463 * grub-core/gdb/i386/idt.c: Likewise.
6464 * grub-core/gdb/i386/machdep.S: Likewise.
6465 * grub-core/gdb/i386/signal.c: Likewise.
6466 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 6467 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
6468 * include/grub/backtrace.h: Likewise.
6469 * include/grub/gdb.h: Likewise.
6470 * include/grub/i386/gdb.h: Likewise.
6471
64722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
6473
6474 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
6475 New function.
6476 (add_length): Likewise.
6477 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
6478 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
6479 proto.
6480 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
6481 __argp_get_display_len.
6482
ff27c3dd 64832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
6484
6485 $"..." support in scripts.
6486
6487 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
6488 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
6489 * grub-core/script/yylex.l: Likewise.
6490 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
6491 value.
6492
ff27c3dd 64932012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
6494
6495 * gentpl.py: Remove obsolete pkglib_DATA handling.
6496
ff27c3dd 64972012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
6498
6499 Don't transform PACKAGE_TARNAME following a discussion on autoconf
6500 mailing list.
6501
6502 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
6503 * util/grub-kbdcomp.in: Likewise.
6504 * util/grub-mkconfig.in: Likewise.
6505 * util/grub-mkconfig_lib.in: Likewise.
6506 * util/grub-mknetdir.in: Likewise.
6507 * util/grub-mkrescue.in: Likewise.
6508 * util/grub-mkstandalone.in: Likewise.
6509 * util/grub-reboot.in: Likewise.
6510 * util/grub-set-default.in: Likewise.
6511 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6512
ff27c3dd 65132012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
6514
6515 Remove GRUB_PREFIX.
6516
6517 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
6518 * util/grub.d/00_header.in: Compute prefix in the only place it's still
6519 used for backward compatibility.
6520
ff27c3dd 65212012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
6522
6523 Add new all_video module.
6524
6525 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
6526 * grub-core/Makefile.core.def (all_video): New module.
6527 * grub-core/genmoddep.awk: Generate dependency of all_video from
6528 video.lst.
6529 * grub-core/lib/fake_module.c: New file.
6530 * grub-core/normal/main.c (features): Add feature_all_video_module.
6531 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
6532 don't do explicit search again.
47454da5 6533 insmod all_video in load_video if available.
22c7ce85 6534
ff27c3dd 65352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
6536
6537 Another round of string clarification and adding TRANSLATORS comments.
6538
ff27c3dd 65392012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
6540
6541 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
6542
ff27c3dd 65432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
6544
6545 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
6546 to grub_ssize_t.
6547 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
6548 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
6549
ff27c3dd 65502012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
6551
6552 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
6553 trailing newline implicitly. All users updated.
6554
ff27c3dd 65552012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
6556
6557 Implement serial on IEEE1275 and EFI.
6558
6559 * docs/grub.texi (Platform-specific limitations): Fix the columen video
6560 on emu. Mention arc and emu as the only platforms without serial
6561 support.
6562 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
6563 ieee1275 platforms.
6564 * grub-core/term/efi/serial.c: New file.
6565 * grub-core/term/ieee1275/serial.c: Likewise.
6566 * grub-core/term/serial.c (grub_serial_find): Disable direct port
6567 specification if no ns8250 driver is available.
6568 (grub_cmd_serial): Likewise.
6569 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
6570 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
6571 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
6572 (grub_efi_parity_type_t): New type.
6573 (grub_efi_stop_bits_t): Likewise.
6574 (grub_efi_serial_io_interface): New struct.
6575 * include/grub/serial.h (grub_serial_port): Make 'broken' field
6576 available for all interfaces.
6577 Add EFI and IEEE1275 fields.
6578 (grub_ofserial_init): New proto.
6579 (grub_efiserial_init): Likeiwse.
6580 * util/grub.d/00_header.in: Don't check for the presence of serial
6581 module.
6582
ff27c3dd 65832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
6584
6585 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
6586 name as if it was an alias.
6587
114076ef
VS
65882012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6589
6590 * grub-core/commands/lsacpi.c (options): Fix typo.
6591
6a656b0e
VS
65922012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 Convert grub-emu to argp.
6595
6596 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
6597 emu.
6598 * util/argp_common.c: Rename to ...
6599 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
6600 Add missing includes.
6601 * grub-core/kern/emu/main.c: Convert to argp.
6602 * po/POTFILES.in: Regenerate.
6603 * util/grub-install.in (usage): Make first letter lowcase in messages
6604 for uniformity.
6605 * util/grub-setup.c (options): Likewise.
6606
1e3f8ae8
VS
66072012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
6610 Put back accidently commented-out code.
6611
ed167a80
VS
66122012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
6615 loop check using Brent algorithm.
6616 (grub_hfsplus_btree_search): Likewise.
6617
6753c0ec
VS
66182012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 * util/grub-install.in: Fix usage of wrong device for PreP install.
6621
4e27343f
VS
66222012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6623
6624 * conf/Makefile.common (CFLAGS_GNULIB): Add
6625 -Wno-unsafe-loop-optimizations.
6626 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
6627 on tools.
6628 * grub-core/commands/legacycfg.c: Add pragma to skip
6629 -Wunsafe-loop-optimizations.
6630 (check_password_md5_real): Fix loop counter type.
6631 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
6632 reading.
6633 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
6634 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
6635 loop condition.
6636 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
6637 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
6638 * grub-core/net/net.c (grub_net_route_address): Add safety loop
6639 condition.
6640 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
6641 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
6642 avoid possible infinite loops.
6643 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
6644 and -Wunsafe-loop-optimizations.
6645 * grub-core/script/yylex.l: Likewise.
6646 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
6647 (print_glyphs): Avoid infinite loops.
6648 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
6649
697f18b0
GS
66502012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
6651
6652 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
6653 to avoid infinite loop.
6654 (disp_acpi_rsdt_table): Likewise.
6655
274416e8
VS
66562012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * grub-core/font/font.c (grub_font_load): Add support for default
6659 path for fonts ($prefix/fonts).
6660 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
6661 for checking if string is a path.
6662 * grub-core/normal/main.c (features): Add feature_default_font_path.
6663 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
6664 * util/grub.d/00_header.in: Use default directory if possible.
6665 * util/grub-install.in: Install unicode.pf2.
6666
b3e08622
VS
66672012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
6668
6669 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
6670 * po/Rules-swiss: New file.
6671 * po/swiss.sed: Likewise.
6672
fe42ce09
VS
66732012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/fs/btrfs.c (find_device): Fix typos.
6676 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
6677 * util/grub-mkrelpath.c (argp_parser): Likewise.
6678 Reported by: Yuri Chornoivan.
6679
72f1d065
DO
66802012-02-23 Dalet Omega <daletomega@gmail.com>
6681
6682 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
6683 for usual informative messages.
6684
c5884973
DO
66852012-02-23 Dalet Omega <daletomega@gmail.com>
6686
6687 Starfield theme.
6688
6689 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
6690 * conf/Makefile.common: Define starfielddir.
6691 * configure.ac: Configure starfield.
6692 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
6693 * themes/starfield/README: Likewise.
6694 * themes/starfield/blob_w.png: Likewise.
6695 * themes/starfield/boot_menu_c.png: Likewise.
6696 * themes/starfield/boot_menu_e.png: Likewise.
6697 * themes/starfield/boot_menu_n.png: Likewise.
6698 * themes/starfield/boot_menu_ne.png: Likewise.
6699 * themes/starfield/boot_menu_nw.png: Likewise.
6700 * themes/starfield/boot_menu_s.png: Likewise.
6701 * themes/starfield/boot_menu_se.png: Likewise.
6702 * themes/starfield/boot_menu_sw.png: Likewise.
6703 * themes/starfield/boot_menu_w.png: Likewise.
6704 * themes/starfield/slider_c.png: Likewise.
6705 * themes/starfield/slider_n.png: Likewise.
6706 * themes/starfield/slider_s.png: Likewise.
6707 * themes/starfield/src/blob_nw.xcf: Likewise.
6708 * themes/starfield/src/bootmenu/: Likewise.
6709 * themes/starfield/src/bootmenu/center.xcf: Likewise.
6710 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
6711 * themes/starfield/src/bootmenu/side.xcf: Likewise.
6712 * themes/starfield/src/slider_c.xcf: Likewise.
6713 * themes/starfield/src/slider_n.xcf: Likewise.
6714 * themes/starfield/src/slider_s.xcf: Likewise.
6715 * themes/starfield/src/terminalbox/: Likewise.
6716 * themes/starfield/src/terminalbox/center.xcf: Likewise.
6717 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
6718 * themes/starfield/src/terminalbox/side.xcf: Likewise.
6719 * themes/starfield/starfield.png: Likewise.
6720 * themes/starfield/terminal_box_c.png: Likewise.
6721 * themes/starfield/terminal_box_e.png: Likewise.
6722 * themes/starfield/terminal_box_n.png: Likewise.
6723 * themes/starfield/terminal_box_ne.png: Likewise.
6724 * themes/starfield/terminal_box_nw.png: Likewise.
6725 * themes/starfield/terminal_box_s.png: Likewise.
6726 * themes/starfield/terminal_box_se.png: Likewise.
6727 * themes/starfield/terminal_box_sw.png: Likewise.
6728 * themes/starfield/terminal_box_w.png: Likewise.
6729 * themes/starfield/theme.txt: Likewise.
6730
17d73325
VS
67312012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
6732
6733 * util/grub.d/00_header.in: Add missing export theme.
6734
dbebaf92
VS
67352012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6736
6737 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
6738 already included.
6739 Reported by: Eren D.
6740
3d68bffb
VS
67412012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6742
6743 * conf/Makefile.common (grubdatadir): Removed.
6744 (Makefile.am): Move eveything grubdata to pkgdata.
6745
4b59234d
VS
67462012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6747
6748 * grub-core/commands/acpihalt.c (get_sleep_type):
6749 Remove unused variable.
6750
463dcadc
VS
67512012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
6754 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
6755 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
6756 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
6757 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
6758 i18n with gettext no-op.
6759 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
6760 GRUB_ACPI_OPCODE_STRING_CONST.
6761 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
6762 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
6763
e5b90c82
VS
67642012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * po/POTFILES.in: Regenerate.
6767
2a704ca9
VS
67682012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
6771 -Wno-error=missing-noreturn.
6772
84f9d341
VS
67732012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6774
6775 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
6776 condition to avoid possibly infinite loops.
6777 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
6778 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
6779
d46683f9
VS
67802012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6781
6782 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
6783 condition to avoid possibly infinite loops.
6784
c44866b2
VS
67852012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
6788 on show_error.
6789
96790539
VS
67902012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
6793
1ba7e295
VS
67942012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6795
6796 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
6797
21ffe8f1
VS
67982012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6799
6800 * util/bin2h.c (usage): Add missing attribute noreturn.
6801
0ccb6b3c
VS
68022012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
6805 if the size isn't divisible by 512.
6806
b00d7fb6
VS
68072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6808
6809 Make list_push and list_remove functions rather than inline functions
6810 to decrease size and avoid aliasing violations.
6811
6812 * include/grub/list.h (grub_list_push): Move to ...
6813 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
6814 * include/grub/list.h (grub_list_remove): Move to ...
6815 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6816
9d369087
VS
68172012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6820 and -Wunused-result.
6821
af0250d9
VS
68222012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6823
6824 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6825 Reported by: Seth Goldberg
6826
aad32b14
VS
68272012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6828
6829 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6830
ac96441c
ST
68312012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6832
6833 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6834 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6835 command line.
6836 * docs/grub.texi (Simple configuration): Document
6837 GRUB_CMDLINE_GNUMACH.
6838
68392012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
6840
6841 * conf/Makefile.common (platform_SCRIPTS): New variable.
6842 (platform_PROGRAMS): Likewise.
6843 * gentpl.py: Mark *,module and *.image for install.
6844 * grub-core/gdb_grub.in: Add a notice of expected environment.
6845 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6846 (gmodule.pl): Likewise.
6847
ac96441c 68482012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
6849
6850 Replace grub_checkkey with grub_getkey_noblock.
6851
6852 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6853 (grub_getkey_noblock): ... this. All users updated.
6854
ac96441c 68552012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
6856
6857 * grub-core/kern/emu/console.c: Move to ...
6858 * grub-core/term/emu/console.c: ...here.
6859 (grub_ncurses_getkey): Fix return value if no key is detected.
6860
e51b5666
VS
68612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6862
6863 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6864 (grub_unit_test_fini): Likewise.
6865 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6866
68672012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6868
6869 * include/grub/test.h (GRUB_UNIT_TEST)
6870
d9a62292
VS
68712012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6872
6873 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6874 Better error handling.
6875 (grub_script_return): Likewise.
6876 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6877
77c9182f
VS
68782012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6881 rimplicit redifinition.
6882
edb13cf9
VS
68832012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6884
6885 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6886 GRUB.
6887
a9e9dc7c
VS
68882012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6889
6890 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6891 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6892 prompt here.
6893
b4ba8e02
VS
68942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6895
6896 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6897 as GRUB_ERR_BUG. Don't malloc if no device is available.
6898
dded5540
VS
68992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6900
6901 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6902 Mark calling with invalid term as GRUB_ERR_BUG.
6903
0cf69874
VS
69042012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6905
6906 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6907 packets rather than raising an error.
6908
59bfe502
VS
69092012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6910
6911 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6912 in if.
6913
db5fc596
VS
69142012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6915
6916 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6917 diagnostic to dprintf.
6918 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6919
e4b7f404
VS
69202012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6921
6922 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6923 device name.
6924
e7b02f9e
VS
69252012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6926
6927 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6928 (grub_ntfs_iterate_dir): Likewise.
6929
0331e102
VS
69302012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 Efiemu stylistic fixes and gettext.
6933
6934 * grub-core/efiemu/i386/loadcore32.c
6935 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6936 * grub-core/efiemu/i386/loadcore64.c
6937 (grub_arch_efiemu_relocate_symbols64): Likewise.
6938 * grub-core/efiemu/i386/pc/cfgtables.c
6939 (grub_machine_efiemu_init_tables): Likewise.
6940 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6941 (grub_efiemu_loadcore_initXX): Add a filename argument.
6942 All users updated.
6943 Improved error message.
6944 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6945 Add a filename argument.
6946 All users updated.
6947 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6948 Reclassify double relocation as GRUB_ERR_BUG.
6949
306fc074
VS
69502012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6951
6952 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6953 handling.
6954
794d8ef2
VS
69552012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6956
6957 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6958 on partition.
6959
69602012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
6961
6962 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6963
794d8ef2 69642012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
6965
6966 Improve string. Gettextize.
6967
78dde88e
VS
69682012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6969
6970 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6971 utils.
6972 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6973
4786a90f
VS
69742012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6977 [GRUB_UTIL]: New function.
6978 (insert_array) [GRUB_UTIL]: Store partmaps.
6979 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6980 partmaps.
6981 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6982 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6983 (probe_abstraction): Print diskfilter and not raid.
6984 Reported by: Lennart Sorensen
6985
0b6225bd
VS
69862012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6987
6988 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6989 * util/grub-mkimagexx.c (MASK3): New define.
6990 (add_value_to_slot_20b): Use MASK3.
6991 (add_value_to_slot_21): Likewise.
6992 (relocate_addresses): Fix format specification.
6993 (load_image): Explicitly init symtab_section.
6994
b055f8f6
VS
69952012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6996
6997 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6998 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6999
b77c2fb7
VS
70002012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
7003 on powerpc.
7004 Reported by: Lennart Sorensen
7005
e3ec28ab
VS
70062012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
7007
7008 * gentpl.py: Add missing license header.
7009 * docs/grub.texi: Update copyright year.
7010
c8d9ead6
GS
70112012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7012
7013 Source grub-mkconfig_lib from the build directory at build time.
7014 Suggested by: Vladimir Serbinenko.
7015
7016 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
7017 * util/grub-install.in: Define pkgdatadir if not already set, and source
7018 grub-mkconfig_lib from there.
7019 * util/grub-kbdcomp.in: Likewise.
7020 * util/grub-mkconfig.in: Likewise.
7021 * util/grub-mknetdir.in: Likewise.
7022 * util/grub-mkrescue.in: Likewise.
7023 * util/grub-mkstandalone.in: Likewise.
7024 * util/grub-reboot.in: Likewise.
7025 * util/grub-set-default.in: Likewise.
7026 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7027
ebcecdf1
VS
70282012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7029
7030 Increase warning level.
7031
7032 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
7033 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
7034 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
7035 (TARGET_CFLAGS): Likewise.
7036 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
7037 * grub-core/Makefile.core.def (decompressor_xz): Add
7038 -Wno-unreachable-code.
7039 (normal): Add -Wno-redundant-decls.
7040 (xzio): Add -Wno-unreachable-code.
7041 (lzopio): Add -Wno-redundant-decls -Wno-error.
7042 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
7043 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
7044 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
7045 * grub-core/kern/dl.c: Add exception to -Wcast-align.
7046 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
7047 * grub-core/kern/i386/coreboot/init.c: Add exception to
7048 -Wsuggest-attribute=noreturn.
7049 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
7050 * grub-core/kern/ia64/dl_helper.c: Likewise.
7051 * grub-core/kern/mips/dl.c: Likewise.
7052 * grub-core/kern/sparc64/dl.c: Likewise.
7053 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
7054 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
7055 (memcmp): Likewise.
7056 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
7057 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
7058 * grub-core/loader/mips/linux.c: Likewise.
7059 * grub-core/loader/multiboot_elfxx.c: Likewise.
7060 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
7061 * grub-core/video/sm712.c: Add exception to -Wcast-align.
7062 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
7063 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
7064 fixme.
7065 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
7066 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
7067 Fix prototype.
7068
37bb97fe
VS
70692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
7072 address.
7073
29a3550b
VS
70742012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
7077 Avoid improper use of strings.
7078 (grub_cmd_legacy_initrdnounzip): Likewise.
7079
dfdffd0d
VS
70802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7081
7082 * include/grub/emu/misc.h (grub_util_warn): Add missing format
7083 attribute.
7084 (grub_util_info): Likewise.
7085 (grub_util_error): Likewise.
7086
102fae4a
VS
70872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7088
7089 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
7090 * util/grub-fstest.c (fstest): Likewise.
7091
7e94d044
VS
70922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7093
7094 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
7095 (grub_md_sha512_real): Likewise.
7096 (grub_util_get_geli_uuid): Likewise.
7097 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
7098 (grub_util_biosdisk_open): Fix format specification.
7099 Respect format security.
7100 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
7101 (xrealloc): Likewise.
7102 (xasprintf): Likewise.
7103
5ebd9769
VS
71042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7105
7106 * util/import_gcry.py: Include grub/crypto.h in init.c.
7107
495fc8c1
VS
71082012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
7111 (generate_image): Make prefix a const char *.
7112 Fix format specifications. Respect format security.
7113 Avoid void * arithmetics.
7114 Avoid shadowing.
7115 (argp_parser): Remove unused variable. Respect format security.
7116 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
7117 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
7118 (count_funcs): Remove unused variable.
7119 (relocate_addresses): Fix format specification.
7120 Disable x86-64 with elf32. Remove unused variables.
7121 (add_fixup_entry): Avoid shadowing.
7122 (make_reloc_section): Fix format specification.
7123 Use assert.
7124 (locate_sections): Fix format specifications.
7125 (load_image): Avoid shadowing.
7126
043c2ea3
VS
71272012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
7130 Fix format specifications. Respect format security.
7131 Don't translate already translated grub_errmsg.
7132 (argp_parser): Remove unused variable
7133
3ec65a81
VS
71342012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7135
7136 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
7137
a4d9fe4a
VS
71382012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
7141 (main): Likewise. Use xmalloc. Respect format security.
7142
15b81d49
VS
71432012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
7146 a const char *.
7147 (argp_parser): Remove unused variable.
7148
31731fc0
VS
71492012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
7152 (add_pixel): Make static.
7153 (add_font): Likewise.
7154 (write_string_section): Make name and str a const char *.
7155 (write_be16_section): Make name a const char *.
7156 (print_glyphs): Make static.
7157 (write_font_ascii_bitmap): Likewise.
7158 (write_font_width_spec): Likewise.
7159 (write_font_pf2): Likewise.
7160 (argp_parser): Remove unused variable.
7161 Respect format security.
7162 (main): Avoid shadowing. Respect format security.
7163
0809527b
VS
71642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7165
7166 * util/grub-editenv.c (argp_parser): Make static.
7167 (create_envblk_file): Use xmalloc.
7168 (open_envblk_file): Likewise.
7169 Resepect format security.
7170 (set_variables): Respect format security.
7171
45b0c8b7
VS
71722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7173
7174 * util/getroot.c (grub_find_device): Respect format security.
7175 (get_mdadm_uuid): Remove unused variable.
7176 (grub_util_pull_device): Dont call gettext on already translated
7177 grub_errmsg.
7178 (find_system_device): Remove unused variable.
7179 (grub_util_get_grub_dev): Likewise.
7180 (grub_make_system_path_relative_to_its_root): Respect format security.
7181
1b024b4e
VS
71822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 * util/grub-fstest.c (execute_command): Make first argument
7185 a const char *.
7186 (read_file): Avoid shadowing.
7187 Reuse underlying error message if device open fails.
7188 (cmd_cmp): Respect format security.
7189 (root): Make const char *.
7190 (fstest): Remove args argument and use global copy.
7191 Respect format security.
7192 (argp_parser): Make static.
7193 (main): Make default_root const char *.
7194
5d1d4e28
VS
71952012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7196
7197 * util/grub-mount.c (root): Make const char *.
7198 (execute_command): Make first argument a const char *.
7199 (fuse_init): Respect format security.
7200 (argp_parser): Make static. Remove unused variable.
7201 (main): Make default_root a const char *.
7202 Respect format security.
7203
36eb7379
VS
72042012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * util/grub-probe.c (probe): Don't call gettext on already translated
7207 grub_errmsg.
7208 Remove unused variables.
7209 (argp_parser): Remove unused variable.
7210
76fb2ea9
VS
72112012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * util/grub-script-check.c (argp_parser): Remove unused variable.
7214 (main): Rename read to curread to avoid shadowing.
7215
56c98584
VS
72162012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7217
7218 * util/misc.c (grub_util_write_image_at): Fix format specification.
7219 (grub_util_write_image): Likewise.
7220 (grub_script_execute_argument_to_string): Removed (unused).
7221 (grub_script_execute_menuentry): Likewise.
7222 (grub_putchar): Likewise.
7223
164ebb48
VS
72242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7225
7226 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
7227 (FUNCTION) [GRUB_UTIL]: Likewise.
7228 (VARIABLE) [GRUB_UTIL]: Likewise.
7229
44318d61
VS
72302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7231
7232 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
7233 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
7234
31a26002
VS
72352012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7236
7237 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
7238 buffer.
7239
72402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
7243 (LzmaEnc_SaveState): Removed (unused).
7244 (LzmaEnc_RestoreState): Likewise.
7245 (LzmaEnc_InitPriceTables): Made static.
7246 (LzmaEnc_Construct): Likewise.
7247 (LzmaEnc_FreeLits): Likewise.
7248 (LzmaEnc_Destruct): Likewise.
7249 (LzmaEnc_Init): Likewise.
7250 (LzmaEnc_InitPrices): Likewise.
7251 (LzmaEnc_Finish): Likewise.
7252 (LzmaEnc_PrepareForLzma2): Removed (unused).
7253 (LzmaEnc_MemPrepare): Likewise.
7254 (LzmaEnc_GetNumAvailableBytes): Likewise.
7255 (LzmaEnc_GetCurBuf): Likewise.
7256 (LzmaEnc_CodeOneMemBlock): Likewise.
7257
6fa67967
VS
72582012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
7261 (grub_util_ldm_embed): Likewise.
7262
9a7428e6
VS
72632012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * util/grub-editenv.c (print_var): Rename name to varname to
7266 avoid shadowing.
7267 (main): Rename index to curindex to avoid shadowing.
31a26002 7268 Make filename a const char *.
9a7428e6 7269
4f96abd1
VS
72702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7271
7272 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7273 to arg_getline to avoid shadowing.
7274
44d10dad
VS
72752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7276
7277 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
7278 disk_ to avoid shadowing.
7279
340ba63e
VS
72802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7281
7282 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
7283 curindex to avoid shadowing.
7284 Make static.
7285 (MatchFinder_GetNumAvailableBytes): Make static.
7286
22965bce
VS
72872012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7288
7289 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
7290 avoid shadowing.
7291
7b5784d4
VS
72922012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
7293
7294 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
7295 argument from encrypt to do_encrypt to avoid shadowing.
7296
6f48ca01
VS
72972012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7298
7299 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
7300 incorrect nesting of #if's.
7301
a4ea2dff
VS
73022012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
7305 checks which are always false on some platforms.
7306 (grub_cmd_lsacpi): Likewise.
7307 * grub-core/kern/misc.c (grub_strtoul): Likewise.
7308 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
7309 Likewise.
7310
def9fc1b
VS
73112012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7312
7313 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
7314 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
7315
a67b2a04
VS
73162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7317
7318 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
7319 re_dfa_t to avoid breaking alignment invariants.
7320 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
7321 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
7322
44c6828d
VS
73232012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
7326 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
7327
bebe0dd0
VS
73282012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7329
7330 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
7331 Fix declaration.
7332
a9cdb3cf
VS
73332012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7334
7335 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
7336 conserve alignment invariants.
7337 (grub_ehci_ehcc_read16): Likewise.
7338 (grub_ehci_oper_read32): Likewise.
7339 (grub_ehci_oper_write32): Likewise.
7340 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
7341 Conserve alignment invariants.
7342
ccc3b1b8
VS
73432012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7344
7345 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
7346 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
7347 declarations.
7348
987fbd95
VS
73492012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7350
7351 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
7352 Remove unused variable.
7353
0df363f3
VS
73542012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
7357 Remove set in if.
7358
b2c0c4a6
VS
73592012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * include/grub/net.h: Remove double declarations.
7362
690c531f
VS
73632012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 Remove "payload" command in ia64 Linux loader since I couldn't
7366 find any evidence of it being used for anything.
7367 Replace "relocate" command with an environment variable
7368
7369 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
7370 fields.
7371 (ia64_boot_payload): Removed.
7372 (last_payload): Likewise.
7373 (RELOCATE_OFF): Likewise.
7374 (RELOCATE_ON): Likewise.
7375 (RELOCATE_FORCE): Likewise.
7376 (relocate): Likewise.
7377 (free_pages): Don't free payloads.
7378 (grub_load_elf64): Use common error messages.
7379 Use "linux_relocate" variable.
7380 Increase the space after boot_params.
7381 (grub_cmd_payload): Removed.
7382 (grub_cmd_relocate): Likewise.
7383 (grub_cmd_fpswa): Improve messages.
7384 (cmd_payload): Removed.
7385 (cmd_relocate): Likewise.
7386 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
7387 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
7388
01783768
VS
73892012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 Convert UHCI to DMA framework.
7392
7393 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
7394 (grub_uhci_pci_iter): Fill new members
7395 (grub_alloc_td): Use P2V and V2P functions.
7396 (grub_free_queue): Likewise.
7397 (grub_alloc_qh): Likewise.
7398 (grub_uhci_setup_transfer): Likewise.
7399 (grub_uhci_check_transfer): Likewise.
7400
43206939
VS
74012012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7402
7403 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
7404 Remove assignment in if while on it.
7405
571e140e
VS
74062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * util/grub-mkstandalone.in: Fix modules directory.
7409
a9d96eeb
VS
74102012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7411
7412 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
7413 on i386-pc target.
7414 (argp_parser): Accept "auto" as compression specification.
7415
e4e37e8d
VS
74162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7417
7418 Fix `help' with unloaded modules.
7419
7420 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
7421 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
7422 (grub_dyncmd_dispatcher): Small stylistic fix.
7423 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
7424 explicit help is requested.
7425
e1ea3ade
VS
74262012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
7429 Explicitly init restart while on it.
7430
27556881
VS
74312012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
7434 uninited variable.
7435
d65f6b36
VS
74362012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7437
7438 * util/grub-mknetdir.in: Use . rather than source for POSIX
7439 compatibility.
7440
0a1e473c
VS
74412012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
7444
ce6647c8
VS
74452012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7446
7447 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
7448 variable.
7449
66747894
VS
74502012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7451
7452 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
7453 without quotes.
7454
71645f6e
VS
74552012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
7458
0e1c1f61
VS
74592012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
7462 iteration of partitions.
7463
9c4b5c13
VS
74642012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
7465
7466 Improve gettext support. Stylistic fixes and error handling fixes while
7467 on it.
7468
215c90cb
VS
74692012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
7472 part. Instead setup the correct stack in RM.
7473 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
7474 for stack.
7475 * include/grub/i386/relocator_private.h: New file.
7476
b5c1f9bf
VS
74772012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7478
7479 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
7480 argument.
7481 * util/grub-fstest.c (options): Add missing DEVICE part.
7482
b525fd83
VS
74832012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7484
7485 Clarify and unify messages.
7486
7487 * grub-core/commands/hashsum.c (options): Unify messages.
7488 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
7489 literal-only message as translatable.
7490 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
7491 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
7492 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
7493 commands.
7494 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
7495 key, not the key used to unlock. Clarify what it's used for.
7496 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
7497 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
7498 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
7499 * util/grub-editenv.c (options): Unify "verbose" message.
7500 * util/grub-fstest.c (read_file): Unify error message.
7501 (fstest): Add quotes around commands.
7502 (options): Unify "verbose" message.
7503 * util/grub-install.in: Add quotes around variable name.
7504 * util/grub-kbdcomp.in: Unify error message.
7505 * util/grub-mkfont.c (main): Likewise.
7506 * util/grub-mkrescue.in: Likewise.
7507 * util/grub-mklayout.c (options): Unify "verbose" message.
7508 * util/grub-mkstandalone.in: Unify help and verbose messages.
7509 * util/grub-mount.c (options): Unify "verbose" message.
7510 * util/grub-probe.c (options): Likewise.
7511 * util/grub-script-check.c (options): Likewise.
7512 * util/grub-setup.c (setup): Unify no-terminator message.
7513 (options): Use DEVICE and not DEV.
7514 Unify "verbose" message.
7515 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
7516
0ae70393
VS
75172012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 Improve and unify messages.
7520
7521 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
7522 name. All users updated.
7523 Print filename in error.
7524 (read_device_map): Print filename in error.
7525 * util/getroot.c (grub_guess_root_devices): Print filename in error.
7526 (grub_util_get_os_disk): Likewise.
7527 (grub_util_biosdisk_get_grub_dev): Likewise.
7528 (grub_util_check_block_device): Likewise.
7529 (grub_util_check_char_device): Likewise.
7530 (grub_make_system_path_relative_to_its_root): Likewise.
7531 * util/grub-editenv.c (create_envblk_file): Likewise.
7532 (open_envblk_file): Likewise.
7533 (write_envblk): Likewise.
7534 * util/grub-fstest.c (cmd_cp): Likewise.
7535 (cmd_cat): Likewise.
7536 (cmd_cmp): Likewise.
7537 * util/grub-menulst2cfg.c (main): Likewise.
7538 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
7539 (write_font_width_spec): Likewise.
7540 (write_font_pf2): Likewise.
7541 * util/grub-mkimage.c (generate_image): New argument outname.
7542 All users updated.
7543 Remove unreacheable message.
7544 (options): Unify messages.
7545 (help_filter): Likewise.
7546 * util/grub-mklayout.c (usage): Removed (unused).
7547 (main): Print filename in error.
7548 * util/grub-mkrescue.in: Fix wrong quoting.
7549 * util/grub-setup.c (setup): Print filename in error.
7550 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
7551 (check_sas): Likewise.
7552 * util/misc.c (grub_util_get_fp_size): Removed.
7553 (grub_util_get_image_size): Print filename in error.
7554 (grub_util_read_at): Removed.
7555 (grub_util_read_image): Print filename in error.
7556 (grub_util_load_image): Likewise.
7557 (grub_util_write_image_at): New argument filename. All users updated.
7558 Print filename in error.
7559 (grub_util_write_image): New argument filename. All users updated.
7560 Print filename in error.
7561 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
7562 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
7563
0a96117d
VS
75642012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7565
7566 * grub-core/Makefile.core.def (pxechain): New module.
7567 * grub-core/loader/i386/pc/pxechainloader.c: New file.
7568 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
7569 function.
7570 (grub_pc_net_config_real): Use grub_pxe_get_cached.
7571 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
7572
aca002f7
VS
75732012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7574
7575 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
7576 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
7577 * include/grub/err.h (grub_error_saved): New struct.
7578 (grub_errmsg): Make array size explicit.
7579 * include/grub/misc.h (grub_error_save): New function.
7580 (grub_error_load): Likewise.
7581 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
7582 (grub_error_push): Update `errno' member name.
7583 (grub_error_pop): Likewise
7584 * grub-core/net/tftp.c (tftp_data): New member save_err.
7585 (tftp_receive): Save error.
7586 (tftp_open): Restore error.
7587
a51dab13
VS
75882012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
7589
7590 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
7591 to real mode down to execute A20-related code in protected mode as
7592 intended.
7593
eb6e6649
GS
75942012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
7595
7596 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
7597 NULL when the argument `level' has an unexpected value.
7598
92cd0f6e
VS
75992012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7600
7601 Move platform-dependent files from $prefix to $prefix/$platform.
7602
7603 * config.h.in (GRUB_TARGET_CPU): New definition.
7604 (GRUB_PLATFORM): Likewise.
7605 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
7606 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
7607 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
7608 * grub-core/kern/dl.c (grub_dl_load): Likewise.
7609 * grub-core/normal/autofs.c (read_fs_list): Likewise.
7610 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
7611 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
7612 * grub-core/normal/term.c (read_terminal_list): Likewise.
7613 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
7614 $prefix/locale.
7615 (grub_gettext_init_ext): Likewise.
7616 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
7617 grub_platform.
7618 * util/grub-install.in: Update directories.
7619 * util/grub-mknetdir.in: Likewise.
7620 * util/grub-mkrescue.in: Likewise.
7621
db606889
VS
76222012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
7625 grub_error framework. All users updated.
7626
c39992a4
VS
76272012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
7630 lists (by always binsearching), improve caching (cache strings
7631 used for binsearch, not only results), improve
7632 maintainability (by using more structured binary search) and correct
7633 error handling.
7634
1e5ec32f
VS
76352012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 * grub-core/script/execute.c (grub_script_return): Fix warning.
7638
ac576cde
VS
76392012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7640
7641 * grub-core/script/execute.c (grub_script_return): Fix potential
7642 NULL-dereference.
7643 Reported by: Jim Meyering.
7644
498453f6
VS
76452012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7646
7647 * po/POTFILES.in: Regenerate.
7648 * util/grub-install.in: Gettextize the strings missed in first pass.
7649
8be63f2e
VS
76502012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * Makefile.util.def (grub-mkdevicemap): Removed.
7653 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
7654 * include/grub/util/deviceiter.h: Removed.
7655 * util/deviceiter.c: Likewise.
7656 * util/getroot.c (grub_util_get_os_disk): New function.
7657 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
7658 replacement for EFI.
7659 * util/grub-mkdevicemap.c: Removed.
7660 * util/grub-probe.c (probe): Handle PRINT_DISK.
7661 (argp_parser): Handle -t disk.
7662
8e1e4e39
VS
76632012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7664
7665 * util/grub-mkfont.c: Migrate to argp.
7666 * util/grub-mklayout.c: Likewise.
7667 * util/grub-mkpasswd-pbkdf2.c: Likewise.
7668 * util/grub-mkrelpath.c: Likewise.
7669 * util/grub-probe.c: Likewise.
7670 * util/grub-script-check.c: Likewise.
7671
4459819a
VS
76722012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * util/grub-reboot.in: Add missing datarootdir.
7675 Add missing newline.
7676 * util/grub-set-default.in: Add missing datarootdir.
7677 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
7678 * util/grub-mkrescue.in: Likewise.
7679
f65741c7
VS
76802012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7681
7682 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
7683
c1a33466
VS
76842012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7685
7686 * util/grub-kbdcomp.in: Add decent help and gettextize.
7687 * docs/man/grub-kbdcomp.h2m: New file.
7688
c76899a0
VS
76892012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7690
7691 Migrate grub-mkimage.c to argp.
7692
7693 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
7694 (grub-setup): Likewise.
7695 * util/grub-setup.c (print_version): Move to ...
7696 * util/argp_common.c (print_version): ... here.
7697 * util/grub-setup.c (argp_program_version_hook): Move to ...
7698 * util/argp_common.c (argp_program_version_hook): ... here.
7699 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
7700 safety.
7701 * util/grub-mkimage.c (main): Migrate to argp.
7702
57db0757
VS
77032012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7704
7705 * util/grub-mkrescue.in: Use same message as
7706 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
7707 for better translations.
7708
18534ad9
VS
77092012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
7712 options with generic grub-mkrescue.in with the goal of future
7713 merge.
7714
c84ba308
VS
77152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7716
7717 * grub-core/kern/mm.c: Add missing include of i18n.h
7718 * grub-core/lib/relocator.c: Likewise.
7719
347998c2
VS
77202012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7721
7722 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
7723 error.
7724 (allocate_pages): Check return value.
7725 Replace fatal with error.
7726 (grub_linux_boot): Replace printf with dprintf.
7727 Check find_mmap_size return value.
7728 Replace fatal with error.
7729 Don't call grub_machine_fini.
7730 (grub_load_elf64): Replace printf with dprintf.
7731 (grub_cmd_linux): Likewise.
7732 (grub_cmd_initrd): Likewise.
7733 (grub_cmd_payload): Likewise.
7734
c779226e
VS
77352012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7736
7737 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
7738 message.
7739 * grub-core/video/radeon_fuloong2e.c
7740 (grub_video_radeon_fuloong2e_setup): Likewise.
7741 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
7742 * grub-core/video/video.c (grub_video_set_mode): Don't override
7743 standard out of memory message.
7744
dc87d45a
GS
77452012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7746
7747 NetBSD disk wedge support.
7748
7749 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
7750 [__NetBSD__]: Handle NetBSD disk wedges.
7751 * util/getroot.c (convert_system_partition_to_system_disk)
7752 [__NetBSD__]: Likewise.
7753
055f856f
MW
77542012-02-03 Mark Wooding <mdw@distorted.org.uk>
7755
7756 * util/grub-mkconfig.in: Use umask rather than chmod to create
7757 grub.cfg.new to avoid insecure grub.cfg.
7758
4a9f8346
VS
77592012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * grub-core/commands/ls.c: Gettextize.
7762 * grub-core/commands/setpci.c: Likewise.
7763 * grub-core/commands/videotest.c: Likewise.
7764 * grub-core/disk/geli.c: Likewise.
7765 * grub-core/kern/mm.c: Likewise.
7766 * grub-core/lib/relocator.c: Likewise.
7767 * grub-core/loader/efi/appleloader.c: Likewise.
7768 * grub-core/loader/i386/xnu.c: Likewise.
7769 * grub-core/loader/ia64/efi/linux.c: Likewise.
7770 * grub-core/loader/xnu.c: Likewise.
7771 * grub-core/net/dns.c: Likewise.
7772 * grub-core/net/net.c: Likewise.
7773 * grub-core/script/lexer.c: Likewise.
7774 * grub-core/script/parser.y: Likewise.
7775 * grub-core/script/yylex.l: Likewise.
7776 * util/getroot.c: Likewise.
7777 * util/grub-setup.c: Likewise.
7778
a646a366
VS
77792012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7780
7781 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
7782 number.
7783
54e2be26
VS
77842012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7785
7786 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
7787
f7c71e68
VS
77882012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7789
7790 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
7791 macro.
7792 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
7793 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
7794
a32d5c71
VS
77952012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7796
7797 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
7798 * util/grub-install.in: Gettextize.
7799 * util/grub-mkconfig.in: Likewise.
7800 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
7801 if not available.
7802 (grub_warn): Gettextize.
7803 * util/grub-mknetdir.in: Gettextize.
7804 * util/grub-mkrescue.in: Likewise.
7805 * util/grub-mkstandalone.in: Likewise.
7806 * util/grub-reboot.in: Likewise.
7807 * util/grub-set-default.in: Likewise.
7808 * util/grub.d/00_header.in: Likewise.
7809 * util/grub.d/10_hurd.in: Likewise.
7810 * util/grub.d/10_kfreebsd.in: Likewise.
7811 * util/grub.d/10_linux.in: Likewise.
7812 * util/grub.d/10_netbsd.in: Likewise.
7813 * util/grub.d/10_windows.in: Likewise.
7814 * util/grub.d/20_linux_xen.in: Likewise.
7815 * util/grub.d/30_os-prober.in: Likewise.
7816 * po/POTFILES-shell.in: Regenerate.
7817
69edd81a
RL
78182012-02-03 Richard Laager <rlaager@wiktel.com>
7819
7820 * util/grub-mkimage.c (main): Fix format-security warning.
7821 * util/grub-mkrelpath.c (main): Likewise.
7822 * util/grub-probe.c (main): Likewise.
7823
65f08dbf
RL
78242012-02-03 Richard Laager <rlaager@wiktel.com>
7825
7826 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7827 failure.
7828 Put back lost PRINT_DRIVE.
7829
e9084abe
RL
78302012-02-03 Richard Laager <rlaager@wiktel.com>
7831
7832 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7833 (grub_guess_root_devices): Replace strlen with sizeof.
7834 Avoid crash.
7835 (find_root_devices_from_poolname): Remove unused variable.
7836 Handle raidzN.
7837
cf5f7ee7
VS
78382012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 Support install on multi-device filesystems.
7841
7842 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7843 (grub_guess_root_devices): ...this. Return char **. All users updated.
7844 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7845 Removed.
7846 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7847 (find_root_devices_from_poolname): ... here.
7848 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7849 Support zfs-fuse.
7850 (grub_guess_root_device): Rename to ...
7851 (grub_guess_root_devices): ... this. Return char **. All users updated.
7852 * util/grub-install.in: Handle multi-device filesystems.
7853 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7854 argument. All users updated.
7855 Handle multi-device filesystems.
7856 Use 'delim' as separator.
7857 Remove device check to allow filesystems on file.
7858 (main): Support -0 argument. Handle multi-device.
7859 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7860 Fix a cross-device check while on it.
7861 (arguments): Remove root_dev.
7862 (argp_parser): Remove -r.
7863 (main): Remove root_dev.
7864
2f53a9ed
VS
78652012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7866
7867 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7868
17e1d934
VS
78692012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7872 symbol.
7873 Reported by: NODA, Kai <nodakai>.
7874
d3e3fab5
VS
78752012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 Fix ehci on amd64.
7878
7879 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7880 pointers.
7881 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7882 (grub_ehci_setup_qh): Likewise.
7883 (grub_ehci_find_qh): Likewise.
7884 (grub_ehci_transaction): Likewise.
7885 (grub_ehci_setup_transfer): Likewise.
7886 (grub_ehci_check_transfer): Likewise.
7887 (grub_ehci_portstatus): Likewise.
7888 (grub_ehci_detect_dev): Likewise.
7889 (grub_ehci_transfer_controller_data): New field td_last_phys.
7890 (grub_ehci_setup_transfer): Fill td_last_phys.
7891 (grub_ehci_check_transfer): Use td_last_phys.
7892
3008675b
SG
78932012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7894
7895 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7896 if no submenu is present.
7897
fc9b5652
AN
78982012-02-01 Aleš Nesrsta <starous@volny.cz>
7899
7900 CBI support.
7901
7902 * include/grub/usb.h (grub_usbms_protocol_t): New values
7903 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7904 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7905 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7906 (grub_usbms_dev): Add subclass, protocol and intrpt.
7907 Remove in_maxsz and out_maxsz.
7908 (grub_usbms_reset): Rename to ...
7909 (grub_usbms_bo_reset): .. this.
7910 (grub_usbms_cbi_cmd): New function.
7911 (grub_usbms_cbi_reset): Likewise.
7912 (grub_usbms_reset): Likewise.
7913 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7914 (grub_usbms_transfer): Rename to ...
7915 (grub_usbms_transfer_bo): ... this.
7916 (grub_usbms_transfer_cbi): Likewise.
7917 (grub_usbms_transfer): Likewise.
7918
a2b81d53
AN
79192012-02-01 Aleš Nesrsta <starous@volny.cz>
79202012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7921
7922 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7923 the support for the CS5536 modification thereos and few bugfixes.
7924
7925 * grub-core/Makefile.core.def (ehci): New module.
7926 * grub-core/bus/usb/ehci.c: New file.
7927 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7928 port and hubaddr. All users updated.
7929 Save port and hubaddr into dev structure.
7930 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7931 define.
7932 * include/grub/pci.h (grub_dma_phys2virt): New function.
7933 (grub_dma_virt2phys): Likewise.
7934 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7935
b1d51f02
VS
79362012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7937
7938 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7939 check as some mkfs implementations omit it.
7940
fc694106
VS
79412012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7944
6c0920e3
VS
79452012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7946
7947 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7948 Add new member volname2.
7949 (grub_jfs_label): Use volname2 if available.
7950
d1a46f9a
VS
79512012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7954 over last_mounted as seen in image generated by mkfs.nilfs2.
7955 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7956
dec8ed14
VS
79572012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7958
7959 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7960 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7961 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7962
7397c69b
VS
79632012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7964
7965 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7966 over the sector.
7967
b3fe42ad
VS
79682012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7969
7970 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7971 subvolume name (by removing a bogus and useless check).
7972
10476bb0
VS
79732012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7974
7975 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7976 sizeof while on it.
7977
9c08ad87
VS
79782012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7979
7980 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7981 (grub_scsi_read_capacity10): ... this.
7982 (grub_scsi_read_capacity16): New function.
7983 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7984 0xffffffff.
7985 Fix off-by-one error.
7986 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7987 64-bit unsigned.
7988 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7989 (grub_scsi_read_capacity10): ... this.
7990 (grub_scsi_read_capacity_data): Rename to ...
7991 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7992 (grub_scsi_read_capacity16): New struct.
7993 (grub_scsi_read_capacity16_data): Likewise.
7994 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7995 grub_scsi_cmd_read_capacity10.
7996 New command grub_scsi_cmd_read_capacity16.
7997
bc8d0f45
VS
79982012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 SCSI >2TiB support.
8001
8002 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
8003 (grub_scsi_write16): Likewise.
8004 (grub_scsi_read): Use read16 when necessary.
8005 (grub_scsi_write): Likewise.
8006 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
8007 (grub_scsi_write16): Likewise.
8008 (grub_scsi_cmd_t): Add READ16 and WRITE16.
8009
cc774926
VS
80102012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 SCSI write support (for usbms mainly).
8013
8014 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
8015 a const pointer.
8016 (grub_scsi_write): Implement.
8017 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
8018
67639fd7
VS
80192012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
8022 variable.
8023
9079d3ed
VS
80242012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8025
8026 * grub-core/lib/posix_wrap/string.h (memchr): New function.
8027
c6a6f204
VS
80282012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8029
8030 * po/POTFILES.in: Regenerate.
8031
ecbf8cd1
VS
80322012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8033
8034 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
8035 with grub_printf to avoid unnecessary fatal failure.
8036
0b3b3b38
VS
80372012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8038
8039 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
8040 (INT_MAX): Likewise.
8041 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
8042 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
8043 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
8044 (strcpy): Likewise.
8045 (strstr): Likewise.
8046 (strchr): Likewise.
8047 (strncpy): Likewise.
8048 (strcat): Likewise.
8049 (strncat): Likewise.
8050 (strcoll): Likewise.
8051 * include/grub/types.h (GRUB_SHRT_MAX): New define.
8052 (GRUB_INT_MAX): Likewise.
8053
db7337a3
VS
80542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8055
8056 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
8057 unexpected error.
8058 (optimize_utf8): Likewise.
8059 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
8060
f37c87e1
VS
80612012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8062
8063 * grub-core/boot/i386/pc/lnxboot.S: Use
8064 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
8065 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
8066 location.
8067 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
8068 definition.
8069 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
8070
63fe43f3
VS
80712012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8072
8073 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
8074 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
8075 now to avoid double free.
8076 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
8077 hostdisk.
8078 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
8079 * util/grub-probe.c (escape_of_path): Always return a new copy.
8080 (print_full_name): Escape path.
8081 (probe): Don't call grub_util_devname_to_ofpath on NULL.
8082 Fix hints on abstractions.
8083
ebe2c961
VS
80842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8085
8086 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
8087 Don't add "root" line if no compatibility hont is available.
8088 Suggested by: Seth Goldberg.
8089
2b5336a2
VS
80902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8091
8092 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
8093 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
8094 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
8095 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
8096
74310bd8
VS
80972012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8098
8099 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
8100
c30582ba
VS
81012012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8102
8103 * util/grub-pe2elf.c (ehdr): Make static.
8104 (shdr): Likewise.
8105 (num_sections): Likewise.
8106 (offset): Likewise.
8107
5f47782c
VS
81082012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 Eliminate ofpath limits and possible overflows.
8111
8112 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
8113 (OF_PATH_MAX): Removed.
8114 (MAX_DISK_CAT): New const.
8115 (find_obppath): Use allocated rather than preallocated buffer.
8116 Return result. Argument of_path removed. All users updated.
8117 Add missing fdstat.
8118 (xrealpath): New function.
8119 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
8120 Allocate rather than use preallocated buffer. All users updated.
8121 (__of_path_common): Use allocated rather than preallocatecd buffer.
8122 Return result. Argument of_path removed. All users updated.
8123 (vendor_is_ATA): Read only needed part form the file.
8124 (check_sas): Allocate depending on contents rather than fixed.
8125 (main) [STANDALONE]: Handle NULL result.
8126
f990cbf9
VS
81272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 * grub-core/normal/completion.c (iterate_dev): Close the disk.
8130
9c6e84b8
VS
81312012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8132
8133 Cryptodisk write support.
8134
8135 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
8136 (grub_cryptodisk_decrypt): Moved logic to ...
8137 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
8138 (grub_cryptodisk_write): Implement.
8139 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
8140 (grub_util_fd_write): ... this. Make global.
8141 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
8142
87cf9744
VS
81432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 * include/grub/list.h (grub_list_remove): Don't crash if element is
8146 removed twice.
8147
ca8c0baf
VS
81482012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8149
8150 Rename ofconsole to console.
8151
8152 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
8153 as sysnonym to console.
8154 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
8155 * grub-core/term/ieee1275/console.c: ... this. All users updated.
8156 Rename grub_ofconsole_ to grub_console_. All users updated
8157 (grub_console_term_output): Rename "ofconsole" to "console".
8158 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
8159 as "console".
8160
64c8b8f6
VS
81612012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8162
8163 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
8164 handling.
8165 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
8166 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
8167 GRUB_DISK_DEVICE_FILE_ID.
8168
f6c434d5
VS
81692012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8170
8171 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
8172 and improve performance.
8173
5858b42d
VS
81742012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8175
8176 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
8177 missing ieee1275/ prefix on whole disk.
8178
4ed3c26b
VS
81792012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8180
8181 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
8182 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
8183
df71143e
VS
81842012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8185
8186 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
8187
076e7c0f
VS
81882012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
8189
8190 Merge common RAID and LVM logic to an abstract diskfilter.
8191 Add LDM support using the same framework.
8192
8193 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
8194 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
8195 (libgrubmods): Remove grub-core/disk/raid.c and
8196 grub-core/partmap/gpt.c.
8197 * grub-core/Makefile.core.def (ldm): New module.
8198 (raid): Renamed to diskfilter. All users updated.
8199 * grub-core/disk/raid.c: Moved to ...
8200 * grub-core/disk/diskfilter.c: ... here.
8201 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
8202 (lv_num): New var.
8203 (find_array): Renamed to ...
8204 (find_lv): ... this. Support multi-LV. Skip nameless LVs
8205 (grub_is_array_readable): Renamed to ...
8206 (grub_is_lv_readable): ... this. Support multinode hierarchy.
8207 (insert_array): New argument id.
8208 (is_node_readable): New function.
8209 (scan_device): Rename to ...
8210 (scan_disk): .. this. Restrict to one disk.
8211 (scan_devices): New function.
8212 (grub_diskfilter_iterate): Support multi-LV.
8213 Skip invisible and nameless LVs.
8214 (grub_diskfilter_memberlist): Support multi-LV.
8215 (grub_diskfilter_read_node): New function.
8216 (grub_raid_read): Most of logic moved to ...
8217 (read_segment): ... here
8218 (read_lv): New function.
8219 (grub_diskfilter_get_vg_by_uuid): New function.
8220 (grub_diskfilter_make_raid): Likewise.
8221 * grub-core/disk/ldm.c: New file.
8222 * grub-core/disk/lvm.c (vg_list): Removed.
8223 (lv_count): Likewise.
8224 (scan_depth): Likewise.
8225 (is_lv_readable): Likewise.
8226 (grub_lvm_getvalue): Advance pointer past the number.
8227 (find_lv): Removed.
8228 (do_lvm_scan): Refactored into ...
8229 (grub_lvm_detect): ... this. Support raid.
8230 (grub_lvm_iterate): Removed.
8231 (grub_lvm_memberlist): Likewise.
8232 (grub_lvm_open): Likewise.
8233 (grub_lvm_close): Likewise.
8234 (read_lv): Likewise.
8235 (read_node): Likewise.
8236 (is_node_readable): Likewise.
8237 (is_lv_readable): Likewise.
8238 (grub_lvm_read): Likewise.
8239 (grub_lvm_write): Likewise.
8240 (grub_lvm_dev): Use diskfilter
8241 (GRUB_MOD_INIT): Likewise.
8242 (GRUB_MOD_FINI): Likewise.
8243 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
8244 new interface.
8245 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
8246 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8247 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
8248 grub_diskfilter_read_node.
8249 Fix a bug with xor.
8250 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
8251 grub_diskfilter_read_node.
8252 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
8253 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
8254 (grub_disk_dev_iterate): Move from here...
8255 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
8256 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
8257 Make global.
8258 (grub_hostdisk_find_partition_start): Likewise.
8259 (grub_hostdisk_os_dev_to_grub_drive): New function.
8260 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
8261 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
8262 * util/getroot.c (make_device_name): ... here.
8263 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
8264 Move to ...
8265 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
8266 * grub-core/kern/emu/hostdisk.c
8267 (convert_system_partition_to_system_disk): Move to ...
8268 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
8269 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
8270 * util/getroot.c (device_is_wholedisk): ... here.
8271 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
8272 * util/getroot.c (find_system_device): ... here.
8273 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
8274 Move to ...
8275 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
8276 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
8277 Move to ...
8278 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
8279 Handle LDM.
8280 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
8281 Move to ...
8282 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
8283 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
8284 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
8285 DISKFILTER.
8286 * include/grub/raid.h: Renamed to ...
8287 * include/grub/diskfilter.h: ... this.
8288 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
8289 (GRUB_RAID_LAYOUT_*): Make into array.
8290 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
8291 (grub_diskfilter_vg): New struct.
8292 (grub_diskfilter_pv_id): Likewise.
8293 (grub_raid_member): Removed.
8294 (grub_raid_array): Likewise.
8295 (grub_diskfilter_pv): New struct.
8296 (grub_diskfilter_lv): Likewise.
8297 (grub_diskfilter_segment): Likewise.
8298 (grub_diskfilter_node): Likewise.
8299 (grub_diskfilter_get_vg_by_uuid): New proto.
8300 (grub_raid_register): Inline.
8301 (grub_diskfilter_unregister): Likewise.
8302 (grub_diskfilter_make_raid): New proto.
8303 (grub_diskfilter_vg_register): Likewise.
8304 (grub_diskfilter_read_node): Likewise.
8305 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
8306 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
8307 (grub_util_is_ldm): Likewise.
8308 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
8309 (grub_hostdisk_find_partition_start): Likewise.
8310 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
8311 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
8312 New definition.
8313 (grub_gpt_partition_map_iterate): New proto.
8314 * include/grub/lvm.h (grub_lvm_vg): Removed.
8315 (grub_lvm_pv): Likewise.
8316 (grub_lvm_lv): Likewise.
8317 (grub_lvm_segment): Likewise.
8318 (grub_lvm_node): Likewise.
8319 * util/getroot.c [...]
8320 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
8321 (probe_abstraction): Likewise.
8322 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
8323 (main): Remove dead logic.
8324
8a7f9b9c
VS
83252012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
8326
8327 Simplify root device discover and don't fail when trying to open
8328 incorrect devices.
8329
8330 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
8331 function.
8332 (get_diskname_from_path): Likewise.
8333 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
8334 of iterating.
8335
30545b85
VS
83362012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8337
8338 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
8339
28ea58cf
VS
83402012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
8343 pastthe end.
8344
692dabca
VS
83452012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * util/grub-install.in: Add missing \.
8348 Reported by: gentoofan
8349
f6e4ea70
VS
83502012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
8351
8352 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
8353 (direct_read): Use correct compressed size.
8354 (grub_squash_read_data): Likewise.
8355
83562012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
8357
8358 * docs/grub.texi (Platform limitations): New section.
8359 (Platform-specific operations): Likewise.
8360 * docs/grub-dev.texi (Porting): Likewise.
8361
76261110
VS
83622012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8363
8364 IEEE1275 disk write support.
8365
8366 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
8367 const void *.
8368 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
8369 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
8370 and seek loginc to ...
8371 (grub_ofdisk_prepare): ... here.
8372 (grub_ofdisk_write): Implement.
8373
fc36d603
VS
83742012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8375
8376 ARC disk write support.
8377
8378 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
8379 (reopen): New argument writable. All users updated.
8380 Handle required access mode.
8381 (grub_arcdisk_write): Implement.
8382 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
8383 (grub_arc_firmware_vector): Make buffer to write a const buffer.
8384
e06c2e7a
VS
83852012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8386
8387 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
8388 (read_sblock): Don't attempt to read superblocks outside the disk size.
8389
ff447958
VS
83902012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8391
8392 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
8393 first superblock to find the second one when possible.
8394
9e88df39
VS
83952012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
8396
8397 * util/grub-install.in: Fix an ARC bug.
8398 Print a warning if no platform-specific setup is available.
8399
bb26e4ff
VS
84002012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 Use static allocation rather than scratch pointer in reed_solomon.
8403 It decreases its size significantly and avoids a variable in .text.
8404
8405 * grub-core/lib/reed_solomon.c (scratch): Removed.
8406 (chosenstat): New const or static array.
8407 (sigma): Likewise.
8408 (errpot): Likewise.
8409 (errpos): Likewise.
8410 (sy): Likewise.
8411 (mstat): Likewise.
8412 (errvals): Likewise.
8413 (eqstat): Likewise.
8414 (pol_evaluate): Replace x with log_x argument. All users updated.
8415 (syndroms): Removed.
8416 (gauss_solve): Use statically allocated arrays.
8417 (rs_recover): Likewise.
8418 Calculate syndroms directly.
8419 (decode_block): Use statically allocated arrays.
8420 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
8421 (main) [TEST]: Allow -DTEST -DSTANDALONE.
8422
2e13ede5
VS
84232012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8424
8425 Eliminate fixed limit on reed solomon decoder length.
8426
8427 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
8428 rather than hardcoding the address.
8429 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
8430 no_reed_solomon_length.
8431 Move gate_a20 to no-reed-solomon part.
8432 Don't force a particular size of no reed-solomon part.
8433 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8434 Removed.
8435 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
8436 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
8437
f8a9ab12
VS
84382012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * grub-core/commands/wildcard.c (match_files): Handle filenames
8441 without explicit device.
8442 (wildcard_expand): Don't add explicit device if not already present.
8443 * tests/grub_script_echo1.in: Add a new expansion test.
8444
87edb894
VS
84452012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8446
8447 Replace single-linked with double-linked lists. It results in more
8448 compact and more efficient code.
8449
8450 * grub-core/kern/list.c (grub_list_push): Moved from here ...
8451 * include/grub/list.h (grub_list_push): ... to here. Set prev.
8452 (grub_list_remove): Moved from here ...
8453 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
8454 (grub_prio_list_insert): Set prev.
8455 * include/grub/list.h (grub_list): Add prev. All users updated.
8456
48b391e9
VS
84572012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
8458
8459 Handle newer autotools. Add some missing quotes while on it.
8460
8461 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
8462 (pkglib_DATA): Move grub-mkconfig_lib from here ...
8463 (pkgdata_DATA): ... here.
8464 * Makefile.util.def (update-grub_lib): Removed.
8465 * conf/Makefile.common (pkglib_DATA): Removed.
8466 (pkglib_SCRIPTS): Likewise.
8467 (pkgdata_DATA): New variable.
8468 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
8469 needed.
8470 Add missing quotes.
8471 Remove unused variable while on it.
8472 * tests/util/grub-shell.in: Likewise.
8473 * util/grub-install.in: Likewise.
8474 * util/grub-mkconfig.in: Likewise.
8475 * util/grub-mknetdir.in: Likewise.
8476 * util/grub-mkrescue.in: Likewise.
8477 * util/grub-mkstandalone.in: Likewise.
8478 * util/grub.d/00_header.in: Likewise.
8479 * util/grub.d/10_hurd.in: Likewise.
8480 * util/grub.d/10_illumos.in: Likewise.
8481 * util/grub.d/10_kfreebsd.in: Likewise.
8482 * util/grub.d/10_linux.in: Likewise.
8483 * util/grub.d/10_netbsd.in: Likewise.
8484 * util/grub.d/10_windows.in: Likewise.
8485 * util/grub.d/20_linux_xen.in: Likewise.
8486 * util/grub.d/30_os-prober.in: Likewise.
8487 * util/update-grub_lib.in: Removed.
8488
84892012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
8490
8491 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
8492 a workaround for intel problem.
8493
66832792
PRP
84942012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
84952012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
84962012-01-23 pfsmorigo
8497
8498 * util/grub-install.in: Support dd'in into PreP partition.
8499 * util/grub-probe.c (probe): Support discovering partition type.
8500 (main): Support -t msdos_parttype.
8501
7816a17e
VS
85022012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
8503
8504 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
8505 infinite recursion using counter.
8506 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
8507 init to skip it if the magic check fails.
8508 (dec_stream_header): Init s->crc32.
8509
8f9d3a8c
ZB
85102012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
85112012-01-22 Zachary Bedell <pendorbound@gmail.com>
85122012-01-22 Richard Laager <rlaager@wiktel.com>
8513
8514 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
8515 All users updated.
8516 (find_bestub): Determine correct size.
8517 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
8518 (scan_disk): Align the size down.
8519 Call check pool before find_bestub to have ashift.
8520
b055dd32
VS
85212012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
8522
8523 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
8524 dprintf in no-malloc zone.
8525
d779e9bd
ML
85262012-01-22 Mario Limonciello <mario_limonciello@dell.com>
8527
8528 * configure.ac: Add back in test for limits.h.
8529
b508af69
VS
85302012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 Support 4K-sector NTFS.
8533
8534 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
8535 (grub_ntfs_data): Remove blocksize.
8536 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
8537 Remove data argument. All users updated.
8538
dad9c8b5
VS
85392012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8540
8541 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
8542 being in .text to avoid dprel references.
8543 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
8544 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
8545 (grub_arch_highmemsize): Likewise.
8546 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
8547 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
8548 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
8549
d43a777e
VS
85502012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8551
8552 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
8553
8554 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
8555 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
8556
34e4208f
VS
85572012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8558
8559 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
8560 GRUB_UTIL.
8561 (grub_set_datetime_cmos): Likewise.
8562
3ec0fc1c
VS
85632012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 Make XZ compression parameters dependent on target and not host CPU.
8566
8567 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
8568 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
8569
22489834
VS
85702012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
8571
8572 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
8573 set but not used variable.
8574
8502fbca
VS
85752012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8576
8577 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
8578 created when no uuid support is compiled into mkfs.reiser.
8579
76df2068
VS
85802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8581
8582 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
8583 (utf8_to_macroman): Do the opposite.
8584 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
8585
64e3f8f6
VS
85862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8587
8588 * configure.ac: Refise build qemu_mips w/o unifont.
8589
9c271078
VS
85902012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8591
8592 Eliminate grub_min/grub_max prone to overflow usage.
8593
8594 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
8595 (poll_nonroot_hub): Likewise.
8596 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
8597 (grub_affs_label): Likewise.
8598 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
8599 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
8600 (grub_hfs_label): Likewise.
8601 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
8602 * grub-core/fs/zfs/zfs.c (MIN): Remove.
8603 (zap_leaf_array_equal): Use grub_size. Remove MIN.
8604 (zap_leaf_array_get): Likewise.
8605 (dnode_get_path): Likewise.
8606 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
8607 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
8608 * grub-core/script/execute.c (grub_script_break): Likewise.
8609 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
8610 grub_max.
8611 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
8612 * include/grub/misc.h (grub_min): Removed.
8613 (grub_max): Likewise.
8614
80662dbc
VS
86152012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8616
8617 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
8618 direct.inode = 0.
8619
e6da1467
VS
86202012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8621
8622 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
8623
b1ac4cb1
VS
86242012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8625
8626 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
8627
b4bf7c3b
VS
86282012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8629
8630 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
8631 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
8632
8ee1101a
VS
86332012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8634
8635 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
8636 rather than a hack for grub_strncasemap.
8637
86382012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8639
8640 Support multiple initrds
8641 Note: part of this was accidently committed in r3739.
8642
8643 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
8644 initrd.
8645 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8646 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8647 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8648 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8649 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8650
4d1e2bc9
VS
86512012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8652
8653 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
8654 disks with unknown size.
8655 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
8656
75b49ebe
VS
86572012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8658
8659 Remove defines pertaining to arbitrary limits not affecting GRUB
8660 anymore.
8661
8662 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
8663 (EXT2_MAX_SYMLINKCNT): Likewise.
8664 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
8665 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
8666 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
8667 (GRUB_PXE_MAX_BLKSIZE): Likewise.
8668 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
8669 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
8670 (DN_MAX_OBJECT_SHIFT): Likewise.
8671 (DN_MAX_OFFSET_SHIFT): Likewise.
8672 (DN_MAX_OBJECT): Likewise.
8673 (DNODES_PER_LEVEL_SHIFT): Likewise.
8674 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
8675 (SPA_MAXBLOCKSIZE): Likewise.
8676 (SPA_BLOCKSIZES): Likewise.
8677 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
8678 (MZAP_MAX_BLKSZ): Likewise.
8679
74a1dce7
VS
86802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
8681
8682 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
8683 handle NULL appropriately.
8684 Remove MIN.
8685
30c7d3ce
VS
86862012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8687
8688 Fix efiemu.
8689
8690 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
8691 cpu/types.h.
8692 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
8693 * configure.ac: Fix efiemu check.
8694
3c76ea0c
VS
86952012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8696
8697 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
8698 grub_probe.
8699 Reported by: adamwill
8700
7e532280
SG
87012012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
8702
8703 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
8704
30492374
VS
87052012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8706
8707 Fix handling of wide characters in gfxterm.
8708
8709 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
8710 (clear_char): Likewise.
8711 (paint_char): Skip code == NULL chars.
8712 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
8713
e70cb72f
VS
87142012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 * grub-core/normal/charset.c: Move comment to right place.
8717
5c827cf9
VS
87182012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
8721 (GRUB_AFFS_FLAG_FFS): Put back where it was.
8722 (grub_affs_mount): Revert the correct version checking.
8723
53603892
VS
87242012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8725
8726 * docs/grub.texi (Unicode): Mention several other unsupported features.
8727
ff094b9b
VS
87282011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
8731 case statements as compile-time one.
8732 (direct_read): Prevent spurious warnings.
8733 (grub_squash_read_data): Likewise.
8734
c029da8a
VS
87352011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8736
8737 Various squash4 fixes and LZO and XZ support.
8738
8739 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
8740 Add xzembed source files.
8741 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
8742 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
8743 (grub_squash_inode): New subtype long_dir.
8744 (SQUASH_TYPE_LONG_DIR): New inode type.
8745 (COMPRESSION): New enum.
8746 (XZBUFSIZ): New const.
8747 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
8748 (read_chunk): Use data->decompress.
8749 (zlib_decompress): New function.
8750 (lzo_decompress): Likewise.
8751 (xz_decompress): Likewise.
8752 (squash_mount): Set new data fields.
8753 (grub_squash_iterate_dir): Handle long dir.
8754 (squash_unmount): Free xzdec and xzbuf.
8755 (grub_squash_open): Check ino type.
8756 (direct_read): Stylistic fixes. Use data->decompress.
8757 (grub_squash_read_data): Likewise.
8758 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
8759 (get_byte): Likewise.
8760 (grub_zlib_disk_read): Removed.
8761 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
8762 (GRUB_POSIX_BOOL_DEFINED): New define.
8763 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
8764 * grub-core/lib/xzembed/xz.h: Addmissing includes.
8765 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
8766 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
8767
7a45a539
VS
87682011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
8769
8770 Don't override more informative errors.
8771
8772 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
8773 * grub-core/font/font.c (open_section): Likewise.
8774 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
8775 filename. Don't override errors.
8776 (grub_cmd_openbsd_ramdisk): Don't override errors.
8777 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
8778 (grub_cmd_initrd): Likewise.
8779 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
8780 (grub_cmd_initrd): Likewise.
8781 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
8782 (grub_cmd_linux): Likewise.
8783 (grub_cmd_initrd): Likewise.
8784 (grub_cmd_payload): Likewise.
8785 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8786 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
8787 (grub_cmd_module): Likewise.
8788 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8789 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8790 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
8791 (grub_cmd_xnu_mkext): Likewise.
8792 (grub_cmd_xnu_ramdisk): Likewise.
8793 (grub_xnu_check_os_bundle_required): Likewise.
8794 (grub_xnu_load_kext_from_dir): Likewise.
8795 (grub_cmd_xnu_kextdir): Likewise.
8796 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
8797
b2d004db
VS
87982011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8799
8800 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
8801 as 1024 in block size field. Found on one of my test images.
8802 Small optimisation while on it.
8803
ec000eac
VS
88042011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8805
8806 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
8807 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
8808 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
8809 performance fixes while on it.
8810 (grub_sfs_close): Fix memory leak while on it.
8811 (grub_sfs_label): Convert Latin1 to UTF-8.
8812
f50e1165
VS
88132011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8814
8815 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8816 space to avoid overflows.
8817 (grub_hfs_label): Convert from macroman to UTF-8.
8818
2ae254de
VS
88192011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8820
8821 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8822
0108f491
VS
88232011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8824
8825 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8826
f45f5f89
VS
88272011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * unicode: Import Unicode 6.0 data.
8830
4d8c4765
VS
88312011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8832
63fa8ef9
VS
8833 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8834 outside of range.
8835
88362011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8837
8838 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
8839
8840 * include/grub/charset.h (grub_getend): New function.
8841 * grub-core/script/function.c (grub_script_function_find): Use
8842 grub_getend.
8843 * grub-core/normal/completion.c (add_completion): Likewise.
8844
f3cb4a4e
VS
88452011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8848 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8849 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8850 (GRUB_UNICODE_TAG_END): Likewise.
8851 (GRUB_UNICODE_LAST_VALID): Likewise.
8852
5da8dbc5
VS
88532011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8856 len and make it smaller. All users updated.
8857 * util/import_unicode.py: Put length and not end character.
8858 Check length.
8859
8569f13d
VS
88602011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8861
8862 Make better Unicode-compliant and unify some UTF-8 code pathes.
8863
8864 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8865 valid character.
8866 (grub_is_valid_utf8): Use grub_utf8_process.
8867 Check resulting code range.
8868 (grub_utf8_to_ucs4): Use grub_utf8_process.
8869 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8870 valid character.
8871
cc4fddf5
VS
88722011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8875
bbc47747
VS
88762011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8877
8878 * docs/grub.texi (Filesystems): Mention AFS.
8879
f63d6bf4
VS
88802011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8881
8882 * docs/grub.texi (Filesystems): Clarify restrictions.
8883 (Regexp): Mention non-Unicode regexp behaviour.
8884 (Other): Mention non-Unicode matching behaviour.
8885
74bbf0db
VS
88862011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8887
f63d6bf4 8888 Make HFS implementation use MacRoman.
74bbf0db
VS
8889
8890 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8891 (macroman): New const array.
8892 (macroman_to_utf8): New function.
8893 (utf8_to_macroman): Likewise.
8894 (grub_hfs_find_dir): Use utf8_to_macroman.
8895 (grub_hfs_dir): Use macroman_to_utf8.
8896 Set case_insensitive.
8897
4ea0316e
VS
88982011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8899
8900 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8901
d3c13cbd
VS
89022011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8903
8904 Integrate hints into autogeneration scripts.
8905
8906 * docs/grub.texi (Filesystems): Add a hostdisk example.
8907 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8908 (grub-probe): Add ofpath.
8909 * gentpl.py: Remove group nosparc64.
8910 * grub-core/commands/search.c (cache_entry): New struct.
8911 (cache): New var.
8912 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8913 * grub-core/commands/search_wrap.c (options): Add platform-specific
8914 hint options.
8915 (grub_cmd_search): Handle platform-specific hints.
8916 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8917 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8918 (grub_util_biosdisk_data): Likewise.
8919 (grub_util_biosdisk_open): Set device_map.
8920 (read_device_map): Handle "" as indication of no map.
8921 Set device_map.
8922 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8923 (grub_util_biosdisk_get_compatibility_hint): New function.
8924 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8925 * include/grub/emu/hostdisk.h
8926 (grub_util_biosdisk_get_compatibility_hint): New proto.
8927 * util/grub-install.in: Don't call grub-mkdevicemap.
8928 Add platform-specific hint to load.cfg.
8929 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8930 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8931 hints. Set root preliminary to compatibility hint, not to OS name.
8932 * util/grub-probe.c (PRINT_*): Add hints.
8933 (print): Make static.
8934 (escape_of_path): New function.
8935 (guess_bios_drive): Likewise.
8936 (guess_efi_drive): Likewise.
8937 (guess_baremetal_drive): Likewise.
8938 (print_full_name): Likewise.
8939 (probe): Handle hints.
8940 (main): Likewise.
8941 * util/ieee1275/devicemap.c: Removed.
8942 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8943 updated.
8944 (grub_util_devname_to_ofpath): Return NULL on failure.
8945
8946 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8947 resource leak.
8948 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8949
8950 * po/POTFILES.in: Regenerated.
8951
8952 Allow purely long options
8953
8954 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8955 (SHORT_ARG_USAGE): Likewise.
8956 (grub_arg_show_help): Compare opt with help_options.
8957 (parse_option): Receive opt as argument. If makes big simplificatons.
8958 All users updated
8959
00ce2df3
VS
89602011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8961
8962 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8963 Restructure to avoid warning.
8964
e77e325f
VS
89652011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 * util/grub-install.in: Account for possible escaped comma in device
8968 name.
8969
165099ea
VS
89702011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8971
8972 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8973 channel.
8974
ce4a999d
VS
89752011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8976
8977 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8978 allocation and zero-setting.
8979 (grub_ieee1275_get_devname): Check that alias is complete.
8980
379586ad
VS
89812011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8984 unaligned segments.
8985
9197b0ad
VS
89862011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8989 prefix.
8990 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8991 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8992 Add ieee1275 prefix.
8993
edddb7f9
VS
89942011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8995
8996 * docs/grub.texi (Filesystems): Update.
8997
a1a8b1b9
VS
89982011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 Support odc, newc and bigendian cpio formats.
9001
9002 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
9003 * grub-core/Makefile.core.def (newc): New module.
9004 (odc): Likewise.
9005 (cpio_be): Likewise.
9006 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
9007 (MAGIC): Likewise.
9008 (MAGIC2): Likewise.
9009 (head) [MODE_ODC]: Adapt for the format.
9010 (head) [MODE_NEWC]: Likewise.
9011 (head) [!MODE_*]: Write fields of interest as arrays.
9012 (MAGIC_USTAR): Removed.
9013 (read_number) [MODE_NEWC]: Change to hex.
9014 (read_number) [!MODE_*]: Parse binary arrays.
9015 (grub_cpio_find_file): Factor out the code for better structure and
9016 always use read_number.
9017 (grub_cpio_mount): Use MAGIC and MAGIC2.
9018 (grub_cpio_dir): Exit on first hook non-0 return.
9019 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
9020 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
9021 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
9022 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
9023 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
9024 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
9025 * grub-core/fs/newc.c: New file.
9026 * grub-core/fs/odc.c: Likewise.
9027 * grub-core/fs/cpio_be.c: Likewise.
9028
58eba9ee
VS
90292011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9030
9031 Fix handling of tar numbers occupying the whole field.
9032
9033 * grub-core/fs/cpio.c (read_number): New function.
9034 (grub_cpio_find_file): Use read_number instead of strtoull.
9035
a54a0e12
VS
90362011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
9039 occupying the whole field size.
9040
a6120aca
LA
90412011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
9042
9043 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
9044
a93964ce
VS
90452011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9046
9047 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
9048
3ea1ca46
SG
90492011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
9050
9051 * grub-core/Makefile.core.def (lzma_decompress): Add missing
9052 TARGET_IMG_LDFLAGS.
9053
b87f7ef2
VS
90542011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9055
9056 * util/getroot.c (ESCAPED_PATH_MAX): New define.
9057 (mountinfo_entry): Increase the field size to take escaping into
9058 account.
9059 (find_root_device_from_libzfs): Add one byte to size of strings for
9060 security.
9061
62092395
VS
90622011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
9065 an assert.
9066 * util/grub-setup.c (setup): Likewise.
9067
1f0b1a77
VS
90682011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
9069
9070 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
9071 _LzmaDecodeA.
9072
8eba9997
VS
90732011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9074
9075 * docs/grub.texi (Internationalisation): New section.
9076
dd0c91e9
VS
90772011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * docs/grub.texi (Loopback booting): New section.
9080
90812011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
9082
9083 * util/grub-mkstandalone.in: Fix minor typo errors.
9084
198e150a
VS
90852011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
9086
9087 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
9088
9089 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
9090 net/icmp.c and net/icmp6.c.
9091 (http): New module.
9092 (priority_queue): Likewise.
9093 * grub-core/io/bufio.c: Rewritten.
9094 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
9095 TYPE_WITH_CONFIGFILE_OPTION.
9096 (legacy_commands): Add bootp and dhcp.
9097 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
9098 (grub_legacy_parse): Likewise.
9099 * grub-core/lib/priority_queue.c: New file.
9100 * grub-core/net/arp.c: Add missing license header.
9101 (arp_find_entry): Removed.
9102 (arp_find_entry): Likewise.
9103 (grub_net_arp_resolve): Rename to ...
9104 (grub_net_arp_send_request): ...this.
9105 (grub_net_arp_receive): New card argument.
9106 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
9107 Set router and DNS server.
9108 (grub_net_configure_by_dhcp_ack): Handle routing information.
9109 (grub_cmd_bootp): Set checksum.
9110 (grub_bootp_init): Remove net_dhcp.
9111 * grub-core/net/dns.c: New file.
9112 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
9113 completion.
9114 (get_card_packet): Handle allocation.
9115 (grub_efinet_findcards): Set mtu.
9116 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
9117 (get_card_packet): Handle allocation.
9118 (emucard): Set mtu.
9119 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
9120 (GRUB_MOD_INIT): Set mtu.
9121 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
9122 mtu.
9123 (get_card_packet): Handle allocation.
9124 (grub_ofnet_findcards): Set mtu.
9125 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
9126 assert.
9127 (grub_net_recv_ethernet_packet): Handle IPv6.
9128 * grub-core/net/http.c: New file.
9129 * grub-core/net/icmp.c: Likewise.
9130 * grub-core/net/icmp6.c: Likewise.
9131 * grub-core/net/ip.c (ip6addr): New type.
9132 (ip6hdr): Likewise.
9133 (reassemble): Likewise.
9134 (cmp): New function.
9135 (reassembles): New variable.
9136 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
9137 (id): New variable.
9138 (send_fragmented): New function.
9139 (grub_net_send_ip_packet): Rename to ...
9140 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
9141 Handle non-UDP.
9142 (grub_net_recv_ip_packets): Rename to ...
9143 (handle_dgram): ... this. Check checksum. Handle non-UDP.
9144 (free_rsm): New function.
9145 (free_old_fragments): Likewise.
9146 (grub_net_recv_ip4_packets): New function.
9147 (grub_net_send_ip6_packet): Likewise.
9148 (grub_net_send_ip_packet): Likewise.
9149 (grub_net_recv_ip6_packets): Likewise.
9150 (grub_net_recv_ip_packets): Likewise.
9151 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
9152 (LINK_LAYER_CACHE_SIZE): New const.
9153 (link_layer_find_entry): New function.
9154 (grub_net_link_layer_add_address): Likewise.
9155 (grub_net_link_layer_resolve_check): Likewise.
9156 (grub_net_link_layer_resolve): Likewise.
9157 (grub_net_ipv6_get_slaac): Likewise.
9158 (grub_net_ipv6_get_link_local): Likewise.
9159 (grub_cmd_ipv6_autoconf): Likewise.
9160 (parse_ip): Handle one number representation.
9161 (parse_ip6): New functoion.
9162 (match_net): Handle IPv6.
9163 (grub_net_resolve_address): Handle IPv6 and DNS.
9164 (grub_net_resolve_net_address): Handle IPv6.
9165 (route_cmp): New function.
9166 (grub_net_route_address): Find best route.
9167 (grub_net_addr_to_str): Handle IPv6.
9168 (grub_net_addr_cmp): New function.
9169 (grub_net_add_addr): Register local route.
9170 (print_net_address): Handle net address.
9171 (grub_net_poll_cards): Retransmit TCP.
9172 (grub_net_poll_cards_idle_real): Likewise.
9173 (have_ahead): New function.
9174 (grub_net_seek_real): Use underlying seek.
9175 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
9176 * grub-core/net/tcp.c: New file.
9177 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
9178 (cmp): New function.
9179 (ack): Likewise.
9180 (tftp_receive): Handle unordered input.
9181 (destroy_pq): New function.
9182 (tftp_close): Close pq.
9183 * grub-core/net/udp.c: Put missing license header.
9184 (grub_net_udp_socket): New function.
9185 (udp_socket_register): Likewise.
9186 (grub_net_udp_close): Likewise.
9187 (grub_net_recv_udp_packet): Check checksum.
9188 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
9189 * include/grub/misc.h (grub_memchr): New function.
9190 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
9191 (grub_net_card_driver): Return buf in recv.
9192 (grub_net_slaac_mac_list): New struct.
9193 (grub_network_level_protocol_id): Add ipv6.
9194 (grub_net_network_level_addr): Likewise.
9195 (grub_net_network_level_net_addr): Likewise.
9196 (grub_net_app_protocol): Add seek.
9197 (grub_net_socket): Removed.
9198 (grub_net_sockets): Likewise.
9199 (grub_net_socket_register): Likewise.
9200 (grub_net_socket_unregister): Likewise.
9201 (FOR_NET_SOCKETS): Likewise.
9202 (grub_net_add_addr): Add const.
9203 (GRUB_NET_BOOTP_*): New enum.
9204 (grub_net_addr_cmp): New proto.
9205 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
9206 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
9207 (grub_net_hwaddr_to_str): NEw proto.
9208 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
9209 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
9210 (grub_dns_init): New proto.
9211 (grub_dns_fini): Likewise.
9212 (grub_net_tcp_retransmit): Likewise.
9213 (grub_net_link_layer_add_address): Likewise.
9214 (grub_net_link_layer_resolve_check): Likewise.
9215 (grub_net_link_layer_resolve): Likewise.
9216 (grub_net_dns_lookup): Likewise.
9217 (grub_net_add_dns_server): Likewise.
9218 (grub_net_remove_dns_server): Likewise.
9219 (GRUB_NET_TRIES): New const.
9220 (GRUB_NET_INTERVAL): Likewise.
9221 * include/grub/net/arp.h: Mostly rewritten.
9222 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
9223 * include/grub/net/ip.h: Mostly rewritten.
9224 * include/grub/net/netbuff.h: Indent.
9225 * include/grub/net/tcp.h: New file.
9226 * include/grub/net/udp.h: Mostly rewritten.
9227 * include/grub/priority_queue.h: New file.
9228 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
9229 (grub_swap_bytes64_compile_time): Likewise.
9230 (grub_cpu_to_be16_compile_time): Likewise.
9231 (grub_cpu_to_be32_compile_time): Likewise.
9232 (grub_cpu_to_be64_compile_time): Likewise.
9233 (grub_be_to_cpu64_compile_time): Likewise.
9234
215c1800
VS
92352011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
9236
9237 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
9238 UINT_TO_PTR with cast.
9239
c17e546c
VS
92402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9241
9242 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
9243 don't use them.
9244
ff6b18b6
VS
92452011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9246
9247 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
9248 already there.
9249
70ffcc93
VS
92502011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9251
9252 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
9253 confusing ipxe.
9254
e5f4d260
VS
92552011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9256
9257 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
9258 Add missing const attribute.
9259 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
9260 Likewise.
9261 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
9262 Likewise.
9263
8e54b4b7
VS
92642011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9265
9266 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
9267 misaligned access.
9268 (serpent_setkey): Likewise.
9269 (serpent_encrypt_internal): Likewise.
9270 (serpent_decrypt_internal): Likewise.
9271 (serpent_encrypt): Don't put an alignment-increasing cast.
9272 (serpent_decrypt): Likewise.
9273 (serpent_test): Likewise.
9274
813c0a2b
VS
92752011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
9278
f2b60fbd
VS
92792011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9280
9281 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
9282
9283 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
9284 grub_addr_t casts.
9285 (PTR_TO_UINT64): Likewise.
9286 (PTR_TO_UINT32): Likewise.
9287
5ef5c511
VS
92882011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9289
9290 * util/grub-mkimage.c (generate_image): Decrease the higher limit
9291 because of stack.
9292 * util/grub-setup.c (setup): Don't add redundancy past the higher load
9293 limit.
9294
c476e6df
VS
92952011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9296
9297 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
9298 text_width > available width a bit more gracefully.
9299
384ad7cc
VS
93002011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9301
9302 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
9303 current address calculation.
9304
96f8caf8
VS
93052011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9306
9307 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
9308 stack.
9309 (encode_block): Likewise.
9310
276b7a8b
VS
93112011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9312
9313 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
9314 certainety.
9315
e3fd394a
VS
93162011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9317
9318 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
9319 non-RS part to avoid RS messing with GDT.
9320 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
9321 Increase to suit in realmode routines.
9322
93232011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
9324
9325 * grub-core/kern/i386/realmode.S: Increase alignment.
9326 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
9327
ee9c2e7a
VS
93282011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
9331 be deterministic.
9332 (syndroms): Compute 0 syndrom.
9333 (rs_recover): Use 0 syndrom.
9334
7a7f7cc9
VS
93352011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9336
9337 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
9338
a14b16d1
VS
93392011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9340
9341 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
9342 brackets.
9343
9f59e9fc
VS
93442011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9345
ca1b552c
VS
9346 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
9347 account.
9348 (get_top_pad): Likewise.
9349 (get_right_pad): Likewise.
9350 (get_bottom_pad): Likewise.
9351
93522011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9353
9354 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 9355
e739d698
VS
93562011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9357
9358 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
9359 attribute as the structure isn't guaranteed to be properly aligned.
9360 (grub_efi_pci_device_path): Likewise.
9361 (grub_efi_pccard_device_path): Likewise.
9362 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
9363 specify the size of `memory_type'.
9364 (grub_efi_vendor_device_path): Likewise.
9365 (grub_efi_controller_device_path): Likewise.
9366 (grub_efi_acpi_device_path): Likewise.
9367 (grub_efi_expanded_acpi_device_path): Likewise.
9368 (grub_efi_atapi_device_path): Likewise.
9369 (grub_efi_scsi_device_path): Likewise.
9370 (grub_efi_fibre_channel_device_path): Likewise.
9371 (grub_efi_1394_device_path): Likewise.
9372 (grub_efi_usb_device_path): Likewise.
9373 (grub_efi_usb_class_device_path): Likewise.
9374 (grub_efi_i2o_device_path): Likewise.
9375 (grub_efi_mac_address_device_path): Likewise.
9376 (grub_efi_ipv4_device_path): Likewise.
9377 (grub_efi_ipv6_device_path): Likewise.
9378 (grub_efi_infiniband_device_path): Likewise.
9379 (grub_efi_uart_device_path): Likewise.
9380 (grub_efi_vendor_messaging_device_path): Likewise.
9381 (grub_efi_hard_drive_device_path): Likewise.
9382 (grub_efi_cdrom_device_path): Likewise.
9383 (grub_efi_vendor_media_device_path): Likewise.
9384 (grub_efi_file_path_device_path): Likewise.
9385 (grub_efi_protocol_device_path): Likewise.
9386 (grub_efi_piwg_device_path): Likewise.
9387 (grub_efi_bios_device_path): Likewise.
9388
cb8f88ea
VS
93892011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9390
9391 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
9392 (grub_ucs4_to_utf8_alloc): Likewise.
9393 (grub_ucs4_to_utf8): Likewise.
9394 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
9395 (grub_ucs4_to_utf8_alloc): Likewise.
9396
309e5352
VS
93972011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
9398
9399 AFFS never uses unicode.
9400
9401 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
9402 (grub_latin1_to_utf8): New inline function.
9403 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
9404
e7987e1b
VS
94052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9406
9407 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
9408 overflow.
9409
efc2616e
VS
94102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9411
9412 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
9413 (grub_squash_dirent_header): Likewise.
9414 (read_chunk): Don't double swap.
9415 (grub_squash_iterate_dir): Fix swap sizes.
9416
3c349f5a
VS
94172011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9418
9419 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
9420
b453412d
VS
94212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
9424 (grub_hfs_iterate_dir): Likewise.
9425
12e9d4d1
VS
94262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9427
9428 Fix video on platforms where unaligned access is forbidden.
9429 Make several optimisations while on it.
9430
9431 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
9432 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9433 (grub_video_fbblit_replace_32bit_1bit): Likewise.
9434 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9435 Disable.
9436 (grub_video_fbblit_replace_16bit_1bit):
9437 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9438 (grub_video_fbblit_replace_8bit_1bit): Likewise.
9439 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
9440 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
9441 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9442 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
9443 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
9444 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
9445 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
9446 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
9447 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
9448 (grub_video_fbblit_replace_index_RGB888): Likewise.
9449 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
9450 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
9451 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
9452 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
9453 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
9454 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
9455 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
9456 Disable.
9457 (grub_video_fbblit_blend_XXX565_1bit):
9458 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
9459 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
9460 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
9461 void *.
9462 * grub-core/video/fb/video_fb.c (common_blitter)
9463 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
9464 (grub_video_fb_create_render_target_from_pointer)
9465 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
9466 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
9467 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
9468 definition.
9469 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
9470
ace96609
VS
94712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9472
9473 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
9474 HH22 and HM10 relocations.
9475
fd261d73
VS
94762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9477
9478 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
9479
e59b7857
VS
94802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9481
9482 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
9483 allocation succeeded.
9484
9b4baaa4
VS
94852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9486
9487 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
9488 argument a u8 pointer. All users updated.
9489 Handle unaligned buffers.
9490
dc713193
VS
94912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9492
9493 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
9494 add_part to workaround compiler bug.
9495
30dd48c2
VS
94962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9497
9498 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
9499
0c6087a8
VS
95002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9501
9502 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
9503 Reserve alignment invariants.
9504 (grub_multiboot_load): Likewise.
9505 (retrieve_video_parameters): Likewise.
9506 (grub_multiboot_make_mbi): Likewise.
9507
c2e77777
VS
95082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
9511 incorrect pointer.
9512
b70b6d11
VS
95132011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9514
9515 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
9516 (grub_pata_pio_write): Likewise.
9517
02a2bf83
VS
95182011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9519
9520 Add noreturn attributes and remove unreachable code.
9521
9522 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
9523 code.
9524 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
9525 code. Mark as noreturn.
9526 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
9527 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
9528 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
9529 unreachable code.
9530 * grub-core/kern/main.c (grub_main): Mark as noreturn.
9531 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
9532 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
9533 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
9534 * include/grub/kernel.h (grub_main): Mark as noreturn.
9535 * include/grub/reader.h (grub_rescue_run): Likewise.
9536
2019d09e
VS
95372011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
9540 redundant declaration.
9541
d1c501ee
VS
95422011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9543
9544 * include/grub/net.h (grub_net_network_level_interfaces): Remove
9545 redundant declaration.
9546 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
9547
61664420
VS
95482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9549
9550 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
9551 to ensure alignment.
9552 (grub_hdparm_print_identify): Make argument uint16 * to ensure
9553 alignment. Ensure tmp alignment.
9554 (grub_cmd_hdparm): Ensure buf alignment.
9555 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
9556 to ensure alignment.
9557 (grub_ata_dumpinfo): Ensure text alignment.
9558 (grub_atapi_identify): Preserve alignment invariant.
9559 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
9560
0d51ee20
VS
95612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9562
9563 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
9564 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
9565 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
9566 * include/grub/misc.h (grub_reboot)
9567 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
9568 (grub_halt) [__mips__]: Likewise.
9569
753ef8c1
VS
95702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9571
9572 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
9573 Remove redundant declaration.
9574 (grub_mmap_get_post64): Likewise.
9575 (grub_mmap_get_upper): Likewise.
9576 (grub_mmap_get_lower): Likewise.
9577
85c85365
VS
95782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9579
9580 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
9581 uint32_t * to ensure alignment.
9582 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
9583
a23f2cc4
VS
95842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9585
93018f64
VS
9586 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
9587 uint16_t * to ensure alignment.
9588 (sun_pc_partition_map_iterate): Make `block' a union to ensure
9589 alignment.
9590
95912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9592
9593 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
9594 to ensure alignment.
9595 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
9596
58acccd6
VS
95972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9598
9599 * grub-core/fs/ntfs.c (u16at): Make into inline function.
9600 Handle unaligned pointers.
9601 (u32at): Likewise.
9602 (u64at): Likewise.
9603 (fixup): Use byte access instead of v16at.
9604 (find_attr): Fix imporper usage of v32at.
9605 (read_data): Likewise.
9606 (list_file): Handle byte-swapping and unaligned strings.
9607 (grub_ntfs_label): Likewise.
9608
9b05cad7
VS
96092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9610
9611 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
9612 as it's not necessarily aligned.
9613
b3950b84
VS
96142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9615
9616 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
9617 redundant declaration.
9618 (grub_serial_init): Likewise.
9619 (grub_terminfo_init): Likewise.
9620
fcd232b7
VS
96212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9622
9623 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
9624 function.
9625 (ZAP_HASH_IDX): Likewise.
9626 (ZAP_LEAF_HASH_SHIFT): Likewise.
9627 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
9628 (LEAF_HASH): Likewise.
9629 (ZAP_LEAF_NUMCHUNKS): Likewise.
9630 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
9631 alignment invariants. Return pointer. All users updated.
9632 (ZAP_LEAF_ENTRY): Make into inline function.
9633 (NBBY): Removed.
9634 (xor): LIkewise.
9635 (xor_out): Use grub_crypto_xor.
9636 (dnode_get_path): Use grub_get_unaligned.
9637 (nvlist_find_value): Likewise.
9638 (grub_zfs_nvlist_lookup_uint64): Likewise.
9639 (grub_zfs_nvlist_lookup_string): Likewise.
9640 (get_nvlist_size): Likewise.
9641 (grub_zfs_open): Likewise.
9642 (fill_fs_info): Likewise.
9643 (grub_zfs_dir): Likewise.
9644 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
9645 alignment invariants.
9646 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
9647 necessarily aligned.
9648
f138623a
VS
96492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9650
9651 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
9652
564840dc
VS
96532011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
9656 arithmetic to conserve alignment invariants.
9657
9b40df20
VS
96582011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9659
9660 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
9661 redundant declaration.
9662 (grub_efiemu_mm_obtain_request): Likewise.
9663 (grub_efiemu_prepare): Likewise.
9664
d1c930f9
VS
96652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
9668 to match types.
9669
4c5f3056
VS
96702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9671
9672 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
9673 case of aunaligned recptr.
9674 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
9675 alignment.
9676 (grub_hfsplus_btree_search): Handle unaligned index.
9677
728cba91
VS
96782011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9679
9680 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
9681 to get freetag and skip.
9682
eb561f31
VS
96832011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
9686 array.
9687 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
9688 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
9689
20993fbb
VS
96902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9691
9692 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
9693 name for checksum and fix allocation algorithm.
9694
1f313b94
VS
96952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9696
9697 * include/grub/types.h (grub_properly_aligned_t): New type.
9698 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
9699 (grub_get_unaligned16): Add explicit casts.
9700 (grub_get_unaligned32): Likewise.
9701 (grub_get_unaligned64): Likewise.
9702 (grub_set_unaligned16): New function.
9703 (grub_set_unaligned32): Likewise.
9704
47ae27ec
VS
97052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9706
9707 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9708
78c2cd1c
VS
97092011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9710
9711 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
9712 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
9713 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
9714
53072f9b
VS
97152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9716
9717 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
9718 conditionals.
9719
055dc239
VS
97202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9721
9722 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
9723 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
9724
496bd074
VS
97252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9726
9727 Unify and improve RAID and crypto xor.
9728
9729 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
9730 changed to grub_crypto_xor
9731 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
9732 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
9733 Use bigger types when possible.
9734
ef6e4335
VS
97352011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * grub-core/disk/raid.c (scan_devices): Fix condition.
9738
5d048bf2
VS
97392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9740
9741 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
9742 Make name a const ptr.
9743
ee533335
VS
97442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
9747 first argument a const pointer.
9748 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
9749 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
9750 proto.
9751 (grub_children_iterate): Likewise.
9752 (grub_machine_mmap_iterate): Remove redundant declaration.
9753
cc8f3668
VS
97542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9755
9756 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
9757 (grub_cmd_acpi) [!x86]: Disable EBDA.
9758
c5fc563a
VS
97592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9760
9761 Enable UTF8 in gnulib regexp.
9762
9763 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
9764 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
9765 (isupper): Use grub_isupper.
9766 (isascii): New inline function.
9767 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
9768 * grub-core/lib/posix_wrap/wctype.h: Likewise.
9769 * grub-core/normal/charset.c (grub_utf8_process): New function.
9770 (grub_utf8_to_utf16): Use grub_utf8_process.
9771 (grub_encode_utf8_character): New function.
9772 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
9773 * include/grub/charset.h (grub_utf8_process): New declaration.
9774 (grub_encode_utf8_character): Likewise.
9775 * include/grub/misc.h (grub_islower): New inline function.
9776 (grub_isupper): Likewise.
9777 (grub_strchrsub): Moved down to fix the definitions.
9778
0af2346f
VS
97792011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
9782 specification.
9783
74dbd244
VS
97842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * include/grub/loader.h (grub_loader_register_preboot_hook):
9787 Use struct preboot * and not void * for handle. All users updated.
9788 (grub_loader_unregister_preboot_hook): Likewise.
9789
1bc8f60d
VS
97902011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9791
9792 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
9793 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
9794 UTF-16-BE. All users updated.
9795 (grub_hfsplus_cmp_catkey): Fix unicode handling.
9796 (grub_hfsplus_iterate_dir): Likewise.
9797 (grub_hfsplus_label): Likewise.
9798
48d6e456
VS
97992011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
9800
9801 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
9802
bf3a3857
VS
98032011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
9804
9805 Add missing const qualifiers.
9806
9807 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
9808 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
9809 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
9810 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
9811 (grub_lvm_check_flag): Likewise.
9812 * grub-core/efiemu/i386/coredetect.c
9813 (grub_efiemu_get_default_core_name): Likewise
9814 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9815 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9816 * grub-core/fs/ntfs.c (fixup): Likewise.
9817 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9818 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9819 (fzap_lookup): Likewise.
9820 (zap_lookup): Likewise.
9821 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9822 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9823 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9824 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9825 (grub_freebsd_add_meta_module): Likewise.
9826 (grub_cmd_freebsd_module): Likewise.
9827 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9828 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9829 (grub_xnu_writetree_get_size): Likewise.
9830 (grub_xnu_writetree_toheap_real): Likewise.
9831 (grub_xnu_find_key): Likewise.
9832 (grub_xnu_create_key): Likewise.
9833 (grub_xnu_create_value): Likewise.
9834 (grub_xnu_register_memory): Likewise.
9835 (grub_xnu_check_os_bundle_required): Likewise.
9836 (grub_xnu_scan_dir_for_kexts): Likewise.
9837 (grub_xnu_load_kext_from_dir): Likewise.
9838 * grub-core/normal/color.c (color_list): Likewise.
9839 * grub-core/normal/completion.c (current_word): Likewise.
9840 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9841 * grub-core/term/serial.c (grub_serial_find): Likewise.
9842 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9843 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9844 Likewise.
9845 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9846 (grub_freebsd_add_meta_module): Likewise.
9847 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9848 * include/grub/net.h (grub_net_card_driver): Likewise.
9849 (grub_net_card): Likewise.
9850 (grub_net_app_protocol): Likewise.
9851 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9852 * include/grub/serial.h (grub_serial_find): Likewise.
9853 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9854 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9855 (grub_xnu_create_value): Likewise.
9856 (grub_xnu_find_key): Likewise.
9857 (grub_xnu_scan_dir_for_kexts): Likewise.
9858 (grub_xnu_load_kext_from_dir): Likewise.
9859
9860 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9861 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9862 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9863 Moved from here ...
9864 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9865
112b4837
CW
98662011-11-28 Colin Watson <cjwatson@ubuntu.com>
9867
9868 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9869
49e891ac
VS
98702011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9871
9872 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9873 (read_device): Fix size calculation.
9874
fd258e5c
RM
98752011-11-25 Robert Millan <rmh@gnu.org>
9876
9877 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9878 (find_root_device_from_libzfs): Add zpool output parser to be used
9879 as fallback when libzfs isn't available.
9880
78845dc2
SG
98812011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9882
9883 * po/Makefile.in.in: Add missing escape-continuation.
9884
adac5211
VS
98852011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9886
9887 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9888
10b64f1c
VS
98892011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9890
9891 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9892
bb416954
VS
98932011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9894
9895 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9896
bdfe9eeb
VS
98972011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9898
9899 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9900
581ffa8a
VS
99012011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9902
9903 * grub-core/lib/adler32.c: Add missing license specification.
9904 * grub-core/lib/crc64.c: Likewise.
9905 * grub-core/loader/i386/pc/plan9.c: Likewise.
9906 * grub-core/partmap/plan.c: Likewise.
9907
2536cf64
LK
99082011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9909
9910 Add facility to debug GRUB with gdb under qemu.
9911
9912 * grub-core/gdb_grub.in: New file.
9913 * grub-core/gmodule.pl.in: Likewise.
9914 * grub-core/Makefile.core.def (gmodule.pl): New script.
9915 (gdb_grub): Likewise.
9916
bc108a4a
VS
99172011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9918
9919 * util/grub-mount.c (argp_parser): Accept relative pathes.
9920 * util/grub-fstest.c (argp_parser): Likewise.
9921
111c1778
VS
99222011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9923
9924 Plan9 support.
9925
9926 * Makefile.util.def (libgrubmods): Add
9927 grub-core/partmap/plan.c.
9928 * docs/grub.texi: Notice Plan9 support.
9929 * grub-core/Makefile.core.def (plan9): New module.
9930 (part_plan): Likewise.
9931 * grub-core/loader/i386/pc/plan9.c: New file.
9932 * grub-core/partmap/plan.c: Likewise.
9933 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9934 define.
9935 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9936 * include/grub/mm.h (grub_extend_alloc): New inline function.
9937
c30be3b6
VS
99382011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9939
9940 Make Reed-Solomon faster by using power of generator representation of
9941 GF(256)*.
9942
9943 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9944 (gf_double_t): Likewise.
9945 (gf_invert): Removed.
9946 (gf_powx): New array.
9947 (gf_powx_inv): Likewise.
9948 (scratch): Move higher.
9949 (gf_reduce): Removed.
9950 (gf_mul): Use powx.
9951 (gf_invert): Likewise.
9952 (init_inverts): Replaced with ...
9953 (init_powx): ...this. All users updated.
9954 (pol_evaluate): Replace multiplications with additions.
9955 (rs_encode): Likewise.
9956 (gauss_eliminate): Call gf_invert.
9957 (grub_reed_solomon_add_redundancy): Call init_powx.
9958 (grub_reed_solomon_recover): Call init_powx unconditionally.
9959
fa5aeffc
VS
99602011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9961
9962 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9963
a346b81c
VS
99642011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9965
9966 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9967 disk->partiton for safety.
9968
d89ee414
VS
99692011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9970
9971 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9972 Fix a memory leak.
9973 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9974
91ee7b6d
VS
99752011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9976
9977 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9978
91e5a33d
VS
99792011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9982
9edd7be2
VS
99832011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9984
9985 Fix spaces handling in proc/self/mountinfo.
9986
9987 * util/getroot.c (unescape): New function.
9988 (grub_find_root_device_from_mountinfo): Use unescape.
9989
ba102053
VS
99902011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9991
9992 Support ZFS embedding.
9993
9994 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9995 (grub_zfs_fs): Register grub_zfs_embed.
9996
aa94b870
VS
99972011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 Fix MIPS compilation.
10000
10001 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
10002 * include/grub/offsets.h: Rename decompressor fields from
10003 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
10004 * util/grub-mkimage.c (image_targets): Use new names.
10005
5fbdac14
VS
100062011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10007
10008 Defer multiboot device parsing until we're in compressed part.
10009
10010 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
10011 bsd_part. setdevice has fallen into disuse.
10012 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
10013 (bsd_part): Likewise.
10014 (boot_dev): New variable.
10015 (multiboot_trampoline): Don't parse multiboot device.
10016 Pass multiboot device in %edx.
10017 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
10018 grub_boot_device.
10019 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
10020 Likewise.
10021 * grub-core/kern/i386/pc/startup.S: Save edx.
10022 (grub_boot_drive): Removed.
10023 (grub_install_dos_part): Likewise.
10024 (grub_install_bsd_part): Likewise.
10025 (grub_boot_device): New variable.
10026 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
10027 (grub_install_bsd_part): Likewise.
10028 (grub_boot_drive): Likewise.
10029 (grub_boot_device): New variable.
10030 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
10031 Removed.
10032 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10033 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
10034 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
10035 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
10036 * util/grub-install.in: Remove redundant condition.
10037
691cbb58
VS
100382011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10039
10040 Fix bug introduced by previous commit.
10041
10042 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
10043
60240b8b
VS
100442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10045
10046 Use decompressors framework on i386-pc. It increases core size
10047 by 46 bytes but improves compatibility and maintainability.
10048
10049 * grub-core/Makefile.core.def (lzma_decompress): New image.
10050 (kernel): Add i386_pc_ldflags.
10051 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
10052 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
10053 to real_to_prot, prot_to_real and device info.
10054 * include/grub/offsets.h: Renamed decompressor offsets.
10055 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
10056 (image_target_desc): Remove raw_size and rename decompressor fields.
10057 (compress_kernel): Handle lzma.
10058 (generate_image): Handle decompressors on i386-pc.
10059
e9d3421c
VS
100602011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 * configure.ac: Add -fno-asynchronous-unwind-tables.
10063
2b23074a
VS
100642011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10065
10066 Move assembly code to C by using intwrap. It increases core size
10067 by 88 bytes but improves compatibility and maintainability.
10068
10069 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
10070 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
10071 ... here. Translated to C.
10072 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
10073 * grub-core/term/i386/pc/console.c (grub_console_getkey):
10074 ... here. Translated to C.
10075 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
10076 * grub-core/term/i386/pc/console.c (grub_console_getxy):
10077 ... here. Translated to C.
10078 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
10079 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
10080 ... here. Translated to C.
10081 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
10082 * grub-core/term/i386/pc/console.c (grub_console_cls):
10083 ... here. Translated to C.
10084 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
10085 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
10086 ... here. Translated to C.
10087 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
10088 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
10089 Translated to C.
10090 * grub-core/term/i386/pc/console.c (int10_9): New function.
10091 (grub_console_putchar): Likewise.
10092 * include/grub/i386/pc/console.h: Removed the not anymore shared
10093 functions.
10094
678f4b67
VS
100952011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
10096
10097 Move grub_chainloader_real_boot out of the kernel.
10098
10099 * grub-core/Makefile.am: Remove machine/loader.h.
10100 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10101 Removed.
10102 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
10103 variable.
10104 (grub_relocator16_keep_a20_enabled): Likewise.
10105 (grub_relocator16_boot): Fill new variables.
10106 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
10107 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
10108 relocator.
10109 (grub_chainloader_unload): Likewise.
10110 (grub_chainloader_cmd): Likewise.
10111 * include/grub/i386/pc/loader.h: Removed.
10112 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
10113 and esi. All initialisers updated.
10114
4626edf6
VS
101152011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
101162011-11-12 Colin Watson <cjwatson@ubuntu.com>
10117
10118 * Makefile.util.def (grub-mount): New util.
10119 * .bzrignore: Add grub-mount.
10120 * configure.ac: Check for fuse and enable grub-mount if available.
10121 * docs/man/grub-mount.h2m: New file.
10122 * util/grub-mount.c: Likewise.
10123
10f0117b
VS
101242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10125
10126 * grub-core/commands/efi/fixvideo.c: Gettextize.
10127 * grub-core/commands/hashsum.c: Likewise.
10128 * grub-core/commands/i386/cmostest.c: Likewise.
10129 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10130 * grub-core/commands/i386/pc/lsapm.c: Likewise.
10131 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10132 * grub-core/commands/lsmmap.c: Likewise.
10133 * grub-core/commands/menuentry.c: Likewise.
10134 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
10135 * grub-core/commands/setpci.c: Likewise.
10136 * grub-core/loader/i386/bsd.c: Likewise.
10137 * grub-core/loader/i386/linux.c: Likewise.
10138 * util/getroot.c: Likewise.
10139 * util/grub-editenv.c: Likewise.
10140 * util/grub-fstest.c: Likewise.
10141 * util/grub-mkfont.c: Likewise.
10142 * util/grub-mkimage.c: Likewise.
10143 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10144 * util/grub-pe2elf.c: Likewise.
10145 * util/grub-probe.c: Likewise.
10146 * util/grub-setup.c: Likewise.
10147 * util/ieee1275/ofpath.c: Likewise.
10148 * util/misc.c: Likewise.
10149 * util/raid.c: Likewise.
10150
566f779b
RM
101512011-11-11 Robert Millan <rmh@gnu.org>
10152
10153 * util/getroot.c (grub_util_get_geom_abstraction): Remove
10154 __attribute__((unused)) from `os_dev', which *is* being used.
10155
b50787de
VS
101562011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10157
10158 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
10159 forgotten define.
10160 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
10161 GRUB_IA64_DL_GOT_ALIGN.
10162 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
10163 GRUB_IA64_DL_TRAMP_ALIGN.
10164
119d11c8
VS
101652011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10166
10167 Replace grub_fatal with normal errors in i386 linux loader.
10168
10169 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
10170 (allocate_pages): Check find_efi_mmap_size return value.
10171 (grub_e820_add_region): Return error.
10172 (grub_linux_boot): Check mmap return value.
10173
6e0632e2
VS
101742011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10175
10176 * grub-core/commands/acpihalt.c: Gettextized.
10177 * grub-core/commands/cacheinfo.c: Likewise.
10178 * grub-core/commands/cmp.c: Likewise.
10179 * grub-core/commands/efi/loadbios.c: Likewise.
10180 * grub-core/commands/gptsync.c: Likewise.
10181 * grub-core/commands/ieee1275/suspend.c: Likewise.
10182 * grub-core/commands/legacycfg.c: Likewise.
10183 * grub-core/commands/memrw.c: Likewise.
10184 * grub-core/commands/minicmd.c: Likewise.
10185 * grub-core/commands/parttool.c: Likewise.
10186 * grub-core/commands/time.c: Likewise.
10187 * grub-core/commands/videoinfo.c: Likewise.
10188 * grub-core/disk/geli.c: Likewise.
10189 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
10190 * grub-core/disk/luks.c: Likewise.
10191 * grub-core/disk/lvm.c: Likewise.
10192 * grub-core/font/font_cmd.c: Likewise.
10193 * grub-core/fs/zfs/zfscrypt.c: Likewise.
10194 * grub-core/fs/zfs/zfsinfo.c: Likewise.
10195 * grub-core/gfxmenu/view.c: Likewise.
10196 * grub-core/kern/emu/hostdisk.c: Likewise.
10197 * grub-core/kern/emu/main.c: Likewise.
10198 * grub-core/kern/emu/misc.c: Likewise.
10199 * grub-core/kern/emu/mm.c: Likewise.
10200 * grub-core/kern/mips/arc/init.c: Likewise.
10201 * grub-core/kern/mips/loongson/init.c: Likewise.
10202 * grub-core/kern/partition.c: Likewise.
10203 * grub-core/lib/i386/halt.c: Likewise.
10204 * grub-core/lib/mips/arc/reboot.c: Likewise.
10205 * grub-core/lib/mips/loongson/reboot.c: Likewise.
10206 * grub-core/loader/i386/pc/chainloader.c: Likewise.
10207 * grub-core/loader/i386/xnu.c: Likewise.
10208 * grub-core/loader/multiboot.c: Likewise.
10209 * grub-core/net/bootp.c: Likewise.
10210 * grub-core/net/net.c: Likewise.
10211 * grub-core/normal/term.c: Likewise.
10212 * grub-core/partmap/bsdlabel.c: Likewise.
10213 * grub-core/parttool/msdospart.c: Likewise.
10214 * grub-core/term/gfxterm.c: Likewise.
10215 * grub-core/term/terminfo.c: Likewise.
10216 * grub-core/video/i386/pc/vbe.c: Likewise.
10217 * util/grub-menulst2cfg.c: Likewise.
10218 * util/grub-mkdevicemap.c: Likewise.
10219 * util/grub-mklayout.c: Likewise.
10220 * util/grub-mkrelpath.c: Likewise.
10221 * util/grub-script-check.c: Likewise.
10222 * util/ieee1275/grub-ofpathname.c: Likewise.
10223 * util/resolve.c: Likewise.
10224
073aa7a9
VS
102252011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10226
10227 Support %1$d syntax.
10228
10229 * tests/printf_unit_test.c: New file.
10230 * Makefile.util.def (printf_test): New test.
10231 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
10232
c76b5417
VS
102332011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10234
10235 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
10236 fix.
10237
df067ad1
VS
102382011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10239
10240 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
10241 dprintf.
10242 * grub-core/font/font.c (grub_font_load): Likewise.
10243
5b289bc5
VS
102442011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10245
10246 * util/grub-macho2img.c: Add comment concerning gettext.
10247 * grub-core/lib/legacy_parse.c: Likewise.
10248
c1860f87
VS
102492011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10250
10251 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
10252 (grub_xvasprintf): Likewise.
10253
d35d0d37
VS
102542011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10255
10256 Add const keyword to grub_env_get and gettextize week days.
10257
10258 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
10259 (grub_read_hook_datetime): Return const char *.
10260 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
10261 updated.
10262 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
10263 Mark for gettext.
10264 (grub_get_weekday_name): Return const char *. Call gettext.
10265 * grub-core/script/argv.c (grub_script_argv_append): Receive const
10266 char * and len as the argument. All users updated.
10267 (grub_script_argv_split_append): Receive const char *.
10268 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
10269 * include/grub/env.h (grub_env_get): Likewise.
10270 (grub_env_read_hook_t): Return const char *.
10271 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
10272 (grub_script_argv_split_append): Likewise.
10273
9aed8a71
VS
102742011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
10277
067fdf00
VS
102782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10279
10280 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
10281 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
10282
a8bd9d39
VS
102832011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10284
10285 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
10286 Fix prototype.
10287
f7ce5baf
VS
102882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10289
10290 Fix mips compilation.
10291
10292 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
10293 normal decoder.
10294 (hashes): Use in embed decoder as well (for sizes).
10295 (dec_stream_header): Fix embed decompressor logic.
10296 (dec_stream_footer): Likewise.
10297
9bb182f3
VS
102982011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10299
10300 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
10301 an error and not a fatal on unrecognised relocation types.
10302
63a9e6f6
VS
103032011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10304
10305 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
10306 Issue error rather than printf on unknown arguments.
10307
4c458569
VS
103082011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10309
10310 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
10311 Make buf a const.
10312
e2d22baf
VS
103132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10314
10315 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
10316 Fix module name.
10317
53dc8590
VS
103182011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10319
10320 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
10321 leftover debug printf.
10322
6c189294
VS
103232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10324
10325 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
10326
f7688369
VS
103272011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10328
10329 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
10330 A stylistic fix.
10331
11a775a3
VS
103322011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
10333
10334 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
10335
33f784e8
SL
103362011-11-10 Shea Levy <slevy@tieronedesign.com>
10337
10338 Allow all modules to perform serial IO
10339
10340 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
10341 * include/grub/serial.h (grub_serial_port_configure): New inline
10342 function.
10343 (grub_serial_port_fetch): Likewise.
10344 (grub_serial_port_put): Likewise.
10345 (grub_serial_port_fini): Likewise.
10346 (grub_serial_find): New proto.
10347
f6276525
VS
103482011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10349
10350 Put symlink at the end of the node and fix a potential
10351 memory corruption.
10352
10353 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
10354 Make symlink into an array.
10355 (set_rockridge): Set have_symlink and alloc_dirents.
10356 (grub_iso9660_read_symlink): Use new layout.
10357 (grub_iso9660_iterate_dir): Fix memory corruption.
10358 Use new layout.
10359 (grub_iso9660_dir): Set have_symlink.
10360 (grub_iso9660_open): Likewise.
10361
c3591189
VS
103622011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 Remove local keyword.
10365
10366 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
10367 (version_test_gt): Likewise.
10368 (version_find_latest): Likewise.
10369 (gettext_printf): Likewise.
10370 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
10371
cb544caa
VS
103722011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
10375
45bd824d
VS
103762011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10377
10378 Fix ZFS memory and resource leaks.
10379
10380 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
10381 All users updated.
10382 Free type on exit.
10383 (fill_vdev_info): New parameter inserted. All users updated.
10384 (check_pool_label): Likewise.
10385 (scan_disk): Likewise.
10386 (scan_devices): Close non-inserted disks.
10387 (fzap_iterate): Free l.
10388 (unmount_device): Free children descripto memory.
10389
ad9a2f44
VS
103902011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10391
10392 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
10393 argument (access out of bounds).
10394
6b68db81
VS
103952011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10396
10397 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
10398 >= 6 drives.
10399
28840fda
VS
104002011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
10401
10402 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
10403 Fix declaration.
10404
8a5a3a5b
VS
104052011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10406
10407 Fix several memory leaks.
10408
10409 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
10410 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
10411 (grub_cpio_dir): Likewise.
10412 * grub-core/fs/fat.c (grub_fat_label): Likewise.
10413 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
10414 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
10415 (grub_romfs_label): Likewise.
10416 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
10417 (squash_unmount): New function.
10418 (grub_squash_dir): Fix memory leak.
10419 (grub_squash_open): Likewise.
10420 (grub_squash_read): Likewise.
10421 (grub_squash_mtime): Likewise.
10422 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
10423 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
10424 * util/grub-fstest.c (fstest): Likewise.
10425
57b01250
VS
104262011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10427
10428 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
10429 avoid accessing beyond the array.
10430
19e81ba7
VS
104312011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10432
10433 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
10434
52b656c0
VS
104352011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
10436
10437 Several AFFS fixes.
10438
10439 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
10440 (GRUB_AFFS_FLAG_FFS): Removed.
10441 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
10442 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
10443 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
10444 (grub_fshelp_node): Make block 32-bit.
10445 Add block_cache and last_block_cache.
10446 (grub_affs_read_block): Fill and use block cache.
10447 (grub_affs_read_file): Removed.
10448 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
10449 boot block.
10450 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
10451 safety.
10452 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
10453 space.
10454 (grub_affs_close): Free block cache.
10455 (grub_affs_read): Use grub_fshelp_read_file directly.
10456
438a746a
VS
104572011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10458
10459 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
10460 with no error set.
10461
49a45021
VS
104622011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10463
10464 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
10465 used variable.
10466 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
10467 Likewise.
10468
3ae17eb8
VS
104692011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10470
10471 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
10472
10473 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
10474 byteswap when needed.
10475
27610c38
VS
104762011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10477
10478 Fix FreeBSD compilation.
10479
10480 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
10481 to avoid circular dependency.
10482 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
10483 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
10484 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
10485
4a19b601
VS
104862011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10487
10488 Fix ZFS crypto error types.
10489
10490 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
10491 (grub_gcm_decrypt): Likewise.
10492 (grub_zfs_load_key_real): Fix error code type. Handle possible error
10493 from PBKDF2.
10494
958ee221
VS
104952011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10496
10497 Illumos support.
10498
10499 * Makefile.util.def (10_illumos): New script.
10500 * configure.ac: Set COND_HOST_ILLUMOS.
10501 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
10502 Support Illumos calls.
10503 (find_partition_start) [__sun__]: Likewise.
10504 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
10505 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
10506 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
10507 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
10508 device.
10509 * util/grub-probe.c (probe) [__sun__]: Do character check.
10510 * util/grub.d/10_illumos.in: New file.
10511
cac14fb6
VS
105122011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10513
10514 Support escaped commas in hostdisk.
10515
10516 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
10517 (find_grub_drive): Use unescape_cmp.
10518 (make_device_name): Escape commas.
10519
78e08dc3
VS
105202011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10521
10522 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
10523
9f421dd1
VS
105242011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10525
10526 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
10527 variable.
10528
ed64e9e2
VS
105292011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
10530
10531 Support trampoline jumps on powerpc.
10532
10533 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
10534 __ia64__ path.
10535 (grub_dl_load_segments): Set mod->sz.
10536 (grub_dl_flush_cache): Flush whole space occupied by module, not just
10537 segments.
10538 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
10539 (jump): Likewise.
10540 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
10541 function.
10542 (trampoline): New struct.
10543 (trampoline_template): New const.
10544 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
10545 * include/grub/dl.h (grub_dl): Add sz element.
10546 [__powerpc__]: Follow __ia64__.
10547 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
10548 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
10549 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
10550 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
10551
3084ede4
VS
105522011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
10553
10554 ZFS crypto support.
10555
10556 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
10557 * grub-core/Makefile.core.def (zfscrypt): New module.
10558 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
10559 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
10560 it. All users updated.
10561 (grub_zfs_decrypt): New var.
10562 (grub_zfs_load_key): Likewise.
10563 (zio_checksum_functions): Add SHA256+MAC.
10564 (zio_checksum_verify): Handle incomplete comparison due to MAC.
10565 (zio_read): Handle encrypted blocks.
10566 (zap_verify): Remove incorrect check.
10567 (fzap_iterate): Handle non-standard fzap.
10568 (zap_iterate): Likewise.
10569 (zap_iterate_u64): New function.
10570 (dnode_get_fullpath): Load keys.
10571 * grub-core/fs/zfs/zfscrypt.c: New file.
10572 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
10573 (grub_crypto_ecb_encrypt): Make input const.
10574 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
10575 (grub_crypto_ecb_encrypt): Make input const.
10576 (GRUB_CIPHER_AES): New macro.
10577 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
10578 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
10579 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
10580 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
10581 prefix. All users updated.
10582 (grub_zfs_add_key): New proto.
10583 (grub_zfs_decrypt): Likewise.
10584 (grub_zfs_load_key): Likewise.
10585 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
10586 * util/grub-fstest.c (options): Add -K option.
10587 (argp_parser): Likewise.
10588
b632b404
VS
105892011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10590
10591 Support zle compression on ZFS.
10592
10593 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
10594 (decomp_table): Add zle.
10595 * include/grub/zfs/zio.h (zio_compress): Add zle.
10596
c7ba4f69
VS
105972011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10598
10599 Support BtrFS embedding.
10600
10601 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
10602 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
10603 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
10604 * util/grub-setup.c (setup): Use fs embedding if available.
10605 Add additional sanity check.
10606
455377d9
VS
106072011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
10608
10609 * util/grub-install.in: Fix condition for config_opt.
10610
c2fd16ca
VS
106112011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10612
10613 Support third redundancy strip on raidz3.
10614
10615 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
10616 Return error on singularity. All users updated.
10617 (read_device): Don't stop on 3rd failure on raidz3.
10618
8622923b
VS
106192011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10620
10621 Support case-insensitive ZFS subvolumes.
10622
10623 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
10624 All users updated.
10625 (zap_hash): Likewise.
10626 (name_cmp): New function.
10627 (zap_leaf_array_equal): New parameter case_insensitive.
10628 All users updated.
10629 (zap_leaf_lookup): Likewise.
10630 (fzap_lookup): Likewise.
10631 (zap_lookup): Likewise.
10632 (dnode_get_path): New parameter case_insensitive. Retrieve case
10633 sensitiviness of a volume. All users updated.
10634 (dnode_get_fullpath): New parameter case_insensitive.
10635 All users updated.
10636 (grub_zfs_dir): Set info.case_insensitiveness.
10637
95f2e860
VS
106382011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10639
10640 Support second redundancy strip on raidz(2,3).
10641
10642 * grub-core/fs/zfs/zfs.c (powx): New array.
10643 (powx_inv): Likewise.
10644 (poly): New const.
10645 (xor_out): New function.
10646 (gf_mul): Likewise.
10647 (recovery): Likewise.
10648 (read_device): Use second redundancy strip.
10649
11ee4389
VS
106502011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10651
10652 Use a power of generator representation of GF(256) multiplication group
10653 to save space time and complexity.
10654
10655 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
10656 (raid6_table2): Likewise.
10657 (powx): New array.
10658 (powx_inv): Likewise.
10659 (poly): New const.
10660 (grub_raid_block_mul): Replace with ...
10661 (grub_raid_block_mulx): ...this.
10662 (grub_raid6_init_table): Rewritten.
10663 (grub_raid6_recover): Use power of generator representation.
10664
09e2763f
VS
106652011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10666
10667 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
10668 for the right device.
10669
8bec9a28
VS
106702011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10671
10672 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
10673 expected by grub-mkimage and it's more clear since there is no implicit
10674 padding.
10675
dbd3a32e
VS
106762011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
10677
10678 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
10679 disk.
10680 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10681
182c872a
PMH
106822011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
10683
10684 * util/grub-mkrescue.in: Fix handling xorriso option.
10685
1e51cabd
VS
106862011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10687
10688 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
10689 NULL.
10690
9cc3581d 106912011-11-03 crocket <crockabiscuit@gmail.com>
10692
10693 * util/grub.d/10_linux.in: Add Slackware initrd naming.
10694
158dc1ea
VS
106952011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 XZ CRC64 and SHA256 support.
10698
10699 * Makefile.util.def (libgrubmods): Add crc64.c.
10700 * grub-core/Makefile.core.def (crc64): New module.
10701 * grub-core/lib/crc64.c: New file.
10702 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
10703 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
10704 Fix the type.
10705 (MAX_HASH_SIZE): New define.
10706 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
10707 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
10708 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10709 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
10710 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
10711 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
10712 Handle non-crc32 hashes.
10713 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
10714 (dec_stream_header): Handle non-crc32 hashes.
10715 (dec_stream_footer): Likewise.
10716 (dec_block_header): Likewise.
10717 (dec_main): Likewise.
10718 (xz_dec_init): Likewise.
10719 (xz_dec_reset): Likewise.
10720 (xz_dec_end): Likewise.
10721 * util/import_gcry.py: Add CRC64 line.
10722
9d9b3d2f
VS
107232011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10724
10725 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
10726 as well.
10727
7d0ac931
VS
107282011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10729
10730 Make reiserfs label retrieval similar to other *_label functions.
10731
10732 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
10733 (REISERFS_MAX_LABEL_LENGTH): Removed.
10734 (REISERFS_LABEL_OFFSET): Likewise.
10735 (grub_reiserfs_label): Rewritten.
10736
107372011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
10740 field.
10741
cf5ba824
VS
107422011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
10745
17744004
VS
107462011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10747
10748 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
10749 drive failure on both raidz and raidz2.
10750
aca5aefc
VS
107512011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 Fix RAIDZ(2) for >= 5 devices.
10754
10755 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
10756 asize argument. All users updated.
10757
ce8ca56e
VS
107582011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
10759
10760 Fix RAIDZ(2).
10761
10762 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
10763 (fill_vdev_info_real): Set ashift.
10764 (read_device): Rewrite RAIDZ part based on reverse engineering.
10765
7c01e783
VS
107662011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
10769 don't report potentially unavialiable fields in debug output.
10770 (find_path): Fix double-free and memory leak.
10771
ce109e84
VS
107722011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10773
10774 Read label on UFS1.
10775
10776 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
10777 (grub_ufs_fs): Always set .label.
10778
87661123
VS
107792011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10780
10781 Use shifts in UFS.
10782
10783 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
10784 (grub_ufs_data): New field log2_blksz.
10785 (grub_ufs_read_file): Use shifts.
10786 (grub_ufs_mount): Check block size and logarithm it.
10787
46bc1dc2
VS
107882011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
10789
10790 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
10791 long symlinks.
10792
19ee2987
VS
107932011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10794
10795 Handle symlinks and long names on tar and cpio.
10796
10797 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
10798 (ATTR_FILE): Likewise.
10799 (ATTR_DIR): Likewise.
10800 (ATTR_LNK): Likewise.
10801 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
10802 (grub_cpio_find_file): Fill mode, handle linkname field as well as
10803 L and K entries.
10804 (grub_cpio_mount): Zero-fill data.
10805 (handle_symlink): New function.
46bc1dc2
VS
10806 (grub_cpio_dir): Handle symlinks.
10807 (grub_cpio_open): Likewise.
10808 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 10809
c83a08d8
VS
108102011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10811
10812 Fix iso9660 filename limitations and fix memory leaks.
10813
10814 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10815 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10816
45cdd3ea
VS
108172011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 Fix JFS file name length limitations.
10820
10821 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10822 (grub_jfs_diropen): Fix maximum filename length.
10823 (grub_jfs_getent): Fix filename length.
10824 (grub_jfs_lookup_symlink): Fix size checks.
10825
94ef05c2
VS
108262011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10827
10828 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10829 string.
10830
785ab8c7
VS
108312011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10832
eb0b6b45
VS
10833 Leverage BFS implementation to read AFS.
10834
10835 * Makefile.util.def (libgrubmods): Add afs.c.
10836 * grub-core/Makefile.core.def (afs): New module
10837 * grub-core/fs/afs.c: New file.
10838 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10839
108402011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 10843
c4a1628f
VS
108442011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10845
10846 * grub-core/fs/bfs.c: Run indent.
10847
5825b379
VS
108482011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10849
10850 BFS implementation based on the specification.
10851
10852 * grub-core/fs/bfs.c: New file.
10853 * Makefile.util.def (libgrubmods): Add bfs.c.
10854 * grub-core/Makefile.core.def (bfs): New module.
10855
42b2a706
VS
108562011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10857
10858 * util/grub-fstest.c (cmd_cp): Clarify error message.
10859 (cmd_cmp): Likewise.
10860
61b99bfc
YB
108612011-10-30 Yves Blusseau <blusseau@zetam.org>
10862
10863 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10864 and befs_be.
10865
faba3d16
VS
108662011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10867
10868 Remove afs and befs because of copyright problem.
10869
10870 * grub-core/fs/afs.c: Removed.
10871 * grub-core/fs/afs_be.c: Removed.
10872 * grub-core/fs/befs.c: Removed.
10873 * grub-core/fs/befs_be.c: Removed.
10874 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10875 * grub-core/Makefile.core.def (afs): Removed.
10876 (afs_be): Likewise.
10877 (befs): Likewise.
10878 (befs_be): Likewise.
10879
c39224b0
VS
108802011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10881
10882 Prefer rockridge over Joliet.
10883
10884 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10885 to ...
10886 (set_rockridge): ... here.
10887 (grub_iso9660_mount): Check rockridge on the primary label when
10888 discovering. Ignore Joliet if Rockridge is present.
10889
e551115a
VS
108902011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10891
10892 Use shifts in nilfs2.
10893
10894 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10895 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10896 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10897 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10898 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10899 (grub_nilfs2_entries_per_block): Replaced with ...
10900 (grub_nilfs2_log_entries_per_block_log): ... this.
10901 (grub_nilfs2_blocks_per_group): Replaced with ...
10902 (grub_nilfs2_blocks_per_group_log): ... this.
10903 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10904 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10905 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10906 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10907 (grub_nilfs2_palloc_entry_offset): Replaced ...
10908 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10909 (grub_nilfs2_dat_translate): Use shifts.
10910 (grub_nilfs2_read_inode): Likewise.
10911 (GRUB_MOD_INIT): Ensure that logs are correct.
10912
564dd58c
VS
109132011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10914
10915 Use shifts in minix filesystem.
10916
10917 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10918 (GRUB_MINIX_ZONE2SECT): Likewise.
10919 (grub_minix_data): Replace block_size with log_block_size.
10920 (grub_minix_read_file): Use shifts.
10921 (grub_minix_mount): Check block size and take a logarithm.
10922
ed9ba06d
VS
109232011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10924
10925 Use shifts in squash4.
10926
10927 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10928 (squash_mount): Check block size and take logarithm.
10929 (direct_read): Use shifts.
10930
ad03fe76
VS
109312011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10932
10933 Correct befs block counting logic.
10934
10935 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10936 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10937 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10938 (grub_afs_read_inode): Use block_shift.
10939 (RANGE_SHIFT): New definition.
10940 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10941 unexpected conditions, use shifts and appropriate types.
10942 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10943
6563f63d
VS
109442011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10945
10946 * grub-core/disk/raid.c (scan_devices): Check partition.
10947 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10948
5b1ae25f
VS
109492011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10950
10951 Support BFS (befs) UUID.
10952
10953 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10954 (grub_afs_small_data_element_header): New struct.
10955 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10956 (grub_afs_read_attribute) [MODE_BFS]: New function.
10957 (grub_afs_iterate_dir): Allocate for complete inode.
10958 (grub_afs_mount): Likewise.
10959 (grub_afs_uuid) [MODE_BFS]: New function.
10960 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10961
f8d82408
VS
109622011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10963
10964 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10965 (zfs_unmount): Fix memory leak.
10966
5773fb64
VS
109672011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10968
10969 Support NTFS reparse points.
10970
10971 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10972 (symlink_descriptor): New struct.
10973 (grub_ntfs_read_symlink): New function.
10974 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10975 (grub_ntfs_open): Likewise.
10976
91c3fdde
VS
109772011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10978
10979 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10980
3be82e10
VS
109812011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10982
10983 fstest xnu_uuid subcommand.
10984
10985 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10986 grub-core/commands/xnu_uuid.c.
10987 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10988 (fstest): Handle xnu_uuid.
10989 (options): Document xnu_uuid.
10990 (argp_parser): Parse xnu_uuid.
10991
8e32442e
VS
109922011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10993
10994 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10995 -l argument. Add newline at the end if printing.
10996 (GRUB_MOD_INIT): Document -l.
10997
52a05075
VS
109982011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10999
11000 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
11001
1869edb5
VS
110022011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11003
11004 ZFS multi-device and version 33 support.
11005
11006 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
11007 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
11008 (grub_zfs_data): Add multidev-ice-related fields.
11009 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
11010 (dva_get_offset): Make dva const.
11011 (zfs_fetch_nvlist): New function.
11012 (fill_vdev_info_real): Likewise.
11013 (fill_vdev_info): Likewise.
11014 (check_pool_label): Likewise.
11015 (scan_disk): Likewise.
11016 (scan_devices): Likewise.
11017 (read_device): Likewise.
11018 (read_dva): Likewise.
11019 (zio_read_gang): Use read_dva.
11020 (zio_read_data): Likewise.
11021 (zap_leaf_lookup): Add missing endian conversion.
11022 (zap_verify): Add missing endian conversion. All users updated.
11023 (fzap_lookup): Likewise.
11024 (fzap_iterate): Likewise.
11025 (dnode_get_path): Handle SA bonus.
11026 (nvlist_find_value): Make input const. All users updated.
11027 (unmount_device): New function.
11028 (zfs_unmount): Use unmount_device.
11029 (zfs_mount): Use scan_disk.
11030 (zfs_mtime): New function.
11031 (grub_zfs_open): Handle system attributes.
11032 (fill_fs_info): Likewise.
11033 (grub_zfs_dir): Likewise.
11034 (grub_zfs_fs): Add mtime.
11035 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
11036 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
11037 (SA_MTIME_OFFSET): Likewise.
11038 (SA_SYMLINK_OFFSET): Likewise.
11039 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
11040 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
11041 (fstest): Support zfsinfo.
11042 (argp_parser): Likewise.
11043
186b4028
VS
110442011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
11045
11046 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
11047 error.
11048
110492011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
11050
11051 ZFS fixes.
11052
11053 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
11054 sharing the same block. Iterate over correct number of indices.
11055 (dnode_get_path): Handle symlinks correctly.
11056
c0584900
VS
110572011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11058
11059 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
11060
67e2bd71
VS
110612011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11062
11063 Read label on HFS+.
11064
11065 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
11066 (grub_hfsplus_btree_search): Fix types.
11067 (grub_hfsplus_label): Implement.
11068
e9cc6b7b
VS
110692011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11070
11071 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
11072
19832ddb
VS
110732011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
11076
66b40850
VS
110772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11078
11079 Fix symlink handling on iso9660.
11080
11081 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
11082 All users updated.
11083 (grub_iso9660_susp_iterate): Accept zero-size iterate.
11084 (grub_iso9660_read_symlink): Moved most of code ...
11085 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
11086
db821363
VS
110872011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11088
11089 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11090 Use union to avoid breaking strict-aliasing rules.
11091
e1211949
VS
110922011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11093
11094 Support multi-extent iso files.
11095
11096 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
11097 Add node.
11098 (grub_fshelp_node): Revamp. All users updated.
11099 (FLAG_*): New enum.
11100 (read_node): New function.
11101 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
11102 All users updated.
11103 (grub_iso9660_mount): Don't attempt to read sua when there is none.
11104 (get_node_size): New function.
11105 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
11106 entries.
11107 Fix memory leak on . and ..
11108 (grub_iso9660_read): Use read_node.
11109 (grub_iso9660_close): Free node.
11110
d4888031
VS
111112011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11112
11113 Fix tar 4G limit and handle paths containing dot.
11114
11115 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
11116 (canonicalize): New function.
11117 (grub_cpio_find_file): Use canonicalize. Store offs in
11118 grub_disk_addr_t.
11119 (grub_cpio_dir): Use grub_disk_addr_t.
11120 (grub_cpio_open): Likewise.
11121
9f12e664
VS
111222011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11123
11124 Fix handling of uncompressed blocks on squashfs and break 4G limit.
11125
11126 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
11127 unused flags.
11128 (grub_squash_inode): Add long_file and block_size.
11129 (grub_squash_cache_inode): New struct.
11130 (grub_squash_dirent): Make types into enum.
11131 (SQUASH_TYPE_LONG_REGULAR): New type.
11132 (grub_squash_frag_desc): Add field size.
11133 (SQUASH_BLOCK_FLAGS): New enum.
11134 (grub_squash_data): Use grub_squash_cache_inode.
11135 (grub_fshelp_node): Make ino_chunk 64-bit.
11136 (read_chunk): Minor argument change. All users updated.
11137 (squash_mount): Use correct le_to_cpu.
11138 (grub_squash_open): Handle LONG_REGULAR.
11139 (direct_read): New function.
11140 (grub_squash_read_data): Handle blocks correctly.
11141
9f326fba
VS
111422011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11143
11144 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
11145
f4d9b64b
VS
111462011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11147
11148 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
11149
5bbd28b8
VS
111502011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11151
11152 Fix 2G limit on ZFS.
11153
11154 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
11155 types.
11156 (uberblock_verify): Likewise.
11157 (dmu_read): Likewise.
11158 (grub_zfs_read): Likewise. Remove invalid cast.
11159
68c72069
VS
111602011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11161
11162 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
11163 (grub_jfs_blkno): Fix incorrect shift.
11164 (grub_jfs_read_file): Use more appropriate types.
11165
6e536dc8
VS
111662011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11167
11168 Support triple indirect on minix2 and minix3.
11169
11170 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
11171 Declare triple_indir_zone.
11172 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
11173 indirect.
11174
e0864e7a
VS
111752011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 Minix FS fixes.
11178
11179 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
11180 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
11181 Rename ctime to mtime. All users updated.
11182 (grub_minix_get_file_block): Fix types and double indirect computations.
11183
89481cab
VS
111842011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11185
11186 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
11187 if no label is found.
11188 (grub_fat_iterate_dir): Fix file size type.
11189 (grub_fat_iterate_dir): Likewise.
11190
f646e143
VS
111912011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11192
11193 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
11194 save some space.
11195 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
11196 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
11197
534d769e
VS
111982011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11199
11200 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
11201
e084ba18
VS
112022011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11203
11204 * util/import_gcry.py: Accept space between # and include.
11205
3471ecdf
VS
112062011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11207
11208 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
11209
124df5f6
VS
112102011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 Fine grainely disable warnings on lexer. Remove Wno-error on it.
11213
11214 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
11215 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
11216 yylex_strncpy.
11217 * grub-core/script/yylex.l: Add fine-grained #pragma.
11218
4defb8d5
VS
112192011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11220
11221 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
11222 New inline function.
11223 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
11224 Likewise.
11225 (memset) [GRUB_UTIL]: Likewise.
11226 (memcmp) [GRUB_UTIL]: Likewise.
11227
4e94ae65
VS
112282011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11229
11230 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
11231 inline function rather than a define.
11232
18c575e5
VS
112332011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11234
11235 * util/grub-setup.c: Add missing include.
11236
f8bc22a8
VS
112372011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * util/ieee1275/grub-ofpathname.c: Add missing include.
11240
3ce69fc9
VS
112412011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11242
11243 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
11244 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
11245 Likewise.
11246
d1e293bb
VS
112472011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
11250 grub_memcmp usage.
11251
7a5c54a4
VS
112522011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 * util/grub-install.in: Add datarootdir as per automake manual
11255 suggestion.
11256 * util/grub-mknetdir.in: Likewise.
11257
112582011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
11259
11260 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
11261 suggestion.
11262 * util/grub.d/10_kfreebsd.in: Likewise.
11263 * util/grub.d/10_linux.in: Likewise.
11264 * util/grub.d/10_netbsd.in: Likewise.
11265 * util/grub.d/10_windows.in: Likewise.
11266 * util/grub.d/20_linux_xen.in: Likewise.
11267
766f7d08
VS
112682011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
11269
11270 Remove redundant grub_kernel_image_size.
11271
11272 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
11273 _edata and _start.
11274 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
11275 the small code. It moves it only by few bytes but simplifies the code.
11276 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
11277 _start.
11278 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
11279 (grub_kernel_image_size): Removed.
11280 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
11281 (grub_kernel_image_size): Removed.
11282 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
11283 compiled with Apple toolchain.
11284 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
11285 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
11286 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
11287 (grub_total_module_size): Likewise.
11288 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
11289 Removed.
11290 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
11291 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
11292 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
11293 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
11294 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
11295 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
11296 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
11297 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
11298 Removed.
11299 (grub_total_module_size): Removed.
11300 * util/grub-mkimage.c (image_target_desc): Remove image_size.
11301 (image_targets): Likewise.
11302 Set .compressed_size to no field on sparc.
11303 (generate_image): Remove kernel_image_size handling.
11304
fcf1d672
SJ
113052011-10-19 Szymon Janc <szymon@janc.net.pl>
11306
11307 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
11308 NULL pointer dereference.
11309
de9c615e
VS
113102011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11311
11312 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
11313 done with a dedicated section.
11314
11315 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
11316 Ensure the correct position of boot_path.
11317 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
11318 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
11319 other fields.
11320 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
11321 * include/grub/boot.h: Removed. All references removed.
11322 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
11323 Removed.
11324 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
11325
e55599dc
VS
113262011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11327
11328 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
11329 name.
11330
36dd20ad
VS
113312011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11332
11333 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
11334
f8f72eb8
VS
113352011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11336
11337 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
11338 Don't add the bogus brackets.
11339
a374751b
VS
113402011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11341
11342 ExFAT support.
11343
11344 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
11345 * grub-core/Makefile.core.def (exfat): New module.
11346 * grub-core/fs/exfat.c: New file.
11347 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
11348 (GRUB_FAT_ATTR_*): Make into an enum.
11349 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
11350 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
11351 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
11352 (GRUB_FAT_MAXFILE): Removed.
11353 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
11354 (grub_current_fat_bpb_t): New type.
11355 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
11356 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
11357 (grub_fat_dir_node_t): New type.
11358 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
11359 (fat_log2) [MODE_EXFAT]: Removed.
11360 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
11361 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
11362 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
11363 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
11364 (grub_fat_label) [MODE_EXFAT]: New function.
11365 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
11366 reserved_first_sector to 0.
11367
544c2487
VS
113682011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
11369
11370 Move grub_reboot out of the kernel.
11371
11372 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
11373 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
11374 * grub-core/lib/efi/reboot.c: ... here.
11375 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
11376 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
11377 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
11378 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
11379 * grub-core/lib/i386/reboot_trampoline.S: ... here.
11380 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
11381 * grub-core/lib/ieee1275/reboot.c: ... here.
11382 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
11383 * grub-core/lib/mips/arc/reboot.c: ... here.
11384 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
11385 * grub-core/lib/mips/loongson/reboot.c: ...here.
11386 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
11387 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
11388 * include/grub/emu/misc.h (grub_reboot): New function declaration.
11389 * include/grub/i386/reboot.h: New file.
11390 * include/grub/mips/loongson/ec.h: Fix includes.
11391 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
11392 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
11393 * grub-core/lib/i386/reboot.c: New file.
11394
a97501d2
VS
113952011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
11396
11397 Make grub_prefix into module to fix the arbitrary limit and save
11398 some space.
11399
11400 * grub-core/kern/emu/main.c (grub_prefix): Removed.
11401 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
11402 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
11403 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
11404 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
11405 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
11406 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
11407 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
11408 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11409 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
11410 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
11411 * include/grub/ia64/efi/kernel.h: Removed.
11412 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
11413 (grub_prefix): Removed.
11414 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
11415 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
11416 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
11417 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
11418 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
11419 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
11420 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
11421 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
11422 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
11423 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
11424 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
11425 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
11426 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
11427 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
11428 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
11429 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
11430 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
11431 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
11432 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
11433 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
11434 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
11435 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
11436 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
11437 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
11438 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
11439 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
11440 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
11441 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
11442 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
11443 from module.
11444 * util/grub-mkimage.c (image_target_desc): Removed prefix and
11445 prefix_end.
11446 (image_targets): Likewise.
11447 (generate_image): Put prefix as a module.
11448
39705fad
VS
114492011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 Replace grub_module_iterate with FOR_MODULES.
11452
11453 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
11454 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
11455 (grub_efi_modules_addr): ...this.
11456 * grub-core/kern/efi/init.c (grub_modbase): New variable.
11457 (grub_efi_init): Set grub_modbase.
11458 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
11459 (grub_modbase): New variable.
11460 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
11461 (grub_modbase): New variable.
11462 (grub_machine_init): Set grub_modbase.
11463 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
11464 (grub_modbase): New variable.
11465 (grub_machine_init): Set grub_modbase.
11466 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
11467 (grub_modbase): New variable.
11468 (grub_machine_init): Set grub_modbase.
11469 * grub-core/kern/main.c (grub_module_iterate): Remove.
11470 (grub_modules_get_end): Use grub_modbase.
11471 (grub_load_modules): Use FOR_MODULES.
11472 (grub_load_config): Likewise.
11473 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
11474 (grub_modbase): New variable.
11475 (grub_machine_init): Set grub_modbase.
11476 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
11477 (grub_modbase): New variable.
11478 (grub_machine_init): Set grub_modbase.
11479 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
11480 Removed.
11481 (grub_modbase): New variable.
11482 (grub_machine_init): Set grub_modbase.
11483 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
11484 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
11485 (grub_module_iterate): Likewise.
11486 (grub_modbase): New variable declaration.
11487 (FOR_MODULES): New macro.
11488
2afb7f6c
VS
114892011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11490
11491 * configure.ac: Check for __ctzdi2 and __ctzsi2.
11492 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
11493
366e34fa
VS
114942011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 Fix few obvious type discrepancies.
11497
11498 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
11499 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
11500 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
11501 variable.
11502 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
11503 and connected types.
11504 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
11505 offset.
11506 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
11507 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
11508 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
11509 and connected types.
11510
177b960e
VS
115112011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11512
11513 Fix python 3.x incompatibilities.
11514
11515 * gentpl.py: Put brackets around print strings.
11516 * util/import_gcry.py: Open explicitly as utf-8.
11517 Use in instead of has_key.
11518
3b619ae1
VS
115192011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
11520
11521 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
11522 (GRUB_XFS_INO_AGBITS): Make into inline function.
11523 (GRUB_XFS_INO_INOINAG): Likewise.
11524 (GRUB_XFS_INO_AG): Likewise.
11525 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
11526 (GRUB_XFS_EXTENT_OFFSET): Likewise.
11527 (GRUB_XFS_EXTENT_BLOCK): Likewise.
11528 (GRUB_XFS_EXTENT_SIZE): Likewise.
11529 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
11530 (GRUB_XFS_NEXT_DIRENT): Likewise.
11531 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
11532 (grub_xfs_read_file): Fix offset type.
11533
8bcebcb8
RM
115342011-10-15 Robert Millan <rmh@gnu.org>
11535
11536 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
11537
0017e5ef
RM
115382011-10-15 Robert Millan <rmh@gnu.org>
11539
11540 Fix build problem on FreeBSD and GNU/kFreeBSD.
11541
11542 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
11543
d8919552
VS
115442011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11545
11546 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
11547
11548 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
11549 types.
11550 (grub_hfsplus_btree_recoffset): Likewise.
11551 (grub_hfsplus_btree_recptr): Likewise.
11552 (grub_hfsplus_find_block): Likewise.
11553 (grub_hfsplus_btree_search): Likewise.
11554 (grub_hfsplus_read_block): Likewise.
11555 (grub_hfsplus_read_file): Likewise.
11556 (grub_hfsplus_mount): Likewise.
11557 (grub_hfsplus_btree_iterate_node): Likewise.
11558 (grub_hfsplus_btree_search): Likewise.
11559 (grub_hfsplus_iterate_dir): Likewise.
11560 (grub_hfsplus_read): A small code simplification.
11561
c81296b6
VS
115622011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11563
11564 * grub-core/kern/emu/hostdisk.c
11565 (convert_system_partition_to_system_disk): Don't assume that children
11566 of mapper nodes are mapper nodes.
11567
0eb8ffb1
VS
115682011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
11569
11570 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
11571 * include/grub/misc.h (grub_isxdigit): New function.
11572 * grub-core/video/colors.c (my_isxdigit): Removed. All users
11573 switched to grub_isxdigit.
11574 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
11575 number starting with a letter.
11576
a98f4a08
RM
115772011-10-09 Robert Millan <rmh@gnu.org>
11578
11579 LVM support for FreeBSD and GNU/kFreeBSD.
11580
11581 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
11582 GNU/kFreeBSD.
11583 (LVM_DEV_MAPPER_STRING): Move from here ...
11584 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
11585 * util/getroot.c: Include `<grub/util/lvm.h>'.
11586 (grub_util_get_dev_abstraction): Enable
11587 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
11588 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
11589 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
11590 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
11591 support it.
11592 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
11593 GNU/kFreeBSD.
11594 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
11595 when LVM abstraction is required for ${GRUB_DEVICE}.
11596
050e8e90
SJ
115972011-10-06 Szymon Janc <szymon@janc.net.pl>
11598
11599 Add support for LZO compression in GRUB:
11600 - import of minilzo library,
11601 - LZO decompression for btrfs,
11602 - lzop files decompression.
11603
11604 * grub-core/io/lzopio.c: New file.
11605 * grub-core/lib/adler32.c: Likewise.
11606 * grub-core/lib/minilzo/lzoconf.h: Likewise.
11607 * grub-core/lib/minilzo/lzodefs.h: Likewise.
11608 * grub-core/lib/minilzo/minilzo.c: Likewise.
11609 * grub-core/lib/minilzo/minilzo.h: Likewise.
11610 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
11611 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
11612 grub-core/lib/minilzo/minilzo.c to common.
11613 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
11614 cflags in cppflags.
11615 * grub-core/Makefile.core.def (btrfs): Likewise.
11616 * grub-core/Makefile.core.def (lzopio): New module.
11617 (adler32): Likewise.
11618 * grub-core/fs/btrfs.c: Include minilzo.h.
11619 (GRUB_BTRFS_COMPRESSION_LZO): New define.
11620 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
11621 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
11622 (grub_btrfs_lzo_decompress): New function.
11623 (grub_btrfs_extent_read): Add support for LZO compression type.
11624 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
11625 (GRUB_USHRT_MAX): Likewise.
11626 (GRUB_UINT_MAX): Likewise.
11627 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
11628 (UINT_MAX): Likewise.
11629 (CHAR_BIT): Likewise.
11630 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
11631 grub-core/lib/posix_wrap/limits.h
11632 (UCHAR_MAX): Likewise.
11633 * include/grub/file.h (grub_file_filter_id): New compression filter
11634 GRUB_FILE_FILTER_LZOPIO.
11635 * include/grub/file.h (grub_file_filter_id): Set
11636 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
11637 * include/grub/types.h (grub_get_unaligned16): New function.
11638 (grub_get_unaligned32): Likewise.
11639 (grub_get_unaligned64): Likewise.
11640 * util/import_gcry.py (cryptolist): Add adler32.
11641
0eb8ffb1
VS
116422011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
11643
11644 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
11645 in perspective decreases the complexity of build system and fixes
11646 compilation right now.
11647
ce79cc99 116482011-10-01 Ales Nesrsta <starous@volny.cz>
11649
11650 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
11651 (fixed problem related to using UHCI with coreboot).
11652
8667a314
BC
116532011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11654
11655 * gentpl.py: Use Autogen macros so that the output template file
11656 (Makefile.tpl) size is reduced.
11657
fc5efcc0
MK
116582011-09-29 Mads Kiilerich <mads@kiilerich.com>
11659
11660 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
11661 extra_dist.
11662
d1ab689d
ML
116632011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11664
11665 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
11666 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
11667
c05de032
ML
116682011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11669
11670 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
11671 _fullpath.
11672
cca7ccd8
ML
116732011-09-29 Mario Limonciello <mario_limonciello@dell.com>
11674
11675 Remove extra declaration of sleep for mingw32.
11676
11677 * util/misc.c (sleep) [__MINGW32__]: Removed.
11678 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
11679
e0b0dc83
GS
116802011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
11681
11682 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
11683 type and packname.
11684 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
11685 Resurrected.
11686 (NETBSD_BTINFO_BOOTWEDGE): New definition.
11687 (grub_netbsd_btinfo_bootwedge): New struct.
11688 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
11689 New function.
11690 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
11691
91a1a164
TH
116922011-09-28 Thomas Haller <thomas.haller@fen-net.de>
11693
11694 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
11695 loader.
11696
2ded951e
AB
116972011-09-28 Andreas Born <futur.andy@googlemail.com>
11698
11699 Fix incorrect identifiers in bash-completion.
11700
11701 * util/bash-completion.d/grub-completion.bash.in
11702 (_grub_mkpasswd-pbkdf2): Rename to ...
11703 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
11704 (_grub_script-check): Rename to ...
11705 (_grub_script_check): ... this. All users updated.
11706
69915030
VS
117072011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
11708
11709 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11710 Return 0 if disk isn't biosdisk.
11711
20fd15f9
GS
117122011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11713
11714 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
11715 on NetBSD.
11716 * Makefile.util.def (grub-fstest): Likewise.
11717
1a7d7db9
GS
117182011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
11719
11720 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
11721 Get sector size from disk label.
11722
2221ab6c
CW
117232011-09-05 Colin Watson <cjwatson@ubuntu.com>
11724
11725 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
11726 */README* as well as README*.
11727 Reported by: Axel Beckert.
11728
ca51c4a0
VS
117292011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
11732 case of less than 256 MiB of RAM.
11733
ab80f326
VS
117342011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11735
11736 * grub-core/commands/wildcard.c (make_regex): Handle @.
11737
4155e697
VS
117382011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 * util/grub-install.in: Move cryptodisk logic to appropriate place.
11741
ab178c08
SJ
117422011-08-21 Szymon Janc <szymon@janc.net.pl>
11743
11744 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
11745 AC_LANG_CONFTEST macros.
11746
7dc3c686
SJ
117472011-08-20 Szymon Janc <szymon@janc.net.pl>
11748
11749 Add grub-fstest option to uncompress data for commands.
11750
11751 * util/grub-fstest.c (uncompress): New var.
11752 (options): New option -u.
11753
fe8d4a7b
SJ
117542011-08-20 Szymon Janc <szymon@janc.net.pl>
11755
11756 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
11757 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
11758
a5219af1
SJ
117592011-08-20 Szymon Janc <szymon@janc.net.pl>
11760
11761 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
11762 file type was not recognized correctly (not gzip or corrupted).
11763
f87abff5
VS
117642011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11765
11766 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
11767 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
11768
d94497ea
VS
117692011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11770
11771 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
11772 loongson.
11773 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
11774 video_radeon_fuloong2e.
11775 * grub-core/video/radeon_fuloong2e.c: New file.
11776 * include/grub/video.h (grub_video_id_t): Add new ID
11777 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
11778
0d1fd011
VS
117792011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11780
11781 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
11782 define.
11783 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
11784 that PRID matches the detected subplatform and reset the subplatform
11785 if it doesn't.
11786
84beb0ee
VS
117872011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11788
11789 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
11790
1227c133
VS
117912011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11792
11793 Fix PCI iterating on functions >= 4.
11794
11795 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
11796 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
11797 Removed.
11798 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
11799 (grub_pci_read): Fix bitmask.
11800 (grub_pci_read_word): Likewise.
11801 (grub_pci_read_byte): Likewise.
11802 (grub_pci_write): Likewise.
11803 (grub_pci_write_word): Likewise.
11804 (grub_pci_write_byte): Likewise.
11805
9594c689
VS
118062011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11807
11808 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
11809 can still be specified in TARGET_CFLAGS)
11810
14a2562c
VS
118112011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11812
11813 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11814
11815 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11816 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11817 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11818 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11819 (FULOONG): Rename to ...
11820 (FULOONG2F): ... this. All users updated.
11821 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11822 (machtype_fuloong2f_str): ... this.
11823 (machtype_fuloong2e_str): New string.
11824 Check for machtype_fuloong2e_str.
11825 * grub-core/loader/mips/linux.c (loongson_machtypes)
11826 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11827 * grub-core/term/serial.c (loongson_defserial)
11828 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11829 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11830 loongson_defserial.
11831 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11832 Rename to ...
11833 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11834 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11835 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11836 to IMAGE_FULOONG2F_FLASH. All users updated.
11837 (image_targets): Rename images.
11838 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11839
b526cbb6
SJ
118402011-08-19 Szymon Janc <szymon@janc.net.pl>
11841
11842 Make enable of disk cache statistics code configurable.
11843
11844 * configure.ac: --enable-cache-stats added.
11845 * config.h.in (DISK_CACHE_STATS): New define.
11846 * grub-core/Makefile.core.def (cacheinfo): New command.
11847 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11848 * grub-core/commands/cacheinfo.c: New file.
11849 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11850 moved to cacheinfo.c.
11851 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11852 debug code.
11853 * include/grub/disk.h: Likewise.
11854
fb739ccd
SJ
118552011-08-19 Szymon Janc <szymon@janc.net.pl>
11856
11857 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11858 * grub-core/Makefile.am: Likewise.
11859
2bba8cfd
VS
118602011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11861
11862 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11863 non-zero pull.
11864
43526629
VS
118652011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11866
11867 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11868 All users updated.
11869 (grub_jfs_lookup_symlink): Use correct starting inode.
11870
5c144cc8
VS
118712011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11872
11873 * util/grub-setup.c (main): Add missing gcry initialisation.
11874
b1257f65
VS
118752011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11876
11877 Don't accept text modes on EFI when booting Linux.
11878
11879 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11880 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11881
828bc390
ML
118822011-08-15 Mario Limonciello <mario_limonciello@dell.com>
118832011-08-15 Colin Watson <cjwatson@ubuntu.com>
11884
11885 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11886 use of "/path/.." as in grub-install for EFI as well as handling
11887 symlinks correctly.
11888 Fixes Debian bug #637768.
11889
5f60ccac
CW
118902011-08-15 Colin Watson <cjwatson@ubuntu.com>
11891
11892 * util/grub-probe.c: Remove duplicate #include.
11893
6dc212f9
RM
118942011-08-10 Robert Millan <rmh@gnu.org>
11895
11896 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11897
11898 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11899 function.
11900 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11901 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11902
66816d85
RM
119032011-08-03 Robert Millan <rmh@gnu.org>
11904
11905 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11906 la_array as packed.
11907 Reported by: Zachary Bedell
11908
20168fca
CW
119092011-07-26 Colin Watson <cjwatson@ubuntu.com>
11910
11911 * configure.ac: The Loongson port requires grub-mkfont due to its
11912 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11913 be built.
11914
303b6246
CW
119152011-07-26 Colin Watson <cjwatson@ubuntu.com>
11916
11917 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11918 processing arguments (otherwise help2man fails when GRUB has not yet
11919 been installed).
11920
6795300e
VS
119212011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11922
41aa28ea
VS
11923 New script grub-mkstandalone.
11924
11925 * Makefile.util.def (grub-mkstandalone): New script.
11926 * docs/man/grub-mkstandalone.h2m: New file.
11927 * util/grub-mkstandalone.in: Likewise.
11928
119292011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11930
11931 Support ATA disks with 4K sectors.
6795300e
VS
11932
11933 * include/grub/ata.h (grub_ata): New member log_sector_size.
11934 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11935 (grub_ata_identify): Read sector size.
11936 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11937
92227597
VS
119382011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * util/grub-install.in: Don't use uhci outside of x86.
11941
c77069f5
VS
119422011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11943
11944 * util/grub-mkrescue.in: Add missing quotes.
11945
119462011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
11947
11948 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11949 dereference.
11950
583168a2
VS
119512011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11952
11953 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11954
6be1c01f
VS
119552011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11956
11957 * include/grub/video.h: add missing EXPORT_FUND on
11958 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11959
a1167439
VS
119602011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11961
11962 * include/grub/mips/kernel.h: Fix define conflict.
11963
bf66054f
VS
119642011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11965
11966 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11967 all four ways.
11968
8fc4fa45
CW
119692011-07-21 Colin Watson <cjwatson@ubuntu.com>
11970
11971 Preferred resolution detection for VBE.
11972
11973 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11974 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11975 the Flat Panel extension, in line with the X.org VESA driver.
11976 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11977 New function.
11978 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11979 (grub_vbe_bios_read_edid): Likewise.
11980 (grub_vbe_get_preferred_mode): Likewise.
11981 (grub_video_vbe_setup): When the mode is "auto", try to get the
11982 preferred mode from VBE, and use the largest mode that is no larger
11983 than the preferred mode (some BIOSes expose a preferred mode that is
11984 not in their mode list!). If this fails, fall back to 640x480 as a
11985 safe conservative choice.
11986 (grub_video_vbe_get_edid): New function.
11987 (grub_video_vbe_adapter): Add get_edid.
11988 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11989 (struct grub_video_adapter): Add get_edid.
11990 (grub_video_edid_checksum): Add prototype.
11991 (grub_video_edid_preferred_mode): Likewise.
11992 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11993 structure.
11994
11995 * grub-core/commands/videoinfo.c (print_edid): New function.
11996 (grub_cmd_videoinfo): Print EDID if available.
11997
11998 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11999 is more appropriate on a wider range of platforms than 640x480.
12000 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
12001 documentation.
12002
ca5572a9
VS
120032011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
12006
e4bcf625
VS
120072011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12008
12009 * po/POTFILES.in: Regenerate.
12010
c4edd548
VS
120112011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
12014 incorrect memory usage.
12015
16a2bab0
VS
120162011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12017
12018 * util/grub-install.in: Source grub-mkconfig_lib.
12019
2e418de6
VS
120202011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 Remove getroot.c from core on emu platform.
12023
12024 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
12025 kern/emu/raid.c.
12026 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
12027 useless.
12028 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
12029 * util/getroot.c (get_win32_path): ... here.
12030 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
12031 * util/getroot.c (fini_libzfs): ... here.
12032 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
12033 * util/getroot.c (grub_get_libzfs_handle): ... here.
12034 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
12035 Moved from here...
12036 * util/getroot.c (grub_find_zpool_from_dir): ... here.
12037 * grub-core/kern/emu/misc.c
12038 (grub_make_system_path_relative_to_its_root): Moved from here...
12039 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
12040 * grub-core/kern/emu/getroot.c: Moved from here ...
12041 * util/getroot.c: ... here. All users updated.
12042 * grub-core/kern/emu/raid.c: Moved from here ...
12043 * util/raid.c: ... here. All users updated.
12044
def9832a
VS
120452011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
12046
12047 * po/POTFILES.in: Regenerate.
12048
cd8fe79a
VS
120492011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12050
12051 Fix compilation on GNU/Linux.
12052
12053 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
12054 Disable geli.
12055 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
12056 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
12057 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
12058
a251b719
VS
120592011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
120602011-07-07 Michael Gorven <michael@gorven.za.net>
120612011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
12062
12063 LUKS and GELI support.
12064
12065 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
12066 grub-core/disk/luks.c, grub-core/disk/geli.c,
12067 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
12068 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
12069 grub-core/lib/arg.c.
12070 (libgrubmods.a): Remove gcrypts cflags and cppflags.
12071 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
12072 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
12073 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
12074 (grub-bin2h): Add libgcry.a.
12075 (grub-mkimage): Likewise.
12076 (grub-mkrelpath): Likewise.
12077 (grub-script-check): Likewise.
12078 (grub-editenv): Likewise.
12079 (grub-mkpasswd-pbkdf2): Likewise.
12080 (grub-pe2elf): Likewise.
12081 (grub-fstest): Likewise.
12082 (grub-mkfont): Likewise.
12083 (grub-mkdevicemap): Likewise.
12084 (grub-probe): Likewise.
12085 (grub-ofpath): Likewise.
12086 (grub-mklayout): Likewise.
12087 (example_unit_test): Likewise.
12088 (grub-menulst2cfg): Likewise.
12089 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
12090 * grub-core/Makefile.core.def (cryptodisk): New module.
12091 (luks): Likewise.
12092 (geli): Likewise.
12093 * grub-core/disk/AFSplitter.c: New file.
12094 * grub-core/disk/cryptodisk.c: Likewise.
12095 * grub-core/disk/geli.c: Likewise.
12096 * grub-core/disk/luks.c: Likewise.
12097 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
12098 grub_util_is_lvm.
12099 (grub_util_get_dm_abstraction): New function.
12100 (grub_util_follow_gpart_up): Likewise.
12101 (grub_util_get_geom_abstraction): Likewise.
12102 (grub_util_get_dev_abstraction): Use new functions.
12103 (grub_util_pull_device): Pull GELI and LUKS.
12104 (grub_util_get_grub_dev): Handle LUKS and GELI.
12105 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
12106 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
12107 (follow_geom_up): Removed.
12108 (grub_util_fd_seek): New function.
12109 (open_device): Use grub_util_fd_seek.
12110 (nread): Rename to ..
12111 (grub_util_fd_read): ... this. All users updated.
12112 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
12113 (grub_crypto_cbc_decrypt): Likewise.
12114 (grub_crypto_hmac_write): Likewise.
12115 (grub_crypto_hmac_buffer): Likewise.
12116 (grub_password_get): Extend to util.
12117 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
12118 New member modname.
12119 (gcry_md_spec) [GRUB_UTIL]: Likewise.
12120 * include/grub/cryptodisk.h: New file.
12121 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
12122 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
12123 LUKS and GELI.
12124 (grub_util_follow_gpart_up): New proto.
12125 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
12126 (grub_util_fd_read): Likewise.
12127 (grub_cryptodisk_cheat_mount): Likewise.
12128 (grub_util_cryptodisk_print_uuid): Likewise.
12129 (grub_util_get_fd_sectors): Likewise.
12130 * util/grub-fstest.c (mount_crypt): New var.
12131 (fstest): Mount crypto if requested.
12132 (options): New option -C.
12133 (argp_parser): Parse -C.
12134 (main): Init and fini gcry.
12135 * util/grub-install.in: Support cryptodisk install.
12136 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
12137 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
12138 cryptodisk.
12139 (prepare_grub_to_access_device): Likewise.
12140 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
12141 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
12142 (probe_cryptodisk_uuid): New function.
12143 (probe_abstraction): Likewise.
12144 (probe): Use new functions.
12145 * util/import_gcry.py: Create Makefile.utilgcry.def.
12146 Add modname member.
12147
9bfdcbbc
VS
121482011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12149
12150 Lazy device scanning.
12151
12152 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
12153 (grub-setup): Remove util/raid.c.
12154 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
12155 * grub-core/disk/lvm.c (scan_depth): New variable.
12156 (grub_lvm_iterate): Rescan if necessary.
12157 (find_lv): New function based on grub_lvm_open.
12158 (grub_lvm_open): Use find_lv. Rescan on error.
12159 (is_node_readable): New function.
12160 (is_lv_readable): Likewise.
12161 (grub_lvm_scan_device): Skip already found disks.
12162 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
12163 Stop if searched device is found and readable.
12164 * grub-core/disk/raid.c (inscnt): New variable.
12165 (scan_depth): Likewise.
12166 (scan_devices): New function based on grub_raid_register. Abort if
12167 looked for device is found.
12168 (grub_raid_iterate): Rescan if needed.
12169 (find_array): NEw function based on -grub_raid_open.
12170 (grub_raid_open): Use find_array and rescan.
12171 (insert_array): Set became_readable_at.
12172 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
12173 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
12174 New function.
12175 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
12176 (grub_util_pull_device): New function.
12177 (grub_util_get_grub_dev): Call grub_util_pull_device.
12178 * util/raid.c: Moved to ..
12179 * grub-core/kern/emu/raid.c: ... here.
12180 (grub_util_raid_getmembers): New parameter "bootable".
12181 All users updated. Support 1.x.
12182 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
12183 All users updated.
12184 * include/grub/disk.h (grub_disk_pull_t): New enum.
12185 (grub_disk_dev): Change iterate prototype.
12186 All users updated.
12187 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
12188 New proto.
12189 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
12190 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
12191 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
12192 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
12193 All users updated.
12194 * include/grub/util/raid.h: Removed.
12195
1c358e59
VS
121962011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12197
12198 * po/POTFILES.in: Regenerate.
12199
abee94ed
VS
122002011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
12201
12202 Unify sparc init with other ieee1275.
12203
12204 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
12205 instead of kern/sparc64/ieee1275/init.c.
12206 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
12207 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
12208 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
12209 grub/machine/kernel.h.
12210 (grub_ieee1275_original_stack) [__sparc__]: New variable.
12211 (grub_claim_heap) [__sparc__]: Use sparc version.
12212 (grub_machine_init): Moved args parsing to
12213 (grub_parse_cmdline): ...this.
12214 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
12215 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
12216 New definition.
12217 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
12218
12219 Move BOOTP to separate file.
12220
12221 * grub-core/Makefile.core.def (net): Add net/bootp.c.
12222 * grub-core/net/net.c: Move all BOOTP functions to
12223 * grub-core/net/bootp.c: ... here.
12224
12225 Use frame interface on PXE.
12226
12227 * grub-core/Makefile.core.def (pxecmd): Removed.
12228 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
12229 * grub-core/commands/i386/pc/pxecmd.c: Removed.
12230 * grub-core/i386/pc/pxe.c: Moved from here ...
12231 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
12232 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
12233 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
12234
12235 EFI network support.
12236
12237 * grub-core/Makefile.core.def (efinet): New module.
12238 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
12239 here...
12240 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
12241 All users updated.
12242 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
12243 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
12244 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
12245 * grub-core/net/drivers/efi/efinet.c: New file.
12246 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
12247 (grub_efi_net_config): New extern var.
12248
12249 Various cleanups and bugfixes.
12250
12251 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
12252 error.
12253 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
12254 disk declared as partition.
12255 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
12256 leak on failure.
12257 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
12258 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
12259 (grub_debug_zalloc): Likewise.
12260 (grub_debug_realloc): Likewise.
12261 (grub_debug_memalign): Likewise.
12262 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
12263 Check that target is IPv4.
12264 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
12265 local-mac-address as fallback.
12266 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
12267 memory leak.
12268 * grub-core/net/ip.c (ipchksum): Rename to ...
12269 (grub_net_ip_chksum): ... this. All users updated.
12270 (grub_net_recv_ip_packets): Special handling for DHCP.
12271 * util/grub-mkimage.c (generate_image): Zero-out aout header.
12272
12273 Unify prefix handling
12274
12275 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
12276 (grub_machine_get_bootlocation): ... this.
12277 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
12278 (grub_machine_get_bootlocation): ... this.
12279 (grub_prefix): New variable.
12280 (prefix): Removed.
12281 (root_dev): New variable.
12282 (dir): Likewise.
12283 (main): Use new variables.
12284 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
12285 Revamped into ...
12286 (grub_machine_get_bootlocation): ... this.
12287 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
12288 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
12289 (grub_machine_get_bootlocation): ... this.
12290 (grub_machine_set_prefix): Removed.
12291 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
12292 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
12293 Revamped into ...
12294 (grub_machine_get_bootlocation): ... this.
12295 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
12296 (grub_set_prefix_and_root): ... this. All users updated.
12297 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
12298 Revamped into ...
12299 (grub_machine_get_bootlocation): ... this.
12300 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
12301 (grub_machine_get_bootlocation): New proto.
12302 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
12303
12304 Less intrusive and more reliable seek on network implementation.
12305
12306 * grub-core/kern/file.c (grub_file_net_seek): Removed.
12307 (grub_file_seek): Don't call grub_file_net_seek.
12308 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
12309 (grub_net_fs_read_real): .. this.
12310 (grub_net_seek_real): Use net->offset.
12311 (grub_net_fs_read): Seek if necessary.
12312
12313 Unify IEEE1275 netwotk config with the other platforms.
12314
12315 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
12316 New variable.
12317 (grub_machine_get_bootlocation): Support network.
12318 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
12319 Support type and device parsing.
12320 (grub_ieee1275_get_device_type): New function.
12321 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
12322 into ...
12323 (grub_ieee1275_net_config_real): ... this.
12324 (grub_ofnet_probecards): Removed.
12325 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
12326 * include/grub/ieee1275/ofnet.h: Removed.
12327 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
12328 extern var.
12329 (grub_ieee1275_get_device_type): New function.
12330
12331 Unify network device closing across platforms and make more robust.
12332
12333 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
12334 grub_grubnet_fini.
12335 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
12336 already.
12337 * grub-core/net/net.c (grub_net_network_level_interface_register):
12338 Update num_ifaces.
12339 (grub_net_card_unregister): Close all interfaces.
12340 (receive_packets): Don't poll if no iterfaces are registered.
12341 Open if necessary.
12342 (grub_net_fini_hw): New function.
12343 (grub_net_restore_hw): Likewise.
12344 (fini_hnd): New variable.
12345 (GRUB_MOD_INIT): Register preboot hook.
12346 (GRUB_MOD_FINI): Run and unregister preboot hook.
12347
12348 Poll network cards when idle.
12349
12350 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
12351 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
12352 * grub-core/net/net.c (receive_packets): Save last poll time.
12353 (grub_net_poll_cards_idle_real): New function.
12354 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
12355 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
12356 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
12357
12358 Rename ofnet interfaces.
12359
12360 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
12361 (grub_ofnet_findcards): Use ofnet_%s names.
12362
12363 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
12364
12365 Cleanup socket opening.
12366
12367 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
12368 (grub_net_fs_close): Likewise.
12369 (grub_net_fs_read_real): Use eof member.
12370 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
12371 (+grub_net_udp_close): New inline function.
12372
12373 * include/grub/net/tftp.h: Moved to the top of ...
12374 * grub-core/net/tftp.c: ... here.
12375 * include/grub/net/ip.h: Moved mostly to the top of ...
12376 * grub-core/net/ip.c: ... here.
12377 * include/grub/net/ethernet.h: Moved mostly to the top of ...
12378 * grub-core/net/ethernet.c: ... here.
12379
12380 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
12381
12382 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
12383 FS name.
12384
12385 * include/grub/net/ip.h (ipv4_ini): Removed.
12386 (ipv4_fini): Likewise.
12387
12388 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
12389 (grub_net_send_ip_packets): Likewise.
12390
cf1337aa
VS
123912011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12392
12393 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
12394 grub_read_cmos prototype.
12395
93c06ff9
VS
123962011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12397
12398 VGA text support in qemu-mips
12399
12400 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
12401 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
12402 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
12403 text.
12404 * grub-core/kern/i386/qemu/init.c: Renamed to ...
12405 * grub-core/kern/vga_init.c: ... this.
12406 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
12407 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
12408 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
12409 Adjust.
12410 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
12411 GRUB_MACHINE_PCI_IO_BASE.
12412
748ccabe
VS
124132011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12414
12415 MIPS qemu flash support.
12416
12417 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
12418 magic.
12419 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
12420 (grub_machine_init): Probe memory if its size isn't known.
12421 * util/grub-mkimage.c (image_targets): Add flash targets.
12422 (generate_image): Handle flash targets.
12423
d7345994
VS
124242011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12425
12426 MIPS qemu at_keyboard support.
12427
12428 * gentpl.py (videoinkernel): Add qemu-mips.
12429 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
12430 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
12431 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
12432 modules.
12433 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
12434 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
12435 * grub-core/term/serial.c (grub_serial_register)
12436 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
12437
a07a81b3
VS
124382011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
12439
12440 CMOS support on sparc.
12441
12442 * gentpl.py (cmos): Add powerpc and sparc.
12443 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
12444 powerpc and sparc.
12445 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
12446 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
12447 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
12448 grub_set_datetime_cmos.
12449 * grub-core/lib/ieee1275/cmos.c: New file.
12450 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
12451 (find_rtc): Set no_ieee1275_rtc on error.
12452 (grub_get_datetime): Call grub_get_datetime_cmos on error.
12453 (grub_set_datetime): Call grub_set_datetime_cmos on error.
12454 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
12455 fail. Move value to argument. All users updated
12456 (grub_cmos_write): Likewise.
12457 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
12458 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
12459 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
12460 grub_get_datetime_cmos and grub_set_datetime_cmos.
12461
77546584
GS
124622011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
12463
12464 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
12465 sourcing grub-mkconfig_lib.
12466 * util/update-grub_lib.in: Likewise.
12467 * util/grub.d/00_header.in: Likewise.
12468 * util/grub.d/10_hurd.in: Likewise.
12469 * util/grub.d/10_kfreebsd.in: Likewise.
12470 * util/grub.d/10_linux.in: Likewise.
12471 * util/grub.d/10_netbsd.in: Likewise.
12472 * util/grub.d/10_windows.in: Likewise.
12473 * util/grub.d/20_linux_xen.in: Likewise.
12474 * util/grub.d/30_os-prober.in: Likewise.
12475
54894791
CW
124762011-06-28 Colin Watson <cjwatson@ubuntu.com>
12477
12478 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
12479 default_bg_color rather than black.
12480 (grub_gfxterm_fullscreen): Likewise.
12481 (grub_gfxterm_background_color_cmd): Save new background color in
12482 default_bg_color.
12483
8d5d8444
VS
124842011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12485
12486 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
12487
5afeb5bd
VS
124882011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12489
12490 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
12491 mismerge.
12492
ba7df45e
VS
124932011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12494
12495 Chainloading on coreboot support.
12496
12497 * grub-core/Makefile.core.def (chain): Add coreboot.
12498 * grub-core/loader/i386/coreboot/chainloader.c: New file.
12499
d0b526b2
VS
125002011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12501
12502 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
12503 if it happens.
12504
5ff1d945
VS
125052011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12506
12507 Implement time command.
12508
12509 * grub-core/Makefile.core.def (time): New module.
12510 * grub-core/commands/time.c: New file.
12511 * grub-core/script/parser.y: Remove "time" keyword.
12512 * grub-core/script/yylex.l: Likewise.
12513
5ebaad7e
VS
125142011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12515
12516 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
12517
bdea3798
VS
125182011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12519
12520 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
12521 when handling leftovers.
12522
b28c5655
VS
125232011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12524
12525 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
12526 so that help2man doesn't fail.
12527
b6f945dc
VS
125282011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12529
12530 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
12531 type in pointers on sparc64.
12532 (get_card_packet): Likewise.
12533
f9b75e8a
CW
125342011-06-27 Colin Watson <cjwatson@ubuntu.com>
12535
12536 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
12537 with `*'.
12538 (grub_cmd_videoinfo): Fetch current video mode.
12539
1e3d9b86
VS
125402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12541
12542 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
12543 because of underlying system restrictions.
12544
efff4b1c
VS
125452011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12546
12547 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
12548 necessary.
12549
9fc9ce37
VS
125502011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12551
12552 Coreboot video support.
12553
12554 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
12555 (vbe): Likewise.
12556 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
12557 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
12558 here ...
12559 * grub-core/kern/i386/int.S: ... here.
12560 * grub-core/video/i386/pc/vbe.c: Updated includes.
12561 * grub-core/video/i386/pc/vga.c: Likewise.
12562 * include/grub/i386/coreboot/memory.h
12563 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
12564 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
12565 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
12566 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
12567 Disable interrupts.
12568 * include/grub/i386/pc/vga.h: Removed. All users updated.
12569
41bec7fe
VS
125702011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12571
12572 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
12573 definitions for dprintf.
12574 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
12575
ca80309d
VS
125762011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
12577
12578 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
12579 prototype.
12580 (get_card_packet): Likewise.
12581
9e322ce8
YB
125822011-06-26 Yves Blusseau <blusseau@zetam.org>
12583
12584 Display the path of the file when file is not found
12585
12586 * grub-core/fs/fat.c: Display the filename when file is not found.
12587 * grub-core/fs/fshelp.c: Likewise.
12588 * grub-core/fs/hfs.c: Likewise.
12589 * grub-core/fs/jfs.c: Likewise.
12590 * grub-core/fs/minix.c: Likewise.
12591 * grub-core/fs/ufs.c: Likewise.
12592 * grub-core/fs/btrfs.c: Likewise.
12593 * grub-core/commands/i386/pc/play.c: Likewise.
12594
cbf597af
SJ
125952011-06-26 Szymon Janc <szymon@janc.net.pl>
12596
12597 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
12598 pointer checks before calling grub_free().
12599 * grub-core/commands/wildcard.c (match_devices): Likewise.
12600 * grub-core/commands/wildcard.c (match_files): Likewise.
12601 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
12602 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
12603 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
12604 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
12605 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
12606 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
12607 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
12608 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
12609 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
12610
6295b32f
P
126112011-06-25 Patrick <p55@mailinator.com>
12612
12613 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
12614
77c0840b
VS
126152011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
12616
12617 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
12618 (grub_pxe_send): Likewise.
12619 (GRUB_MOD_INIT): Fix types.
12620
40ea05de
SJ
126212011-06-24 Szymon Janc <szymon@janc.net.pl>
12622
12623 * grub-core/io/xzio.c: Fix code style issues
12624
90162423
MRA
126252011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
126262011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
12627
12628 Network infrastructure.
12629 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
12630
12631 * include/grub/net/arp.h: New file.
90162423
MRA
12632 * include/grub/net/device.h: Likewise.
12633 * include/grub/net/ethernet.h: Likewise.
12634 * include/grub/net/ip.h: Likewise.
12635 * include/grub/net/netbuff.h: Likewise.
12636 * include/grub/net/tftp.h: Likewise.
12637 * include/grub/net/udp.h: Likewise.
12638 * include/grub/ieee1275/ofnet.h: Likewise.
12639 * include/grub/emu/export.h: Likewise.
12640 * include/grub/net.h: Likewise.
12641 * grub-core/net/arp.c: Likewise.
12642 * grub-core/net/ethernet.c: Likewise.
12643 * grub-core/net/ip.c: Likewise.
12644 * grub-core/net/udp.c: Likewise.
12645 * grub-core/net/tftp.c: Likewise.
12646 * grub-core/net/netbuff.c: Likewise.
12647 * grub-core/net/net.c: Likewise.
12648 * grub-core/net/drivers/emu/emunet.c: Likewise.
12649 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
12650 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
12651 export.h.
12652 * grub-core/Makefile.core.def (net): New module.
12653 (tftp): Likewise.
12654 (ofnet): Likewise.
12655 (emunet): Likewise.
12656 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
12657 network protocols.
12658 * grub-core/kern/device.c (grub_net_open) : New variable.
12659 (grub_device_open): Handle network device.
12660 (grub_device_close): Likewise.
12661 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
12662 (grub_grubnet_fini): Likewise.
12663 (grub_file_seek): Seek in network device.
12664 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
12665 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
12666 network root.
12667 (grub_machine_fini): Call grub_grubnet_fini.
12668 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
12669 network.
12670 (grub_ieee1275_get_aliasdevname): New function.
12671 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
12672 Add unofficial Solaris network info.
12673 (grub_multiboot_make_mbi): Likewise.
12674 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
12675 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
12676 * include/grub/device.h (grub_fs): Removed.
12677 * include/grub/err.h (grub_err_t): Add network-related values.
12678 * include/grub/i386/pc/pxe.h: Removed bootp parts.
12679 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
12680 (grub_ieee1275_get_aliasdevname): New proto.
12681 * include/grub/net.h: Rewritten.
423a1849 12682
031f22a0
VS
126832011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12684
12685 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
12686 names.
12687
4388ca72
VS
126882011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12689
12690 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
12691 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
12692 it truncates the output.
12693 Reported by: Ximin Luo.
12694
98e2f506
VS
126952011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
12698
2a5e94d8
VS
126992011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12700
12701 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
12702 partmap before abstraction.
12703
535c1910
AK
127042011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
12705
12706 * util/grub-mkconfig_lib.in: Add missing quotes.
12707
bc09e1a2
VS
127082011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12709
12710 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
12711 old method if mountinfo would return /dev/root and /dev/root doesn't
12712 exist.
12713
290766fb
VS
127142011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12715
12716 ZFS zlib support
12717
12718 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
12719 (decomp_table): Add zlib entries.
12720 (zio_read): USe 8 bits for compression function rather than 3.
12721 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
12722
127232011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 * grub-core/disk/ahci.c: Add missing license statements.
12726 * grub-core/fs/romfs.c: Likewise.
12727 * grub-core/lib/ia64/setjmp.S: Likewise.
12728 * grub-core/loader/i386/pc/freedos.c: Likewise.
12729 * grub-core/loader/ia64/efi/linux.c: Likewise.
12730 * grub-core/video/colors.c: Likewise.
12731 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
12732
5ab3f48a
VS
127332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12734
12735 AHCI support.
12736
12737 * grub-core/Makefile.core.def (ata_pthru): Removed.
12738 (ahci): New module.
12739 (pata): Likewise.
12740 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
12741 on unload.
12742 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
12743 readwrite.
12744 (grub_hdparm_do_check_powermode_cmd): Likewise.
12745 (grub_hdparm_do_smart_cmd): Likewise.
12746 (grub_hdparm_set_val_cmd): Likewise.
12747 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
12748 * grub-core/disk/ahci.c: New file.
12749 * grub-core/disk/ata.c: Factor out the low-level part into ...
12750 * grub-core/disk/pata.c: ... here.
12751 * grub-core/disk/ata_pthru.c: Contents moved to ...
12752 * grub-core/disk/pata.c: ... here.
12753 * grub-core/disk/scsi.c (grub_scsi_names): New array.
12754 (grub_scsi_iterate): Use grub_scsi_names.
12755 (grub_scsi_open): Likewise.
12756 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
12757 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
12758 (grub_ata_regs_t): New struct.
12759 (grub_disk_ata_pass_through_parms): Likewise.
12760 (grub_ata_device): Renamed to ...
12761 (grub_ata): ... this.
12762 (grub_ata_dev): New struct.
12763 Removed all low-level inline functions.
12764 * include/grub/scsi.h: Add PATA and AHCI subsystems.
12765 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
12766 iterate hooks and open. All users updated.
12767 * util/grub-install.in: Handle AHCI disk module.
12768
c31dc5f5
SJ
127692011-06-23 Szymon Janc <szymon@janc.net.pl>
12770
12771 Add support for DRI and RSTn markers in JPEG files.
12772
12773 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
12774 (JPEG_MARKER_RST0): Likewise.
12775 (JPEG_MARKER_RST1): Likewise.
12776 (JPEG_MARKER_RST2): Likewise.
12777 (JPEG_MARKER_RST3): Likewise.
12778 (JPEG_MARKER_RST4): Likewise.
12779 (JPEG_MARKER_RST5): Likewise.
12780 (JPEG_MARKER_RST6): Likewise.
12781 (JPEG_MARKER_RST7): Likewise.
12782 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
12783 (grub_jpeg_decode_dri): New function.
12784 (grub_jpeg_decode_sos): Move image data related part into
12785 grub_jpeg_decode_data function.
12786 (grub_jpeg_decode_data): New function.
12787 (grub_jpeg_reset): New function.
12788 (grub_jpeg_decode_jpeg): Handle new markers.
12789
fe12fd5b
VS
127902011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12791
12792 * util/ieee1275/ofpath.c (check_sas): Close fd.
12793 (main): Free of_path.
12794 Reported by: David Volgyes <dvolgyes>.
12795
03147f46
VS
127962011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12797
12798 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
12799 Reported by: David Volgyes <dvolgyes>.
12800
cad3237f
VS
128012011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12802
12803 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
12804 file after stat.
12805 Reported by: David Volgyes <dvolgyes>.
12806
13548d26
VS
128072011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12808
12809 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
12810
12811 Reported by: David Volgyes <dvolgyes>.
12812
e061a1b5
VS
128132011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12814
12815 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12816 Prevent memory leak.
12817
1abe47dc
VS
128182011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12819
12820 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12821 (main): Close file.
e061a1b5 12822 Reported by: David Volgyes <dvolgyes>.
1abe47dc 12823
fbc62666
VS
128242011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12825
12826 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12827 to continue if allocation is failed.
12828
12829 Reported by: David Volgyes <dvolgyes>.
12830
e98c83e9
DV
128312011-06-23 David Volgyes <dvolgyes>
12832
12833 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12834 dereference.
12835
a199a8cd
VS
128362011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12837
12838 Fix spurious warning.
12839
12840 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12841 (acorn_partition_map_find): Use .bin member.
12842
e2d1dba0
VS
128432011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12846 /dev/root as a valid device.
12847
8a5d6919
JM
128482011-06-23 Jim Meyering <meyering@redhat.com>
12849
e2d1dba0
VS
12850 Avoid NULL deref in grub_device_open.
12851
8a5d6919
JM
12852 * grub-core/kern/device.c (grub_device_open): Don't dereference
12853 a NULL pointer upon failed grub_env_get.
12854
f7db6f4a
VS
128552011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12856
12857 Support non-512B sectors and agglomerate reads.
12858
12859 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12860 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12861 (disk_io_guid): Removed.
12862 (make_devices): Locate solely by BlockIO.
12863 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12864 (grub_efidisk_read): Use read_blocks.
12865 (grub_efidisk_write): Use write_blocks.
12866 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12867 log_sector_size.
12868 (get_safe_sectors): Handle non-512B sectors.
12869 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12870 sectors.
12871 (grub_biosdisk_write): Handle non-512B sectors.
12872 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12873 (grub_scsi_read): Remove special non-512B block handling (now handled
12874 one level up).
12875 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12876 and do sanity checks.
12877 (grub_disk_adjust_range): Handle non-512B sectors.
12878 (transform_sector): New function.
12879 (grub_disk_read_small): Likewise.
12880 (grub_disk_read): Rewritten.
12881 (grub_disk_write): Handle non-512B sectors.
12882 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12883 log_sector_size.
12884 (open_device): Use log_sector_size.
12885 (grub_util_biosdisk_read): Likewise.
12886 (grub_util_biosdisk_write): Likewise.
12887 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12888 non-512B sectors.
12889 (pc_partition_map_embed): Likewise.
12890 * include/grub/disk.h (grub_disk): New field log_sector_size.
12891 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12892 (GRUB_DISK_CACHE_BITS): Increased to 6.
12893 * util/grub-fstest.c (fstest): New command testload.
12894 (argp_parser): Likewise.
12895
881ac815
RM
128962011-06-16 Robert Millan <rmh@gnu.org>
12897
12898 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12899 `ata' driver on kernel of FreeBSD 9.
12900
12901 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12902 (get_ataraid_disk_name): New functions.
12903 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12904 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12905 get_ataraid_disk_name() and get_ada_disk_name().
12906
1e9aef7d
CW
129072011-06-13 Colin Watson <cjwatson@ubuntu.com>
12908
12909 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12910 input format.
12911
351c7c8a
CW
129122011-05-29 Colin Watson <cjwatson@ubuntu.com>
12913
12914 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12915 `ftp.gnu.org' for `alpha.gnu.org'.
12916
6b4e6430
CW
129172011-05-27 Colin Watson <cjwatson@ubuntu.com>
12918
12919 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12920 partitions under /dev/disk/by-id/.
12921
c64db050
CW
129222011-05-27 Colin Watson <cjwatson@ubuntu.com>
12923
12924 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12925 after ten consecutive open failures. Scanning all the way up to
12926 10000 is excessive and can cause serious performance problems in
12927 some configurations.
12928 Fixes Ubuntu bug #787461.
12929
245f4aba
VS
129302011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12931
12932 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12933 opening new one.
12934
f767c929
VS
129352011-05-21 Colin Watson <cjwatson@ubuntu.com>
129362011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12937
12938 Don't stat devices unless we have to.
12939
12940 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12941 dir == /dev/mapper.
12942 (grub_guess_root_device): Use already known os_dev if possible.
12943 * grub-core/kern/emu/hostdisk.c
12944 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12945 if device is known to be a dm one.
12946
f35fa3a6
CW
129472011-05-20 Colin Watson <cjwatson@ubuntu.com>
12948
12949 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12950 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12951 Reported by: Pawel Tecza.
12952
9a79fcf2
VS
129532011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12954
12955 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12956 (lsefisystab): Likewise.
12957 (lssal): Likewise.
12958 (lsefimmap): Likewise.
12959 (hdparm): Enable on qemu-mips.
12960 (setjmp): Add ia64 nodist.
12961 (serial): Simplify tags.
12962
63e3eea9
CW
129632011-05-18 Colin Watson <cjwatson@ubuntu.com>
12964
12965 * Makefile.util.def (grub-ofpathname): Install manual page.
12966
09728256
CW
129672011-05-18 Colin Watson <cjwatson@ubuntu.com>
12968
12969 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12970
8b63a142
CW
129712011-05-18 Colin Watson <cjwatson@ubuntu.com>
12972
12973 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12974
e775d8ed
VS
129752011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12976
12977 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12978 into dprintf.
12979
bf947d36
VS
129802011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 Use full 64-bit division.
12983
12984 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12985 (grub_divmod64): ... this.
12986 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12987 version.
12988
b84f26c5
CW
129892011-05-18 Colin Watson <cjwatson@ubuntu.com>
12990
12991 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12992 `source'.
12993
5626056f
CW
129942011-05-18 Colin Watson <cjwatson@ubuntu.com>
12995
12996 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12997 to avoid accidents when debugging with 'sh -x'.
12998 * grub-core/gensyminfo.sh.in: Likewise.
12999 * tests/example_scripted_test.in: Likewise.
13000 * tests/grub_cmd_regexp.in: Likewise.
13001 * tests/grub_script_blanklines.in: Likewise.
13002 * tests/grub_script_dollar.in: Likewise.
13003 * tests/grub_script_expansion.in: Likewise.
13004 * tests/grub_script_final_semicolon.in: Likewise.
13005 * tests/partmap_test.in: Likewise.
13006 * tests/util/grub-shell-tester.in: Likewise.
13007 * tests/util/grub-shell.in: Likewise.
13008
e2965f4a
CW
130092011-05-18 Colin Watson <cjwatson@ubuntu.com>
13010
13011 Move gfxmenu color handling to video, so that gfxterm can use it
13012 too.
13013
13014 * grub-core/gfxmenu/named_colors.c: Move to ...
13015 * grub-core/video/colors.c: ... here. Rename
13016 grub_gui_get_named_color to grub_video_get_named_color.
13017 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
13018 * grub-core/video/colors.c (my_isxdigit): ... here.
13019 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
13020 Move to ...
13021 * grub-core/video/colors.c (parse_hex_color_component): ... here.
13022 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
13023 to ...
13024 * grub-core/video/colors.c (grub_video_parse_color): ... here.
13025
13026 * include/grub/gui.h (grub_gui_color_t): Move to ...
13027 * include/grub/video.h (grub_video_rgba_color_t): ... here.
13028 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
13029 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
13030 * include/grub/gui.h (grub_gui_map_color): Move to ...
13031 * include/grub/video.h (grub_video_map_rgba_color): ... here.
13032 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
13033 to ...
13034 * include/grub/video.h (grub_video_get_named_color): ... here.
13035 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
13036 * include/grub/video.h (grub_video_parse_color): ... here.
13037
13038 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
13039 video/colors.c.
13040 (gfxmenu): Remove gfxmenu/named_colors.c.
13041 (video) [videomodules]: Add video/colors.c.
13042
13043 Add a background_color command.
13044
13045 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
13046 function.
13047 (GRUB_MOD_INIT): Register background_color command.
13048 (GRUB_MOD_FINI): Unregister background_color command.
13049 (redraw_screen_rect): Allow blend/replace of text layer to be
13050 controlled independently from whether there is a background bitmap.
13051 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
13052 changing bitmap.
13053
1e4b4390
VS
130542011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13055
26618ff0
VS
13056 Patch BPB in ntldr and chainloader --bpb.
13057
1e4b4390
VS
13058 * grub-core/fs/fat.c: Include grub/fat.h.
13059 (grub_fat_bpb): Moved to ...
13060 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
13061 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
13062 grub/ntfs.h.
13063 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
13064 Moved from here...
13065 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
13066 here.
13067 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
13068 New function.
13069 (grub_chainloader_cmd): Patch BPB if --bpb is given.
13070 (GRUB_MOD_INIT): Show --bpb.
13071 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
13072 * grub-core/normal/main.c (features): New variable.
13073 (GRUB_MOD_INIT): Set feature_* variables.
13074 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
13075 proto.
13076 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
13077
cf02731e
VS
130782011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13079
13080 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
13081 for cleanness.
13082
e3a1073f
VS
130832011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 FreeDOS direct loading support.
13086
13087 * docs/grub.texi (Supported OS): Add FreeDOS.
13088 * grub-core/Makefile.core.def (freedos): New module.
13089 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
13090 variable.
13091 (grub_relocator16_boot): Handle %ebx.
13092 * grub-core/lib/i386/relocator16.S: Likewise.
13093 * grub-core/loader/i386/pc/freedos.c: New file.
13094
05caa461
VS
130952011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13096
13097 Long Linux command line support.
13098
13099 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13100 (maximal_cmdline_size): New variable.
13101 (allocate_pages): Use maximal_cmdline_size.
13102 (grub_cmd_linux): Set and use maximal_cmdline_size.
13103 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
13104 (allocate_pages): Use maximal_cmdline_size.
13105 (grub_cmd_linux): Set and use maximal_cmdline_size.
13106 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
13107 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
13108 and cmdline_size.
13109
a2491e23
VS
131102011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
131112011-05-18 Colin Watson <cjwatson@ubuntu.com>
13112
13113 Improve devmapper support
13114
13115 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
13116 (grub_util_is_lvm): New function.
13117 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
13118 than lvm if not dmraid.
13119 Handle mapped md nodes.
13120 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
13121 (grub_util_device_is_mapped): ... this. Make always available. All users
13122 updated.
13123 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
13124 (convert_system_partition_to_system_disk): Handle lvm, mpath and
13125 dmraid nodes.
13126 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
13127
6ad6223e
VS
131282011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
13129
13130 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
13131
13132 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
13133 * grub-core/modinfo.sh.in: New file.
13134 * grub-core/Makefile.core.def (modinfo.sh): New script.
13135 * util/grub-mknetdir.in: Use modinfo.sh.
13136 * util/grub-mkrescue.in: Likewise.
13137
543a8f6e
VS
131382011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13139
13140 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13141 Fix potential usage of Elf32 instead of Elf64 when compiling on
13142 32-bit architecture. Add endianness macros while on it.
13143
4959e111
VS
131442011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13145
13146 Use mipsel- rather than mips- in directories involving mipsel ports to
13147 allow both endiannesses coexist.
13148
13149 * configure.ac: proparate target_cpu=mipsel rather than resetting to
13150 mips. All conditions adjusted.
13151 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
13152 variable.
13153 * util/grub-install.in: Adjust conditions to take renaming into account.
13154 * util/grub-mkimage.c (image_targets): Likewise. New target
13155 mips-qemu_mips-elf for bigendian mips.
13156
35341bbc
VS
131572011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13158
13159 Avoid unnecessary copying on MIPS.
13160
13161 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
13162 early if src == dest.
13163 * util/grub-mkimage.c (generate_image): Arange for src == dest if
13164 compression is none.
13165
b772baed
VS
131662011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13167
13168 Reduce memory footprint on SGI by putting modules before the kernel
13169 as opposed to after.
13170
13171 * grub-core/Makefile.core.def (kernel): Increase linking address.
13172 (none_decompress): Likewise.
13173 (xz_decompress): Likewise.
13174 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
13175 address.
13176 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
13177 layout change.
13178 (grub_arch_modules_addr): New function.
13179 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
13180 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
13181 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
13182 here.
13183 * grub-core/kern/mips/startup.S (total_size): Rename to ...
13184 (grub_total_modules_size): ... this. Make global.
13185 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
13186 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
13187 New definition.
13188 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
13189 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
13190 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
13191 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
13192 * util/grub-mkimage.c (image_target_desc): New flag
13193 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
13194 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
13195 (generate_image): Handle images with modules before kernel.
13196
566a1917
VS
131972011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13198
13199 Prevent potential loss of memory map by overwrite on qemu-mips.
13200
13201 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13202 Save ram size in $s4.
13203 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
13204 All users changed to grub_arch_memsize.
13205 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
13206 Loongson.
13207 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
13208 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
13209 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
13210 external variable.
13211
5d420cd9
CW
132122011-05-17 Colin Watson <cjwatson@ubuntu.com>
13213
13214 * .bzrignore: Remove grub-dumpbios.
13215
d064b830
CW
132162011-05-17 Colin Watson <cjwatson@ubuntu.com>
13217
13218 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
13219 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
13220 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
13221 existing options which append).
13222 * docs/grub.texi (Simple configuration): Document new options.
13223 Reported by: Ian Jackson. Fixes Debian bug #617538.
13224
3ca2b466
CW
132252011-05-17 Colin Watson <cjwatson@ubuntu.com>
13226
13227 * util/grub-fstest.c (cmd_cat): New function.
13228 (fstest): Handle CMD_CAT.
13229 (options): Add cat.
13230 (argp_parser): Handle cat.
13231
24c9143a
CW
132322011-05-17 Colin Watson <cjwatson@ubuntu.com>
13233
13234 * Makefile.util.def (grub-bin2h): Don't install.
13235 * docs/man/grub-bin2h.h2m: Remove.
13236
90f7ac19
VS
132372011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13238
13239 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
13240 place.
13241
8d4a5178
VS
132422011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13243
13244 Reenable qemu-mips port.
13245
13246 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
13247 Fix small arc bug while on it.
13248 * gentpl.py: Handle qemu_mips.
13249 * grub-core/Makefile.am: Likewise.
13250 * grub-core/Makefile.core.def: Likewise.
13251 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
13252 inappropriate includes.
13253 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
13254 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
13255 * grub-core/kern/main.c (grub_modules_get_end)
13256 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
13257 * grub-core/kern/mips/qemu-mips: Moved to ..
13258 * grub-core/kern/mips/qemu_mips: ... this.
13259 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
13260 (grub_machine_init): Call terminfo_init and serial_init.
13261 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
13262 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
13263 New variable.
13264 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
13265 parameter passing.
13266 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
13267 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
13268 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
13269 * include/grub/mips/qemu_mips/cmos.h: New file.
13270 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
13271 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
13272 Removed.
13273 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
13274 Use correct mips-style address.
13275 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
13276 (GRUB_TICKS_PER_SECOND): Removed.
13277 (grub_get_rtc): Likewise.
13278 (grub_cpu_idle): Likewise.
13279 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
13280 New definition.
13281 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
13282 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
13283 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
13284 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
13285 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
13286 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
13287 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
13288 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
13289
400b9371
VS
132902011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
13291
13292 SGI ARCS port.
13293
13294 * Makefile.util.def (libgrubmods.a): Add dvh.c.
13295 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
13296 platforms.
13297 * configure.ac: New target mips-arc.
13298 * gentpl.py: Likewise.
13299 * grub-core/Makefile.am: Likewise.
13300 * grub-core/Makefile.core.def: Likewise.
13301 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
13302 (none_decompress): Likewise.
13303 (lsdev): New module.
13304 (datetime): Use lib/arc/datetime.c on ARC.
13305 (part_dvh): New module.
13306 * grub-core/commands/arc/lsdev.c: New file.
13307 * grub-core/disk/arc/arcdisk.c: Likewise.
13308 * grub-core/kern/mips/arc/init.c: Likewise.
13309 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
13310 aligned addresses.
13311 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
13312 support.
13313 (grub_arch_dl_relocate_symbols): Likewise.
13314 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
13315 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
13316 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
13317 platforms.
13318 * grub-core/lib/arc/datetime.c: New file.
13319 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
13320 pci.h on non-loongson.
13321 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
13322 (grub_linux_boot): Set unused registers to 0.
13323 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
13324 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
13325 * grub-core/mmap/mips/uppermem.c: ...here.
13326 * grub-core/partmap/dvh.c: New file.
13327 * grub-core/term/arc/console.c: Likewise.
13328 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
13329 (grub_terminfo_set_current): Add terminal "arc".
13330 (grub_terminfo_readkey): Support ARC sequences.
13331 * include/grub/arc/arc.h: New file.
13332 * include/grub/arc/console.h: Likewise.
13333 * include/grub/disk.h (grub_disk_dev_id): Add
13334 GRUB_DISK_DEVICE_ARCDISK_ID.
13335 * include/grub/mips/arc/kernel.h: New file.
13336 * include/grub/mips/arc/memory.h: Likewise.
13337 * include/grub/mips/arc/time.h: Likewise.
13338 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
13339 * include/grub/mips/kernel.h (grub_halt): ... here.
13340 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
13341 here...
13342 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
13343 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
13344 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
13345 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
13346 proto.
13347 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
13348 from here ...
13349 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
13350 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
13351 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
13352 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
13353 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
13354 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
13355 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
13356 (grub_phys_addr_t): Moved from here ...
13357 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
13358 (grub_vtop): Moved from here ...
13359 * include/grub/mips/memory.h (grub_vtop): ... here.
13360 (grub_map_memory): Moved from here ...
13361 * include/grub/mips/memory.h (grub_map_memory): ... here.
13362 (grub_unmap_memory): Moved from here ...
13363 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
13364 (grub_machine_mmap_iterate): Moved from here ...
13365 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
13366 (grub_mmap_get_lower): Moved from here ...
13367 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
13368 (grub_mmap_get_upper): Moved from here ...
13369 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
13370 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13371 here ...
13372 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13373 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
13374 here ...
13375 * include/grub/mips/time.h (grub_get_rtc): ... here.
13376 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
13377 here ...
13378 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
13379 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
13380 here ...
13381 * include/grub/mips/time.h (grub_cpu_idle): ... here.
13382 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
13383 definition.
13384 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
13385 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
13386 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
13387 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
13388 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
13389 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
13390 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
13391 (GRUB_MACHINE_LINK_ADDR): Likewise.
13392 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
13393 to 6.
13394 * util/grub-install.in: Run dvhtool on ARC.
13395 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 13396 (generate_image): Handle ECOFF output for mips-arc.
400b9371 13397
c8ecc840
VS
133982011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13399
13400 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
13401 blocks.
13402
153a4b55
VS
134032011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13404
13405 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
13406 after enabling port.
13407
ff44d107
VS
134082011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13409
13410 Skip incorrect USB devices.
13411
13412 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
13413 configcnt == 0.
13414 * include/grub/usb.h (grub_usb_err_t): New enum value
13415 GRUB_USB_ERR_BADDEVICE.
13416
638dbe4f
VS
134172011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
13418
13419 Fuloong video init support.
13420
13421 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
13422 well.
13423 (grub_vga_read_arx): New function.
13424 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
13425 definition.
13426 (framebuffer): New members io, mmioptr and mmiobase.
13427 (read_sis_cmd): New function.
13428 (write_sis_cmd): Likewise.
13429 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
13430 rather than 640x400.
13431 * grub-core/video/sis315_init.c: New file.
13432
c3fc520c
VS
134332011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13434
13435 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
13436 non-loongson.
13437 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
13438 to grub_dl_register_symbol.
13439
67b1e5c9
VS
134402011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13441
13442 Fix compilation errors.
13443
13444 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
13445 potentially unused.
13446 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
13447 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
13448 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
13449 to loongson machines.
13450
b756f75f
VS
134512011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13452
13453 Several FS mtime support.
13454
13455 * grub-core/fs/affs.c (grub_affs_time): New struct.
13456 (grub_affs_file): New field mtime.
13457 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
13458 type. Removed 'size'. New field 'di'. All users updated.
13459 (grub_affs_mount): Simplify checsum checking.
13460 (grub_affs_iterate_dir): New helper grub_affs_create_node.
13461 (grub_affs_dir): Handle mtime.
13462 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
13463 (grub_cpio_dir): Likewise.
13464 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
13465 (grub_hfs_filerec): New field mtime.
13466 (grub_hfs_dir): Handle mtime.
13467 (grub_hfs_mtime): New function.
13468 (grub_hfs_fs): Register grub_hfs_mtime.
13469 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
13470 (grub_iso9660_dir): New field mtime.
13471 (grub_fshelp_node): New field dirent.
13472 (iso9660_to_unixtime): New function.
13473 (iso9660_to_unixtime2): Likewise.
13474 (grub_iso9660_read_symlink): Use node->dirent.
13475 (grub_iso9660_iterate_dir): Likewise.
13476 (grub_iso9660_dir): Set mtime.
13477 (grub_iso9660_mtime): New function.
13478 (grub_iso9660_fs): Register grub_iso9660_mtime.
13479 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
13480 (grub_jfs_inode): New fields atime, ctime and mtime.
13481 (grub_jfs_dir): Set mtime.
13482 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
13483 * grub-core/fs/ntfs.c (list_file): Set mtime.
13484 (grub_ntfs_dir): Likewise.
13485 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
13486 (grub_reiserfs_iterate_dir): Set mtime.
13487 (grub_reiserfs_dir): Likewise.
13488 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
13489 (grub_fshelp_node): Likewise.
13490 (grub_sfs_iterate_dir): Set mtime.
13491 (grub_sfs_dir): Likewise.
13492 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
13493 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
13494 (grub_xfs_inode): New fields atime, mtime, ctime.
13495 (grub_xfs_dir): Set mtime.
13496 * include/grub/datetime.h (grub_datetime2unixtime): New function.
13497 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
13498 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
13499
13500 Support UDF symlinks.
13501
13502 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
13503 (grub_ufs_read_symlink): New function. All users updated.
13504
13505 Check amiga partmap checksum.
13506
13507 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
13508 (grub_amiga_partition): Likewise.
13509 (amiga_partition_map_checksum): New function.
13510 (amiga_partition_map_iterate): Check checksum.
13511
5470225d
VS
135122011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13513
13514 ROMFS support.
13515
13516 * Makefile.util.def (libgrubmods.a): Add romfs.
13517 * grub-core/Makefile.core.def (romfs): New module.
13518 * grub-core/fs/romfs.c: New file.
13519
d4680a35
VS
135202011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13521
13522 Squashfs v4 support.
13523
13524 * Makefile.util.def (libgrubmods.a): Add squash4.
13525 * grub-core/Makefile.core.def (squash4): New module.
13526 * grub-core/fs/squash4.c: New file.
13527 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
13528 disk_input_start, disk_input.
13529 (get_byte): Handle disk_input.
13530 (grub_zlib_disk_read): New function.
13531 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
13532
bcb18e74
FZ
135332011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
135342011-05-15 Feiran Zheng <famcool@gmail.com>
13535
13536 * Makefile.util.def (libgrubmods.a): Add minix3.
13537 * grub-core/Makefile.core.def (minix3): New module.
13538 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
13539 (GRUB_MINIX_BSIZE): Removed.
13540 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
13541 (grub_minix_ino_t): New type.
13542 (grub_minix_le_to_cpu_ino): New macro.
13543 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
13544 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
13545 (grub_minix_data): New field block_size.
13546 (grub_minix_read_file): Handle 64-bit correctly.
13547 * grub-core/fs/minix3.c: New file.
13548
32297d5f
TG
135492011-05-15 Tristan Gingold <gingold@free.fr>
135502011-05-15 Robert Millan <rmh.grub@aybabtu.com>
135512011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13552
13553 IA64 support.
13554
13555 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
13556 * configure.ac: Add ia64-efi target.
13557 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
13558 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
13559 * gentpl.py: Add ia64_efi platform.
13560 Rename x86_efi to efi and Add ia64-efi. All users updated.
13561 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
13562 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
13563 Remove kern/generic/rtc_get_time_ms.c on EFI.
13564 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
13565 kern/ia64/dl_helper.c on ia64-efi.
13566 Add kern/emu/cache.c on emu.
13567 (linux): Use on loader/ia64/efi/linux.c on ia64.
13568 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
13569 whether symbol is a function.
13570 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
13571 (grub_symbol): New field 'isfunc'.
13572 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
13573 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
13574 (grub_dl_load_segments): Place all sections into the same region.
13575 [__ia64__]: Create trampolines and got.
13576 [GRUB_MACHINE_EMU]: Call mprotect.
13577 (grub_dl_resolve_symbols): Resolve symbol type as well.
13578 [__ia64__]: Create function descriptors.
13579 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
13580 (grub_rtc_get_time_ms): ... this. Expressions simplified.
13581 (grub_get_rtc): New function.
13582 * grub-core/kern/emu/cache.c [__ia64__]: New file.
13583 * grub-core/kern/emu/cache.S: Renamed to ...
13584 * grub-core/kern/emu/cache_s.S: ... this.
13585 [__ia64__]: Add a nop.
13586 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
13587 [__ia64__]: New function.
13588 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
13589 * grub-core/kern/ia64/dl.c: New file.
13590 * grub-core/kern/ia64/dl_helper.c: Likewise.
13591 * grub-core/kern/ia64/efi/init.c: New file.
13592 * grub-core/kern/ia64/efi/startup.S: Likewise.
13593 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
13594 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
13595 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
13596 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
13597 * grub-core/loader/ia64/efi/linux.c: New file.
13598 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
13599 (GRUB_MOD_DEP): Likewise.
13600 (grub_dl) [__ia64__]: New fields got and tramp.
13601 (grub_dl): New field 'base'.
13602 (grub_dl_register_symbol): New argument isfunc. All users updated.
13603 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
13604 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
13605 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
13606 (grub_ia64_dl_get_tramp_got_size): New proto.
13607 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
13608 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
13609 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
13610 * include/grub/efi/api.h: Skip call wrappers on ia64.
13611 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
13612 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
13613 * include/grub/elf.h (ELF_ST_INFO): New definition.
13614 * include/grub/ia64/efi/kernel.h: New file.
13615 * include/grub/ia64/efi/memory.h: Likewise.
13616 * include/grub/ia64/efi/time.h: Likewise.
13617 * include/grub/ia64/kernel.h: Likewise.
13618 * include/grub/ia64/setjmp.h: Likewise (from glibc).
13619 * include/grub/ia64/time.h: New file.
13620 * include/grub/ia64/types.h: Likewise.
13621 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
13622 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
13623 New protos.
13624 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
13625 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
13626 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
13627 * util/grub-mkimage.c (image_target_desc): New field pe_target.
13628 All users updated.
13629 (EFI64_HEADER_SIZE): New definition. All users updated.
13630 (image_targets): Add ia64-efi.
13631 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
13632 jumpers_addr. All users updated.
13633 Create function descriptors.
13634 (count_funcs): New function.
13635 (unaligned_uint32): New struct.
13636 (MASK20): New definition.
13637 (MASK19): Likewise.
13638 (MASKF21): Likewise.
13639 (add_value_to_slot_20b): New function.
13640 (add_value_to_slot_21_real): Likewise.
13641 (add_value_to_slot_21): Likewise.
13642 (ia64_kernel_trampoline): New struct.
13643 (nopm): New variable.
13644 (jump): Likewise.
13645 (make_trampoline): New function.
13646 (relocate_addresses): Handle ia64.
13647 (make_reloc_section): Likewise.
13648 (load_image): Likewise.
13649
983b414d
VS
136502011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13651
13652 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
13653 warning. Move variables before code while on it.
13654
5d063cdc
VS
136552011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
13656
13657 Fuloong support.
13658
13659 * configure.ac: Rename yeeloong platform to loongson. All users updated.
13660 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
13661 * grub-core/boot/mips/loongson/fuloong.S: New file.
13662 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
13663 Explicitly init CS5536.
13664 [FULOONG]: Don't use serial until CS5536 is available.
13665 Set GPIO based on dumps.
13666 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
13667 [FULOONG]: Handle GPIO and memory controller differences.
13668 Parse machine type in $a2.
13669 * grub-core/boot/mips/startup_raw.S: Determine and save the
13670 architecture.
13671 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
13672 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
13673 init on architecture type.
13674 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
13675 SIS315E. Don't init at_keyboard on fuloong.
13676 (grub_halt): Support Fuloong.
13677 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
13678 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
13679 (loongson_machtypes): New array.
13680 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
13681 type.
13682 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
13683 config. All users updated. Handle CS5536 serial.
13684 * grub-core/term/serial.c (grub_serial_register): Conditionalise
13685 default port on machine type. Register serial as inactive.
13686 * grub-core/video/sis315pro.c: New file.
13687 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
13688 definition.
13689 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
13690 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
13691 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
13692 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
13693 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
13694 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
13695 to ...
13696 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
13697 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
13698 definition.
13699 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
13700 (grub_arch_machine): New extern var.
13701 * include/grub/mips/loongson/serial.h
13702 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
13703 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
13704 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
13705 (GRUB_MACHINE_SERIAL_PORT0): ... this.
13706 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
13707 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
13708 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
13709 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
13710 * include/grub/term.h (grub_term_register_input_inactive): New inline
13711 function.
13712 (grub_term_register_output_inactive): Likewise.
13713 * include/grub/video.h (grub_video_driver_id): New value
13714 GRUB_VIDEO_DRIVER_SIS315PRO.
13715 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
13716 New field "names". All users updated.
13717 New field value IMAGE_FULOONG_FLASH.
13718 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
13719
6ada82d1
JU
137202011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
13721
13722 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
13723 and add some clarification.
13724
90c571a4
VS
137252011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13726
13727 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
13728 platforms if kernel is compressed.
13729
de04eecf
VS
137302011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13731
13732 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
13733 unused modules since currently referrence counter isn't reliable and
13734 there isn't much memory to recover there anyway.
13735
57688121
VS
137362011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13737
13738 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
13739 rather than resetting it to allow modules to reference themselves
13740 in init.
13741
3d2c7e35
VS
137422011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13743
13744 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
13745 counter on dependencies since grub_dl_unref already handles this.
13746
b25db218
VS
137472011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13748
13749 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
13750 on error if not already done.
13751
25a45338
VS
137522011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13753
13754 Fix few potential memory misusage.
13755
13756 * grub-core/font/font.c (load_font_index): Don't free char_index to
13757 avoid double free.
b25db218
VS
13758 (grub_font_load): Zero-fill font at alloc for safety.
13759 Close file on error.
13760 (free_font): Free bmp_idx.
25a45338 13761
0cac83df
VS
137622011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13763
13764 * docs/grub.texi (Installation): Fix several outdated claims.
13765
2217a143
VS
137662011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13767
13768 Handle module_license on windows.
13769
13770 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
13771 sections shifted.
13772 (insert_string): Make argument const char * instead of char *.
13773 (write_section_data): Handle long section names.
13774 Handle module_license.
13775
d4de6b01
VS
137762011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13777
13778 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
13779 handle class-free menuentries.
13780 (grub_normal_add_menu_entry): Add a check to be sure.
13781
4c2a3b43
VS
137822011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
13783
13784 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
13785 PgUp and PgDown.
13786
85c6210f
VS
137872011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13788
13789 * configure.ac: Bump version to 1.99.
13790
36084912
VS
137912011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13792
13793 Give ATA device a bit more time on first try in order to allow disks
13794 to spin up.
13795
13796 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
13797 if dev->present is 1. Reset dev->present on failure.
13798 (grub_ata_device_initialize): Set dev->present to 1.
13799 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
13800 (grub_ata_device): New member 'present'.
13801
bda0e219
VS
138022011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13803
13804 * util/grub-mkimage.c (generate_image): Update hash.
13805
19e1c41b
VS
138062011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13807
13808 Flush caches on DMA memory.
13809
13810 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
13811 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
13812 (grub_dma_free): Likewise.
13813 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13814
91bbcc0c
VS
138152011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13816
13817 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13818 to avoid asm treating ld and sd as macros.
13819
60ddfad3
VS
138202011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13821
13822 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13823 decompressor.
13824
a298aa04
VS
138252011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13826
13827 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13828 grub_decompress_core since later would fail if grub_decompress_core
13829 is too far.
13830
9b44feca
VS
138312011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13832
13833 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13834 R_MIPS_JALR since it's used by newer compiler.
13835
56dbe7b4
VS
138362011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13839
52856af2
VS
138402011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13841
13842 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13843 file_path to 0 for surety.
13844 (grub_chainloader_boot): Set exit_data to NULL.
13845 Unset the loader once done.
13846 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13847
9c9bfc6d
VS
138482011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13849
13850 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13851 unknown key into a dprintf.
13852
dd94a3df
VS
138532011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13854
13855 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13856 on first non-existant partition.
13857
fa68d99c
VS
138582011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13859
13860 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13861 openning fails.
13862 Reported by: Mark Korenberg.
13863
157effb7
VS
138642011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13865
13866 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13867 overflow.
13868
ea75312f
VS
138692011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13870
13871 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13872 before closing to ensure that it will be readable by grub-setup.
13873
072b5d31
VS
138742011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13875
13876 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13877 (devpath_1): Use MAKE_PIWG_PATH.
13878 (devpath_2): Likewise.
13879 (devpath_3): Likewise.
13880 (devpath_4): Likewise.
13881 (devpath_5): Likewise.
13882 (devpath_6): Likewise.
13883
13884 The appleldr.mod was checked that to be binary identical to previous
13885 version.
13886
7fae0051
Z
138872011-05-05 Zach <mikezackles>
13888
13889 Support 2010 Macbooks.
13890
13891 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13892 (devs): Add devpath_6.
13893
7c515bee
VS
138942011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13895
13896 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13897 /dev/random. /dev/urandom is good enough for our purposes (salting).
13898
ed660bd8
VS
138992011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13900
13901 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13902
ee5614b7
VS
139032011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13906 hexadecimal.
13907
664889a6
VS
139082011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13909
13910 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13911 and not 0 on failure.
13912
bd405bbc
CW
139132011-05-03 Colin Watson <cjwatson@ubuntu.com>
13914
13915 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13916 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13917 disk; otherwise grub_fs_probe will not fall back to the next
13918 filesystem.
13919 (grub_pxefs_open): Likewise, for consistency.
13920 Reported and tested by: Ezekiel Grave.
13921
4ebff753
CW
139222011-05-03 Colin Watson <cjwatson@ubuntu.com>
13923
13924 * tests/partmap_test.in: Don't hardcode path to parted.
13925 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13926
8f942553
CW
139272011-05-01 Colin Watson <cjwatson@ubuntu.com>
13928
13929 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13930 of `ls' to find out which devices are available.
13931
3c62402d
VS
139322011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13935 than source address for efi mmap buffer.
13936
723f63f2
VS
139372011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13938
13939 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13940 wrong action on non-detecting the magic.
13941
68797f92
VS
139422011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13943
13944 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13945 already supplied by another part of the module (fixes compilation on
13946 FreeBSD).
13947
6be8715d
VS
139482011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13951 match the one used by mdadm.
13952
e91dba5b
CW
139532011-04-21 Colin Watson <cjwatson@ubuntu.com>
13954
13955 * po/README: Add instructions for creating po/LINGUAS.
13956
c85140b3
CW
139572011-04-21 Colin Watson <cjwatson@ubuntu.com>
13958
13959 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13960 #551428.
13961
13962 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13963 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13964 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13965 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13966 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13967 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13968 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13969 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13970 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13971 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13972 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13973 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13974 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13975 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13976 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13977 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13978 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13979 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13980 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13981 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13982 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13983 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13984
92051871
CW
139852011-04-21 Colin Watson <cjwatson@ubuntu.com>
13986
13987 * grub-core/kern/emu/getroot.c
13988 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13989 test that was incorrectly reintroduced in r3214.
13990 Reported by: Ian Dall. Fixes Savannah bug #33133.
13991
b13f79a4
CW
139922011-04-21 Colin Watson <cjwatson@ubuntu.com>
13993
13994 Fix stack pointer handling in 16-bit relocator.
13995
13996 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13997 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13998 Fixes Ubuntu bug #683904.
13999
9b710a88
VS
140002011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 * configure.ac: Bump version to 1.99~rc2.
14003
d97e7b59
VS
140042011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14005
14006 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
14007 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
14008 * grub-core/lib/x86_64/setjmp.S: Likewise.
14009 * grub-core/lib/mips/setjmp.S: Likewise.
14010 * grub-core/lib/powerpc/setjmp.S: Likewise.
14011 * grub-core/lib/sparc64/setjmp.S: Likewise.
14012
0624551c
VS
140132011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
14014
14015 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
14016 * grub-core/lib/efi/datetime.c: Likewise.
14017
e8f28d4c
VS
140182011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14019
14020 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
14021 New function.
14022 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
14023 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
14024 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
14025
bba79a15
VS
140262011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14027
14028 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
14029 bitmap.
14030 (grub_gfxterm_term_init): Likewise.
14031
abc474ef
VS
140322011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14033
14034 Take into account the decorations the computing menu entry width.
14035
14036 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
14037 (grub_gfxmenu_create_box): Register get_border_width.
14038 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
14039 if available.
14040 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
14041 get_border_width.
14042
e74b3947
EP
140432011-04-18 Endres Puschner <code@e7p.de>
14044
14045 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
14046 Don't skip first class.
14047
34faa595
VS
140482011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
14051 chunks.
14052 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
14053
93a777e3
VS
140542011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14055
14056 Complete 64-bit division support.
14057
14058 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
14059 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
14060 * include/grub/misc.h (grub_divmod64): Rename to ...
14061 (grub_divmod64_full): ... this.
14062 (grub_divmod64): New inline function.
14063
a5102d94
VS
140642011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14065
14066 * util/grub-mkimage.c (generate_image): Add forgotten comma.
14067
f3fb7b36
VS
140682011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14069
14070 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
14071 performing the necessary test.
14072
9ac718b0
VS
140732011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14074
14075 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
14076 (kfreebsd.elf): Likewise.
14077 (pc-chainloader.elf): Likewise.
14078 (ntldr.elf): Likewise.
14079
50d2cc5a
VS
140802011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 Identify RAID by its UUID rather than (guessed) name.
14083
14084 * grub-core/disk/raid.c (ascii2hex): New function.
14085 (grub_raid_open): Accept mduuid/%s specification.
14086 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
14087 (get_mdadm_uuid): ... this.
14088 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
14089
e03f7bea
VS
140902011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
14091
14092 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
14093 to negative size.
14094
e74c3112
CW
140952011-04-13 Colin Watson <cjwatson@ubuntu.com>
14096
14097 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
14098 btrfs subvolume.
14099 * util/grub.d/20_linux_xen.in: Likewise.
14100
78fa584f
CW
141012011-04-13 Colin Watson <cjwatson@ubuntu.com>
14102
14103 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
14104 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
14105
14106 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14107 Build a list of relevant visible mounts using the mnt_id and
14108 parent_mnt_id fields, and then scan that list at the end.
14109
9d5f8162
CW
141102011-04-12 Colin Watson <cjwatson@ubuntu.com>
14111
14112 * docs/grub.texi (normal): New section.
14113 (normal_exit): New section.
14114 (Embedded configuration): Add reference to normal.
14115 (GRUB only offers a rescue shell): Likewise.
14116 * docs/grub-dev.texi (Error Handling): Fix typo.
14117
09a9d66f
CW
141182011-04-12 Colin Watson <cjwatson@ubuntu.com>
14119
14120 * NEWS: Drop obsolete entry about probe-only btrfs support.
14121
0c676933
CW
141222011-04-12 Colin Watson <cjwatson@ubuntu.com>
14123
14124 * util/import_gcry.py: Fix typo.
14125
ec9f5e0d
VS
141262011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14127
14128 * NEWS: Add btrfs support.
14129
fe6b2cba
VS
141302011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
141312011-04-11 Colin Watson <cjwatson@ubuntu.com>
14132
14133 BtrFS support. Written by me (Vladimir) with important bugfixes and
14134 even more important testing by Colin.
14135
14136 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
14137 * grub-core/Makefile.core.def (btrfs): Add crc.c.
14138 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
14139 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
14140 mem_input_off and mem_input. All users updated to accept in-RAM input.
14141 (gzio_seek): New function.
14142 (test_zlib_header): Likewise.
14143 (grub_gzio_read): Likewise.
14144 (grub_zlib_decompress): Likewise.
14145 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
14146 Accept partial and non-virtual mounts.
14147 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
14148 avoid receiving /dev/dm-X as device.
14149 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
14150 Handle bind and partial mounts.
14151 * grub-core/lib/crc.c: New file.
14152 * include/grub/deflate.h: Likewise.
14153 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
14154 proto.
14155 * include/grub/lib/crc.h: New file.
14156
e745cf0c
VS
141572011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14158
14159 Implement automatic module license checking according to new GNU
14160 guidelines.
14161
14162 * grub-core/kern/dl.c (grub_dl_check_license): New function.
14163 (grub_dl_load_core): Use grub_dl_check_license.
14164 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
14165 (GRUB_MOD_LICENSE): Likewise.
14166 (GRUB_MOD_DUAL_LICENSE): Likewise.
14167 All modules updated.
14168
2a9bc016
CW
141692011-04-11 Colin Watson <cjwatson@ubuntu.com>
14170
14171 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
14172 reserved_first_sector to 1. btrfs reserves plenty of space for boot
14173 loaders.
14174 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
14175
8a3bc88e
VS
141762011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14177
14178 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
14179
af869a4a
VS
141802011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14181
14182 * util/grub-fstest.c (read_file): Report GRUB error if file opening
14183 failed.
14184
9ee8d94f
VS
141852011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14186
14187 * grub-core/kern/file.c (grub_file_open): Don't take into account the
14188 parenthesis in the middle of the filename.
14189
b01abe3e
VS
141902011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14191
14192 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
14193 rather than trying to put initrd way too high.
14194 Reported by: Ryan Lortie <desrt@desrt.ca>
14195
335bda1e
VS
141962011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
14199 improperly removed string.
14200
5ca1a64d
VS
142012011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14202
14203 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
14204 is_disk.
14205 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
14206 (open_device) Likewise.
14207 (grub_util_biosdisk_close): Likewise.
d8ce9995 14208 Reported by: Mark Korenberg.
5ca1a64d 14209
cbac5b1e
AK
142102011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
14211
14212 * util/grub-mkconfig_lib.in: Add missing quotes.
14213
088cdb65
CW
142142011-04-10 Colin Watson <cjwatson@ubuntu.com>
14215
14216 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
14217 is NULL.
14218
8b8a81fa
VS
142192011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14220
14221 Dynamically count the number of lines for the lower banner.
14222
14223 * grub-core/normal/menu_entry.c (per_term_screen): New member
14224 num_entries.
14225 (print_down): Use num_entries.
14226 (update_screen): Likewise.
14227 (grub_menu_entry_run): Set num_entries.
14228 * grub-core/normal/menu_text.c (menu_viewer_data): New member
14229 num_entries.
14230 (grub_print_message_indented): Move real part to ...
14231 (grub_print_message_indented_real): ... here. Additional argument
14232 dry_run.
14233 (draw_border): Additional argument num_entries.
14234 (print_message): Additional argument dry_run.
14235 (print_entries): Receive menu viewer data.
14236 (grub_menu_init_page): New argment num_entries.
14237 (menu_text_set_chosen_entry): Use num_entries.
14238 (grub_menu_try_text): Likewise.
14239 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
14240 All users updated.
14241 (grub_ucs4_count_lines): New function.
14242 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
14243 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
14244 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
14245 (grub_term_border_height): Likewise.
14246 (grub_term_num_entries): Likewise.
14247
277f955b
VS
142482011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14249
14250 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
14251 Remove now unused string.
14252
536ce85a
CW
142532011-04-09 Colin Watson <cjwatson@ubuntu.com>
14254
14255 * docs/grub-dev.texi (Finding your way around): Update for 1.99
14256 build system.
14257 (Getting started): GRUB is developed in Bazaar now, not Subversion.
14258
14259 (Comment): Fix typo.
14260 (Getting started): General copy-editing.
14261 (Typical Development Experience): Likewise.
14262 (Error Handling): Likewise.
14263 (Video API): Likewise.
14264
2cf09e32
CW
142652011-04-09 Colin Watson <cjwatson@ubuntu.com>
14266
14267 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
14268 throughout.
14269
1ec652f4
VS
142702011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14271
14272 * util/grub-mkimage.c (main): Handle special naming of yeeloong
14273 directory.
14274
2c583728
CW
142752011-04-08 Colin Watson <cjwatson@ubuntu.com>
14276
14277 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
14278 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
14279 "development".
14280
d7a565e9
VS
142812011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14282
14283 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
14284 grub_strcpy since the lines aren't necessarily 0-terminated.
14285
7c2e4909
VS
142862011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14287
14288 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
14289 root on legacy.
14290
34c09785
VS
142912011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14292
14293 * grub-core/commands/probe.c (options): Argument to set isn't optional.
14294 (GRUB_MOD_INIT): DEVICE isn't optional.
14295
6a6f8058
VS
142962011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14297
14298 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
14299 word on new line if it's too long anyway. Fixes a hang.
14300
2e335e90
VS
143012011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14302
14303 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
14304 const.
14305 * util/grub-setup.c (main): Reuse md device name if available.
14306 * util/raid.c (grub_util_raid_getmembers): Receive device name and
14307 not GRUB name as argument.
14308 Based on patch by: Florian Wagner <fwagner>.
14309
10a7a867
VS
143102011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14311
14312 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14313 Place mbi on low memory for better compatibility.
14314
7a3d6cd9
VS
143152011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14316
14317 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
14318
18dd6b47
VS
143192011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
143202011-04-08 Colin Watson <cjwatson@ubuntu.com>
14321
14322 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 14323 * conf/Makefile.common: Likewise.
18dd6b47 14324
3c0e3f14
VS
143252011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14326
f7148863
VS
14327 * grub-core/normal/menu.c: Add missing include.
14328
143292011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14330
14331 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 14332
6d1fa41f
MZ
143332011-04-08 Martin Zuther <mzuther@mzuther.de>
14334
14335 * util/grub-mkconfig.in: Ignore emacsen backup.
14336
478182a8
VS
143372011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14338
14339 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
14340 on open.
14341 (grub_util_biosdisk_close): Likewise.
14342
72a89a54
VS
143432011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
14344
14345 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
14346 const attribute and use grub_isdigit.
14347
b5ebecfa
A
143482011-04-06 Andrey <dev_null@ukr.net>
14349
14350 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
14351 gcc warning.
14352
7755f66e
VS
143532011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14354
14355 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
14356 useful grub_dprintf's.
14357
461121ff
VS
143582011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
14361
2a961775
VS
143622011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14363
14364 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
14365
adf594cc
VS
143662011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14367
14368 Output errors if theme loading failed.
14369
14370 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
14371 grub_gfxterm_fullscreen on error paths to ...
14372 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
14373 theme loading error.
14374
665900a3
VS
143752011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14376
14377 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
14378 space for older compilers.
14379 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14380
a562b479
VS
143812011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
14382
14383 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
14384 and report them as not RAID members since they are useless for GRUB.
14385 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14386
850e9373
VS
143872011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14388
14389 Increase LVM implementation robustness in order not to crash on
14390 configurations like pvmove. Previously code assumed that in some places
14391 only lvs or only pvs are used whereas it seems that they are used
14392 interchangeably.
14393
14394 * grub-core/disk/lvm.c (read_node): New function.
14395 (read_lv): Use read_node.
14396 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
14397 Match volumes only at the end when all lvs are found. Take both
14398 pvs (first) and lvs (second) into account.
14399 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
14400 mirror_* into node_*. All users updated.
14401 (grub_lvm_stripe): Merge this ...
14402 (grub_lvm_mirror): ... and this ...
14403 (grub_lvm_node): ... into this. All users updated.
14404
6f332153
VS
144052011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14406
14407 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
14408 of function to allow further scanning for LVMs.
14409
829ea451
VS
144102011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14411
14412 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
14413 on failed seek as it breaks open fd reusage.
14414
09ceb9a5
VS
144152011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 * util/grub-install.in: Add a recommendation to use --recheck before
14418 reporting bugs.
14419
67e11623
VS
144202011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14421
14422 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
14423 are obtained.
14424
caee5efd
VS
144252011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
14426
14427 GRUB developper manual based on existing Internals section and
14428 contributions by the various authors with active copyright assignment.
14429
14430 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
14431 * docs/font_char_metrics.png: New file.
14432 * docs/font_char_metrics.txt: Likewise.
14433 * docs/grub-dev.texi: Likewise.
14434 * docs/grub.texi (Internals): Move from here ...
14435 * docs/grub-dev.texi: ... here.
14436
2cccc747
CW
144372011-04-01 Colin Watson <cjwatson@ubuntu.com>
14438
14439 Store the loopback device as data on loopback grub_disk structures,
14440 rather than the file it points to. This fixes use of freed memory
14441 if an existing loopback device is replaced.
14442
14443 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
14444 disk->data, not dev->file.
14445 (grub_loopback_read): Adjust file assignment to match.
14446 Fixes Ubuntu bug #742967.
14447
186ae367
CW
144482011-04-01 Colin Watson <cjwatson@ubuntu.com>
14449
14450 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
14451 when replacing an existing device.
14452
cfed2ad0
VS
144532011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
14454
14455 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
14456 memory corruptions.
14457
14458 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
14459 unsigned.
14460 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
14461 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
14462 (grub_jfs_read_inode): Likewise.
14463 (grub_jfs_opendir): Likewise. Remove now useless casts.
14464 (grub_jfs_getent): Likewise.
14465 Make ino a grub_uint32_t rather than int.
14466 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
14467 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
14468 division and module with bit operations.
14469 (grub_jfs_find_file): Make ino a grub_uint32_t.
14470 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
14471
05d2ed32
CW
144722011-04-01 Colin Watson <cjwatson@ubuntu.com>
14473
14474 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
14475 warning. (This was in fact always initialised before use, but GCC
14476 wasn't smart enough to prove that.)
14477 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
14478
91dc6073
VS
144792011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
14480
14481 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
14482 stack alignment.
14483 (efi_wrap_1): Likewise.
14484 (efi_wrap_2): Likewise.
14485 (efi_wrap_3): Likewise.
14486 (efi_wrap_4): Likewise.
14487 (efi_wrap_5): Likewise.
14488 (efi_wrap_6): Likewise.
14489 (efi_wrap_10): Likewise.
14490 Based on information by: Red Hat/Peter Jones.
14491
a8afc1d1
CW
144922011-03-31 Colin Watson <cjwatson@ubuntu.com>
14493
14494 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
14495 set-but-not-used variable.
14496
a826cc7d
CW
144972011-03-31 Colin Watson <cjwatson@ubuntu.com>
14498
14499 * docs/grub.texi (Simple configuration): Be more explicit about
14500 GRUB_DEFAULT, and add an example.
14501 Reported by: Leslie Rhorer.
14502
875b67ba
CW
145032011-03-30 Colin Watson <cjwatson@ubuntu.com>
14504
14505 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
14506 shell".
14507
fd7cd914
AS
145082011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14509
14510 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
14511 * util/grub.d/20_linux_xen.in: Likewise.
14512
090b1b6a
VS
145132011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14514
14515 * util/grub.d/10_linux.in: Try alternative config filenames where
14516 we parse config file.
14517 * util/grub.d/20_linux_xen.in: Likewise.
14518
baad885c
AS
145192011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
14520
14521 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
14522 * util/grub.d/20_linux_xen.in: Likewise.
14523
241e41f5
VS
145242011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 * grub-core/disk/raid.c (insert_array): Add few potentially
14527 useful grub_util_info.
14528 (grub_raid_register): Likewise.
14529
56445fb2
VS
145302011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
14533 Preserve partition number in mdadm code path.
14534
c871b1c6
VS
145352011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14536
14537 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
14538 few potentially useful grub_util_info.
14539
5e631b4f
CW
145402011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14541
14542 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
14543
2d5d0333
CW
145442011-03-30 Colin Watson <cjwatson@ubuntu.com>
14545
14546 * docs/grub.texi (default): Use @example rather than nested
14547 itemized lists to avoid breaking gendocs.
14548
3d7ed04e
CW
145492011-03-30 Colin Watson <cjwatson@ubuntu.com>
14550
14551 * docs/grub.texi (Future): Update.
14552
abf04200 145532011-03-30 Colin Watson <cjwatson@ubuntu.com>
14554
14555 * docs/grub.texi (Environment): New chapter.
14556 (Changes from GRUB Legacy): Link to "Environment block" section for
14557 details of limitations.
14558 (Simple configuration): Likewise. Link to documentation of gfxmode
14559 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
14560 respectively.
14561 (Shell-like scripting): Note that normal variables are stored in the
14562 environment.
14563 (gettext): Link to documentation of lang and locale_dir.
14564 (list_env): New section.
14565 (load_env): New section.
14566 (save_env): New section.
14567
14568 (Reporting bugs): Fix typo.
14569
e1ad0edd
VS
145702011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14571
14572 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
14573 the example.
14574
5d803174
VS
145752011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
14576
14577 * grub-core/term/at_keyboard.c (set_scancodes)
14578 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
14579
2a2da1d0
CW
145802011-03-30 Colin Watson <cjwatson@ubuntu.com>
14581
14582 * docs/grub.texi (Menu-specific commands): Remove some semantics
14583 that were true in GRUB Legacy but not in GRUB 2.
14584 (submenu): New section.
14585 (false): New section.
14586 (read): New section.
14587 (true): New section.
14588
a7527639
CW
145892011-03-30 Colin Watson <cjwatson@ubuntu.com>
14590
14591 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
14592
145932011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
14594
14595 * docs/grub.texi (Simple configuration): Explain some of the
14596 current limitations of grub-mkconfig.
8a748df2 14597 Reported by: Leslie Rhorer.
e30af029 14598
fc858482
VS
145992011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14600
14601 Old macs search for boot.efi rather than for bootia32.efi.
14602
14603 * util/grub-install.in: Copy bootia32.efi to boot.efi.
14604 * util/grub-mkrescue.in: Likewise.
14605 Suggested by: Peter Jones.
14606
e1eb511d
VS
146072011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
14610
70e75364
VS
146112011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14612
14613 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
14614 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
14615 (grub_lvm_mirror): New struct.
14616 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
14617 (grub_lvm_iterate): Iterate only visible volumes.
14618 (grub_lvm_read): Factor out to ..
14619 (read_lv): ... this. Support mirrors.
14620 (grub_lvm_read): New wrapper function.
14621 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
14622 stripped or mirrored.
14623
fc18f6a3
VS
146242011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14625
14626 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
14627
5c650f4c
CW
146282011-03-29 Colin Watson <cjwatson@ubuntu.com>
14629
14630 * docs/grub.texi (loopback): New section.
14631
61d7156b
CW
146322011-03-29 Colin Watson <cjwatson@ubuntu.com>
14633
14634 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
14635 removed -p option.
14636
994b8264
CW
146372011-03-29 Colin Watson <cjwatson@ubuntu.com>
14638
14639 * docs/grub.texi (BIOS installation): New section, partly based on
14640 previous text in other sections.
14641 (Installing GRUB using grub-install): Replace BIOS discussion with a
14642 cross-reference.
14643 (Images): Likewise.
14644
9e4d19e0
VS
146452011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14646
14647 * grub-core/kern/emu/hostdisk.c (find_partition_start)
14648 [HAVE_DIOCGDINFO]: Add safety checks.
14649
a307c0b2
VS
146502011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14651
14652 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
14653 per default compiled in kernel and prior to 8.0 isn't shipped at all.
14654
b4db4f39
CW
146552011-03-29 Colin Watson <cjwatson@ubuntu.com>
14656
14657 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
14658 real_sb->size is zero (e.g. RAID-0), get the disk size from
14659 real_sb->data_size instead.
14660 Fixes Ubuntu bug #743136.
14661
35e5f84c
VS
146622011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14663
14664 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
14665 printf clauses for printing size and start.
14666
d2e29d81
VS
146672011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14668
14669 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
14670 Reported and tested by: Timothy Nikkel.
14671
ed5587af
VS
146722011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14673
14674 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
14675 (dirty_region_add_real): ... this.
14676 (dirty_region_add): Don't discard margin refresh when performing
14677 scheduled repaint.
14678
a1dc717c
VS
146792011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 * grub-core/lib/relocator.c (allocate_regstart)
14682 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
14683 terminals are capabple of malloc-free operation.
14684 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14685 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
14686
9f3677d3
VS
146872011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
14688
14689 * util/grub-setup.c: Copy the partition table zone if floppy support
14690 is disabled, even if no partition table is found.
14691
14692 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
14693 during POST if an invalid partition table is contained in the PBR
14694 of the active partition when GRUB is installed to a partition.
14695
24148725
CW
146962011-03-28 Colin Watson <cjwatson@debian.org>
14697
14698 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
14699 comment.
14700
f329eda7
CW
147012011-03-28 Colin Watson <cjwatson@debian.org>
14702
14703 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
14704 to be specific about what kind of RAID device we're scanning for.
14705
c482ad98
SG
147062011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
14707
14708 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
14709 return freed string.
14710
5ee04984
VS
147112011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14712
14713 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
14714
f4727da9
VS
147152011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14716
14717 Use libgeom on FreeBSD to detect partitions.
14718
14719 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
14720 (grub-mkrelpath): Likewise.
14721 (grub-script-check): Likewise.
14722 (grub-editenv): Likewise.
14723 (grub-mkpasswd-pbkdf2): Likewise.
14724 (grub-fstest): Likewise.
14725 (grub-mkfont): Likewise.
14726 (grub-mkdevicemap): Likewise.
14727 (grub-probe): Likewise.
14728 (grub-setup): Likewise.
14729 (grub-ofpathname): Likewise.
14730 (grub-mklayout): Likewise.
14731 (example_unit_test): Likewise.
14732 (grub-menulst2cfg): Likewise.
14733 * grub-core/Makefile.core.def (grub-emu): Likewise.
14734 (grub-emu-lite): Likewise.
14735 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
14736 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
14737 define HAVE_DIOCGDINFO.
14738 (follow_geom_up) [FreeBSD]: New function.
14739 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
14740 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
14741 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
14742 unconditionally of HAVE_DIOCGDINFO.
14743
82fe6c75
VS
147442011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
14745
14746 Fix FreeBSD compilation problem.
14747
14748 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
14749 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
14750
4c6c9431
CW
147512011-03-24 Colin Watson <cjwatson@ubuntu.com>
14752
14753 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
14754 Switch back to page zero before loading a kernel, since some kernel
14755 drivers expect that.
14756 Thanks to: Felix Kuehling.
14757
c7064d94
VS
147582011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14759
14760 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
14761 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
14762 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
14763
3f71cded
VS
147642011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14765
14766 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
14767 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
14768
ef6de21a
VS
147692011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14770
14771 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
14772 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
14773 malloc is disabled.
14774
8bc66a2c
VS
147752011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
14776
14777 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
14778 for modules headers when counting the needed allocation size.
14779
5657722c
VS
147802011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14781
14782 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
14783 if no ASCII character is found to prevent crash.
14784
41a85f55
AK
147852011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
14786
14787 * grub-core/video/bitmap.c (match_extension): Ignore case.
14788
59e1e5f1
VS
147892011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
14792
bd4d051a
VS
147932011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14794
14795 * grub-core/script/parser.y: Declare "time" as valid argument.
14796
bae7fcc1
PJ
147972011-03-23 Peter Jones <pjones@redhat.com>
14798
14799 Fix incorrect assert failure reporting.
14800
14801 * grub-core/tests/example_functional_test.c (example_test): Add
14802 a failure comment.
14803 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
14804 (failure_start): ...this. Check that malloc succeeded.
14805 Don't call xvasprintf. Return failure struct.
14806 (failure_append_vtext): New function.
14807 (failure_append_text): Likewise.
14808 (add_failure): Likewise.
14809 (grub_test_assert_helper): Likewise.
14810 * include/grub/test.h (grub_test_assert_helper): New declaration.
14811 (grub_test_assert): Macro rewritten.
14812
537dc9be
VS
148132011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14814
14815 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14816
fa3e01bf
VS
148172011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14818
14819 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14820
b1d28404
VS
148212011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14822
14823 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14824 into GRUB-style one.
14825
2e3e2e09
VS
148262011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14827
14828 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14829 error and not grub_errno.
14830 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14831
ed57e557
VS
148322011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14833
14834 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14835 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14836
d1611f01
VS
148372011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14838
14839 * grub-core/efiemu/i386/pc/cfgtables.c
14840 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14841 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14842 (grub_xnu_unlock): Likewise.
14843 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14844
7d4e39d6
VS
148452011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14846
14847 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14848 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14849 * grub-core/commands/hashsum.c (aliases): Likewise.
14850 * grub-core/commands/setpci.c (pci_registers): Likewise.
14851 * grub-core/disk/usbms.c (attach_hook): Likewise.
14852 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14853 (zio_checksum_table): Likewise.
14854 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14855 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14856 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14857 * grub-core/lib/relocator.c (leftovers): Likewise.
14858 (extra_blocks): Likewise.
14859 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14860 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14861 (modules_last): Likewise.
14862 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14863 (devices): Likewise.
14864 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14865 (modules_last): Likewise.
14866 * grub-core/normal/auth.c (users): Likewise.
14867 * grub-core/normal/context.c (initial_menu): Likewise.
14868 (current_menu): Likewise.
14869 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14870 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14871 (grub_serial_terminfo_input_template): Likewise.
14872 (grub_serial_terminfo_output_template): Likewise.
14873 (grub_serial_terminfo_input): Likewise.
14874 (grub_serial_terminfo_output): Likewise.
14875 (registered): Likewise.
14876 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14877
40fc4659
VS
148782011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14879
14880 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14881 grub_video_mode_type_t.
14882 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14883 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14884 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14885
2da48d28
VS
148862011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14887
14888 * util/grub-install.in: Correct the x86-64 name as x86_64.
14889
9b43bf39
CW
148902011-03-11 Colin Watson <cjwatson@ubuntu.com>
14891
14892 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14893 initial chunk read from the kernel always includes GRUB's multiboot
14894 header, which is now outside the first sector.
14895
be1a7ce0
CW
148962011-03-09 Colin Watson <cjwatson@ubuntu.com>
14897
14898 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14899 cached mmap_size, so that this works correctly when called multiple
14900 times.
14901 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14902
83a3c48d
CW
149032011-03-09 Colin Watson <cjwatson@ubuntu.com>
14904
14905 * docs/grub.texi (Simple configuration): Tidy up formatting.
14906
57d75699
SJ
149072011-03-07 Szymon Janc <szymon@janc.net.pl>
14908
14909 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14910 Set-but-not-used variable removed.
14911
028501a0
VS
149122011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14913
14914 Workaround yet another IEEE1275 bug.
14915
14916 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14917 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14918 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14919 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14920 is set.
14921 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14922 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14923
d998657d
VS
149242011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14925
14926 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14927 error.
14928
fee7cdd4
CW
149292011-02-11 Colin Watson <cjwatson@ubuntu.com>
14930
14931 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14932 empty, since in that case we can only generate either nothing or a
14933 syntactically invalid configuration file.
14934 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14935
97286eb5
CW
149362011-02-09 Colin Watson <cjwatson@ubuntu.com>
14937
14938 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14939 (Making a GRUB bootable CD-ROM): Likewise.
14940 (Invoking grub-mkrescue): New section.
14941 Reported by: Yann Dirson. Fixes Debian bug #612585.
14942
22b28eb3
CW
149432011-02-09 Colin Watson <cjwatson@ubuntu.com>
14944
14945 * util/grub-install.in: Remove unnecessary brackets from tr
14946 arguments.
14947 * util/grub.d/10_hurd.in: Likewise.
14948 * util/grub.d/10_kfreebsd.in: Likewise.
14949 * util/grub.d/10_linux.in: Likewise.
14950 * util/grub.d/20_linux_xen.in: Likewise.
14951 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14952
7e735e43
CW
149532011-02-08 Colin Watson <cjwatson@ubuntu.com>
14954
14955 * include/grub/file.h (not_easly_seekable): Rename to ...
14956 (not_easily_seekable): ... this. Update all users.
14957
800f1881
CW
149582011-01-28 Colin Watson <cjwatson@ubuntu.com>
14959
14960 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14961 grub-mkrescue.
14962
3281d3d6
VS
149632011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14964
14965 * util/grub-mkimage.c (generate_image): Refuse to create the images
14966 bigger than the actual flash (512K) in Loongson machines. 512K is also
14967 the biggest chip supported by them.
14968
3533413c
VS
149692011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14970
14971 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14972
73ae4f4f
VS
149732011-01-22 Anthony DeRobertis <anthony@derobert.net>
14974
14975 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14976 super_offset field.
14977
37f4f608
VS
149782011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14979
14980 * util/grub-install.in: Ignore install device on platforms
14981 where it doesn't make sense. Always use UUIDs except on pc, efi and
14982 sparc64.
14983 Reported by: Daniel Kahn Gillmor.
14984
03a4ccb5
VS
149852011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14986
14987 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14988
ffc8f4d8
VS
149892011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14990
14991 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14992 (iterate_real): Don't rely on partition being non-NULL.
14993
80f23be7
VS
149942011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14995
14996 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14997 supported platforms. Put a compile time assert for this rather than
14998 generate a warning with 32-bit shift.
14999
5d4f4dd5
VS
150002011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15001
15002 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
15003 logical expression more readable.
15004
e489601a
VS
150052011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
15006
15007 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
15008 even if some elements have a name.
15009 Reported by: Alexander GQ Gerasiov.
15010
96e0a6ea
CW
150112011-01-22 Colin Watson <cjwatson@ubuntu.com>
15012
15013 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
15014 path unreadable if `grub-probe -t abstraction' fails, for example if
15015 memberlist fails on an LVM volume group.
15016 Reported by: Darius Jahandarie.
15017
81431e2b
CW
150182011-01-22 Colin Watson <cjwatson@ubuntu.com>
15019
15020 * docs/grub.texi (Simple configuration): Document
15021 GRUB_PRELOAD_MODULES.
15022
5e79d66a
CW
150232011-01-17 Colin Watson <cjwatson@ubuntu.com>
15024
15025 * .bzrignore: Remove nonexistent grub-pbkdf2.
15026
646ada34
VS
150272011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
15028
15029 * configure.ac: Bump version to 1.99~rc1.
15030
04360337
VS
150312011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
15032
15033 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
15034 for safety.
15035
46c9db88
VS
150362011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15037
15038 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
15039 module.
15040
150412011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
15042
15043 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
15044
4fbf1852
VS
150452011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15046
15047 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
15048 diskdevid.
15049
f1632d4d
VS
150502011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 Fix compilation on cygwin.
15053
15054 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
15055 -R .drectve on cygwin.
15056 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
15057 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
15058 (COND_CYGWIN): New condition.
15059 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
15060 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
15061 not @TARGET_OBJ2ELF@.
15062 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
15063 type to determine whether aux is to be used.
15064
0b5e127b
VS
150652011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
15068 realpath'ed device string.
15069 Handle floppy (somewhat).
15070 Issue error in unknown case rather than garbage.
15071 Reported by: Axel Beckert.
15072
173b71e9
VS
150732011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15074
15075 * util/grub.d/00_header.in (load_video): Handle the case when no video
15076 drivers available.
15077 Thanks to: Axel Beckert.
15078
f8f479db
VS
150792011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15080
15081 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
15082 variable. Fixes problem on big endian platforms.
15083
8fc0a245
VS
150842011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15085
15086 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
15087 It doesn't work well there.
15088
b8494fbe
VS
150892011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15090
15091 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
15092 warning.
15093 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
15094 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
15095 counter.
15096
b44a558c
VS
150972011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15098
15099 Use alias->path rather than buggy "canon".
15100
15101 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
15102 (ofdisk_hash_add): New argument curcan. All users updated.
15103
51fa856c
CW
151042011-01-11 Colin Watson <cjwatson@ubuntu.com>
15105
15106 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
15107
9da068a5
VS
151082011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15109
15110 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
15111 loadmask before doing any calculations. Use correct type for offset.
15112 (grub_linux_load64): Likewise.
15113
86205c94
CW
151142011-01-11 Colin Watson <cjwatson@ubuntu.com>
15115
15116 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
15117 with NULL.
15118 (console_grub_equivalences_unshift): Likewise.
15119 Reported by: Daniel Dehennin.
15120
4531a206
VS
151212011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15122
15123 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
15124 (set_env_limn_ro): Likewise.
15125 (GRUB_MOD_INIT): Likewise.
15126 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
15127 ARRAY_SIZE while on it.
15128 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
15129 * grub-core/normal/context.c (grub_env_export): Move from here ...
15130 * grub-core/kern/env.c (grub_env_export): ... here.
15131 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
15132 prefix.
15133 * grub-core/kern/main.c (grub_main): Export root and prefix.
15134 * include/grub/env.h (grub_env_export): Export.
15135 Reported by: Seth Goldberg.
15136
45146057
VS
151372011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15138
15139 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15140 Take into account space used by ELF sections and multiboot palette.
15141 Reported by: Grégoire Sutre.
15142
f093110b
VS
151432011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15144
15145 * BUGS: New file.
15146
3395fe52
VS
151472011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15148
15149 Pass more appropriate video id to Linux.
15150
15151 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
15152 grub_video_get_driver_id and variable gfxpayloadforcelfb to
15153 fill have_vga.
15154 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
15155 shift params->lfb_size.
15156 * include/grub/i386/linux.h: Make an enume out of have_vga values.
15157
c2fa6cbb
VS
151582011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15159
15160 * util/grub-menulst2cfg.c: Add missing include of misc.h.
15161
b3ff6ff0
VS
151622011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
15165 separator and pass bootpath/devid even if only one of them is available.
15166 Reported by: Seth Goldberg.
15167
ae67942e
VS
151682011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15169
15170 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
15171 implementations bug on them.
15172
15173 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
15174 memory.
15175 (filter_memory_map): Likewise.
15176
d570097a
VS
151772011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15178
15179 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
15180 Reported by: nebuchadnezzar.
15181
a508e776
VS
151822011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15183
15184 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
15185 Reported by: nebuchadnezzar.
15186
dcb883b1
VS
151872011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15188
15189 Submenu default support.
15190
15191 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
15192 auto_boot. All users updated.
15193 Declared static.
15194 Handle chosen and default with submenus.
15195 (grub_menu_execute_with_fallback): Declared static.
15196 Don't notify failure if autobooted. Upper level does it.
15197 (menuentry_eq): New function.
15198 (get_entry_number): Use menuentry_eq.
15199 (show_menu): New parameter "autobooted". All users updated.
15200 (grub_show_menu): Likewise.
15201 * include/grub/normal.h (grub_show_menu): Likewise.
15202 * include/grub/menu.h (grub_menu_execute_entry): Removed.
15203 (grub_menu_execute_with_fallback): Likewise.
15204
6fef99b4
VS
152052011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15206
15207 * util/grub-mklayout.c (usage): Update help text.
15208
47a77af5
VS
152092011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15210
15211 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
15212
ce6bb3ee
VS
152132011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15214
15215 * util/grub-menulst2cfg.c (main): Trim the line.
15216
db87be2a
VS
152172011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15218
15219 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
15220 (grub_machine_init): Don't check amount of low memory as reportedly
15221 INT 12h can be broken and if low memory is too low we wouldn't have
15222 gotten into grub_machine_init anyway.
15223
c49849cc
VS
152242011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15225
15226 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
15227 (grub_machine_mmap_iterate): Take low memory into account
15228
b1969b30
VS
152292011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15230
15231 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
15232 badfs.
15233 Reported by: TiCPU.
15234
cf0eaf13
VS
152352011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
15238 members errors.
15239
1f060f39
GS
152402011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15241
15242 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
15243 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
15244
a21e5672
GS
152452011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
15246
15247 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
15248 openbsd and netbsd types being in part_bsd module.
15249
c88172fa
VS
152502011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15251
15252 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
15253 (_FILE_OFFSET_BITS): Likewise.
15254 Reported by: Seth Goldberg.
15255
53798c4b
GS
152562011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
15257
15258 * configure.ac: Check for libdevmapper header.
15259
e7121b69
VS
152602011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15261
15262 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
15263 avoid aliasing.
15264 (fzap_lookup): Likewise.
15265 (dnode_get): Likewise.
15266 (make_mdn): Likewise.
15267 (zfs_mount): Likewise.
15268 (fzap_iterate): Use temporary pointer to avoid aliasing.
15269 (grub_zfs_read): Likewise.
15270 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
15271 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
15272 pointers to avoid aliasing.
15273 (grub_cmd_xnu_kernel64): Likewise.
15274 (grub_xnu_load_driver): Likewise.
15275
fc836af9
VS
152762011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15277
15278 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
15279 aliasing warning.
15280 (grub_cmd_terminal_output): Likewise.
15281 Reported and tested by: Grégoire Sutre.
15282
f9f37648
VS
152832011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15284
15285 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
15286 warning.
15287 Reported and tested by: Grégoire Sutre.
15288
ec1dfd63
VS
152892011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15290
15291 * configure.ac: Do CPU substitution even if it's specified explicitly.
15292 Reported and tested by: Alain Greppin.
15293
9462775a
VS
152942011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15295
15296 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
15297 Reported and tested by: Alain Greppin.
15298
0fd48e35
VS
152992011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15300
15301 Satisfy some bison versions need for inttypes.h.
15302
15303 * grub-core/lib/posix_wrap/inttypes.h: New file.
15304 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
15305 (int16_t): Likewise.
15306 (int32_t): Likewise.
15307 (int64_t): Likewise.
15308 Reported and tested by: Alain Greppin.
15309
43f1bc83
VS
153102011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
15311
15312 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
15313 Silence spurious warning.
15314 Reported and tested by: Alain Greppin.
15315
64d1f041
SJ
153162011-01-07 Szymon Janc <szymon@janc.net.pl>
15317
15318 * docs/grub.texi (Support automatic decompression): Update with xz
15319 decompression support.
15320
25953e10
SJ
153212011-01-07 Szymon Janc <szymon@janc.net.pl>
15322
15323 Improve loaders' kernel command line handling.
15324
15325 * grub-core/lib/cmdline.c: New file.
15326 * include/grub/lib/cmdline.h: Likewise.
15327 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
15328 grub_create_loader_cmdline to create kernel command line.
15329 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15330 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
15331 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
15332 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
15333 (linux): Add lib/cmdline.c on common.
15334
e72d259f
VS
153352011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15336
15337 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
15338 inopos might be unaligned.
15339
c0cf26da
VS
153402011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15341
15342 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
15343 endian transformations.
15344 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15345 Based on report by: Doug Nazar.
15346
0ca09e6c
DN
153472011-01-07 Doug Nazar <nazard.michi@gmail.com>
15348
15349 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
15350 array->members[i].start_sector.
15351 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
15352
014b6806
VS
153532011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
15354
15355 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
15356 Reported and tested by: Grégoire Sutre.
15357
415502c2
CW
153582011-01-06 Colin Watson <cjwatson@ubuntu.com>
15359
15360 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
15361 avoid causing test failures by clearing the screen.
15362
71b6a2b7
CW
153632011-01-06 Colin Watson <cjwatson@ubuntu.com>
15364
15365 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
15366 Fix prefix check to handle the case where dir ends with a slash
15367 (most significantly, "/" itself).
15368 Reported by: Michael Vogt.
15369
b3f8d28a
VS
153702011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15371
15372 Run terminfo_cls on initing terminfo output to clear the screen and
15373 move the cursor to (0,0).
15374
15375 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
15376 Call grub_terminfo_output_init.
15377 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
15378 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
15379 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
15380
4c3e4f37
VS
153812011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15382
15383 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
15384 only when needed.
15385
488f71f1
VS
153862011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15387
15388 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
15389 CTRL.
15390
18a38098
VS
153912011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
15392
15393 The E820 type 5 is BADRAM, not EXEC_CODE.
15394
15395 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15396 (GRUB_E820_BADRAM): New define.
15397 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
15398 into reserved. Propagate BADRAM.
15399 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
15400 (GRUB_E820_BADRAM): New define.
15401
9eae2084
VS
154022011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15403
15404 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
15405 Ignore the memory post-4G.
15406 (grub_relocator_firmware_alloc_region): Additional debug statement.
15407
ebc71d28
VS
154082011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15409
15410 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
15411 names.
15412 Reported by: David Pravec.
15413
446fa400
VS
154142011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15415
15416 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
15417 BIOSes.
15418
a0159f37
VS
154192011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15420
15421 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
15422 Prevent overflow.
15423 (grub_reed_solomon_recover): Likewise.
15424
e5146ca1
VS
154252011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
15426
15427 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
15428
154292011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
15430
15431 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
15432 variable.
15433
5b1bdf12
CW
154342011-01-04 Colin Watson <cjwatson@ubuntu.com>
15435
15436 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
15437 descriptions of extract_legacy_entries_source and
15438 extract_legacy_entries_configfile.
15439 Reported by: Seung Soo, Ha.
15440
99d925aa
CW
154412011-01-03 Colin Watson <cjwatson@ubuntu.com>
15442
15443 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
15444 on devices that do not implement function 0.
15445
4af0504b
DV
154462011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
15447
15448 * grub-core/fs/hfsplus.c: Make parent unsigned.
15449 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
15450 overflows.
15451 (grub_hfsplus_cmp_extkey): Likewise
15452
469ee10a
VS
154532011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15454
15455 * util/grub-install.in: Correctly use bootloader_id and not
15456 GRUB_DISTRIBUTOR on efibootmgr line.
15457
323a8e9c
VS
154582011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
15459
15460 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
15461
1b394975
IC
154622010-12-31 Ian Campbell <ijc@hellion.org.uk>
15463
15464 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
15465 Xen and reorder menu item wording to make it clearer that this entry
15466 will launch Xen. Print separate messages when loading Xen and
15467 Linux.
15468
275bff5f
VS
154692010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15470
15471 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
15472 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
15473 loop in case of incorrect amiga partmap.
15474
307806cb
VS
154752010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15476
15477 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
15478 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
15479 Reported by:EHeM.
15480
b12b923e
VS
154812010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
15482
15483 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
15484 spurious warning.
15485 Reported by: crocket
15486
14b48a19
VS
154872010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15488
15489 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
15490 Preload EFIemu.
15491 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
15492
693db2df
VS
154932010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15494
15495 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
15496 is loaded
15497 (grub_cmd_xnu_kextdir): Likewise.
15498 (grub_cmd_xnu_splash): Likewise.
15499
c7638645
VS
155002010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15501
15502 Avoid using Reed-Solomon with 0 redundancy.
15503
15504 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
15505 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
15506 or 0 redundancy.
15507 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
15508 (grub_reed_solomon_recover): Likewise.
15509
25dd4780
VS
155102010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
15511
15512 Don't use disk subsystem in freebsd_boot.
15513
15514 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
15515 (freebsd_biosdev): Likewise.
15516 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
15517 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
15518
0b2db943
VS
155192010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15520
15521 Handling of files of unknown size is currently limited. They can't be
15522 used e.g. for initrd or modules. Moreover gzip handling of not
15523 easily seekable files is buggy. Disable unknown file size for now. May
15524 be inefficient but works.
15525
15526 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
15527 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
15528
5c408d0f
MP
155292010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
15530
15531 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
15532 floppy probe.
15533
190a011a
JD
155342010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
15535
15536 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
15537
022d01b8
SL
155382010-12-25 Shea Levy <shlevy>
15539
15540 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
15541
c4855fdc
VS
155422010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15543
15544 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
15545 Windows Server 2008.
15546 Reported by: Devin Giddings.
15547
0354b867
VS
155482010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15549
15550 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
15551 writing an error message because of async power management.
15552 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
15553 (grub_reboot): Likewise.
15554
ab66c69f
JU
155552010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
15556
15557 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
15558 keep unit tests from failing when they shouldn't.
15559
1426ef35
CW
155602010-12-21 Colin Watson <cjwatson@ubuntu.com>
15561
15562 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
15563 previous patch increased the size of the RS code by 20 bytes (at
15564 least with gcc-4.4), so increase this by 20 bytes to match.
15565 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
15566
20641b6b
CW
155672010-12-21 Colin Watson <cjwatson@ubuntu.com>
15568
15569 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
15570 scratch area. Make sure to initialise chosen in standalone mode as
15571 well as non-standalone.
15572 Reported by: Robert Hooker and Andy Whitcroft.
15573 Tested by: Andy Whitcroft.
15574
d060ad60
CW
155752010-12-21 Colin Watson <cjwatson@ubuntu.com>
15576
15577 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
15578 constructing a new unescaped string and passing it to grub_xputs in
15579 one go, rather than passing characters to grub_printf one at a time.
15580
b889cfad
CW
155812010-12-21 Colin Watson <cjwatson@ubuntu.com>
15582
15583 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
15584 initialising utf16.
15585
4e01b6c8
CW
155862010-12-21 Colin Watson <cjwatson@ubuntu.com>
15587
15588 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
15589 comment. Add an extra layer of quotation, requiring the output of
15590 this function to be used in a printf format string.
15591 (gettext_printf): New function.
15592 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
15593 Extract translatable strings from here-documents and use a temporary
15594 variable instead, so that xgettext can find them.
15595 * util/grub.d/10_kfreebsd.in: Likewise.
15596 * util/grub.d/10_linux.in: Likewise.
15597 * util/grub.d/20_linux_xen.in: Likewise.
15598
15599 * po/grub.d.sed: New file.
15600 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
15601 arguments. Set c-format flags on all strings extracted from
15602 util/grub.d/ (xgettext refuses to include these itself for strings
15603 it extracted from a shell file, but these really are c-format).
15604
5318fe98
VS
156052010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15606
15607 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
15608 Avoid next pointing to nowhere.
15609
6c85b743
VS
156102010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15611
15612 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
15613 rather than assuming than rootblock is exactly in the middle.
15614 (grub_affs_label): Likewise.
15615
a2a08a35
VS
156162010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15617
15618 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
15619 reserved_first_sector to 0.
15620 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
15621 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
15622 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
15623
7059d1ec
VS
156242010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
15625
15626 Fix handling of UTF-16 UDF labels.
15627
15628 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
15629 (read_string): .. here.
15630 (grub_udf_label): Use read_string.
15631
30aff4cb
BC
156322010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
15633
15634 * grub-core/normal/menu_entry.c (run): Execute commands from menu
15635 editor under argument scope.
15636 Reported by: Jordan Uggla
15637
5cf86f4b
VS
156382010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15639
15640 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
15641
32570200
CW
156422010-12-18 Colin Watson <cjwatson@ubuntu.com>
15643
15644 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
15645 line, and other keys scroll an entire page (previous handling was
15646 for \r and \n to scroll a page and other keys to scroll two lines).
15647
e1dffcf2
VS
156482010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
15649
15650 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
15651 Set ptrdest to correct get_physical_target_address rather than
15652 incorrect get_virtual_current_address.
15653
b04298cf 156542010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
15655
15656 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
15657 correct cat to grub_uint8_t * rather than grub_uint32_t *.
15658
5367ecd3
CW
156592010-12-10 Colin Watson <cjwatson@ubuntu.com>
15660
15661 * .bzrignore: Ignore grub-core/rs_decoder.S.
15662
1fb430f8
CW
156632010-12-10 Colin Watson <cjwatson@ubuntu.com>
15664
15665 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
15666 .mo/.mo.gz opening sequence to ...
15667 (grub_mofile_open_lang): ... here.
15668 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
15669 * util/grub.d/00_header.in (grub_lang): Include country part of
15670 locale.
15671 Reported by: Mario Limonciello.
15672
a94a6671
RM
156732010-12-09 Robert Millan <rmh@gnu.org>
15674
15675 * NEWS: Document addition of ZFS support.
15676
24b7938b
CW
156772010-12-04 Colin Watson <cjwatson@ubuntu.com>
15678
15679 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
15680 rather than `/ 2', as the latter requires -Wa,--divide which would
15681 require bumping our minimum binutils version.
15682
bddc3ef6
BC
156832010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
15684
15685 * util/grub-script-check.c (main): Print script line number on
15686 error.
15687
bf78d5b2
RM
156882010-12-01 Robert Millan <rmh@gnu.org>
15689
15690 * grub-core/fs/zfs/zfs.c: New file.
15691 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
15692 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
15693 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
15694 * grub-core/fs/zfs/zfsinfo.c: Likewise.
15695
15696 * include/grub/zfs/dmu.h: Likewise.
15697 * include/grub/zfs/dmu_objset.h: Likewise.
15698 * include/grub/zfs/dnode.h: Likewise.
15699 * include/grub/zfs/dsl_dataset.h: Likewise.
15700 * include/grub/zfs/dsl_dir.h: Likewise.
15701 * include/grub/zfs/sa_impl.h: Likewise.
15702 * include/grub/zfs/spa.h: Likewise.
15703 * include/grub/zfs/uberblock_impl.h: Likewise.
15704 * include/grub/zfs/vdev_impl.h: Likewise.
15705 * include/grub/zfs/zap_impl.h: Likewise.
15706 * include/grub/zfs/zap_leaf.h: Likewise.
15707 * include/grub/zfs/zfs.h: Likewise.
15708 * include/grub/zfs/zfs_acl.h: Likewise.
15709 * include/grub/zfs/zfs_znode.h: Likewise.
15710 * include/grub/zfs/zil.h: Likewise.
15711 * include/grub/zfs/zio.h: Likewise.
15712 * include/grub/zfs/zio_checksum.h: Likewise.
15713
15714 * Makefile.util.def: Build ZFS into libgrubmods.
15715 * grub-core/Makefile.core.def: Build zfs.mod.
15716
3f0f3831
SJ
157172010-11-30 Szymon Janc <szymon@janc.net.pl>
15718
15719 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
15720 variable.
15721 * grub-core/commands/wildcard.c (match_files): Likewise.
15722
3a4253b2
RM
157232010-11-30 Robert Millan <rmh@gnu.org>
15724
15725 * grub-core/loader/i386/bsd.c
15726 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
15727 whether kernel is loaded using grub_loader_is_loaded(), rather
15728 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
15729 certain error conditions.
15730
8c317b27
RM
157312010-11-30 Robert Millan <rmh@gnu.org>
15732
c5c9cd3e
RM
15733 * grub-core/commands/echo.c: Include `<grub/term.h>'.
15734 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 15735
49d3ab46
VS
157362010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15737
15738 Avoid using tricks for initialising endian variables.
15739
15740 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
15741 Make const.
15742 (GRUB_MOD_INIT): Don't byte-swap.
15743 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15744 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
15745 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
15746 (grub_swap_bytes32_compile_time): Likewise.
15747 (grub_cpu_to_le32_compile_time): Likewise.
15748 (grub_cpu_to_le16_compile_time): Likewise.
15749
f420a804
VS
157502010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
15751
15752 * util/grub-setup.c (setup): Stop recommending --force. People who
15753 understand the dangers of blocklists are able to find this option
15754 anyway and the ones who don't shouldn't use it anyway.
15755
4e7db17b
RM
157562010-11-26 Robert Millan <rmh@gnu.org>
15757
15758 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
15759 Update all users.
15760
9be57a0d
CW
157612010-11-26 Colin Watson <cjwatson@ubuntu.com>
15762
15763 Fix LVM-on-RAID probing.
15764
15765 * util/grub-probe.c (probe): Remember which disk was detected as
15766 RAID (perhaps an LVM physical volume). Use that disk's raidname
15767 rather than that of the top-level disk.
15768
2c7859b3 157692010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 15770
d7647bb6
BC
15771 Fix cmdline argument quotes for setparams command of menuentry
15772 definitions.
7e623b0d
BC
15773
15774 * grub-core/commands/menuentry.c (setparams_prefix): Use single
15775 quotes for arguments.
f866fe80 15776 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 15777 grub_strchrsub function instead.
f866fe80 15778
7955bea0 15779 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 15780
74f72a64
CW
157812010-11-24 Colin Watson <cjwatson@ubuntu.com>
15782
15783 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
15784 effort by skipping "." and ".." entries up-front.
15785 Suggested by: Michael Lazarev.
15786
5a407278
CW
157872010-11-24 Colin Watson <cjwatson@ubuntu.com>
15788
15789 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
15790 ldflags to ldadd, to fix link line ordering.
15791 (none_decompress): Likewise.
15792
3030d8ec
CW
157932010-11-24 Colin Watson <cjwatson@ubuntu.com>
15794
15795 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
15796 platforms.
15797 (grub-emu-lite): Remove kern/emu/cache.S.
15798
b7fbac12
CW
157992010-11-23 Colin Watson <cjwatson@ubuntu.com>
15800
15801 * util/deviceiter.c (compare_devices): If the by-id link for a
15802 device couldn't be resolved, fall back to sorting by the by-id link
15803 rather than segfaulting.
15804 Reported and tested by: Daniel Mierswa.
15805
5225f328
CW
158062010-11-23 Colin Watson <cjwatson@ubuntu.com>
15807
15808 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
15809 ldflags, to fix link line ordering.
15810
038b3ce8
CW
158112010-11-23 Colin Watson <cjwatson@ubuntu.com>
15812
15813 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
15814 linkers are picky about this.
15815
bf16e98e
CW
158162010-11-23 Colin Watson <cjwatson@ubuntu.com>
15817
15818 * grub-core/Makefile.am (command.lst): Adjust sed expression
15819 ordering so that extended and priority commands aren't treated as
15820 ordinary commands.
15821
7242bab6
CW
158222010-11-23 Colin Watson <cjwatson@ubuntu.com>
15823
15824 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15825 Remove byte-swapping function calls, which are not valid in
15826 structure initialisers.
15827 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15828 non-const.
15829 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15830 grub_gpt_partition_type_bios_boot.
15831
14e8b279
CW
158322010-11-22 Colin Watson <cjwatson@ubuntu.com>
15833
15834 Fix test program build on GNU/kFreeBSD.
15835
15836 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15837 $(LIBNVPAIR)' library dependencies.
15838
e6f63338 158392010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
15840
15841 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15842
cf8ffc38
CW
158432010-11-22 Colin Watson <cjwatson@ubuntu.com>
15844
15845 * util/grub-install.in: Remove excessive quoting that broke
15846 installations to RAID devices.
15847
7f8b0fd7
VS
158482010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15849
15850 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15851 bootloader version instead of 0.
15852
dfd240b1
VS
158532010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15854
15855 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15856 warning.
15857
7b61e609
VS
158582010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15859
15860 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15861 retrieve the metadat sector if size isn't known.
15862 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15863
9dfe92d0
RM
158642010-11-18 Robert Millan <rmh@gnu.org>
15865
15866 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15867 with grub_memcmp().
15868
41cc919e
VS
158692010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15870
15871 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15872 arrow.
15873 Reported by: Jordan Uggla.
15874
1afcc914
VS
158752010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 Make better UTF compliant.
15878
15879 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15880 sequences as incorrect.
15881 (grub_is_valid_utf8): Likewise.
15882 (grub_utf8_to_ucs4): Likewise.
15883 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15884 (grub_ucs4_to_utf8_alloc): Likewise.
15885 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15886
f1808884
VS
158872010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15888
15889 Make legacy_source behave like source.
15890
15891 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15892 grub_show_menu.
15893 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15894
24ec575b
CW
158952010-11-16 Colin Watson <cjwatson@debian.org>
15896
15897 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15898 (-Wunused implies -Wunused-parameter, but not vice versa).
15899
72b7c7aa
CW
159002010-11-16 Colin Watson <cjwatson@ubuntu.com>
15901
15902 * configure.ac: Make error messages less confusing by testing for
15903 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15904 accepted, but produces a diagnostic if something else is wrong).
15905
e98937aa
VS
159062010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15907
15908 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15909 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15910 (now unused).
15911 (grub_keyboard_controller_init)
15912 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15913 read the initial state since controller isn't inited yet.
15914
f6bbabc3
VS
159152010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15916
15917 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15918 allocate_regbeg may need to create new chunk header.
15919
22e7dbb2
VS
159202010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15921
15922 Fix quoting in legacy parser.
15923
15924 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15925 single quotes.
15926 (grub_legacy_parse): Likewise.
15927 Reported by: Jordan Uggla.
15928 Tested by: Jordan Uggla.
15929
03f80960
VS
159302010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15931
15932 Don't add -lgcc on i386 and x86_64.
15933
15934 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15935 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15936 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15937
779dc15b
VS
159382010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15939
15940 * configure.ac: Add -Wno-trampolines when supported.
15941
d20a3b37
MV
159422010-11-14 Modestas Vainius <modax@debian.org>
15943
15944 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15945 fakeraid.
15946
e5360933
GC
159472010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15948
15949 Add generic logical block size support for UDF.
15950
15951 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15952 (GRUB_UDF_BLKSZ): Removed.
15953 (struct grub_udf_data): New field "lbshift" to hold the logical block
15954 size of the file system in log2 format. All users updated.
15955 (sblocklist): Change type to unsigned.
15956 (grub_udf_mount): Change type of "sblklist" to unsigned.
15957 Move AVDP search before VRS recognition, because the latter requires
15958 knowledge of the logical block size, which is detected during the
15959 former.
15960 Detect and validate logical block size during AVDP search, adding
15961 support for block sizes 512, 1024 and 4096.
15962 Make VRS recognition independent of block size.
15963
cb0229c5
GC
159642010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15965
15966 Properly handle deleted files on UDF.
15967
15968 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15969 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15970 set.
15971
406858a8
GC
159722010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15973
15974 Support reading files larger than 2 GiB.
15975
15976 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15977 "offset" to grub_off_t.
15978 (grub_udf_read_file): Likewise for parameter "pos".
15979
130da6a7
VS
159802010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15981
15982 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15983 unavailable.
15984 (Simple configuration): Refer to Changes from GRUB Legacy about
15985 save_env availability.
15986
65e93f6b
VS
159872010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15988
15989 * util/grub-install.in: Ignore empty partition table detection
15990 instead of trying to include part_ module.
15991
1fd08bf1
VS
159922010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15993
15994 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15995 LVM on RAID support.
15996
de1a024f
VS
159972010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15998
15999 Properly define WORDS_BIGENDIAN in wrapped environments.
16000
16001 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
16002 definition.
16003 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
16004
16005 Reported by: Manoel Rebelo Abranches.
16006 Tested by: Manoel Rebelo Abranches.
16007
bc5dd0b9
VS
160082010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16009
16010 * util/grub-mkconfig.in: Fix quoting.
16011
58c184be
VS
160122010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16013
16014 Support big ext2 files.
16015
16016 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
16017 (grub_ext2_read_block): Support triple indirect blocks.
16018 (grub_ext2_read_file): Use 64-bit types and read size_high.
16019 (grub_ext2_open): Read size_high.
16020 Reported by: Ximin Luo.
16021 Tested by: Manoel Rebelo Abranches.
16022
5f0c02b3
VS
160232010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16024
16025 * util/grub-install.in: Handle filenames containing spaces.
16026 Reported by: Jordan Uggla.
16027 Tested by: Jordan Uggla.
16028
4417aae6
VS
160292010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16030
16031 * util/grub-mkconfig.in (grub_script_check): New variable.
16032 Use grub_script_check instead of grub-script-check.
16033 Reported by: Barry Jackson.
16034
7625a68e
VS
160352010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16036
16037 * docs/grub.texi (menu): Correct the order.
16038 Reported by: D. Hugh Redelmeier.
16039
10001ac5
VS
160402010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16041
16042 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
16043 jump.
16044
9c4cf53b
MRA
160452010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
16046
10001ac5
VS
16047 * include/grub/elfload.h (grub_elf32_size): New parameter.
16048 All users updated.
9c4cf53b
MRA
16049 Return maximum segments alignment.
16050 (grub_elf64_size): Likewise.
16051 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
16052 Return maximum segments alignment.
16053 (grub_elf64_size): Likewise.
16054 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
16055 (grub_linux_claimmap_iterate): New function. Uses the
16056 "available" property in the "memory" node for memory allocation
16057 for kernel in the PowerPC loader.
9c4cf53b
MRA
16058 (grub_linux_load32): Correctly find linux entry point offset.
16059 (grub_linux_load64): Likewise.
16060
d2bf06bf
RM
160612010-11-07 Robert Millan <rmh@gnu.org>
16062
16063 On mips-yeeloong, build with -march=loongson2f when this flag is
16064 available (GCC >= 4.4).
16065 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
16066 `-march=mips3'.
16067 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
16068 or otherwise add -march=mips3.
16069
898c99a2
BC
160702010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
16071
87220a68
BC
16072 Suppress shell expansion on echo '*' and echo "*" like cases.
16073 Reported by: Jordan Uggla.
898c99a2
BC
16074
16075 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
16076 string arguments before shell expansion.
16077 * tests/grub_cmd_echo.in: New testcases.
16078
4f9b406a
RM
160792010-11-07 Robert Millan <rmh@gnu.org>
16080
16081 * conf/mips-qemu-mips.rmk: Remove stale file from previous
16082 transition.
16083
80c6d25e
VS
160842010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
16085
16086 * grub-core/kern/emu/hostdisk.c
16087 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
16088
4a1a0153
VS
160892010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16090
16091 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
16092 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
16093 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
16094
34706ddc
VS
160952010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16096
16097 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
16098
6972dea9
VS
160992010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16100
16101 * util/grub-install.in: Replace useless recomendation to pass
16102 --modules with a recomendation to report a bug.
16103
9c693bd6
VS
161042010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16105
16106 Properly register serial terminfo.
16107 Reported by: Jordan Uggla
16108
16109 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
16110 const.
16111 (grub_serial_terminfo_output_template): Likewise.
16112 (grub_cmd_serial): Register "serial" with terminfo.
16113 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
16114 grub_serial_terminfo_output.
16115
6c9e4c0c
RM
161162010-11-05 Robert Millan <rmh@gnu.org>
16117
16118 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
16119 needed).
16120
b9b3839f
RM
161212010-11-05 Robert Millan <rmh@gnu.org>
16122
16123 On Yeeloong, pass machine type information to Linux.
16124
16125 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
16126 (LOONGSON_MACHTYPE): New macro, set to
16127 "machtype=lemote-yeeloong-2f-8.9inches".
16128 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
16129 additional argument to Linux.
16130
1a3aaff4
RM
161312010-11-04 Robert Millan <rmh@gnu.org>
16132
16133 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
16134 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
16135 (its SATA disks are detected as slaveless IDE master drives on
16136 kFreeBSD).
16137 Reported by Carsten Aulbert.
16138
a75f4f62
CW
161392010-11-02 Colin Watson <cjwatson@ubuntu.com>
16140
16141 * util/bin2h.c (main): Fix spelling error in generated output.
16142
33b4b0c6
GS
161432010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
16144
16145 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
16146
2b36fbf4
VS
161472010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16148
16149 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
16150 vga= option is supplied.
16151
74aaf558
VS
161522010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16153
16154 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
16155 * util/grub.d/10_kfreebsd.in: Likewise.
16156 * util/grub.d/10_linux.in: Likewise.
16157 * util/grub.d/20_linux_xen.in: Likewise.
16158
6428dec3
VS
161592010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16160
16161 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
16162 argument as an argument to no-argument option.
16163
f8729d98
VS
161642010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16165
16166 * util/grub.d/10_linux.in: Add missing load_video with explicit
16167 GRUB_GFXPAYLOAD_LINUX.
16168
89d68fa6
VS
161692010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16170
16171 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
16172
3a1197cd
VS
161732010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16174
16175 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
16176 elements with invlid index.
16177 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
16178 * grub-core/disk/raid.c (insert_array): Automatically reallocate
16179 members.
16180 * include/grub/raid.h (grub_raid_member): New struct.
16181 (grub_raid_array): Transform devices and start_sector into usage of
16182 grub_raid_member. All users updated
16183 (allocated_devs): New member.
16184
71574288
VS
161852010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
16186
16187 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
16188 is modified
16189
8d40ec65
BC
161902010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
16191
16192 NetBSD build fix for getline function conflict from gnulib.
16193
16194 * Makefile.util.def (libgrubkern.a): New library for grub kernel
16195 components that depend on gnulib headers.
16196 (libgrubmods.a): Renamed from earlier libgrub.a.
16197 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
16198
95b9257e
VS
161992010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16200
16201 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
16202 install rather than creating a broken install.
16203
26c53dc6
VS
162042010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16205
16206 * util/grub-setup.c (argp): Remove misleading example of installing to
16207 a partition.
16208
4171b3c5
VS
162092010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16210
16211 * util/grub-setup.c (setup): Clarify the error message.
16212
18568d18
VS
162132010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
16214
16215 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
16216
4f6a2e21
VS
162172010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
16218
16219 * grub-core/kern/emu/misc.c
16220 (grub_make_system_path_relative_to_its_root)
16221 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
16222
162232010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
16224
16225 * grub-core/kern/emu/misc.c
16226 (grub_make_system_path_relative_to_its_root): Revert r2882.
16227
e138c458
VS
162282010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
16229
16230 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
16231 useless field head. All users updated.
16232 (free_subchunk): Correct handling of IN_REGION subchunk.
16233
0cbcdf0e
CW
162342010-10-22 Colin Watson <cjwatson@ubuntu.com>
16235
16236 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
16237 (Supported kernels): Likewise.
16238
b65ea155
GS
162392010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
16240
16241 Make mktemp invocations portable.
16242
16243 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
16244 exit if mktemp fails.
16245 * tests/grub_script_blockarg.in: Likewise.
16246 * tests/partmap_test.in: Likewise.
16247 * tests/util/grub-shell-tester.in: Likewise.
16248 * tests/util/grub-shell.in: Likewise.
16249 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
16250 * Makefile.am: Likewise, and chain shell commands with `&&'
16251 instead of ';'.
16252 * util/grub-mkrescue.in: Use the same explicit template as above, and
16253 exit if mktemp fails.
16254
05f43cdd
BC
162552010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
16256
16257 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
16258 Linux kernel, reported by Dennis Schridde.
16259
800e6a9b
SJ
162602010-10-17 Szymon Janc <szymon@janc.net.pl>
16261
16262 * grub-core/normal/auth.c (grub_auth_check_authentication):
16263 Set-but-not-used variable removed.
16264
d82df574
VS
162652010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 * docs/grub.texi (GNU/Linux): Document APM unavailability with
16268 32-bit linux protocol.
16269
7bced458
VS
162702010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
16273 cursor shape for sanity.
16274
5b027690
VS
162752010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16276
16277 * docs/grub.texi (Installation): Document buggy BIOS install.
16278
ba5f65cf
VS
162792010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16280
16281 * docs/grub.texi (Installation): Indent.
16282
fdf2ec9c
VS
162832010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16284
16285 * util/grub-setup.c (setup): New parameter allow_floppy.
16286 (arguments): New member allow_floppy.
16287 (argp_parser): Handle --allow-floppy.
16288 (main): Pass allow_floppy.
16289 * util/grub-install.in: New option --allow-floppy passed though to
16290 grub-setup.
16291
861dfd4c
VS
162922010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 * util/grub-install.in: Handle partitionless disks.
16295
f77a8c24
VS
162962010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
16297
16298 * util/grub-setup.c (setup): Don't clean blocklists before readability
16299 verfification.
16300
27d9ee32
VS
163012010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16302
16303 * docs/grub.texi (Installation): Document embedding zone. Remove
16304 obsolete grub-install example.
16305
6bdda8f8
SJ
163062010-10-16 Szymon Janc <szymon@janc.net.pl>
16307
16308 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
16309 Set-but-not-used variable ifdef'ed.
16310 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
16311 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
16312 variable removed.
16313 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
16314 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
16315 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16316 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
16317 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
16318 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
16319 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
16320 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
16321 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
16322 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
16323 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
16324 Likewise.
16325
e19b016b
VS
163262010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16327
16328 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
16329 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
16330 enum value.
16331
6c8d3002
VS
163322010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16333
16334 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
16335 synonym to _S5_. Needed for some DSDTs.
16336
c32b51c9
VS
163372010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16338
16339 Userspace ACPI parser debugging.
16340
16341 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
16342 headers and add relevant defines. Don't include standard headers.
16343 (main) [GRUB_DSDT_TEST]: New function.
16344 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
16345 Don't declare functions.
16346
fbfbeb39
VS
163472010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16348
16349 Remove dead grub_efi_mm_fini.
16350
16351 * grub-core/kern/efi/mm.c (allocated_page): Removed.
16352 (ALLOCATED_PAGES_SIZE): Likewise.
16353 (MAX_ALLOCATED_PAGES): Likewise.
16354 (allocated_pages): Likewise.
16355 (grub_efi_allocate_pages): Don't record allocated pages.
16356 (grub_efi_free_pages): Likewise.
16357 (grub_efi_mm_init): Likewise.
16358 (grub_efi_mm_fini): Removed.
16359
65f7ed7c
VS
163602010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16361
16362 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
16363 (grub_efi_mm_init): Take into account the memory map size increase.
16364
24977b44
VS
163652010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
16366
16367 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
16368 (serial_hw_put): Wait based on real time rather than port reads. Don't
16369 roken ports.
16370 * include/grub/serial.h (grub_serial_port): New field broken.
16371
1eb01cd2
RM
163722010-10-16 Robert Millan <rmh@gnu.org>
16373
16374 * grub-core/kern/emu/misc.c
16375 (grub_make_system_path_relative_to_its_root): Fix premature return
16376 when processing non-root ZFS filesystems.
5f8b440b 16377 Reported by Sergio Talens-Oliag.
1eb01cd2 16378
2d5fed60
RM
163792010-10-15 Robert Millan <rmh@gnu.org>
16380
16381 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
16382 guarantee compressed ones are processed first.
16383
d0f4c1ea
VS
163842010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16385
16386 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
16387 grub_efiemu_autocore.
16388
d87c681f
VS
163892010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
16390
16391 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
16392 rather than 0x1b.
16393 (grub_console_getkey): Use correct jae opcode rather than ja.
16394
219b3564
RM
163952010-10-12 Robert Millan <rmh@gnu.org>
16396
16397 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
16398 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
16399 variable. All references updated.
16400
16401 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
16402
20c6bb7e
VS
164032010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
16404
16405 Correctly distinguish mdraid flavours.
16406
16407 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
16408 (insert_array): New argument raid.
16409 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
16410 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
16411 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
16412
74baff84
VS
164132010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
16414
16415 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
16416 handling of special keys.
16417
3ef068df 164182010-10-02 Aleš Nesrsta <starous@volny.cz>
16419
c7980ad9
VS
16420 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
16421 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 16422
a9455194 164232010-10-02 Aleš Nesrsta <starous@volny.cz>
16424
c7980ad9
VS
16425 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
16426 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
16427 users updated.
a9455194 16428 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 16429 Use right endpoint when querying descriptor.
a9455194 16430
441cfe65
VS
164312010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16432
16433 Clear out 0x80 color bit on EFI.
16434 Tested by: decoder
16435 Reported by: decoder and meta tech.
16436
16437 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
16438 (grub_console_setcolorstate): Clear out 0x80 bit.
16439 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
16440 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
16441 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
16442
bf26bcc4
VS
164432010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
16444
16445 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
16446 Set to "auto".
16447
6e3c515d
VS
164482010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16449
16450 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
16451 mo_file after freeing.
16452
e6d983ba
VS
164532010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16454
16455 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
16456
74ccb5b5
VS
164572010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16458
16459 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
16460 flags.
16461
17821956
VS
164622010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16463
16464 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
16465 usage.
16466
ee74fa48
VS
164672010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
16468
16469 Put terminfo into core on ieee1275 and yeeloong (needed for console).
16470
16471 * gentpl.py: New groups terminfoinkernel and terminfomodule.
16472 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
16473 and terminfo.h when needed.
16474 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
16475 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
16476 (terminfo): Enable only on terminfokernel.
16477 (extcmd): Likewise.
16478 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
16479 * include/grub/lib/arg.h: Likewise.
16480 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
16481 incorrect usage of ->.
16482
aa438e68
VS
164832010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16484
16485 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
16486 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
16487
57994012
VS
164882010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16489
16490 Fix coreboot compilation.
16491
16492 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16493 Take VBE info into account even if only text is supported.
16494 (fill_vbe_info): Take into account the case when only VGA text
16495 is supported.
16496 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
16497 on coreboot, multiboot and qemu.
16498
2a406611
VS
164992010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16500
16501 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
16502 debug messages.
16503 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
16504
d33613fc
VS
165052010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16506
16507 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
16508 parameters.
16509
44a1b432
VS
165102010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16511
16512 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
16513 if they were BSD-style.
16514
edde54e6
VS
165152010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16516
16517 * grub-core/boot/i386/pc/lnxboot.S: Replace
16518 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
16519 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
16520
b65830fa
VS
165212010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
16522
16523 Write embedding zone using Reed-Solomon.
16524
16525 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
16526 * grub-core/Makefile.am (rs_decoder.S): New target.
16527 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
16528 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
16529 (multiboot): Move to RS part.
16530 (post_reed_solomon): New label.
16531 (grub_boot_drive): Move to non-RS part since it's modified in memory
16532 on boot.
16533 Include rs_decoder.S.
16534 * grub-core/lib/reed_solomon.c: New file.
16535 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
16536 New definition.
16537 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
16538 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
16539 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
16540 * include/grub/partition.h (grub_partition_map): Change prototype of
16541 embed to allow returning additional sectors.
16542 * include/grub/reed_solomon.h: New file.
16543 * util/grub-setup.c (setup): Handle Reed-Solomon.
16544
0b4b227f
CW
165452010-09-28 Colin Watson <cjwatson@ubuntu.com>
16546
16547 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16548 i386 and x86-64 definedness tests.
16549
f772623b
YB
165502010-09-27 Yves Blusseau <blusseau@zetam.org>
16551
16552 Fix generation of kernel_syms.lst
16553
16554 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
16555 ASM_PREFIX
16556
8e57a6ca
RM
165572010-09-26 Robert Millan <rmh@gnu.org>
16558
16559 Support degraded ZFS arrays in "grub-probe -t device" resolution.
16560
16561 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
16562 the pool is an array of devices, iterate through it and return the
16563 first device that passes a stat() test (instead of blindly returning
16564 the first one).
16565
f9130836
RM
165662010-09-26 Robert Millan <rmh@gnu.org>
16567
16568 Build fixes for GNU/kFreeBSD.
16569
16570 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
16571 to programs that require ZFS conversion.
16572 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
16573 kernels that don't have FLOPPY_MAJOR.
16574
96510faf
BC
165752010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16576
16577 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
16578
449333eb
BC
165792010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
16580
16581 Fix grub-emu build.
16582
16583 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
16584 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
16585 mdraid09 and mdraid1x.
16586
e1fd1939
CW
165872010-09-24 Colin Watson <cjwatson@ubuntu.com>
16588
16589 Re-enable grub-extras.
16590
16591 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
16592 avoid confusing Automake. Run autogen only twice, once for the top
16593 level and once for grub-core. Add Makefile.util.def and
16594 Makefile.core.def from extra modules to the appropriate autogen
16595 invocations. If Makefile.common exists in an extra module, include
16596 it in both Makefile.util.am and grub-core/Makefile.core.am;
16597 similarly, include any Makefile.util.common file in Makefile.util.am
16598 and any Makefile.core.common file in grub-core/Makefile.core.am.
16599 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
16600 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
16601 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
16602 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
16603
16604 * gentpl.py (gvar_add): Turn GVARS into a set.
16605 (global_variable_initializers): Sort global variables on output.
16606 (vars_init): New function.
16607 (first_time): Likewise.
16608 (library): Ensure that non-global variable initialisations are
16609 emitted before the first time we emit code for a library block.
16610 Append to variables rather than setting them. Only emit
16611 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
16612 each conditional path.
16613 (program): installdir() emits an Autogen macro, so must be passed to
16614 var_add rather than gvar_add.
16615 (data): Likewise.
16616 (script): Likewise.
16617 (rules): New function, centralising handling for different target
16618 types. Set up Guile association lists for first_time and vars_init,
16619 and send most output to a diversion so that variable initialisations
16620 can be emitted first.
16621 (module_rules): Use new rules function.
16622 (kernel_rules): Likewise.
16623 (image_rules): Likewise.
16624 (library_rules): Likewise.
16625 (program_rules): Likewise.
16626 (script_rules): Likewise.
16627 (data_rules): Likewise.
16628
16629 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
16630
16631 * .bzrignore: Add contrib and grub-core/contrib. Remove
16632 grub-core/Makefile.gcry.am.
16633
1d12cf29
YB
166342010-09-24 Yves Blusseau <blusseau@zetam.org>
16635
16636 * grub-core/lib/LzFind.c: Add missing include.
16637 * grub-core/lib/LzmaEnc.c: Likewise.
16638 * grub-core/script/lexer.c: Likewise.
16639 * grub-core/script/yylex.l: Likewise.
16640 * util/grub-macho2img.c: Likewise.
16641 * util/grub-menulst2cfg.c: Likewise.
16642 * util/grub-mklayout.c: Likewise.
16643 * util/grub-mkpasswd-pbkdf2.c
16644 * util/grub-mkrelpath.c: Likewise.
16645 * util/resolve.c: Likewise.
16646
dd363028
BC
166472010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
16648
16649 * Makefile.util.def (example_unit_test): Add
16650 grub-core/gnulib/libgnu.a.
16651
f5a109e2
GS
166522010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
16653
16654 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
16655
6d0fa83c
VS
166562010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
16657
16658 Support xz compression on yeeloong.
16659
16660 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
16661 * configure.ac: Check for LZMA.
16662 * grub-core/Makefile.core.def (xz_decompress): New target.
16663 (none_decompress): Likewise.
16664 * grub-core/boot/decompressor/minilib.c: New file.
16665 * grub-core/boot/decompressor/none.c: Likewise.
16666 * grub-core/boot/decompressor/xz.c: Likewise.
16667 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
16668 * grub-core/kern/mips/cache_flush.S: Likewise.
16669 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
16670 * grub-core/kern/mips/startup.S: Move first stage to ...
16671 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
16672 nomacro.
16673 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
16674 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
16675 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
16676 Allocate statically.
16677 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
16678 Allocate statically or use scratch. Don't check CRC32.
16679 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
16680 Allocate statically. Don't check CRC32.
16681 * include/grub/decompressor.h: New file.
16682 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
16683 Removed.
16684 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
16685 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
16686 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
16687 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
16688 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
16689 * util/grub-mkimage.c (grub_compression_t): New type.
16690 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
16691 (image_target_desc): New field default_compression.
16692 (image_targets): Adjust yeeloong targets.
16693 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
16694 (compress_kernel): New parameter comp.
16695 (generate_image): Likewise. Handle new compression case.
16696 (options): New option --compression
16697 (help): Likewise.
16698 (main): Handle new option.
16699
1b655af6
GS
167002010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
16701
16702 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
16703
8f03f0b5
CW
167042010-09-22 Colin Watson <cjwatson@ubuntu.com>
16705
16706 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
16707 typo in __i386__ conditional.
16708
7835dfd3
VS
167092010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16710
16711 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
16712 include.
16713
e255597e
VS
167142010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
16715
6d0fa83c 16716 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
16717
16718 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
16719 new tags as supported.
16720 (acpiv2_size): New function.
16721 (grub_multiboot_get_mbi_size): Take new tags into account.
16722 (grub_multiboot_make_mbi): Add new tags.
16723 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 16724
6cc14051 167252010-09-21 Aleš Nesrsta <starous@volny.cz>
16726
16727 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
16728 Added missing configuration of USB device.
16729
df7769d8
CW
167302010-09-21 Colin Watson <cjwatson@ubuntu.com>
16731
16732 * grub-core/normal/menu_entry.c (run): Make sure we always return
16733 a value.
16734
b031012d
CW
167352010-09-21 Colin Watson <cjwatson@ubuntu.com>
16736
16737 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
16738 NumberOfPages is UINT64 according to the UEFI specification, not
16739 UINTN. Fix printf format.
16740
174de8f3
CW
167412010-09-21 Colin Watson <cjwatson@ubuntu.com>
16742
16743 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
16744 `err' to grub_usb_err_t.
16745 Reported and tested by: KESHAV P.R.
16746
d7dbe923
CW
167472010-09-21 Colin Watson <cjwatson@ubuntu.com>
16748
16749 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
16750 tpart non-const, so that we can assign to it. (Since this is a
16751 typedef, the constness refers to the pointer rather than what it
16752 points to.)
16753
8d5e2af3
CW
167542010-09-21 Colin Watson <cjwatson@ubuntu.com>
16755
16756 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
16757 $(top_srcdir)/grub-core/gnulib as well as
16758 $(top_builddir)/grub-core/gnulib.
16759 Reported by: KESHAV P.R.
16760
5c527783
CW
167612010-09-21 Colin Watson <cjwatson@ubuntu.com>
16762
16763 * util/grub-install.in: Fix the bootloader ID option to be
16764 consistently --bootloader-id, not --bootloader_id.
16765 Reported by: KESHAV P.R.
16766
d309a16e
CW
167672010-09-21 Colin Watson <cjwatson@ubuntu.com>
16768
16769 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
16770 check hash checksum." consistently translatable.
16771
b830cd16
YB
167722010-09-21 Yves Blusseau <blusseau@zetam.org>
16773
16774 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
16775 $(top_builddir).
16776
c4fe27a8
CW
167772010-09-21 Colin Watson <cjwatson@ubuntu.com>
16778
16779 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
16780 (GRUB_MOD_INIT): Register sha1sum command.
16781 (GRUB_MOD_FINI): Unregister sha1sum command.
16782
a4c1d277
YB
167832010-09-21 Yves Blusseau <blusseau@zetam.org>
16784
16785 Keep boot and grub directory names in sync with utils scripts
16786
16787 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
16788 * config.h.in: Add previous macros.
16789 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
16790 * util/grub-install.in: Use $bootdir and $grubdir variables.
16791
4eff79d2
CW
167922010-09-21 Colin Watson <cjwatson@ubuntu.com>
16793
16794 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
16795 convert partition names to disk names if the new `convert' parameter
16796 is set.
16797 (grub_util_biosdisk_get_grub_dev): If opening the disk device
16798 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
16799 disk in its own right. This can happen with Xen disk images.
16800
934d7e44
YB
168012010-09-21 Yves Blusseau <blusseau@zetam.org>
16802
16803 * util/grub-editenv.c: Update strings to avoid warnings when generating
16804 grub.pot file.
16805 * util/grub-setup.c: Likewise.
934d7e44 16806
df3367cc
VS
168072010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16808
16809 * configure.ac: Change version to 1.99~beta0.
16810
77a94e98
VS
168112010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16812
16813 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16814 Add BADRAM.
16815 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16816 Likewise.
16817 * include/multiboot.h: Resynced with specification.
16818 * include/multiboot2.h: Likewise.
16819
269004c1
CW
168202010-09-21 Colin Watson <cjwatson@ubuntu.com>
16821
16822 Fix po directory handling.
16823
16824 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16825 * grub-core/gnulib/Makefile.am: Import gettext module.
16826 * m4/gnulib-cache.m4: Likewise.
16827 * m4/gnulib-comp.m4: Likewise.
16828 * m4/gettext.m4: New file, from gnulib.
16829 * m4/glibc2.m4: Likewise.
16830 * m4/iconv.m4: Likewise.
16831 * m4/intdiv0.m4: Likewise.
16832 * m4/intl.m4: Likewise.
16833 * m4/intldir.m4: Likewise.
16834 * m4/intlmacosx.m4: Likewise.
16835 * m4/intmax.m4: Likewise.
16836 * m4/inttypes-pri.m4: Likewise.
16837 * m4/lcmessage.m4: Likewise.
16838 * m4/lib-ld.m4: Likewise.
16839 * m4/lib-link.m4: Likewise.
16840 * m4/lib-prefix.m4: Likewise.
16841 * m4/lock.m4: Likewise.
16842 * m4/nls.m4: Likewise.
16843 * m4/po.m4: Likewise.
16844 * m4/printf-posix.m4: Likewise.
16845 * m4/progtest.m4: Likewise.
16846 * m4/threadlib.m4: Likewise.
16847 * m4/uintmax_t.m4: Likewise.
16848 * m4/visibility.m4: Likewise.
16849 * po/Makefile.am: Remove.
16850 * po/Makefile.in.in: New file, from gettext.
16851 ($(DOMAIN).pot-update): Support POTFILES-shell.
16852 * po/Makevars: New file.
16853 * po/POTFILES-shell: Rename to ...
16854 * po/POTFILES-shell.in: ... this. Update.
16855 * po/POTFILES: Rename to ...
16856 * po/POTFILES.in: ... this. Update.
16857 * po/Rules-quot: New file, from gettext.
16858 * po/boldquot.sed: Likewise.
16859 * po/en@boldquot.header: Likewise.
16860 * po/en@quot.header: Likewise.
16861 * po/insert-header.sin: Likewise.
16862 * po/quot.sed: Likewise.
16863 * po/remove-potcdate.sin: Likewise.
16864
3e0fa5d0
VS
168652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16866
16867 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16868
ade9bd66
VS
168692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16870
16871 * util/grub.d/20_linux_xen.in: Use submenus.
16872
fc55cc4c
VS
168732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16874
16875 Support submenus.
16876
16877 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16878 parameter submenu. All users updated.
16879 * grub-core/normal/main.c (free_menu): Rename to ...
16880 (grub_normal_free_menu): ... this. Made global.
16881 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16882 if requested.
16883 * grub-core/normal/menu_entry.c (screen): New field submenu.
16884 (make_screen): Set submenu.
16885 (run): Open new context if requested.
16886 * include/grub/menu.h (grub_menu_entry): New field submenu.
16887 * include/grub/normal.h (grub_normal_free_menu): New proto.
16888
600cedf7
VS
168892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16890
16891 Menu entries extractor.
16892
16893 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16894 variants.
16895 (GRUB_MOD_INIT): Register new variants.
16896 (GRUB_MOD_FINI): Unregister new variants.
16897 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16898 into grub_cmd_legacy_source.
16899 (grub_cmd_legacy_source): Implement extractor variants.
16900 (GRUB_MOD_INIT): Register new variants.
16901 (GRUB_MOD_FINI): Unregister new variants.
16902 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16903 as an extractor.
16904 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16905 search as an extractor.
16906 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16907 test as an extractor.
16908 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16909 as an extractor.
16910 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16911 (grub_env_new_context): New function.
16912 (grub_env_context_open): Likewise.
16913 (grub_env_extractor_open): Likewise.
16914 (grub_env_extractor_close): Likewise.
16915 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16916 grub_extractor_level.
16917 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16918 * include/grub/env.h (grub_env_extractor_open): New proto.
16919 (grub_env_extractor_close): Likewise.
16920 * include/grub/normal.h (grub_extractor_level): New external variable.
16921
7bda3a87
VS
169222010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16923
16924 Make cutmem accept a region specification.
16925 Suggested by: Samuel Thibault
16926
16927 * grub-core/mmap/mmap.c (parsemem): New function.
16928 (grub_cmd_cutmem): Handle new arguments.
16929
2ea57f88
VS
169302010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16931
16932 New command cutmem.
16933
16934 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16935 (GRUB_MOD_INIT): Register new command.
16936 (GRUB_MOD_FINI): Unregister new command.
16937
74342e31
VS
169382010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16939
16940 Support some annoying BSD and Minix subpartitions.
16941
16942 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16943 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16944 Properly handle concatenation.
16945 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16946 * grub-core/normal/completion.c (iterate_partition): Likewise.
16947 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16948 contain partition. All users updated.
16949 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16950 struct.
16951 (grub_openbsdlabel_partition_map): Likewise.
16952 (bsdlabel_partition_map_iterate): Rename to ..
16953 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16954 (bsdlabel_partition_map_iterate): New function.
16955 (netopenbsdlabel_partition_map_iterate): Likewise.
16956 (netbsdlabel_partition_map_iterate): Likewise.
16957 (openbsdlabel_partition_map_iterate): Likewise.
16958 (GRUB_MOD_INIT): Register new partmaps.
16959 (GRUB_MOD_FINI): Unregister new partmaps.
16960 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16961 (grub_partition_msdos_iterate): ... this. All users updated.
16962 Don't support embedding other than in a minix partition.
16963 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16964 proto.
16965 * include/grub/partition.h (grub_partition): New field msdostype.
16966 * util/grub-install.in: Handle openbsd and netbsd types being in
16967 part_bsd module.
16968
1e8d555b
VS
169692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16970
16971 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16972
16973 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16974 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16975 (mdraid09): ... this.
16976 (mdraid1x): New module.
16977 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16978 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16979
899d8af4
VS
169802010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16981
16982 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16983 vsprintf.
16984
40901acd
CW
169852010-09-20 Colin Watson <cjwatson@ubuntu.com>
16986
16987 * grub-core/commands/efi/lsefimmap.c: Correct header.
16988 * NEWS: Update.
16989
dfe3b247
CW
169902010-09-20 Colin Watson <cjwatson@ubuntu.com>
16991
16992 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16993 as printf format strings; the translations might contain '%' which
16994 could cause a crash.
16995 (main): Likewise.
16996 * util/grub-fstest.c (argp_parser): Likewise.
16997 * util/grub-setup.c (argp_parser): Likewise.
16998 (main): Likewise.
16999
3286a4b4
VS
170002010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17001
17002 Use argp in grub-fstest.
17003
17004 * util/grub-fstest.c: Don't include getopt.h.
17005 Include argp.h.
17006 (root): New variable.
17007 (args_count): Likewise.
17008 (nparm): Likewise.
17009 (num_disks): Likewise.
17010 (images): Likewise.
17011 (cmd): Likewise.
17012 (debug_str): Likewise.
17013 (args): Likewise.
17014 (options): Transformed to argp.
17015 (usage): Removed.
17016 (main): Split argument parsing into ...
17017 (argp_parser): ... this. Changed to argp format.
17018 (argp): New variable.
17019 (main): Use argp_parse.
17020
3dccbe4b
TG
170212010-09-20 Tristan Gingold <gingold@free.fr>
170222010-09-20 Robert Millan <rmh.grub@aybabtu.com>
170232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17024
17025 * grub-core/commands/efi/lsefimmap.c: New file.
17026 * grub-core/Makefile.core.def (lsefimmap): New module.
17027 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
17028
38c259a7
VS
170292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17030
17031 Pause the execution (10s max) if any errors are displayed so the user
17032 has a chance to see them.
17033
17034 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
17035 (grub_print_error): Increment grub_err_printed_errors.
17036 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
17037 execution if any errors were displayed.
17038 (show_menu): Remove old code for pause.
17039 * grub-core/normal/menu_entry.c (run): Likewise.
17040 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
17041 users updated.
17042 (grub_normal_get_char_counter): Likewise.
17043 * include/grub/err.h (grub_err_printed_errors): New external variable.
17044 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
17045
f218b09c
VS
170462010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17047
17048 Support multiboot VBE info.
17049
17050 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
17051 Take VBE info into account.
17052 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
17053 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17054 Call fill_vbe_info when appropriate.
17055 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
17056 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
17057 as supported.
17058 (grub_multiboot_get_mbi_size): Take new tags into account.
17059 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
17060 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
17061 Call fill_vbe_tag when appropriate.
17062 (grub_multiboot_make_mbi): Properly align tags.
17063 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
17064 function.
17065 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
17066 proto.
17067 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
17068
a9cc5438
VS
170692010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17070
17071 Suport manual terminal geometry specification.
17072
17073 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
17074 Save state in grub_ofconsole_terminfo_output.
17075 (grub_ofconsole_term): Use grub_terminfo_getwh.
17076 (grub_ofconsole_getwh): Removed.
17077 * grub-core/term/serial.c (grub_serial_getwh): Removed.
17078 (grub_serial_term): Use grub_terminfo_getwh.
17079 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
17080 (options): New struct.
17081 (OPTION_*): New enum.
17082 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
17083 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
17084 width and height.
17085 (grub_terminfo_getwh): New proto.
17086 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
17087
1a8fed20
VS
170882010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17089
17090 Handle legacy "terminal" command.
17091
17092 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
17093 and FLAG_TERMINAL.
17094 (legacy_commands): Add terminal and title.
17095 (grub_legacy_parse): Handle terminal. Simplify title handling.
17096
41e9c57d
VS
170972010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17098
17099 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
17100 parameters overflow.
17101
61c874c5
CW
171022010-09-20 Colin Watson <cjwatson@ubuntu.com>
17103
17104 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
17105 widthspec.h.
17106
17107 * docs/grub.texi (Shell-like scripting): Document `!'.
17108 (Network): Simplify using new i386-pc-pxe format. Mention
17109 grub-mknetdir.
17110
17111 * NEWS: Update.
17112
943682b4
CW
171132010-09-20 Colin Watson <cjwatson@ubuntu.com>
17114
17115 * Makefile.am (SUBDIRS): Restore "."; it's important to force
17116 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
17117 when needed.
17118
6d3d698d
CW
171192010-09-20 Colin Watson <cjwatson@ubuntu.com>
17120
17121 * grub-core/commands/efi/lsefisystab.c: Correct header.
17122 * grub-core/commands/efi/lssal.c: Likewise.
17123 * grub-core/commands/testload.c: Likewise.
17124
c982589f
CW
171252010-09-20 Colin Watson <cjwatson@ubuntu.com>
17126
17127 * util/grub-mkrescue.in: Add explicit root argument to --set to
17128 prevent the UUID being interpreted as an argument to --set (matches
17129 previous change to prepare_grub_to_access_device).
17130
a63c31b6
CW
171312010-09-20 Colin Watson <cjwatson@ubuntu.com>
17132
17133 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
17134 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
17135 the verbosity of later #ifs.
17136 (find_partition_start): Define this function on FreeBSD too.
17137 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
17138 function.
17139 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
17140 on FreeBSD.
17141
6439b8ee
YB
171422010-09-20 Yves Blusseau <blusseau@zetam.org>
17143
17144 * util/grub-editenv.c: Use argp instead of getopt.
17145
c5930ec8
YB
171462010-09-20 Yves Blusseau <blusseau@zetam.org>
17147
17148 * util/grub-setup.c: Use argp instead of getopt.
17149
15c69261
YB
171502010-09-20 Yves Blusseau <blusseau@zetam.org>
17151
17152 Use gnulib-tool to create gnulib source files.
17153
17154 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
17155 grub-core/gnulib directories
17156 * .bzignore: Add **/.deps and autogenerated gnulib files
17157 * configure.ac: Assign auxiliary directory to build-aux, add invocation
17158 of gnulib macros, add grub-core/gnulib/Makefile
17159 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
17160 include m4 directory to aclocal.
17161 * Makefile.util.def: Remove direct compilation of gnulib source files
17162 and use the new grub-core/gnulib/libgnu.a.
17163 * build-aux/config.rpath: move config.rpath from top directory to
17164 build-aux
17165 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
17166 in gnulib headers
17167 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
17168 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
17169 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
17170 header.
17171 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
17172 string.
17173
e511c9f5
YB
171742010-09-20 Yves Blusseau <blusseau@zetam.org>
17175
17176 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
17177 grub-core/genmod.sh and grub-core/gensyminfo.sh
17178
c2dede05
BC
171792010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
17180
17181 Add a test for echo command options.
17182
17183 * tests/grub_cmd_echo.in: New test.
17184 * Makefile.util.def: Rules for new test.
17185
c55f5018
SJ
171862010-09-20 Szymon Janc <szymon@janc.net.pl>
17187
17188 Remove crc.mod and move crc command to hashsum.mod.
17189 Remove lib/crc.c - users updated to use gcrypt implementation.
17190
17191 * grub-core/commands/crc.c: Removed.
17192 * grub-core/Makefile.core.def (crc): Module removed.
17193 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
17194 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
17195 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
17196 * grub-core/lib/crc.c: Removed.
17197 * include/grub/lib/crc.h: Removed.
17198 * Makefile.util.def (crc): Remove lib/crc.c
17199 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
17200 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
17201 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
17202 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
17203 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
17204 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
17205
e0337366
VS
172062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
17207
17208 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
17209
742f9232
VS
172102010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17211
17212 Split config.h for util and core.
17213
17214 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
17215 (ADDR32): Likewise.
17216 (DATA32): Likewise.
17217 (BSS_START_SYMBOL): Likewise.
17218 (END_SYMBOL): Likewise.
17219 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
17220 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
17221 * config.h.in: New file.
17222 * configure.ac: Use config-util.h as config define file.
17223 Rename MACHINE into GRUB_MACHINE. All users updated.
17224 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
17225 updated.
17226 (NESTED_FUNC_ATTR): Likewise.
17227 Substitue new variables.
17228 (COND_HAVE_ASM_USCORE): New conditional.
17229 * grub-core/Makefile.am (ASM_PREFIX): New variable.
17230 (kernel_syms.lst): Use ASM_PREFIX.
17231 * grub-core/kern/emu/console.c: Include config-util.h.
17232 * grub-core/kern/emu/misc.c: Likewise.
17233 * grub-core/kern/emu/mm.c: Likewise.
17234 * include/grub/emu/misc.h: Likewise.
17235 * include/grub/libgcc.h: Likewise.
17236
39feb0e8
VS
172372010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17238
17239 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
17240 constants usage.
17241 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
17242 Fix GRUB_TERM_KEY_* constants usage.
17243 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
17244
9af6dac3
VS
172452010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17246
17247 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
17248 print pointer.
17249 * grub-core/bus/usb/uhci.c: Remove empty define.
17250 (grub_uhci_check_transfer): Add missing cast.
17251 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
17252 print pointer.
17253 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
17254 PRIuGRUB_SIZE.
17255 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
17256
d6d94820
VS
172572010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17258
17259 * grub-core/Makefile.core.def (legacycfg): Add
17260 lib/i386/pc/vesa_modes_table.c on emu.
17261
3572f2b6
BC
172622010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17263
17264 Reduce number of temporary files generated by build system.
17265
17266 * grub-core/gencmdlist.sh: Removed.
17267 * grub-core/genfslist.sh: Removed.
17268 * grub-core/genhandlerlist.sh: Removed.
17269 * grub-core/genmodsrc.sh: Removed.
17270 * grub-core/genpartmaplist.sh: Removed.
17271 * grub-core/genparttoollist.sh: Removed.
17272 * grub-core/gentermiinallist.sh: Removed.
17273 * grub-core/genvideolist.sh: Removed.
17274
17275 * grub-core/genmod.sh.in: New file.
17276 * grub-core/gensyminfo.sh.in: New file.
17277
17278 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
17279 * conf/Makefile.extra-dist: Update with new files.
17280 * gentpl.py: Remove rules related to unnecessary temporary files.
17281 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
17282 and und-* files.
17283 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
17284 genmod.sh scripts.
17285 * grub-core/bus/usb/uhci.c: Remove empty #define.
17286 * grub-core/genmoddep.awk: Updated with new syminfo format.
17287 * util/bash-completion.d/Makefile.am: Add config.log to
17288 CLEANFILES.
17289
c836b030
YB
172902010-09-19 Yves Blusseau <blusseau@zetam.org>
17291
17292 * Makefile.util.def: Add forgotten $(LIBINTL) library.
17293
2f4e8053
BC
172942010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
17295
17296 * util/grub-mkconfig.in: Check the config script for syntax errors
17297 before saving.
17298
75831c34
CW
172992010-09-19 Colin Watson <cjwatson@ubuntu.com>
173002010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17301
17302 * Makefile.util.def (grub-install): Use util/grub-install.in on all
17303 platforms.
17304 * util/grub-install.in: Add EFI and IEEE1275 support.
17305 * util/i386/efi/grub-install.in: Removed.
17306 * util/ieee1275/grub-install.in: Likewise.
17307
eaf41b25
VS
173082010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
17309
17310 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
17311 (grub_cmd_cmosclean): Likewise.
17312 (GRUB_MOD_INIT): Register command cmosclean.
17313 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
17314 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
17315
1a9130dd
CPE
173162010-09-18 Carles Pina i Estany <carles@pina.cat>
173172010-09-18 Aleš Nesrsta <starous@volny.cz>
173182010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17319
17320 Add keyboard layouts support.
17321
17322 * Makefile.util.def (grub-mklayout): New file.
17323 (grub-kbdcomp): New script.
17324 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
17325 Add keyboard_layouts.h.
17326 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
17327 commands/boot.c on yeeloong.
17328 (keylayouts): New module.
17329 * grub-core/bus/usb/ohci.c
17330 * grub-core/bus/usb/uhci.c
17331 * grub-core/bus/usb/usbhub.c (rescan): New variable.
17332 (grub_usb_add_hub): Poll interrupt pipe for device handling.
17333 (attach_root_port): Likewise.
17334 (poll_nonroot_hub): Likewise.
17335 (grub_usb_poll_devices): Likewise.
17336 (detach_device): Close transfer.
17337 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
17338 function.
17339 (grub_usb_bulk_setup_readwrite): Likewise.
17340 (grub_usb_bulk_finish_readwrite): Likewise.
17341 * grub-core/commands/keylayouts.c: New file.
17342 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
17343 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
17344 aliases.
17345 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
17346 support scancode 2.
17347 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
17348 * include/grub/keyboard_layouts.h: New file.
17349 * util/grub-mklayout.c: New file.
17350 * util/grub-kbdcomp.in: Likewise.
17351
a1d84a5e
VS
173522010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17353
17354 Unify memory types.
17355
17356 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
17357 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
17358 types.
17359 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
17360 (grub_upper_mem): Likewise.
17361 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
17362 * include/grub/memory.h (grub_memory_type_t): New enum.
17363 All users updated.
17364
9696382e
VS
173652010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17366
17367 * grub-core/Makefile.core.def (lsapm): New module.
17368 * grub-core/commands/i386/pc/lsapm.c: New file.
17369 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
17370 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
17371 Likewise.
17372 * include/grub/i386/pc/apm.h: New file.
17373 * include/multiboot.h (multiboot_apm_info): New struct.
17374
173752010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
17376
17377 GRUB-legacy configuration file support.
17378
17379 * Makefile.util.def (grub-menulst2cfg): New util.
17380 * docs/man/grub-menulst2cfg.h2m: New file.
17381 * grub-core/Makefile.core.def (legacycfg): New module.
17382 * grub-core/commands/legacycfg.c: New file.
17383 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
17384 (grub_normal_add_menu_entry): ... this.
17385 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
17386 (grub_normal_set_password): ...this.
17387 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
17388 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
17389 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
17390 * grub-core/lib/legacy_parse.c: New file.
17391 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
17392 * include/grub/i386/pc/vesa_modes_table.h: New file.
17393 * include/grub/legacy_parse.h: Likewise.
17394 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
17395 * util/grub-menulst2cfg.c: New file.
17396
bf8d1338
CW
173972010-09-17 Colin Watson <cjwatson@ubuntu.com>
17398
17399 * grub-core/kern/emu/hostdisk.c
17400 (convert_system_partition_to_system_disk): Initialise node.
17401
9c0bad2e
CW
174022010-09-17 Colin Watson <cjwatson@ubuntu.com>
17403
17404 * grub-core/kern/emu/hostdisk.c
17405 (convert_system_partition_to_system_disk): Fix devmapper memory pool
17406 leak.
17407 Reported and based on patch by: Modestas Vainius.
17408
a939d135
CW
174092010-09-17 Colin Watson <cjwatson@ubuntu.com>
17410
17411 Fix DM-RAID probing with recent versions of device-mapper udev
17412 rules.
17413
17414 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
17415 canonicalise device paths under /dev/mapper/.
17416 (convert_system_partition_to_system_disk): Compare the
17417 uncanonicalised path to /dev/mapper/ rather than the canonicalised
17418 path, since device nodes under /dev/mapper/ are often symlinks.
17419
0f7ee3c9
YB
174202010-09-17 Yves Blusseau <blusseau@zetam.org>
17421
17422 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
17423
10854d0d
YB
174242010-09-16 Yves Blusseau <blusseau@zetam.org>
17425
17426 * configure.ac: Avoid some annoying error messages if freetype-config
17427 program is not found.
17428
108538d8
CW
174292010-09-16 Colin Watson <cjwatson@ubuntu.com>
17430
17431 Support RAID on virtio devices, and others.
17432
17433 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
17434 Rename to ...
17435 [__MINGW32__] (grub_find_device): ... this.
17436 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
17437 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
17438 reasonable default if dir is NULL.
17439 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
17440 ...
17441 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
17442 (grub_guess_root_device): Update callers.
17443 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
17444
17445 * util/raid.c (grub_util_getdiskname): Remove.
17446 (grub_util_raid_getmembers): Use grub_find_device rather than
17447 grub_util_getdiskname.
17448
e5bfc130
CW
174492010-09-16 Colin Watson <cjwatson@ubuntu.com>
17450
17451 * docs/grub.texi (serial): Remove obsolete comment about GRUB
17452 needing to be compiled with serial support.
17453 (ls): Indicate that multiple files are accepted.
17454 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
17455 indicate that multiple files are accepted.
17456
be458ae2
CW
174572010-09-16 Colin Watson <cjwatson@ubuntu.com>
17458
17459 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
17460 libgrub_a_init.c, and util/bash-completion.d/grub.
17461
cb731b5e
VS
174622010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17463
17464 * util/grub-setup.c (setup): Fix incorrect container semantics.
17465
35139e8a
VS
174662010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17467
17468 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
17469 misusage.
17470 Reported by: J. Nick Terry
17471
e50fca4a
VS
174722010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17473
17474 Move embedding routines to partmap sources files.
17475
17476 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
17477 [GRUB_UTIL]: New variable.
17478 (gpt_partition_map_iterate): Set part.parent.
17479 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
17480 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
17481 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
17482 New function.
17483 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
17484 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
17485 (grub_partition_map) [GRUB_UTIL]: New field embed.
17486 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
17487 (setup): Use ->embed.
17488
f00478b7
VS
174892010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17490
17491 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
17492 function.
17493 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
17494 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
17495
2b94e3ff
YB
174962010-09-15 Yves Blusseau <blusseau@zetam.org>
17497
17498 Add function to get completions from usage.
17499
17500 * util/bash-completion.d/grub-completion.bash.in: Add function to get
17501 completions from usage. Use LC_ALL=C to get options properly.
17502
2e04a006
VS
175032010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17504
17505 * grub-core/gnulib/basename-lgpl.c: Imported.
17506 * grub-core/gnulib/basename.c: Likewise.
17507 * grub-core/gnulib/dirname-lgpl.c: Likewise.
17508 * grub-core/gnulib/dirname.c: Likewise.
17509 * grub-core/gnulib/dirname.h: Likewise.
17510 * grub-core/gnulib/stripslash.c: Likewise.
17511
5dcdf93a
VS
175122010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
17513
17514 * grub-core/gnulib/error.c: Resynced.
17515 * grub-core/gnulib/getopt.c: Likewise.
17516 * grub-core/gnulib/getopt_int.h: Likewise.
17517 * grub-core/gnulib/regex.h: Likewise.
17518 * grub-core/gnulib/regex_internal.c: Likewise.
17519 * grub-core/gnulib/regex_internal.h: Likewise.
17520
014f47b7
SJ
175212010-09-15 Szymon Janc <szymon@janc.net.pl>
17522
17523 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
17524 CRC calculations and validity checks.
17525 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
17526 calculations.
17527
dd521a4a
SJ
175282010-09-15 Szymon Janc <szymon@janc.net.pl>
17529
17530 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
17531
79c4eeb9
VS
175322010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17533
17534 Fix incorrect echo options handling.
17535 Reported by: Yves Blusseau.
17536
17537 * include/grub/command.h (grub_command_flags_t): New flags
17538 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
17539 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
17540 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
17541
ed80f7d5
VS
175422010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17543
17544 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
17545 users updated.
17546 (GRUB_COMMAND_FLAG_MENU): Likewise.
17547 (GRUB_COMMAND_FLAG_BOTH): Likewise.
17548 (GRUB_COMMAND_FLAG_TITLE): Removed.
17549 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
17550 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
17551 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
17552 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
17553 (grub_command_flags_t): New enum. All users updated.
17554
5fe7620a
SG
175552010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
17556
17557 Fix solaris compilation.
17558
17559 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
17560 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
17561 (grub-emu-list): Likewise.
17562
545b752f
VS
175632010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17564
17565 Remove deprecated root command.
17566
17567 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
17568 updated.
17569
6c1a338c
VS
175702010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17571
17572 * util/i386/pc/grub-setup.c: Merge this ...
17573 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
17574 * util/grub-setup.c: ... into this.
17575 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
17576 New struct.
17577
175782010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17579
17580 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
17581 possible.
17582
d2ea4551
VS
175832010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17584
17585 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
17586 allocate p.
17587
3c3b5040
VS
175882010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17589
17590 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
17591 explicit root argument to set to prevent UUID to be interpreted as
17592 argument to set.
17593
b71c3fae
VS
175942010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17595
17596 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
17597
275433e6
VS
175982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17599
17600 Don't export grub_gate_a20.
17601
17602 * grub-core/kern/i386/pc/init.c: Remove leftovers.
17603 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
17604 to ...
17605 (grub_gate_a20): ... this. All users updated.
17606 * include/grub/i386/pc/init.h: Removed. All users updated.
17607
a5dbb1f1
VS
176082010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17609
17610 Create euro.pf2 which supports most European languages.
17611
17612 * Makefile.am (grubdata_DATA): Add euro.pf2.
17613 (euro.pf2): New target.
17614 (CLEANFILES): Add euro.pf2.
17615
62a747cb
VS
176162010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
17617
17618 * configure.ac: Disable emu-usb by default to prevent inadvertent
17619 device takeover.
17620
608e43b1
VS
176212010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17622
17623 Disable usbserial on grub-emu since our libusb code isn't good enough
17624 yet.
17625
17626 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
17627 (usbserial_pl2303): Likewise.
17628 (usbserial_ftdi): Likewise.
17629
94564f81
VS
176302010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17631
17632 * include/grub/disk.h (grub_disk): Remove has_partitions.
17633 All users updated.
17634 * disk/loopback.c (grub_loopback): Remove has_partitions.
17635 All users updated.
17636 (options): Remove partitions. All users updated.
17637 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
17638 * util/i386/pc/grub-setup.c (setup): copy partition table only when
17639 actual partition table is found.
17640
3352800b
VS
176412010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17642
17643 Remove readability checks (too many false negatives).
17644
17645 * util/grub-install.in: Remove readability checks.
17646 * util/grub-mkconfig.in: Likewise.
17647 * util/grub.d/10_hurd.in: Likewise.
17648 * util/grub.d/10_kfreebsd.in: Likewise.
17649 * util/grub.d/10_linux.in: Likewise.
17650 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
17651 way.
17652
2419f17a
VS
176532010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17654
17655 Enable acpi shutdown on all ACPI platforms.
17656
17657 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
17658 on coreboo, multiboot and EFI.
17659 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
17660 (grub_acpi_halt): Likewise.
17661 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
17662 (grub_cmd_halt): Don't call grub_acpi_halt directly.
17663 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
17664 * grub-core/lib/i386/halt.c (grub_halt)
17665 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
17666
0575c7c3
VS
176672010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17668
17669 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
17670 context.
17671
54ac3cd1
VS
176722010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17673
17674 * grub-core/video/efi_gop.c: Fix over-80-chars line.
17675 * grub-core/video/efi_uga.c: Likewise.
17676
b2a30ac5
VS
176772010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17678
17679 Filter devaliases and never open same device twice.
17680
17681 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
17682 (last_ihandle): Likewise.
17683 (ofdisk_hash_ent): New member shortest.
17684 (ofdisk_hash_add): Add canonical path too.
17685 (scan): New function.
17686 (grub_ofdisk_iterate): Iterate over hashed entries.
17687 (compute_dev_path): Don't add :0.
17688 (grub_ofdisk_open): Don't really open the disk.
17689 (grub_ofdisk_close): Avoid closing unrelated disk.
17690 (grub_ofdisk_read): Implement reopen logic.
17691 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
17692 New function.
17693 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
17694 New proto.
17695
fb53b340
VS
176962010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17697
17698 Fix sparc64.
17699
17700 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
17701 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
17702 right address. Add sparc64_ieee1275_ldflags.
17703 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
17704 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
17705 to grub_host_to_target_addr
17706 (load_image): Likewise.
17707
f452b040
VS
177082010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17709
17710 * grub-core/normal/completion.c (complete_file): Handle device
17711 containing slash.
17712 Fix based on patch by Doug Nazar.
17713
9b5b2541
VS
177142010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17715
17716 grub-mknetdir script.
17717
17718 * Makefile.util.def (grub-mknetdir): New module.
17719 * tests/util/grub-shell.in: Support boot=net
17720 * util/grub-mknetdir.in: New file.
17721
9d2be652
VS
177222010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17723
17724 videoinfo on non-vbe.
17725
17726 * grub-core/Makefile.core.def (vbeinfo): Removed.
17727 (vbetest): Removed.
17728 (videoinfo): New module.
17729 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
17730 * grub-core/commands/i386/pc/vbetest.c: Removed.
17731 * grub-core/commands/videoinfo.c: New file.
17732 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
17733 specification.
17734 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
17735 as vbetest.
17736 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
17737 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
17738 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
17739 mode_number. New parameter mode. All users updated.
17740 (grub_video_gop_iterate): New function.
17741 (grub_video_efi_gop): New member iterate.
17742 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
17743 (grub_vbe_set_video_mode): Remove setting useless fields.
17744 (vbe2videoinfo): New function.
17745 (grub_video_vbe_iterate): Likewise.
17746 (grub_video_vbe_setup): Use vbe2videoinfo.
17747 (grub_video_vbe_print_adapter_specific_info): New function.
17748 (grub_video_vbe_adapter): New fields iterate and
17749 print_adapter_specific_info.
17750 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
17751 All users updated.
17752 (grub_video_mode_info): New field mode_number.
17753 (grub_video_adapter): New fields iterate and
17754 print_adapter_specific_info.
17755
179503f5
TG
177562010-09-13 Tristan Gingold <gingold@free.fr>
177572010-09-13 Robert Millan <rmh.grub@aybabtu.com>
177582010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17759
17760 * grub-core/commands/efi/lsefisystab.c: New file.
17761 * grub-core/commands/efi/lssal.c: Likewise.
17762 * grub-core/Makefile.core.def (lsacpi): New module.
17763 (lsefisystab): Likewise.
17764 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
17765 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
17766 (grub_efi_sal_system_table): New struct.
17767 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
17768 (grub_efi_sal_system_table_memory_descriptor): Likewise.
17769 (grub_efi_sal_system_table_platform_features): Likewise.
17770 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
17771 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
17772 (grub_efi_sal_system_table_ap_wakeup): Likewise.
17773 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
17774
cf9827de
VS
177752010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17776
17777 Support explicit user claim that a device is BIOS-visible.
17778
17779 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
17780 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
17781 * grub-core/kern/emu/hostdisk.c
17782 (convert_system_partition_to_system_disk): Support mdX.
17783 (find_system_device): New parameter add. All users updated.
17784 (grub_util_biosdisk_is_present): New function.
17785 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
17786 proto.
17787
53f0eb1f
VS
177882010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
17789
17790 Search hints support.
17791
17792 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
17793 All users updated.
17794
b23ffd70
YB
177952010-09-13 Yves Blusseau <blusseau@zetam.org>
17796
17797 Bash completion script for util commands
17798
17799 * Makefile.am: Add util/bash-completion.d directory
17800 * configure.ac: Likewise.
17801 * util/bash-completion.d/Makefile.am: New file.
17802 * util/bash-completion.d/grub-completion.bash.in: Likewise.
17803
d547dc28
VS
178042010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17805
17806 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
17807 (print_backlog): set backlog_ucs4 and backlog_glyphs.
17808 Reported by: Yves Blusseau.
17809
2fc8ccb9
VS
178102010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17811
17812 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
17813 partition size and offset.
17814
d8a84076
VS
178152010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17816
17817 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17818
84fb3b3d
VS
178192010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17820
17821 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17822
768ec2e2
VS
178232010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17824
17825 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17826 (grub_xvasprintf): Likewise.
17827
4870900f
VS
178282010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17829
17830 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17831
faca6bec
VS
178322010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17833
17834 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17835 args ending with NULL.
17836
178372010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
17838
17839 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17840 pointer.
17841
3c70f225
SJ
178422010-09-11 Szymon Janc <szymon@janc.net.pl>
17843
17844 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17845
4df7996d
VS
178462010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17847
17848 Shutdown using ACPI.
17849
17850 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17851 * grub-core/commands/acpihalt.c: New file.
17852 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17853 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17854 (grub_acpi_halt): New proto.
17855 (GRUB_ACPI_SLP_EN): New const.
17856 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17857 (GRUB_ACPI_OPCODE_*): New enum.
17858 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17859
126b4c32
TG
178602010-09-11 Tristan Gingold <gingold@free.fr>
178612010-09-11 Robert Millan <rmh.grub@aybabtu.com>
178622010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17863
17864 * commands/lsacpi.c: New file.
17865 * grub-core/Makefile.core.def (lsacpi): New module.
17866 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17867 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17868 (grub_acpi_madt_entry_header): New struct.
17869 (grub_acpi_madt): Likewise.
17870 (grub_acpi_madt_entry_interrupt_override): Likewise.
17871 (grub_acpi_madt_entry_sapic): Likewise.
17872 (grub_acpi_madt_entry_lsapic): Likewise.
17873 (grub_acpi_madt_entry_platform_int_source): Likewise.
17874 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17875 (PRIuGRUB_UINT32_T): Likewise.
17876 (PRIxGRUB_UINT64_T): Likewise.
17877
1aa4fe88
VS
178782010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17879
17880 Implement loading palette on ieee1275_fb.
17881
17882 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17883 (have_setcolors): Likewise.
17884 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17885 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17886 (grub_video_ieee1275_set_palette): Implement.
17887
25761e13
VS
178882010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
178892010-09-11 Colin Watson <cjwatson@ubuntu.com>
17890
17891 * util/grub-install.in (grub_partition): New variable.
17892 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17893 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17894 Fixes a bug reported by Yves Blusseau.
17895
050abaea
VS
178962010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17897
17898 Fix emu on mipsel.
17899
17900 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17901 =grub_cpu_flush_cache on all mips and not only yeeloong.
17902 * configure.ac (COND_mips): New conditional.
17903 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17904 platforms.
17905 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17906 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17907 [GRUB_LINKER_HAVE_INIT]: New function.
17908 (grub_emu_post_init): Likewise.
17909 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17910 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17911 * include/grub/cache.h (_mips): Include mips/cache.h.
17912 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17913 LVM and RAID prototypes.
17914 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17915 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17916 function.
17917
5ed7d816
CW
179182010-09-10 Colin Watson <cjwatson@ubuntu.com>
17919
17920 * util/grub-install.in: Don't try to verify core.img until after
17921 running grub-mkimage to create it.
17922
90367e04
RM
179232010-09-10 Robert Millan <rmh@gnu.org>
17924
17925 * util/grub.d/10_hurd.in: Add misc readability checks.
17926 * util/grub.d/10_kfreebsd.in: Likewise.
17927 * util/grub.d/10_linux.in: Likewise.
17928
c452fa66
CW
179292010-09-10 Colin Watson <cjwatson@ubuntu.com>
17930
17931 * util/grub-install.in: ${imgext} won't be defined here until the
17932 install branch is merged. For the meantime, only verify core.img on
17933 i386-pc and sparc64-ieee1275 platforms.
17934
c38fe9f4
RM
179352010-09-10 Robert Millan <rmh@gnu.org>
17936
17937 Solaris support in grub_find_zpool_from_dir(). Thanks
17938 Seth Goldberg for referring to getextmntent() facility.
17939
17940 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17941 `sys/mkdev.h'.
17942 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17943 `<sys/mnttab.h>'.
17944 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17945 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17946 method for finding zpool name.
17947
905f7773
CW
179482010-09-10 Colin Watson <cjwatson@ubuntu.com>
17949
17950 grub-fstest needs the host and hostfs modules while other utilities
17951 actively require those modules to be absent, so grub-fstest needs
17952 its own initialisation and finalisation code.
17953
17954 * Makefile.am (grub_fstest.pp): New target.
17955 (grub_fstest_init.lst): Likewise.
17956 (grub_fstest_init.c): Likewise.
17957 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17958
fb90b546
RM
179592010-09-10 Robert Millan <rmh@gnu.org>
17960
17961 * configure.ac: Check for `struct statfs.f_fstypename' and
17962 `struct statfs.f_mntfromname'.
17963
17964 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17965 kFreeBSD-specific code.
17966
66d4bea5
RM
179672010-09-10 Robert Millan <rmh@gnu.org>
17968
17969 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17970 on ZFS. Now non-main filesystems are supported as / too.
17971
b6a690ee
CW
179722010-09-09 Colin Watson <cjwatson@ubuntu.com>
17973
17974 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17975 and grub-core/disk/host.c to ...
17976 (grub-fstest): ... here. Having the host disk implementation
17977 present confuses grub-probe and other utility programs.
17978
17979 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17980 when writing to a file, not when writing to stdout.
17981
8901b00c 179822010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17983
17984 * tests/partmap_test.in: New test for partitions.
17985 * Makefile.util.def: Rules for new test.
17986
7bf45fdd
RM
179872010-09-09 Robert Millan <rmh@gnu.org>
17988
17989 * util/grub-probe.c (probe): Fix a pair of unhandled error
17990 conditions.
17991
4dfbc574
RM
179922010-09-09 Robert Millan <rmh@gnu.org>
17993
17994 Basic Btrfs support (detection and UUID).
17995
17996 * grub-core/fs/btrfs.c: New file.
17997 * Makefile.util.def (library): Register btrfs.c.
17998 * grub-core/Makefile.core.def: Likewise.
17999
6b8e78ae
RM
180002010-09-08 Robert Millan <rmh@gnu.org>
18001
18002 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
18003 with (optional) parameters to specify device and relative path.
18004 * util/grub-install.in: Use is_path_readable_by_grub() to
18005 verify readability of a few critical files.
18006 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
18007 verify readability of grub.cfg.new.
18008
27f21a8b
VS
180092010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18010
18011 Split minix.mod into minix.mod and minix2.mod.
18012
18013 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
18014 * grub-core/Makefile.core.def (minix2): New module.
18015 * grub-core/fs/minix.c: Use definitions instead of runtime version
18016 checking.
18017 * grub-core/fs/minix2.c: New file.
18018
c0e53ea5
YB
180192010-09-08 Yves Blusseau <blusseau@zetam.org>
18020
18021 Add new --boot-directory option to replace --root-directory
18022
18023 * util/grub-install.in: Add new --boot-directory option
18024 * util/grub-reboot.in: Likewise.
18025 * util/grub-set-default.in: Likewise.
18026
b9fe6ea2
YB
180272010-09-08 Yves Blusseau <blusseau@zetam.org>
18028
18029 * util/grub-mkconfig.in: Use new variable.
18030
d87aedff
YB
180312010-09-08 Yves Blusseau <blusseau@zetam.org>
18032
18033 * configure.ac: Define some useful variables.
18034
e55e8495
VS
180352010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
18036
18037 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18038 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
18039 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
18040 Use terminfo and don't use cursor-on/cursor-off unless it's known
18041 to work.
18042 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
18043 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
18044
6fa6d675
CW
180452010-09-08 Colin Watson <cjwatson@ubuntu.com>
18046
18047 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
18048 starts with "(,", fill the drive containing the loaded image in
18049 between those two characters, but expect that a full partition
18050 specification including partition map names will follow.
18051
92f2aef0
RM
180522010-09-08 Robert Millan <rmh@gnu.org>
18053
18054 * configure.ac: Remove `--enable-grub-fstest' option.
18055 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
18056
18057 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
18058 `grub-fstest' instead of `grub-probe' for readability verification.
18059 * util/grub-probe.c (probe): Remove readability verification kludge.
18060
99fd620d
RM
180612010-09-08 Robert Millan <rmh@gnu.org>
18062
18063 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
18064 initializing `GRUB_FS'.
18065
058e30ac 180662010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
18067
18068 Not command (!) support to GRUB script.
18069
18070 * tests/grub_script_not.in: New test.
18071 * Makefile.util.def: Rules for new test.
18072
18073 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
18074 ! command as a special case.
18075 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
18076
b61d05ed 180772010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18078
058e30ac 18079 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
18080 grub_free.
b61d05ed 18081
4d69c786 180822010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18083
18084 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
18085
aa3119c4 180862010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
18087
18088 * docs/grub.texi (Shell-like scripting): Documentation for break,
18089 continue, shift and return commands.
18090
db0f7e3d
VS
180912010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
18092
18093 Rename CD-ROM to cd on BIOS.
18094
18095 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
18096 "cd".
18097 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
18098
88b87c93
VS
180992010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18100
18101 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
18102 * util/grub-probe.c (main): Likewise.
18103 * util/i386/pc/grub-setup.c (main): Likewise.
18104 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
18105 Reported and debugged by: alexxy
18106
294f324d
VS
181072010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18108
18109 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
18110 diagnostic info.
18111
d7ee3441
JS
181122010-09-05 Jo Shields <directhex@apebox.org>
18113
18114 * util/grub.d/30_os-prober.in: Add missing classes.
18115
d7e06c1f
VS
181162010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18117
18118 * docs/grub.texi (Theme file format): Document new position format.
18119
fc157e53
VS
181202010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18121
18122 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
18123 a table. Use @code instead of @verbatim.
18124
506e9a1c
CB
181252010-09-05 Colin D Bennett <colin@gibibit.com>
18126
18127 Gfxmenu documentation.
18128
18129 * docs/grub.texi (Theme file format): New chapter.
18130
f0aff67c
SJ
181312010-09-05 Szymon Janc <szymon@janc.net.pl>
18132
18133 * grub-core/Makefile.core.def (xzio): New module.
18134 * grub-core/io/xzio.c: New file.
18135 * grub-core/lib/xzembed/xz.h: New file (from xembed).
18136 * grub-core/lib/xzembed/xz_config.h: Likewise.
18137 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
18138 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
18139 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
18140 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
18141 * grub-core/lib/xzembed/xz_private.h: Likewise.
18142 * grub-core/lib/xzembed/xz_stream.h: Likewise.
18143 * include/grub/file.h (grub_file_filter_id): New compression filter
18144 GRUB_FILE_FILTER_XZIO.
18145
82a85062
VS
181462010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18147
18148 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
18149 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
18150 size.
18151
3579415d
VS
181522010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18153
18154 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
18155 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
18156
5124ae6d
VS
181572010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18158
18159 Uncompressed checksum support.
18160
18161 * grub-core/commands/hashsum.c (options): Add option --uncompress.
18162 (check_list): New parameter uncompress.
18163 (grub_cmd_hashsum): Handle --uncompress.
18164
9aadb3d1
VS
181652010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18166
18167 Reintroduce testload.
18168
18169 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
18170 from here ...
18171 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
18172 (GRUB_MOD_INIT): New function.
18173 (GRUB_MOD_FINI): Likewise.
18174 * grub-core/Makefile.core.def (testload): New module.
18175
a17792c3
SJ
181762010-09-05 Szymon Janc <szymon@janc.net.pl>
18177
18178 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
18179 (uint8_t): New type.
18180 (uint16_t): Likewise.
18181 (uint32_t): Likewise.
18182 (uint64_t): Likewise.
18183
b81e40a3
SJ
181842010-09-05 Szymon Janc <szymon@janc.net.pl>
18185
18186 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
18187
fc2ef117
VS
181882010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
18189
18190 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
18191 Made static.
18192 (grub_gzfile_open): Removed. All users updated.
18193 (GRUB_MOD_INIT): New function.
18194 (GRUB_MOD_FINI): Likewise.
18195 * grub-core/kern/file.c (grub_file_filters_all): New variable.
18196 (grub_file_filters_enabled): Likewise.
18197 (grub_file_open): Handle filters.
18198 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
18199 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
18200 * include/grub/file.h (grub_file_filter_id_t): New type.
18201 (grub_file_filter_t): Likewise.
18202 (grub_file_filters_all): New extern variable.
18203 (grub_file_filters_enabled): Likewise.
18204 (grub_file_filter_register): New inline function.
18205 (grub_file_filter_unregister): Likewise.
18206 (grub_file_filter_disable): Likewise.
18207 (grub_file_filter_disable_compression): Likewise.
18208 * include/grub/gzio.h: Removed.
18209
35ee15e0
BC
182102010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18211
18212 Filename expansion support for wildcards in GRUB script.
18213
18214 * tests/grub_script_expansion.in: New test.
18215 * Makefile.util.def: Rule for new test.
18216
18217 * grub-core/commands/wildcard.c: New file, implements filename
18218 expansion support for GRUB script.
18219 * grub-core/Makefile.core.def: Rule update for regexp.mod.
18220 * grub-core/script/argv.c: Cosmetic changes.
18221 * grub-core/script/execute.c (grub_script_arglist_to_argv):
18222 Refactored to perform wildcard expansion on arguments.
18223 * include/grub/script_sh.h (grub_script_wildcard_translator): New
18224 struct.
18225
18226 * tests/util/grub-shell.in: Fix quoting for read input.
18227
5f0c4aca
BC
182282010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18229
18230 Support for updating environment variables with matched substrings
18231 of regexp.
18232
18233 * tests/grub_cmd_regexp.in: New test.
18234 * Makefile.util.def: Rule for new test.
18235
18236 * grub-core/commands/regexp.c: New option -s to update environment
18237 variables with regexp matches.
18238
3759a35f
SJ
182392010-09-04 Szymon Janc <szymon@janc.net.pl>
18240
18241 * include/grub/file.h (grub_file): New member not_easly_seekable.
18242 (grub_file_seekable): New inline function.
18243 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
18244 easily seekable.
18245 (grub_gzio_open): Set not_easly_seekable.
18246 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
18247 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
18248
ed8c6dec
BC
182492010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18250
18251 Support for options to appear multiple times on cmdline.
18252
18253 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
18254 * grub-core/commands/extcmd.c: Support for repeatable option.
18255 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
18256 repeatable option support.
18257
18258 Refactor menuentry into a regular command.
18259
18260 * grub-core/commands/menuentry.c: New file, menuentry command
18261 implementation.
18262 * grub-core/Makefile.core.def: Rule update for normal.mod.
18263 * grub-core/normal/main.c: Moved menuentry creation to
18264 grub-core/commands/menuentry.c.
18265 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
18266 (grub_menu_execute_entry_real): Removed.
18267 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
18268 function.
18269 (grub_script_execute_menuentry): Removed.
18270 * grub-core/script/parser.y (menuentry): Removed.
18271 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
18272 * grub-core/script/yylex.l (menuentry): Removed.
18273 * include/grub/menu.h (grub_menu_init): New prototype.
18274 (grub_menu_fini): New prototype.
18275 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
18276 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
18277 (grub_script_execute_sourcecode): New prototype.
18278
dacd0cf0
BC
182792010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18280
18281 "return" command for GRUB script functions.
18282
18283 * tests/grub_script_return.in: New test.
18284 * Makefile.util.def: Rules for new test.
18285
18286 * grub-core/script/execute.c (grub_script_return): New function.
18287 * grub-core/script/main.c: Register/unregister return commaond.
18288 * include/grub/script_sh.h (grub_script_return): New prototype.
18289
52e72f9d
BC
182902010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18291
18292 "setparams" command to update positional parameters.
18293
18294 * tests/grub_script_setparams.in: New test.
18295 * Makefile.util.def: Rules for new test.
18296
18297 * grub-core/script/argv.c (grub_script_argv_make): New function.
18298 * grub-core/script/execute.c (replace_scope): New function.
18299 (grub_script_setparams): New function.
18300 * grub-core/script/lexer.c: Remove unused variables.
18301 * grub-core/script/main.c: Register/unregister setparams command.
18302 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
18303 (grub_script_setparams): New prototype.
18304
25b60c91
BC
183052010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18306
18307 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
18308 grub_free order.
18309
37e7bf68
BC
183102010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18311
18312 Support for passing block of commands as an argument to extcmds.
18313
18314 * Makefile.util.def: Rules for new test.
18315 * tests/grub_script_blockarg.in: New test.
18316 * grub-core/tests/test_blockarg.c: New file, block argument
18317 command used in the test.
18318
18319 * include/grub/extcmd.h (grub_extcmd_context): New struct.
18320 (grub_register_extcmd_prio): New function prototype.
18321 (grub_extcmd_dispatcher): New function prototype.
18322 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
18323 type.
18324 * include/grub/script_sh.h (struct grub_script): New members
18325 `children', `next_siblings' and `refcnt' for block arguments and
18326 reference counting.
18327 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
18328 (grub_script_arg): New member `script' for block argument.
18329 (grub_script_argv): New member `script' for block argument.
18330 (grub_parser_param): New member `scripts' for block argument.
18331 (grub_script_mem_free): New extern function prototype.
18332 (grub_script_ref): New function prototype.
18333 (grub_script_unref): New function prototype.
18334
18335 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
18336 extcmd form to support block arguments.
18337 * grub-core/script/argv.c: Block arguments support.
18338 * grub-core/script/execute.c: Likewise.
18339 * grub-core/script/lexer.c: Likewise.
18340 * grub-core/script/main.c: Likewise.
18341 * grub-core/script/script.c: Likewise.
18342 * grub-core/script/parser.y: Likewise. New `block' and `block0'
18343 non-terminals.
18344
18345 * grub-core/commands/acpi.c: Update extcmd implementations with
18346 grub_extcmd_context_t.
18347 * grub-core/commands/cat.c: Likewise.
18348 * grub-core/commands/echo.c: Likewise.
18349 * grub-core/commands/extcmd.c: Likewise.
18350 * grub-core/commands/hashsum.c: Likewise.
18351 * grub-core/commands/hdparm.c: Likewise.
18352 * grub-core/commands/help.c: Likewise.
18353 * grub-core/commands/hexdump.c: Likewise.
18354 * grub-core/commands/i386/cpuid.c: Likewise.
18355 * grub-core/commands/i386/pc/drivemap.c: Likewise.
18356 * grub-core/commands/i386/pc/halt.c: Likewise.
18357 * grub-core/commands/i386/pc/sendkey.c: Likewise.
18358 * grub-core/commands/iorw.c: Likewise.
18359 * grub-core/commands/keystatus.c: Likewise.
18360 * grub-core/commands/loadenv.c: Likewise.
18361 * grub-core/commands/ls.c: Likewise.
18362 * grub-core/commands/lspci.c: Likewise.
18363 * grub-core/commands/memrw.c: Likewise.
18364 * grub-core/commands/probe.c: Likewise.
18365 * grub-core/commands/search_wrap.c: Likewise.
18366 * grub-core/commands/setpci.c: Likewise.
18367 * grub-core/commands/sleep.c: Likewise.
18368 * grub-core/disk/loopback.c: Likewise.
18369 * grub-core/hello/hello.c: Likewise.
18370 * grub-core/loader/i386/bsd.c: Likewise.
18371 * grub-core/loader/xnu.c: Likewise.
18372 * grub-core/term/gfxterm.c: Likewise.
18373 * grub-core/term/serial.c: Likewise.
18374 * grub-core/tests/lib/functional_test.c: Likewise.
18375
888d1500
BC
183762010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
18377
18378 Multi-line quoted strings support.
18379
18380 * grub-core/script/lexer.c (append_newline): Removed.
18381 (grub_script_lexer_yywrap): Refactored.
18382 (grub_script_lexer_init): Refactored.
18383 * grub-core/script/yylex.l (yywrap): New function.
18384 (grub_lexer_resplit): New function.
18385 (grub_lexer_unput): New function.
18386 * include/grub/script_sh.h (grub_lexer_param): New members, unput
18387 and resplit.
18388 * tests/grub_script_echo1.in: Added few more testcases.
18389
dda060dd
VS
183902010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
18391
18392 * grub-core/kern/misc.c: Don't add abort alias in utils.
18393 Reported by: echoline.
18394
6556eba9
BC
183952010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
18396
18397 Add missing files into "make dist" tarball for other platforms.
18398
18399 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
18400 * conf/Makefile.common (dist_noinst_DATA): New variable.
18401 * conf/Makefile.extra-dist: Added missing make dist files.
18402 * grub-core/Makefile.core.def: Likewise.
18403
c8e7bf5f
VS
184042010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18405
18406 Compress grub_prefix.
18407
18408 * grub-core/boot/i386/pc/lnxboot.S: Use
18409 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
18410 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
18411 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
18412 GRUB_MACHINE_PREFIX_END. All users updated.
18413 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
18414 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
18415 + 0x40.
18416 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
18417 * util/grub-mkimage.c (image_target_desc): Change data_end to
18418 prefix_end. All users updated.
18419
a7c00cdb
VS
184202010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
18421
18422 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
18423 value.
18424 (grub_openbsd_boot): Likewise.
18425 (grub_netbsd_boot): Likewise.
18426 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
18427 (grub_xnu_boot): Likewise.
18428
9f915872
VS
184292010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18430
18431 * configure.ac: Clean LIBS variable after tests.
18432
efa1bee7
CW
184332010-09-02 Colin Watson <cjwatson@ubuntu.com>
18434
18435 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
18436
61d720e5
VS
184372010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18438
18439 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
18440 echo if libdevmapper will be used.
18441
ef8e0ec8
IT
184422010-09-02 Ian Turner <Ian.Turner@deshaw.com>
18443
18444 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
18445 constant for the same file.
18446
03e261d8
VS
184472010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18448
18449 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
18450
c2a4eba6
CW
184512010-09-02 Colin Watson <cjwatson@ubuntu.com>
18452
18453 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
18454 grub-core/*.pp.
18455
9056cbf3
CW
184562010-09-02 Colin Watson <cjwatson@ubuntu.com>
18457
18458 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
18459 required by the boot protocol.
18460
18461 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
18462 ebp and edi members.
18463 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
18464 state.ebp and state.edi.
18465 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
18466 %ebp and %edi according to grub_relocator32_ebp and
18467 grub_relocator32_edi respectively.
18468 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
18469 and state.edi.
18470
529cc99a
VS
184712010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18472
18473 Add i386-pc-pxe image target.
18474
18475 * util/grub-mkimage.c (image_target_desc): New enum value
18476 IMAGE_I386_PC_PXE.
18477 (image_targets): New target i386-pc-pxe.
18478 (generate_image): Handle i386-pc-pxe image.
18479
9a093920
VS
184802010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
18481
18482 Fix grub_pxe_scan.
18483
18484 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
18485 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
18486 All users updated.
18487 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
18488 (grub_pxe_pxenv): Correct type.
18489
f9cefc4e
CW
184902010-09-01 Colin Watson <cjwatson@ubuntu.com>
18491
18492 * NEWS: Document most of the important changes since 1.98.
18493
4066f57f
CW
184942010-09-01 Colin Watson <cjwatson@ubuntu.com>
18495
18496 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
18497 generated manual page) a little.
18498
da2891f9
CW
184992010-09-01 Colin Watson <cjwatson@ubuntu.com>
18500
18501 * docs/grub.texi: Add myself as an author.
18502
ad717fae
VS
185032010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
18504
18505 * Makefile.util.def (libgrub.a): Add missing sunpc.
18506 Reported by: Seth Goldberg.
18507
eefe8abd
VS
185082010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18509
18510 Interrupt wrapping and code simplifications.
18511
9494ef9a
VS
18512 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
18513 x86_noieee1275 which are functionaly equivalent in this case.
18514 (grub-install): Make source on each platform explicit. Enable on
18515 all noemu.
18516 * gentpl.py (x86_efi_pc): Removed group.
18517 (x86_noefi): Likewise.
18518 (i386_noefi): Likewise.
18519 (x86_noieee1275): Likewise.
18520 (i386_noieee1275): Likewise.
18521 (i386_noefi_noieee1275): Likewise.
18522 (i386_pc_qemu_coreboot): Likewise.
18523 (i386_coreboot_multiboot): Likewise.
18524 (i386_pc_coreboot_multiboot_qemu): Likewise.
18525 (x86_noefi_mips): Likewise.
18526 (noieee1275): Likewise.
18527 (ieee1275_mips): Likewise.
18528 (noemu_noieee1275): Likewise.
18529 (cmos): New group.
18530 (usb): Likewise.
18531 (videoinkernel): Likewise.
18532 (videomodules): Likewise.
eefe8abd 18533 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
18534 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
18535 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
18536 include/grub/loader.h, include/grub/msdos_partition.h,
18537 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
18538 include/grub/machine/console.h, include/grub/machine/vga.h,
18539 include/grub/machine/vbe.h, include/grub/machine/init.h,
18540 include/grub/machine/kernel.h, include/grub/cpu/time.h,
18541 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 18542 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
18543 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
18544 * grub-core/Makefile.core.def (kernel): Explicit the source for
18545 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
18546 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
18547 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
18548 Use videoinkernel tag.
18549 (usb): Enable on all usb.
18550 (usbserial_common): Likewise.
18551 (usbserial_pl2303): Likewise.
18552 (usbserial_ftdi): Likewise.
18553 (uhci): Enable on all x86.
18554 (ohci): Enable on all pci.
18555 (cmostest): Enable on all CMOS.
18556 (acpi): Include commands/acpi.c on all platforms.
18557 (halt): Add relevant lib/*/halt.c.
18558 (hdparm): Enable on all pci.
18559 (lspci): Likewise.
18560 (usbtest): Enable on all usb.
18561 (ata): Enable on all pci.
18562 (ata_pthru): Likewise.
18563 (usbms): Enable on all usb.
18564 (usb_keyboard): Likewise.
18565 (font): Use tag videomodules.
18566 (bufio): Likewise.
18567 (datetime): Use tag cmos. Enable on all noemu.
18568 (mmap): Use tags common and x86.
18569 (gfxterm): Use tag videomodules.
18570 (bitmap): Likewise.
18571 (bitmap_scale): Likewise.
18572 (video_fb): Likewise.
18573 (video): Likewise.
18574 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
18575 adjust padding accordingly. All users updated.
18576 (grub_ohci_transaction): Fix bad format specification.
18577 (GRUB_MOD_INIT): Add asserts for struct size.
18578 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
18579 (grub_alloc_td): Likewise.
18580 (grub_free_queue): Likewise.
18581 (grub_uhci_transfer): Likewise.
18582 (grub_uhci_transaction): Fix bad format specification.
18583 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
18584 (grub_usb_bulk_readwrite): Likewise.
18585 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
18586 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
18587 Made static.
18588 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
18589 Made static.
18590 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
18591 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
18592 Transformed into C.
18593 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
18594 Moved from here ...
18595 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
18596 ... here. Transformed into C. Made static.
18597 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
18598 Moved from here ...
18599 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
18600 ... here. Transformed into C. Made static.
18601 * grub-core/kern/i386/pc/startup.S
18602 (grub_biosdisk_check_int13_extensions): Moved from here ...
18603 * grub-core/disk/i386/pc/biosdisk.c
18604 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
18605 Made static.
18606 * grub-core/kern/i386/pc/startup.S
18607 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
18608 * grub-core/disk/i386/pc/biosdisk.c
18609 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
18610 Transformed into C. Made static.
18611 * grub-core/kern/i386/pc/startup.S
18612 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
18613 * grub-core/disk/i386/pc/biosdisk.c
18614 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
18615 Transformed into C. Made static.
18616 * grub-core/kern/i386/pc/startup.S
18617 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
18618 * grub-core/disk/i386/pc/biosdisk.c
18619 (grub_biosdisk_get_diskinfo_standard): ... here.
18620 Transformed into C. Made static.
18621 * grub-core/kern/i386/pc/startup.S
18622 (grub_biosdisk_get_num_floppies): Moved from here ...
18623 * grub-core/disk/i386/pc/biosdisk.c
18624 (grub_biosdisk_get_num_floppies): ... here.
18625 Transformed into C. Made static.
18626 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
18627 New function.
18628 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
18629 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
18630 Transformed into C. Made static.
18631 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
18632 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
18633 Transformed into C. Made static.
18634 * grub-core/kern/i386/ieee1275/init.c: Removed.
18635 * grub-core/kern/i386/misc.S: Likewise.
18636 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
18637 Splitted from here ...
18638 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
18639 Transformed into C. Made static. All users updated.
18640 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
18641 Transformed into C. Made static. All users updated.
18642 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
18643 Moved from here...
18644 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
18645 Transformed into C. Made static. All users updated.
18646 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
18647 Moved from here...
18648 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
18649 Transformed into C. Made static. All users updated.
18650 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
18651 Removed (replaced by C version).
18652 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
18653 Moved from here...
18654 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
18655 Transformed into C. Made static.
18656 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
18657 Moved from here...
18658 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
18659 ... here. Transformed into C.
18660 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
18661 Moved from here...
18662 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
18663 ... here. Transformed into C.
18664 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
18665 Moved from here...
18666 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
18667 ... here. Transformed into C. Made static.
18668 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
18669 Moved from here...
18670 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
18671 ... here. Transformed into C.
21ed554b
VS
18672 * grub-core/kern/i386/pc/startup.S
18673 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
18674 * grub-core/video/i386/pc/vbe.c
18675 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
18676 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
18677 Moved from here...
18678 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
18679 ... here. Transformed into C.
18680 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
18681 Moved from here...
18682 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
18683 ... here. Transformed into C.
18684 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
18685 Moved from here...
18686 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
18687 ... here. Transformed into C.
18688 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
18689 Moved from here...
18690 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
18691 ... here. Transformed into C.
18692 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
18693 Moved from here...
18694 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
18695 ... here. Transformed into C. Made static.
18696 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
18697 Moved from here...
18698 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
18699 ... here. Transformed into C. Made static.
18700 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
18701 Moved from here...
18702 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
18703 ... here. Transformed into C. Made static.
18704 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
18705 pxe_rm_entry as third argument.
18706 (grub_bios_interrupt): New function.
18707 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
18708 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
18709 of calling grub_stop.
18710 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
18711 * grub-core/lib/efi/halt.c (grub_halt): ...here.
18712 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
18713 * grub-core/lib/emu/halt.c (grub_halt): ... here.
18714 * grub-core/lib/i386/halt.c: Moved from here ...
18715 * grub-core/lib/i386/halt.c: ... here.
18716 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
18717 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
18718 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
18719 grub_stop_floppy.
18720 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
18721 * include/grub/i386/coreboot/init.h: Removed.
18722 * include/grub/i386/multiboot/init.h: Likewise.
18723 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
18724 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
18725 * include/grub/i386/pc/int.h: New file.
18726 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
18727 (grub_pxe_scan): Removed.
18728 (grub_pxe_call): Update prototype.
18729 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
18730 prototypes.
18731 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
18732 * include/grub/i386/qemu/init.h: Removed.
18733 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
18734 noreturn.
18735 (grub_halt): Likewise.
18736 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
18737 (grub_reboot): Likewise.
18738 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
18739 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
18740 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
18741
215dd471
RM
187422010-08-30 Robert Millan <rmh@gnu.org>
18743
18744 * NEWS: Document addition of ZFS support in `grub-install' and
18745 `grub-mkconfig'.
18746
ebd65b82
BC
187472010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
18748
18749 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
18750 dprintf output.
18751
11721d19
VS
187522010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18753
18754 Remove leftover embedding of font objects.
18755
18756 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18757 * util/grub-install.in (font): Removed.
18758 * util/grub-mkimage.c (generate_image): Remove font support. All users
18759 updated.
18760
37837d4e
VS
187612010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18762
18763 Remove leftover embedding of font objects.
18764
18765 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
18766 * util/grub-install.in (font): Removed.
18767 * util/grub-mkimage.c (generate_image): Remove font support. All users
18768 updated.
18769
b4c1aae0
VS
187702010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18771
18772 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 18773 Reported by: Ian Turner
b4c1aae0 18774
8920a08d
VS
187752010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18776
18777 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
18778 timeout to avoid indefinite boot stalling.
18779
f21db033
VS
187802010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18781
18782 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
18783 (grub_env_write_color_highlight): Likewise.
18784
9a9de209
VS
187852010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18786
18787 * grub-core/normal/term.c (print_more): Return to normal and not
18788 to standard state after printing "---MORE---".
18789
3dca01d7
VS
187902010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
18791
18792 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
18793 Mask out the bit 0x80 since it has other meaning that specifiing color.
18794
0b986c40
VS
187952010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18796
18797 New relocator. Allows for more kernel support and more straightforward
18798 loader writing.
18799
18800 * Makefile.am (BOOTTARGET): New variable.
18801 (QEMU32): Likewise.
18802 (linux.init.x86_64): New target.
18803 (linux.init.i386): Likewise.
18804 (multiboot.elf): Likewise.
18805 (kfreebsd.elf): Likewise.
18806 (kfreebsd.aout): Likewise.
18807 (pc-chainloader.elf): Likewise.
18808 (pc-chainloader.bin): Likewise.
18809 (ntldr.elf): Likewise.
18810 (ntldr.bin): Likewise.
18811 (multiboot2.elf): Likewise.
18812 (kfreebsd.init.x86_64): Likewise.
18813 (kfreebsd.init.i386): Likewise.
18814 (knetbsd.init.i386): Likewise.
18815 (kopenbsd.init.i386): Likewise.
18816 (knetbsd.init.x86_64): Likewise.
18817 (kopenbsd.init.x86_64): Likewise.
18818 (linux-initramfs.i386): Likewise.
18819 (linux-initramfs.x86_64): Likewise.
18820 (kfreebsd-mfsroot.i386.img): Likewise.
18821 (knetbsd.image.i386): Likewise.
18822 (kopenbsd.image.i386): Likewise.
18823 (kopenbsd.image.x86_64): Likewise.
18824 (knetbsd.miniroot-image.i386.img): Likewise.
18825 (kfreebsd-mfsroot.x86_64.img): Likewise.
18826 (knetbsd.image.x86_64): Likewise.
18827 (knetbsd.miniroot-image.x86_64.img): Likewise.
18828 (kfreebsd-mfsroot.i386.gz): Likewise.
18829 (bootcheck-kfreebsd-i386): Likewise.
18830 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18831 (bootcheck-kfreebsd-x86_64): Likewise.
18832 (knetbsd.miniroot-image.i386.gz): Likewise.
18833 (bootcheck-knetbsd-i386): Likewise.
18834 (bootcheck-kopenbsd-i386): Likewise.
18835 (bootcheck-kopenbsd-x86_64): Likewise.
18836 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18837 (bootcheck-knetbsd-x86_64): Likewise.
18838 (bootcheck-linux-i386): Likewise.
18839 (bootcheck-linux-x86_64): Likewise.
18840 (bootcheck-linux16-i386): Likewise.
18841 (bootcheck-linux16-x86_64): Likewise.
18842 (bootcheck-multiboot): Likewise.
18843 (bootcheck-multiboot2): Likewise.
18844 (bootcheck-kfreebsd-aout): Likewise.
18845 (bootcheck-pc-chainloader): Likewise.
18846 (bootcheck-ntldr): Likewise.
18847 (CLEANFILES): Add new targets.
18848 (BOOTCHECKS): New variable.
18849 (.PHONY): Add bootchecks.
18850 (SUCCESSFUL_BOOT_STRING): New variable.
18851 (BOOTCHECK_TIMEOUT): Likewise.
18852 (bootcheck): New target
18853 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18854 * configure.ac: Correct efiemu excuse.
18855 * docs/grub.texi (Supported kernels): New chapter.
18856 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18857 include/grub/mm_private.h. Simplify inclusion of
18858 include/grub/boot.h, include/grub/loader.h
18859 and include/grub/msdos_partition.h
18860 (KERNEL_HEADER_FILES) [i386_coreboot]:
18861 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18862 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18863 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18864 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18865 include/grub/machine/loader.h.
18866 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18867 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18868 extra_dist.
18869 (pci.mod): Enable on i386-multiboot.
18870 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18871 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18872 i386-qemu.
18873 (relocator.mod): Rewritten.
18874 (aout.mod): Enable on all x86.
18875 (bsd.mod): Likewise.
18876 (ntldr.mod): New module.
18877 (linux.mod): Use loader/i386/linux.c on all x86.
18878 (xnu.mod): Enable on all x86.
18879 (vga_text.mod): disable on EFI and QEMU.
18880 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18881 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18882 * grub-core/efiemu/loadcore.c: Likewise.
18883 * grub-core/efiemu/main.c: Likewise.
18884 (grub_efiemu_exit_boot_services): Removed.
18885 (grub_efiemu_finish_boot_services): Likewise.
18886 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18887 function.
18888 * grub-core/efiemu/i386/nocfgtables.c: New file.
18889 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18890 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18891 (grub_efi_finish_boot_services): Moved from here ...
18892 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18893 Fille finish memory map and related data.
18894 (finish_mmap_buf): New variable.
18895 (grub_efi_uintn_t finish_mmap_size): Likewise.
18896 (grub_efi_uintn_t finish_key): Likewise.
18897 (grub_efi_uintn_t finish_desc_size): Likewise.
18898 (grub_efi_uint32_t finish_desc_version): Likewise.
18899 (grub_efi_is_finished): Likewise.
18900 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18901 finished.
18902 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18903 (grub_elf64_phdr_iterate): Likewise.
18904 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18905 (grub_os_area_size): Likewise.
18906 (grub_machine_init): Don't reserve os area.
18907 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18908 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18909 * grub-core/kern/i386/loader.S: Removed.
18910 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18911 (grub_os_area_size): Likewise.
18912 (grub_machine_init): Don't reserve os area.
18913 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18914 Don't call grub_dl_unload_all.
18915 Don't include loader.S.
18916 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18917 Declare the memory after _end as available.
18918 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 18919 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 18920 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
18921 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18922 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18923 * include/grub/mm_private.h (grub_mm_header): ... here.
18924 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18925 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
18926 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18927 (grub_mm_region): ..here. Removed addr. Added pre_size.
18928 All users updated.
18929 * grub-core/kern/mm.c (base): Renamed to ...
18930 (grub_mm_base): ... this. Made global.
18931 (grub_real_malloc): Alloc from end of region.
18932 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18933 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18934 * grub-core/kern/powerpc/cache_flush.S: ... here.
18935 * grub-core/lib/efi/relocator.c: New file.
18936 * grub-core/lib/i386/relocator.c: Rewritten.
18937 * grub-core/lib/i386/relocator16.S: New file.
18938 * grub-core/lib/i386/relocator32.S: Likewise.
18939 * grub-core/lib/i386/relocator64.S: Likewise.
18940 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18941 * grub-core/lib/i386/relocator_common.S: New file.
18942 * grub-core/lib/ieee1275/relocator.c: Likewise.
18943 * grub-core/lib/mips/relocator.c: Rewritten.
18944 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18945 stylistic adjustments.
18946 * grub-core/lib/powerpc/relocator.c: New file.
18947 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18948 * grub-core/lib/relocator.c: Rewritten.
18949 * grub-core/lib/x86_64/relocator_asm.S: New file.
18950 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18951 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18952 (bsd_tag): New struct.
18953 (tags): New variable.
18954 (tags_last): Likewise.
18955 (netbsd_module): New struct.
18956 (netbsd_mods): New variable.
18957 (netbsd_mods_last): Likewise.
18958 (openbsd_opts): New parameter "serial".
18959 (OPENBSD_SERIAL_ARG): New definition.
18960 (netbsd_opts): New parameter "serial".
18961 (NETBSD_SERIAL_ARG): New definition.
18962 (grub_freebsd_add_meta): Reorganised into ...
18963 (grub_bsd_add_meta): ...this. All users updated.
18964 (grub_freebsd_add_mmap): Reorganised into ...
18965 (generate_e820_mmap): ...this...
18966 (grub_bsd_add_mmap): ...and this. All users updated.
18967 (grub_freebsd_list_modules): Use tags.
18968 (grub_netbsd_add_meta_module): New function.
18969 (grub_netbsd_list_modules): Likewise.
18970 (grub_freebsd_boot): Use relocator and finish EFI.
18971 (grub_openbsd_boot): Likewise.
18972 (grub_netbsd_setup_video): New function.
18973 (grub_netbsd_add_modules): Likewise.
18974 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18975 and finish EFI.
18976 (grub_bsd_unload): Unload tags.
18977 (grub_bsd_load_aout): Use relocator.
18978 (grub_bsd_elf32_size_hook): New function.
18979 (grub_bsd_elf32_hook): Use relocator.
18980 (grub_bsd_elf64_size_hook): New function.
18981 (grub_bsd_elf64_hook): Use relocator.
18982 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18983 (grub_bsd_load): Zero-out openbsd_ramdisk.
18984 (grub_bsd_load): Use relocator.
18985 (grub_cmd_openbsd): Support serial.
18986 (grub_cmd_netbsd): Support modules.
18987 (grub_cmd_freebsd_module): Use relocator.
18988 (grub_netbsd_module_load): New function.
18989 (grub_cmd_netbsd_module): Likewise.
18990 (grub_cmd_openbsd_ramdisk): Likewise.
18991 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18992 kopenbsd_ramdisk.
18993 (GRUB_MOD_FINI): Unregister new commands.
18994 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18995 (grub_freebsd_load_elfmodule_obj): Use relocator.
18996 (grub_freebsd_load_elfmodule): Likewise.
18997 (grub_freebsd_load_elf_meta): Likewise.
18998 (grub_netbsd_load_elf_meta): New function.
18999 (grub_openbsd_find_ramdisk): Likewise.
19000 * grub-core/loader/i386/bsd_helper.S: Removed.
19001 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
19002 * grub-core/loader/i386/bsd_trampoline.S: Removed.
19003 * grub-core/loader/i386/efi/linux.c: Likewise.
19004 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
19005 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
19006 (DEFAULT_VIDEO_MODE): Likewise.
19007 (real_mode_target): New variable.
19008 (prot_mode_target): Likewise.
19009 (initrd_mem_target): Likewise.
19010 (relocator): Likewise.
19011 (efi_mmap_buf): Likewise.
19012 (efi_mmap_size): Likewise.
19013 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
19014 (free_pages): Use relocator.
19015 (allocate_pages): Account for efi_mmap and use relocator. Return error.
19016 (grub_linux_setup_video): Return error.
19017 (grub_linux_trampoline_start): Removed.
19018 (grub_linux_trampoline_end): Likewise.
19019 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
19020 andd video parameters depending on firmware.
19021 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
19022 [GRUB_MACHINE_EFI]: Pass EFI parameters.
19023 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
19024 (grub_cmd_initrd): Use relocator.
19025 * grub-core/loader/i386/linux_trampoline.S: Removed.
19026 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
19027 (elf_sec_entsize): Likewise.
19028 (elf_sec_shstrndx): Likewise.
19029 (elf_sections): Likewise.
19030 (grub_multiboot_load): Use relocator.
19031 (grub_multiboot_get_mbi_size): Account for sections.
19032 (grub_multiboot_make_mbi): Use relocator and support sections.
19033 (grub_multiboot_add_elfsyms): New function.
19034 (grub_multiboot_free_mbi): Free sections.
19035 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
19036 (grub_linux_real_target): Likewise.
19037 (grub_linux_real_chunk): Likewise.
19038 (grub_linux16_prot_size): Likewise.
19039 (grub_linux16_boot): Use relocator.
19040 (grub_linux_unload): Unload relocator.
19041 (grub_cmd_linux): Use relocator.
19042 (grub_cmd_initrd): Likewise.
19043 * grub-core/loader/i386/pc/ntldr.c: New file.
19044 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
19045 Don't try to guess CPU frequency.
19046 (grub_xnu_set_video): Stretch bitmap.
19047 (grub_xnu_boot): Use relocator.
19048 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
19049 (grub_linux_unload): Free relocator.
19050 (grub_linux_load32): Use relocator.
19051 (grub_linux_load64): Likewise.
19052 (grub_cmd_initrd): Likewise.
19053 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
19054 (grub_multiboot_unload): Unload relocator.
19055 (grub_cmd_multiboot): Use relocator.
19056 (grub_cmd_module): Likewise.
19057 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
19058 Use relocator and support sections.
19059 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
19060 (elf_sec_entsize): Likewise.
19061 (elf_sec_shstrndx): Likewise.
19062 (elf_sections): Likewise.
19063 (grub_multiboot_load): Use relocator.
19064 (grub_multiboot_get_mbi_size): Account for sections.
19065 (grub_multiboot_make_mbi): Use relocator and support sections.
19066 (grub_multiboot_add_elfsyms): New function.
19067 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
19068 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
19069 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
19070 Prototype changed. All users updated.
19071 (grub_xnu_align_heap): Simplified.
19072 (grub_xnu_writetree_toheap): Likewise.
19073 (grub_xnu_unload): Unload relocator.
19074 (grub_cmd_xnu_kernel): Use relocator.
19075 (grub_cmd_xnu_kernel64): Likewise.
19076 (grub_xnu_register_memory): Simplified.
19077 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
19078 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
19079 EFI is finished.
19080 (grub_console_checkkey): Likewise.
19081 (grub_console_getkey): Likewise.
19082 (grub_console_getwh): Likewise.
19083 (grub_console_getxy): Likewise.
19084 (grub_console_gotoxy): Likewise.
19085 (grub_console_cls): Likewise.
19086 (grub_console_setcolorstate): Likewise.
19087 (grub_console_setcursor): Likewise.
19088 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
19089 * grub-core/tests/boot/kbsd.init-i386.S: New file.
19090 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
19091 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
19092 * grub-core/tests/boot/kernel-8086.S: Likewise.
19093 * grub-core/tests/boot/kernel-i386.S: Likewise.
19094 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
19095 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
19096 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
19097 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
19098 * grub-core/tests/boot/knetbsd.cfg: Likewise.
19099 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
19100 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
19101 * grub-core/tests/boot/linux.cfg: Likewise.
19102 * grub-core/tests/boot/linux.init-i386.S: Likewise.
19103 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
19104 * grub-core/tests/boot/linux16.cfg: Likewise.
19105 * grub-core/tests/boot/multiboot.cfg: Likewise.
19106 * grub-core/tests/boot/multiboot2.cfg: Likewise.
19107 * grub-core/tests/boot/ntldr.cfg: Likewise.
19108 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
19109 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
19110 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
19111 New definition.
19112 * include/grub/dl.h (grub_dl_unload_all): Removed.
19113 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
19114 (grub_efi_finish_boot_services): Change prototype.
19115 (grub_efi_is_finished): New variable.
19116 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
19117 Changed prototype.
19118 (grub_efiemu_finish_boot_services): Removed.
19119 (grub_machine_efiemu_init_tables): New prototype.
19120 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
19121 (grub_elf64_phdr_iterate): Likewise.
19122 * include/grub/i386/bsd.h: Include relocator.h.
19123 (freebsd_tag_header): New struct.
19124 (grub_openbsd_bios_mmap): Removed.
19125 (grub_unix_real_boot): Removed.
19126 (grub_freebsd_load_elfmodule32): Changed prototype.
19127 (grub_freebsd_load_elfmodule_obj64): Likewise.
19128 (grub_freebsd_load_elf_meta32): Likewise.
19129 (grub_freebsd_load_elf_meta64): Likewise.
19130 (grub_freebsd_add_meta): Removed.
19131 (grub_netbsd_load_elf_meta32): New prototype.
19132 (grub_netbsd_load_elf_meta64): Likewise.
19133 (grub_bsd_add_meta): Likewise.
19134 (grub_openbsd_ramdisk_descriptor): New struct.
19135 (grub_openbsd_find_ramdisk32): New prototype.
19136 (grub_openbsd_find_ramdisk64): Likewise.
19137 * include/grub/i386/coreboot/loader.h: Removed.
19138 * include/grub/i386/efi/loader.h: Likewise.
19139 * include/grub/i386/ieee1275/loader.h: Likewise.
19140 * include/grub/i386/linux.h (linux_kernel_header): Change void *
19141 to grub_uint32_t.
19142 * include/grub/i386/loader.h: Removed.
19143 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
19144 value.
19145 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
19146 (grub_phys_addr_t): New type.
19147 (grub_vtop): New inline function.
19148 (grub_map_memory): Likewise.
19149 (grub_unmap_memory): Likewise.
19150 * include/grub/i386/multiboot/loader.h: Removed.
19151 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
19152 (NETBSD_BTINFO_CONSOLE): New definition.
19153 (NETBSD_BTINFO_SYMTAB): Likewise.
19154 (NETBSD_BTINFO_MODULES): Likewise.
19155 (NETBSD_BTINFO_FRAMEBUF): Likewise.
19156 (grub_netbsd_bootinfo): New struct.
19157 (grub_netbsd_btinfo_common): Use explicit bitsize.
19158 (grub_netbsd_btinfo_mmap_entry): Removed.
19159 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
19160 (grub_netbsd_btinfo_bootdisk): New struct.
19161 (grub_netbsd_btinfo_symtab): Likewise.
19162 (grub_netbsd_btinfo_serial): Likewise.
19163 (grub_netbsd_btinfo_modules): Likewise.
19164 (grub_netbsd_btinfo_framebuf): Likewise.
19165 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
19166 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
19167 Likewise.
19168 (grub_openbsd_bootargs): Use explicit bitsize.
19169 (grub_openbsd_bootarg_console): New struct.
19170 (GRUB_OPENBSD_COM_MAJOR): New definition.
19171 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
19172 * include/grub/i386/pc/efiemu.h: Removed.
19173 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
19174 * include/grub/i386/qemu/loader.h: Removed.
19175 * include/grub/i386/relocator.h: Rewritten.
19176 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
19177 * include/grub/mips/memory.h: New file.
19178 * include/grub/mips/multiboot.h: Rewritten.
19179 * include/grub/mips/relocator.h: Rewritten.
19180 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
19181 (grub_vtop): New function.
19182 (grub_map_memory): Likewise.
19183 (grub_unmap_memory): Likewise.
19184 * include/grub/misc.h (ALIGN_DOWN): New definition.
19185 * include/grub/mm.h (grub_mm_check_real): New proto.
19186 (GRUB_MM_CHECK): New definition.
19187 * include/grub/mm_private.h: New file.
19188 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
19189 (grub_multiboot_get_mbi_size): Removed.
19190 (grub_multiboot_make_mbi): Change prottype.
19191 (grub_multiboot_set_accepts_video): New proto.
19192 (grub_multiboot_add_elfsyms): Likewise.
19193 (grub_multiboot_payload_eip): New variable.
19194 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
19195 New prototype.
19196 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
19197 New definition.
19198 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
19199 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
19200 * include/grub/powerpc/ieee1275/loader.h: Removed.
19201 * include/grub/powerpc/memory.h: New file.
19202 * include/grub/powerpc/relocator.h: Likewise.
19203 * include/grub/relocator.h: Likewise.
19204 * include/grub/relocator_private.h: Likewise.
19205 * include/grub/sparc64/ieee1275/loader.h: Removed.
19206 * include/grub/x86_64/memory.h: New file.
19207 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
19208 (grub_xnu_heap_malloc): Likewise.
19209 (grub_xnu_heap_real_start): Removed.
19210 (grub_xnu_heap_start): Likewise.
19211 (grub_xnu_relocator): New variable.
19212 (grub_xnu_heap_target_start): Likewise.
19213 * tests/util/grub-shell.in: Support non-pc.
19214 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 19215
5303b85d
VS
192162010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19217
19218 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
19219 on malloc error.
19220 (grub_bidi_logical_to_visual): Check that malloc succeded.
19221 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
19222 puts.
19223 (grub_xputs_normal): Likewise.
19224
d768d159
VS
192252010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19226
19227 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
19228 extra_dist.
19229
192302010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19231
19232 * grub-core/efiemu/runtime/efiemu.sh: Removed.
19233
5bf84df4
VS
192342010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19235
19236 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
19237
3626810e
VS
192382010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
19239
19240 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
19241 dprintf.
19242
a7363f53
BC
192432010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
19244
19245 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
19246
902f75f6
VS
192472010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19248
19249 * grub-core/normal/term.c (print_more): Fix a memory leak.
19250 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
19251 (grub_xputs_normal): Likewise.
19252
3c707967
VS
192532010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19254
19255 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
19256 the begining of the string
19257
2053cc07
VS
192582010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19259
19260 * grub-core/script/script.c (grub_script_parse): Free parsed on
19261 failure.
19262
46422ebf
VS
192632010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19264
19265 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
19266 on failure.
19267
9e0fa3f6
VS
192682010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19269
19270 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
19271 return.
19272
3393cf16
VS
192732010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19274
19275 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
19276 (scroll_up): Fix a memory leak.
19277
b17540cb
VS
192782010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
19279
19280 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
19281 errors.
19282
67140446
VS
192832010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
19284
19285 Handle USB pendrives exposed as floppies.
19286
19287 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
19288 floppy.
19289 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
19290 Check for partitions on all devices.
19291
e35e46fc
VS
192922010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
19293
19294 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
19295 (readkey): Likewise.
19296
d24c6190
BC
192972010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
19298
19299 Multiple variable names support to "export" command.
19300
19301 * normal/context.c (grub_cmd_export): "export" command supports
19302 multiple variable names.
19303
04ddcc6a
ST
193042010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
19305
19306 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
19307 --target=drive output to Mach device name.
19308
0c8b61d8
BC
193092010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19310
19311 New Automake based build system for GRUB.
19312
19313 * ABOUT-NLS: New file.
19314 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
19315 in Makefile.util.def file.
19316 * Makefile.util.def: New file. Autogen build definitions file for
19317 GRUB host utils.
19318 * conf/Makefile.common: New file. Common variables for GRUB host
19319 utils and target modules.
19320 * conf/Makefile.extra-dist: New file. Extra files for make dist.
19321 * docs/Makefile.am: New file. Automake file for docs.
19322 * gentpl.py: New file. Python script to generate Autogen
19323 template.
19324 * grub-core/Makefile.am: New file. GRUB target modules' rules
19325 that doesn't fit in Makefile.core.def file.
19326 * grub-core/Makefile.core.def: New file. Autogen build
19327 definitions file for GRUB target modules.
19328 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
19329 specific setjmp.S file.
19330 * po/Makefile.am: New file.
19331
19332 * .bzrignore: New ignores.
19333 * INSTALL: New requirements, without Ruby.
19334 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
19335 * autogen.sh: Updated to invoke autogen as necessary.
19336 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
19337 and defines for Automake conditionals.
19338 * geninit.sh: Refactoring.
19339
19340 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
19341 necessary.
19342 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
19343 New prototype.
19344
19345 * include/grub/test.h: Fix functional test modules' naming.
19346 * grub-core/tests/example_functional_test.c: Fix test module name.
19347
19348 * util/misc.c: Hosted versions' of grub functions for libgrub.a
19349 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
19350 * util/grub-editenv.c: Likewise.
19351 * util/grub-fstest.c: Likewise.
19352 * util/grub-mkdevicemap.c: Likewise.
19353 * util/grub-mkfont.c: Likewise.
19354 * util/grub-mkimage.c: Likewise.
19355 * util/grub-mkpasswd-pbkdf2.c: Likewise.
19356 * util/grub-probe.c: Likewise.
19357 * util/grub-script-check.c: Likewise.
19358 * util/i386/pc/grub-setup.c: Likewise.
19359 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19360
19361 * tests/util/grub-shell.in: Fix override directory path.
19362 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
19363 * util/import_gcry.py: Create Makefile.gcry.def file instead.
19364
19365 * util/lvm.c: Update #includes.
19366 * util/raid.c: Likewise.
19367 * util/resolve.c: Likewise.
19368 * grub-core/bus/emu/pci.c: Likewise.
19369 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
19370 * grub-core/lib/posix_wrap/string.h: Likewise.
19371 * grub-core/kern/emu/main.c: Likewise.
19372
19373 * grub-core/gensymlist.sh: New file. Script for generating kernel
19374 symbols file.
19375 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
19376
19377 * grub-core/gentrigtables.c: Fix unused variable warnings.
19378
19379 * Makefile.in: Removed.
19380 * conf/any-emu.rmk: Removed.
19381 * conf/common.rmk: Removed.
19382 * conf/i386-coreboot.rmk: Removed.
19383 * conf/i386-efi.rmk: Removed.
19384 * conf/i386-ieee1275.rmk: Removed.
19385 * conf/i386-multiboot.rmk: Removed.
19386 * conf/i386-pc.rmk: Removed.
19387 * conf/i386-qemu.rmk: Removed.
19388 * conf/i386.rmk: Removed.
19389 * conf/mips-yeeloong.rmk: Removed.
19390 * conf/mips.rmk: Removed.
19391 * conf/powerpc-ieee1275.rmk: Removed.
19392 * conf/sparc64-ieee1275.rmk: Removed.
19393 * conf/tests.rmk: Removed.
19394 * conf/x86-efi.rmk: Removed.
19395 * conf/x86_64-efi.rmk: Removed.
19396 * gendistlist.sh: Removed.
19397 * geninitheader.sh: Removed.
19398 * genkernsyms.sh.in: Removed.
19399 * genmk.rb: Removed.
19400 * gensymlist.sh.in: Removed.
19401 * mkinstalldirs: Removed.
19402 * boot: Moved ...
19403 * grub-core/boot: ... to here.
19404 * bus: Moved ...
19405 * grub-core/bus: ... to here.
19406 * commands: Moved ...
19407 * grub-core/commands: ... to here.
19408 * disk: Moved ...
19409 * grub-core/disk: ... to here.
19410 * efiemu: Moved ...
19411 * grub-core/efiemu: ... to here.
19412 * font: Moved ...
19413 * grub-core/font: ... to here.
19414 * fs: Moved ...
19415 * grub-core/fs: ... to here.
19416 * gencmdlist.sh: Moved ...
19417 * grub-core/gencmdlist.sh: ... to here.
19418 * genemuinit.sh: Moved ...
19419 * grub-core/genemuinit.sh: ... to here.
19420 * genemuinitheader.sh: Moved ...
19421 * grub-core/genemuinitheader.sh: ... to here.
19422 * genfslist.sh: Moved ...
19423 * grub-core/genfslist.sh: ... to here.
19424 * genhandlerlist.sh: Moved ...
19425 * grub-core/genhandlerlist.sh: ... to here.
19426 * genmoddep.awk: Moved ...
19427 * grub-core/genmoddep.awk: ... to here.
19428 * genmodsrc.sh: Moved ...
19429 * grub-core/genmodsrc.sh: ... to here.
19430 * genpartmaplist.sh: Moved ...
19431 * grub-core/genpartmaplist.sh: ... to here.
19432 * genparttoollist.sh: Moved ...
19433 * grub-core/genparttoollist.sh: ... to here.
19434 * genterminallist.sh: Moved ...
19435 * grub-core/genterminallist.sh: ... to here.
19436 * gentrigtables.c: Moved ...
19437 * grub-core/gentrigtables.c: ... to here.
19438 * genvideolist.sh: Moved ...
19439 * grub-core/genvideolist.sh: ... to here.
19440 * gettext: Moved ...
19441 * grub-core/gettext: ... to here.
19442 * gfxmenu: Moved ...
19443 * grub-core/gfxmenu: ... to here.
19444 * gnulib: Moved ...
19445 * grub-core/gnulib: ... to here.
19446 * hello: Moved ...
19447 * grub-core/hello: ... to here.
19448 * hook: Moved ...
19449 * grub-core/hook: ... to here.
19450 * io: Moved ...
19451 * grub-core/io: ... to here.
19452 * kern: Moved ...
19453 * grub-core/kern: ... to here.
19454 * lib: Moved ...
19455 * grub-core/lib: ... to here.
19456 * loader: Moved ...
19457 * grub-core/loader: ... to here.
19458 * mmap: Moved ...
19459 * grub-core/mmap: ... to here.
19460 * normal: Moved ...
19461 * grub-core/normal: ... to here.
19462 * partmap: Moved ...
19463 * grub-core/partmap: ... to here.
19464 * parttool: Moved ...
19465 * grub-core/parttool: ... to here.
19466 * script: Moved ...
19467 * grub-core/script: ... to here.
19468 * term: Moved ...
19469 * grub-core/term: ... to here
19470 * tests/example_functional_test.c: Moved ...
19471 * grub-core/tests/example_functional_test.c: ... to here.
19472 * tests/lib/functional_test.c: Moved ...
19473 * grub-core/tests/lib/functional_test.c: ... to here.
19474 * tests/lib/test.c: Moved ...
19475 * grub-core/tests/lib/test.c: ... to here.
19476 * video: Moved ...
19477 * grub-core/video: ... to here.
19478
645586e6
BC
194792010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
19480
19481 Replace --enable-grub-emu-modules with grub-emu-lite.
19482
19483 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
19484 cache.S.
19485
19486 * include/grub/emu/misc.h (grub_emu_init): New prototype.
19487 * kern/emu/full.c: New file. For grub-emu specific initialization.
19488 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
19489 * kern/emu/main.c: Call initialization function grub_emu_init.
19490
19491 * Makefile.in: Include grub-emu-lite in install.
19492 * commands/parttool.c: Use grub_no_autoload to differentiate
19493 between grub-emu and grub-emu-lite.
19494 * include/grub/misc.h: New variable grub_no_autoload.
19495
19496 * conf/any-emu.rmk: New rules for grub-emu-lite.
19497 * configure.ac: Remove --enable-grub-emu-modules.
19498 * genmk.rb: Cleanup unnecessary rules.
19499 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
19500
19501 * normal/main.c: Don't load list files on grub-emu-lite.
19502 * util/misc.c (grub_arch_sync_caches): Removed.
19503
f86a4030
CW
195042010-08-23 Colin Watson <cjwatson@ubuntu.com>
19505
19506 * kern/mips/startup.S (grub_prefix): Update comment to refer to
19507 grub-mkimage rather than grub-mkelfimage.
19508 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
19509
06776944
VS
195102010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
19511
19512 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
19513 a key after CapsLock or NumLock. It's just a qemu bug.
19514
df262419
VS
195152010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19516
19517 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
19518 needed by libusb wrapper.
19519
b40ea81b
ST
195202010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
19521
19522 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
19523
dee50575
VS
195242010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
19525
19526 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
19527 --nounzip is passed.
19528
fb1d7b79
VS
195292010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
19530
19531 USB hotunplugging and USB serial support.
19532
19533 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
19534 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
19535 (grub_uhci_transfer): Respect timeout and set *actual.
19536 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
19537 non-standard length.
19538 (grub_usb_device_attach): Autoload modules.
19539 (GRUB_MOD_INIT): Set grub_term_poll_usb.
19540 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
19541 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
19542 users updated.
19543 (grub_usb_add_hub): Fill nports and children.
19544 (attach_root_port): Receive hub instead of controller.
19545 All users updated. Fill hub->devices.
19546 (grub_usb_root_hub): Allocate hub->devices.
19547 (detach_device): New function.
19548 (poll_nonroot_hub): Fill children and detach devices.
19549 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
19550 actual arguments. All users updated.
19551 (grub_usb_bulk_read_extended): New function.
19552 * bus/usb/serial/common.c: New file.
19553 * bus/usb/serial/ftdi.c: Likewise.
19554 * bus/usb/serial/pl2303.c: Likewise.
19555 * commands/terminal.c (handle_command): Support wildcard.
19556 * commands/usbtest.c: Output "Unknown" instead of empty string.
19557 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
19558 (usbserial_common_mod_SOURCES): New variable.
19559 (usbserial_common_mod_CFLAGS): Likewise.
19560 (usbserial_common_mod_LDFLAGS): Likewise.
19561 (pkglib_MODULES): Add usbserial_pl2303.mod.
19562 (usbserial_pl2303_mod_SOURCES): New variable.
19563 (usbserial_pl2303_mod_CFLAGS): Likewise.
19564 (usbserial_pl2303_mod_LDFLAGS): Likewise.
19565 (pkglib_MODULES): Add usbserial_ftdi.mod.
19566 (usbserial_ftdi_mod_SOURCES): New variable.
19567 (usbserial_ftdi_mod_CFLAGS): Likewise.
19568 (usbserial_ftdi_mod_LDFLAGS): Likewise.
19569 (pkglib_MODULES): Add serial.mod.
19570 (serial_mod_SOURCES): New variable.
19571 (serial_mod_CFLAGS): Likewise.
19572 (serial_mod_LDFLAGS): Likewise.
19573 * conf/i386-pc.rmk: Likewise.
19574 * conf/mips-yeeloong.rmk: Likewise.
19575 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
19576 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
19577 * disk/usbms.c (first_available_slot): New variable.
19578 (grub_usbms_attach): Don't reuse free slots due to potential cache
19579 problems.
19580 * include/grub/serial.h: Moved to ..
19581 * include/grub/ns8250.h: ...this.
19582 * include/grub/serial.h: New file.
19583 * include/grub/term.h (grub_term_poll_usb): New variable.
19584 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
19585 readkey. All users updated.
19586 (grub_terminfo_output_state): Pass term to put.
19587 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
19588 (grub_usb_controller_dev): Add timeout and actual arguments to
19589 transfer. All users updated.
19590 (grub_usb_interface): New field detach_data.
19591 (grub_usb_device): New fields children and nports.
19592 (grub_usb_ep_type_t): New type.
19593 (grub_usb_get_ep_type): New function.
19594 (grub_usb_bulk_read_extended): Likewise.
19595 * include/grub/usbdesc.h (grub_usb_desc): New type.
19596 * include/grub/usbserial.h: New file.
19597 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
19598 * kern/term.c (grub_term_poll_usb): New variable.
19599 (grub_getkey): Call grub_term_poll_usb if set.
19600 (grub_checkkey): Likewise.
19601 (grub_getkeystatus): Likewise.
19602 * term/serial.c: Moved controller-specific parts to ...
19603 * term/ns8250.c: ... here.
19604 * term/serial.c: Mostly rewritten.
19605 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
19606 according to spec.
19607
21a313de
RM
196082010-08-20 Robert Millan <rmh@gnu.org>
19609
19610 Make kFreeBSD code more generic to support ext2fs as root, ufs as
19611 a separate module and maybe other interesting combinations.
19612
19613 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
19614 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
19615 (kfreebsd_entry): Add generic filesystem module load routine.
19616 Map GRUB `ext2' to kFreeBSD `ext2fs'.
19617
63c734a6
CW
196182010-08-20 Colin Watson <cjwatson@ubuntu.com>
19619
19620 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
19621 "numcenter" (I misunderstood the purpose of this entry).
19622 * docs/grub.texi (sendkey): Likewise.
19623
c4d16542
CW
196242010-08-20 Colin Watson <cjwatson@ubuntu.com>
19625
19626 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
19627 status flag options; simply omitting the option is equivalent and
19628 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
19629 (keysym_table): Rename "num5numlock" to "numlock".
19630 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
19631 can uniformly say that only the last of multiple `sendkey'
19632 invocations has any effect.
19633 * docs/grub.texi (sendkey): New section.
19634
93541d66
CW
196352010-08-19 Colin Watson <cjwatson@ubuntu.com>
19636
19637 * commands/i386/pc/sendkey.c (options): Fix three typos.
19638
b4ece5e1
VS
196392010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
19640
19641 Implement sendkey support.
19642
19643 * commands/i386/pc/sendkey.c: New file.
19644 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
19645 (sendkey_mod_SOURCES): New variable.
19646 (sendkey_mod_CFLAGS): Likewise.
19647 (sendkey_mod_LDFLAGS): Likewise.
19648
51f1f5af
CW
196492010-08-18 Colin Watson <cjwatson@ubuntu.com>
19650
19651 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
19652 fix warnings from Autoconf.
19653
9da94e05
CW
196542010-08-18 Colin Watson <cjwatson@ubuntu.com>
19655
19656 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
19657 to avoid false positives with some assemblers that output things
19658 like "someprefix_func" as part of their output.
19659
729a0f2e
RM
196602010-08-15 Robert Millan <rmh@gnu.org>
19661
19662 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
19663 errors.
19664 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
19665 grub_get_libzfs_handle() errors.
19666
f3710e08
RM
196672010-08-14 Robert Millan <rmh@gnu.org>
19668
19669 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
19670 filesystem is not ZFS.
19671
7a3c13de
BC
196722010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19673
19674 Fix for misspelled color names defaulting to black/black (bug
19675 reported by Doug Nazar)
19676
19677 * include/grub/normal.h (grub_parse_color_name_pair): Add return
19678 status to prototype.
19679 * normal/color.c (grub_parse_color_name_pair): Return failure
19680 status.
19681 (grub_env_write_color_normal): Ignore bad color names.
19682 (grub_env_write_color_highlight): Likewise.
19683 * normal/main.c (GRUB_MOD_INIT): Set default color names.
19684
ab8ba50d
BC
196852010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19686
19687 "shift" command support to GRUB script.
19688
19689 * include/grub/script_sh.h (grub_script_shift): New prototype.
19690 * script/execute.c (grub_script_shift): New function.
19691 * script/main.c (grub_script_init): Register shift command.
19692 (grub_script_fini): Unregister shift command.
19693 * util/grub-script-check.c (grub_script_cmd_shift): New function.
19694
19695 * tests/grub_script_shift.in: New testcase.
19696 * conf/tests.rmk: Rules for new testcase.
19697
4d61999e
BC
196982010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19699
19700 "continue" command support to GRUB script.
19701
19702 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
19703 (grub_script_break): Continue support.
19704 * script/main.c (grub_script_init): Register continue command.
19705 (grub_script_fini): Unregister continue command.
19706
19707 * tests/grub_script_continue.in: New testcase.
19708 * conf/tests.rmk: Rules for new testcase.
19709
4df51e00
BC
197102010-08-12 BVK Chaitanya <bvk@dbook>
19711
19712 "break" command support to GRUB script.
19713
19714 * conf/common.rmk: Rule updates to grub-script-check.
19715 * include/grub/misc.h (grub_min): New function.
19716 * include/grub/script_sh.h (grub_script_init): New prototype.
19717 (grub_script_fini): New prototype.
19718 (grub_script_break): New prototype.
19719 * script/main.c (grub_script_init): New function.
19720 (grub_script_fini): New function.
19721 * script/execute.c (grub_script_break): New function.
19722 * normal/main.c: Calls to grub_script_{init,fini}.
19723 * util/grub-script-check.c (grub_script_break): New function.
19724
19725 * tests/grub_script_break.in: New testcase.
19726 * conf/tests.rmk: Rules for new test case.
19727
f12c8420
BC
197282010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19729
19730 Function parameters support to GRUB script.
19731
19732 * script/yylex.l (VARIABLE): Regular expression update.
19733 * script/function.c (grub_script_function_call): Moved ...
19734 * script/execute.c (grub_script_function_call): ... to here.
19735 (grub_script_execute_arglist_to_argv): Removed.
19736 (grub_script_arglist_to_argv): New function.
19737 * script/argv.c: New file.
19738 (grub_script_argv_free): New function.
19739 (grub_script_argv_next): Likewise.
19740 (grub_script_argv_append): Likewise.
19741 (grub_script_argv_split_append): Likewise.
19742 * include/grub/script_sh.h (grub_script_argv): New struct.
19743 (grub_script_argv_free): New function.
19744 (grub_script_argv_next): Likewise.
19745 (grub_script_argv_append): Likewise.
19746 (grub_script_argv_split_append): Likewise.
19747
19748 * conf/common.rmk (normal.mod): New source script/argv.c.
19749
19750 * tests/grub_script_echo1.in: More tests.
19751 * tests/grub_script_vars1.in: Likewise.
19752 * tests/grub_script_functions.in: New test case.
19753 * conf/tests.rmk: Rules for new testcase.
19754
8022b748
BC
197552010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
19756
19757 Remove grub_script_cmdblock struct.
19758
19759 * include/grub/script_sh.h: Remove grub_script_cmdblock.
19760 * script/parser.y: Likewise.
19761 * script/execute.c: Rename cmdblock suffix to cmdlist.
19762 * script/script.c: Likewise.
19763 * util/grub-script-check.c: Likewise.
19764
79a6ba61
YB
197652010-08-11 Yves Blusseau <blusseau@zetam.org>
19766
19767 * .bzrignore: add grub-macho2img
19768
d04b9414
VS
197692010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19770
19771 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
19772
f947ab49
VS
197732010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
19774
19775 Remove the dump of sm712 initialisation sequence.
19776
19777 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
19778 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
19779 (GRUB_VGA_IO_MISC_WRITE): Likewise.
19780 (GRUB_VGA_CR_*): Added many registers.
19781 (GRUB_VGA_SR_*): Likewise.
19782 (GRUB_VGA_GR_*): Likewise.
19783 (grub_vga_write_arx): New function.
19784 (grub_video_hw_config): New struct.
19785 (grub_vga_set_geometry): New function.
19786 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
19787 GRUB_PCI_CLASS_SUBCLASS_VGA.
19788 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
19789 * video/sm712.c (grub_sm712_write_reg): New function
19790 (grub_sm712_read_reg): Likewise.
19791 (grub_sm712_sr_write): Likewise.
19792 (grub_sm712_gr_write): Likewise.
19793 (grub_sm712_cr_write): Likewise.
19794 (grub_sm712_write_arx): Likewise.
19795 (grub_sm712_cr_shadow_write): Likewise.
19796 (grub_sm712_write_dda_lookup): Likewise.
19797 (grub_video_sm712_setup): Initialise the video rather then
19798 blindly replay the dump.
19799 (main) [TEST]: Add a routine to be able to compile as standalone for
19800 tests.
19801 * video/sm712_init.c (sm712_init): Removed.
19802 (sm712_sr_seq1): New array.
19803 (sm712_sr_seq2): Likewise.
19804
f0206638
VS
198052010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19806
19807 * include/grub/vga.h: Add missing grub/pci.h include.
19808
2764da3b
YB
198092010-08-10 Yves Blusseau <blusseau@zetam.org>
19810
19811 * util/grub-macho2img.c (main): fix typo
19812
cf0c775e
VS
198132010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19814
19815 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19816 (grub_vga_gr_read): Likewise.
19817 (grub_vga_cr_write): Likewise.
19818 (grub_vga_cr_read): Likewise.
19819 (grub_vga_sr_write): Likewise.
19820 (grub_vga_sr_read): Likewise.
19821 (grub_vga_palette_read): Likewise.
19822 (grub_vga_palette_write): Likewise.
19823 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19824 (grub_sm712_sr_read): New function.
19825 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19826 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19827
07f360e9
RM
198282010-08-09 Robert Millan <rmh@gnu.org>
19829
19830 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19831 out unused variables on non-ZFS build.
19832
346c2072
RM
198332010-08-08 Robert Millan <rmh@gnu.org>
19834
19835 Fix path generation for sub-filesystems in ZFS.
19836
19837 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19838 missing slash.
19839
71175420
RM
198402010-08-08 Robert Millan <rmh@gnu.org>
19841
19842 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19843
0d8286f3
RM
198442010-08-08 Robert Millan <rmh@gnu.org>
19845
19846 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19847 exist, issue a proper error message (rely on `ls' for translated
19848 strings).
19849
55dd2924
RM
198502010-08-08 Robert Millan <rmh@gnu.org>
19851
19852 Fix grub-probe invocation.
19853
19854 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19855
d3dd9e80
RM
198562010-08-04 Robert Millan <rmh@gnu.org>
19857
19858 * configure.ac: Remove checks for getfsstat() and getmntany().
19859 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19860 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19861 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19862 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19863 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19864 function.
19865 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19866 via find_mount_point_from_dir() and getfsstat() / getmntany().
19867
0de22aa9
RM
198682010-08-04 Robert Millan <rmh@gnu.org>
19869
19870 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19871 (grub_find_zpool_from_mount_point): Merge into ...
19872 (grub_find_zpool_from_dir): ... this.
19873 * kern/emu/misc.c: Likewise.
19874
19875 * kern/emu/misc.c
19876 (grub_make_system_path_relative_to_its_root): Replace
19877 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19878 with grub_find_zpool_from_dir().
19879 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19880
62858144
RM
198812010-08-04 Robert Millan <rmh@gnu.org>
19882
19883 Support OpenSolaris in ZFS device resolution.
19884
19885 * configure.ac: Check for getmntany().
19886 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19887 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19888 support.
19889
9dd6fd50
RM
198902010-08-03 Robert Millan <rmh@gnu.org>
19891
19892 Fix grub-emu build.
19893
19894 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19895 * include/grub/emu/misc.h: ... here.
19896
19897 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19898 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19899
19900 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19901 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19902 (grub_get_libzfs_handle): Move to ...
19903 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19904 (grub_get_libzfs_handle): ... here.
19905
c9f7ff97
BC
199062010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19907
19908 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19909 as command name case.
19910
a870a783
CW
199112010-08-02 Colin Watson <cjwatson@ubuntu.com>
19912
19913 * disk/raid.c (insert_array): Select unique numbers for named arrays
19914 as well, for use as keys in the disk cache.
19915
c7db243b
RM
199162010-08-01 Robert Millan <rmh@gnu.org>
19917
19918 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19919 kFreeBSD device name, except on ZFS where the filesystem label is
19920 used.
19921 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19922 `/boot/zfs/zpool.cache'.
19923 Set mountfrom kernel variable using ${kfreebsd_device}.
19924
f7abdefb
RM
199252010-08-01 Robert Millan <rmh@gnu.org>
19926
19927 Make it even harder to use uninitialized `libzfs_handle' (and
19928 make the interface a bit simpler).
19929
19930 * include/grub/util/misc.h (grub_util_init_libzfs)
19931 (libzfs_handle): Remove.
19932 (grub_get_libzfs_handle): New prototype.
19933
19934 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19935 attribute.
19936 (grub_util_init_libzfs): Remove.
19937 (grub_get_libzfs_handle): New function.
19938
19939 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19940 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19941 accessing `libzfs_handle' directly.
19942
c882acc0
RM
199432010-08-01 Robert Millan <rmh@gnu.org>
19944
19945 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19946 (grub_find_zpool_from_mount_point): New function prototypes.
19947
19948 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19949 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19950
19951 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19952 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19953 `static' attribute.
19954
19955 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19956 finding zpool from mount point into ...
19957 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19958
19959 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19960 requested path is part of a ZFS pool, use
19961 grub_find_zpool_from_mount_point() to detect its filesystem name,
19962 and generate a path with `/fsname@path' syntax.
19963
8bfe31d8
CW
199642010-08-01 Colin Watson <cjwatson@ubuntu.com>
19965
19966 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19967 (void) rather than () so that this is a proper prototype.
19968
553df63d
VS
199692010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19970
19971 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19972
8687cf07
VS
199732010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19974
19975 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19976 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19977
ea9be8ea
CW
199782010-08-01 Colin Watson <cjwatson@ubuntu.com>
19979
19980 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19981
6eea041a
CW
199822010-08-01 Colin Watson <cjwatson@ubuntu.com>
19983
19984 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19985
2cfb45df
CW
199862010-08-01 Colin Watson <cjwatson@ubuntu.com>
19987
19988 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19989 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19990 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19991 disable gfxpayload.
19992 (Shell-like scripting): Add real content.
19993 (Serial terminal): Suggest `terminal_input serial; terminal_output
19994 serial' rather than putting the two commands on separate lines,
19995 since console input will be inoperative after the first command.
19996 (menuentry): Document --class, --users, and --hotkey options.
19997 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19998 Vladimir Serbinenko).
19999
7decd202
VS
200002010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
200012010-08-01 Colin Watson <cjwatson@ubuntu.com>
20002
20003 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
20004
c882acc0
RM
200052010-08-01 Robert Millan <rmh@gnu.org>
20006
20007 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
20008 (grub_find_zpool_from_mount_point): New function prototypes.
20009
20010 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
20011 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
20012
20013 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
20014 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
20015 `static' attribute.
20016
20017 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
20018 finding zpool from mount point into ...
20019 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
20020
20021 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
20022 requested path is part of a ZFS pool, use
20023 grub_find_zpool_from_mount_point() to detect its filesystem name,
20024 and generate a path with `/fsname@path' syntax.
20025
deb0caa3
RM
200262010-08-01 Robert Millan <rmh@gnu.org>
20027
20028 Prevent accidental use of uninitialized libzfs_handle.
20029
20030 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
20031 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
20032 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
20033
ce04ef47
CW
200342010-08-01 Colin Watson <cjwatson@ubuntu.com>
20035
20036 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
20037 util/grub.d/10_linux.in). Fixes Debian bug #591093.
20038
ebf53056
RM
200392010-08-01 Robert Millan <rmh@gnu.org>
20040
20041 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 20042
3710bb6b
RM
200432010-07-31 Robert Millan <rmh@gnu.org>
20044
20045 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
20046
8072efeb
RM
200472010-07-31 Robert Millan <rmh@gnu.org>
20048
20049 * kern/emu/misc.c: Add missing license header.
20050
3169f4c7
RM
200512010-07-31 Robert Millan <rmh@gnu.org>
20052
20053 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
20054
20055 * include/grub/util/libnvpair.h: Include `<config.h>'.
20056 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
20057 declaring libnvpair prototypes ourselves.
20058 * include/grub/util/libzfs.h: Include `<config.h>'.
20059 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
20060 declaring libzfs prototypes ourselves.
20061
20062 (libzfs_handle): Moved to ...
20063 * include/grub/util/misc.h (libzfs_handle): ... here.
20064 Include `<grub/util/libzfs.h>'.
20065
c9a00aee
RM
200662010-07-30 Robert Millan <rmh@gnu.org>
20067
20068 * include/grub/emu/misc.h: Add missing license header.
20069
a184f9c8
RM
200702010-07-30 Robert Millan <rmh@gnu.org>
20071
20072 Enable `grub-probe -t device' resolution on ZFS.
20073
20074 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
20075 * include/grub/util/libnvpair.h: New file.
20076 * include/grub/util/libzfs.h: New file.
20077
20078 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
20079 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
20080 `<grub/util/libnvpair.h>'.
20081 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
20082
20083 (find_mount_point_from_dir): New static function.
20084 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
20085 function.
20086 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
20087 find_root_device_from_libzfs() before ressorting to find_root_device().
20088
20089 * include/grub/util/misc.h (grub_util_init_libzfs): New function
20090 prototype.
20091 * util/misc.c: Include `<grub/util/libzfs.h>'.
20092 (grub_util_init_libzfs): New function.
20093 [HAVE_LIBZFS] (libzfs_handle): New global variable.
20094 [HAVE_LIBZFS] (fini_libzfs): New static function.
20095 (grub_util_init_libzfs): New function.
20096 * util/grub-probe.c (main): Call grub_util_init_libzfs().
20097
f7790cdd
RM
200982010-07-30 Robert Millan <rmh@gnu.org>
20099
20100 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
20101 (xmalloc, xrealloc, xstrdup, xasprintf): Add
20102 `warn_unused_result' attribute.
20103 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
20104 (grub_xasprintf, grub_xvasprintf): Likewise.
20105 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
20106
0806b63c
RM
201072010-07-29 Robert Millan <rmh@gnu.org>
20108
20109 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
20110 (probe): Handle `PRINT_FS_LABEL'.
20111 (main): Handle `-t fs_label'.
20112
9f841f5c
RM
201132010-07-29 Robert Millan <rmh@gnu.org>
20114
20115 * configure.ac: Remove grub-mkisofs checks.
20116
46371121
VS
201172010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
20118
20119 * util/ieee1275/grub-install.in: Don't use empty grub_device.
20120 Reported by: Lennart Sorensen.
20121
201222010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20123
20124 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
20125 prior to terminal_input/terminal_output separation. It's been over 1.5
20126 years and those versions weren't widely deployed.
20127
a9600892
CW
201282010-07-22 Colin Watson <cjwatson@ubuntu.com>
20129
20130 * disk/raid.c (insert_array): Don't count named arrays when looking
20131 for unused array numbers.
697e053c 20132 Reported and tested by: Michael Guntsche.
a9600892 20133
c03507df
CW
201342010-07-20 Colin Watson <cjwatson@ubuntu.com>
20135
20136 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
20137 implementation of this so that grub-emu links again, with a note
20138 that this should support hotplugging in the future.
20139
b26f1c11
CW
201402010-07-20 Colin Watson <cjwatson@ubuntu.com>
20141
20142 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
20143
efc9d7f1
CW
201442010-07-20 Colin Watson <cjwatson@ubuntu.com>
20145
20146 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
20147 handle on failure.
20148 (grub_loopback_close): Remove empty function.
20149 (grub_loopback_dev): Remove close method.
20150
dd8ff5c9
CW
201512010-07-20 Colin Watson <cjwatson@ubuntu.com>
20152
20153 Disable EFI cursor when the EFI console becomes inactive.
20154
20155 * term/efi/console.c (grub_efi_console_init): New function.
20156 (grub_efi_console_fini): New function.
20157 (grub_console_term_output): Register init and fini methods.
20158
5e3bec67
VS
201592010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 * tests/util/grub-shell-tester.in: Remove bashism and declare as
20162 sh script.
20163
afaec079
VS
201642010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20165
20166 * disk/loopback.c (grub_loopback): Replace filename with file.
20167 (delete_loopback): Handle new semantics.
20168 (grub_cmd_loopback): Likewise.
20169 (grub_loopback_iterate): Likewise.
20170 (grub_loopback_close): Likewise.
20171
a6a11f3c
VS
201722010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20173
20174 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
20175 with -p "".
20176 Reported by: Tito Keitel.
20177
64a638b0
VS
201782010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20179
20180 * docs/grub.texi (Naming convention): Document new naming convention.
20181
ab8ba957
VS
201822010-07-20 Vadim Solomin <vadic052@gmail.com>
201832010-07-20 Colin Watson <cjwatson@ubuntu.com>
20184
20185 Generate device.map in something closer to the old ordering.
20186
20187 * util/deviceiter.c (struct device): New declaration.
20188 (compare_file_names): Rename to ...
20189 (compare_devices): ... this. Sort by kernel name in preference to
20190 the stable by-id name, but keep the latter as a fallback comparison.
20191 Update header comment.
20192 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
20193 of `struct device' rather than of plain file names.
20194
a29d6a4b
TF
201952010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
20196
20197 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
20198 on i386.
20199
39d824e8
VS
202002010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
20201
20202 * commands/acpi.c (setup_common_tables): Use sizeof instead of
20203 hardcoding size.
20204 (setv1table): Likewise.
20205
f058276b
FZ
202062010-07-20 Colin Watson <cjwatson@ubuntu.com>
20207
20208 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
20209 removing the homehost if present.
20210 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
20211 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
20212 removing the homehost if present.
20213 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
20214 if possible.
20215 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
20216
20217 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
20218 parameter. Set its pointer target to 0.
20219 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
20220 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
20221 `data_offset' value from the superblock for 1.x metadata.
20222 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
20223 data on the device.
20224 (insert_array): Record the start sector of data on the device.
20225 (grub_raid_register): Pass start_sector parameters to
20226 grub_raid_list->detect and insert_array.
20227 * include/grub/raid.h (struct grub_raid_array): Add start_sector
20228 member.
20229 (struct grub_raid): Add start_sector parameter to `detect'.
20230
20231 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
20232 __attribute__ ((packed)), leaving a comment.
20233 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
20234 (grub_mdraid_detect_09): ... here and ...
20235 (grub_mdraid_detect_1x): ... here.
20236
202372010-07-20 Peter Henn <peter.henn@web.de>
20238
20239 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
20240 chunk size and disk size, which are already given as sector counts
20241 as distinct from the 0.90 units. Fetch the correct device number
20242 from the role table instead of using the table index.
20243
202442010-07-20 Felix Zielcke <fzielcke@z-51.de>
20245
20246 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
20247 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
20248 (WriteMostly1): New macro.
20249 Set array->name to NULL for metadata format 0.90. Add support for
20250 metadata 1.x. Fix some comments.
20251 * disk/raid.c (): Add support for name based RAID arrays. Fix a
20252 few comments.
20253 * util/getroot.c (grub_util_get_grub_dev): Add support for
20254 /dev/md/name style devices.
20255
4b761da9
CW
202562010-07-20 Colin Watson <cjwatson@ubuntu.com>
20257
20258 * .bzrignore: Ignore 20_linux_xen.
20259
5771289a
CW
202602010-07-17 Colin Watson <cjwatson@ubuntu.com>
20261
20262 * util/import_unicode.py: Remove unnecessary imports.
20263
5dab68df
AN
202642010-07-17 Aleš Nesrsta <starous@volny.cz>
20265
20266 Hotplugging and USB hub support.
20267
20268 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
20269 (grub_ohci): Likewise.
20270 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
20271 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
20272 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
20273 (GRUB_OHCI_CTRL_EDS): Likewise.
20274 (GRUB_OHCI_BULK_EDS): Likewise.
20275 (GRUB_OHCI_TDS): Likewise.
20276 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
20277 (grub_ohci_ed_phys2virt): New function.
20278 (grub_ohci_virt_to_phys): Likewise.
20279 (grub_ohci_td_phys2virt): Likewise.
20280 (grub_ohci_td_virt2phys): Likewise.
20281 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
20282 attachment.
20283 (grub_ohci_find_ed): New function.
20284 (grub_ohci_alloc_td): Likewise.
20285 (grub_ohci_free_td): Likewise.
20286 (grub_ohci_free_tds): Likewise.
20287 (grub_ohci_transfer): Use previously allocated memory.
20288 (grub_ohci_portstatus): Reset status changed bit.
20289 (grub_ohci_detect_dev): Supply status changed.
20290 (grub_ohci_fini_hw): Free memory.
20291 (grub_ohci_restore_hw): Reallocate memory.
20292 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
20293 Reset status change.
20294 (grub_uhci_detect_dev): Supply status_change.
20295 * bus/usb/usb.c (attach_hooks): New var.
20296 (grub_usb_device_attach): New function.
20297 (grub_usb_register_attach_hook_class): Likewise.
20298 (grub_usb_unregister_attach_hook_class): Likewise.
20299 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
20300 (grub_usb_add_hub): Reset connection changed bit.
20301 (attach_root_port): New function.
20302 (grub_usb_root_hub): Likewise.
20303 (poll_nonroot_hub): Likewise.
20304 (grub_usb_poll_devices): Likewise.
20305 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
20306 * disk/usbms.c (grub_usbms_open): Use device hooks.
20307 (grub_usbms_iterate) :Poll devices.
20308 (grub_usbms_finddevs): Split into ...
20309 (grub_usbms_attach): ... this ...
20310 (grub_usbms_attach): ... and this.
20311 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
20312 in detect_dev.
20313 (grub_usb_interface): New fields attached and detach_hook.
20314 (grub_usb_attach_hook_class): New type.
20315 (grub_usb_attach_desc): New struct.
20316 (grub_usb_register_attach_hook_class): New function.
20317 (grub_usb_unregister_attach_hook_class): Likewise.
20318 (grub_usb_poll_devices): Likewise.
20319 (grub_usb_device_attach): Likewise.
20320 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
20321 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
20322
3222efaf
VS
203232010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20324
20325 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
20326 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
20327 delta determination style. Works with most NetBSD partitions too.
20328
139b714a
VS
203292010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20330
20331 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
20332 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
20333
986aad56
VS
203342010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
20335
20336 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
20337
99be513c
AB
203382010-07-14 Anton Blanchard <anton@samba.org>
20339
20340 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
20341 ET_DYN files.
20342
18075f62
GS
203432010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20344
20345 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
20346
8d9a5b15
GS
203472010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20348
20349 * kern/partition.c (grub_partition_check_containment): New function to
20350 check that a partition is physically contained in a parent. Since
20351 offsets are relative (and non-negative), this reduces to checking that
20352 the partition ends before its parent.
20353 (grub_partition_map_probe): Discard out-of-range sub-partitions.
20354 (grub_partition_iterate): Likewise.
20355 * include/grub/partition.h (grub_partition_map): Slightly more detailed
20356 comments.
20357 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
20358 partitions that start before their parent, and add debug printfs.
20359
19563c25
CW
203602010-07-13 Colin Watson <cjwatson@ubuntu.com>
20361
20362 * Makefile.in (.SUFFIX): Spell correctly, as ...
20363 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
20364 bare module name without `.mod', e.g. `test') tried to invoke a
20365 Modula-2 compiler.
20366
1a1f1e67
CW
203672010-07-13 Colin Watson <cjwatson@ubuntu.com>
20368
20369 * README: Point to the Info manual.
20370
811b0dca
JS
203712010-07-13 Jiro SEKIBA <jir@unicus.jp>
20372
20373 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
20374 2nd superblock position from partition size.
20375
e4f4eafc
CW
203762010-07-10 Colin Watson <cjwatson@ubuntu.com>
20377
20378 * Makefile.in (MAINTAINER_CLEANFILES): Remove
20379 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
20380 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
20381 outputs.
20382
4274c30f
VS
203832010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20384
20385 Restructure SCSI .id handling.
20386 Reported and tested by: Aleš Nesrsta.
20387
20388 * disk/ata.c (grub_atapi_close): Removed. All users updated.
20389 (grub_atapi_dev): Changed .name to "ata". New field .id.
20390 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
20391 (grub_usbms_dev): New field .id.
20392 * disk/scsi.c (grub_scsi_iterate): Generate name.
20393 (grub_scsi_open): Parse name.
20394 * include/grub/scsi.h (grub_make_scsi_id): New function.
20395 (grub_scsi_dev): Change iterate and open to number instead of naming
20396 busses. All users updated.
20397 (grub_scsi): Remove name. Add .bus.
20398
5bc24388
VS
203992010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20400
20401 * commands/help.c (grub_cmd_help): Fix a typo.
20402
249975ba
VS
204032010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20404
20405 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
20406 Reported and tested by: Colin Watson.
20407
3eaac1a1
VS
204082010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
20409
20410 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
20411 in this context.
20412
becce1b1
VS
204132010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
20414
20415 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
20416
f7bf0918
CW
204172010-07-07 Colin Watson <cjwatson@ubuntu.com>
20418
20419 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
20420 indentation.
20421
0b0f9620
CW
204222010-07-06 Colin Watson <cjwatson@ubuntu.com>
20423
20424 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
20425 and disk/raid6_recover.c.
20426 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
20427 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
20428
1e545469
CW
204292010-07-06 Colin Watson <cjwatson@ubuntu.com>
20430
20431 * term/gfxterm.c (repaint_schedulded): Rename to ...
20432 (repaint_scheduled): ... this. Update all callers.
20433 (repaint_was_schedulded): Rename to ...
20434 (repaint_was_scheduled): ... this. Update all callers.
20435
5357687a
CW
204362010-07-06 Colin Watson <cjwatson@ubuntu.com>
20437
20438 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
20439 which we expect to be handled by upper layers.
20440
29d7e783
BC
204412010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
20442
20443 * bus/usb/usbhub.c: #include time.h header.
20444
37582066
CW
204452010-07-06 Colin Watson <cjwatson@ubuntu.com>
20446
20447 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
20448 entry_name also for entries without stat blocks (e.g. ".."); fixes
20449 corruption of the first entry in a directory.
20450
c8c06953
CW
204512010-07-06 Colin Watson <cjwatson@ubuntu.com>
20452
20453 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
20454 after setting gfxterm as the active terminal. GRUB_BACKGROUND
20455 doesn't work otherwise.
20456
e75056f1
CW
204572010-07-05 Colin Watson <cjwatson@ubuntu.com>
20458
20459 * docs/grub.texi (Features): Update list of supported file systems.
20460 (GNU/Linux): Update for GRUB 2.
20461 (Serial terminal): Remove mention of --disable-serial, which was a
20462 GRUB Legacy configure option. Update instructions to use
20463 `terminal_input' and `terminal_output' rather than `terminal'.
20464 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
20465 configuration' and `Installing GRUB using grub-install'.
20466 (Menu entry editor): Update for GRUB 2.
20467 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
20468 Document new -a, -u, and -v options.
20469 (initrd): New section.
20470 (initrd16): New section.
20471 (linux): New section.
20472 (linux16): New section.
20473 (search): The `var' argument to `--set' is optional.
20474 (GRUB only offers a rescue shell): Go into a little more detail on
20475 drive ordering.
20476
5cf69151
CW
204772010-07-05 Colin Watson <cjwatson@ubuntu.com>
20478
20479 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
20480
e3f90044
CW
204812010-07-05 Colin Watson <cjwatson@ubuntu.com>
20482
20483 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
20484 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
20485
38d8f4f3
CW
204862010-07-05 Colin Watson <cjwatson@ubuntu.com>
20487
20488 * util/i386/pc/grub-setup.c (setup): Rename prefix to
20489 install_prefix, in line with install_dos_part and install_bsd_part.
20490 Add new prefix variable, which is copied to install_prefix after
20491 comparing core.img in memory with the one read from disk in the
20492 no-embedding case, and use that rather than overwriting
20493 install_prefix immediately when installing to a partition.
20494 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
20495 Bicakci.
20496
57ebd41e
GS
204972010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20498
20499 * configure.ac: Avoid == in test command, it's not portable.
20500 * util/grub.d/30_os-prober.in: Likewise.
20501
cb7f64b2
CW
205022010-07-04 Colin Watson <cjwatson@ubuntu.com>
20503
20504 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
20505
6b654bb0
GS
205062010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
20507
20508 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
20509 multiple (top-level) partmaps.
20510
72a2026d
VS
205112010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20512
20513 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 20514 Reported by: Tino Keitel.
72a2026d 20515
df3eb88f
VS
205162010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 Bidi and diacritics support.
20519
20520 * Makefile.in (widthspec.bin): New target.
20521 (widthspec.h): Likewise.
20522 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
20523 * autogen.sh: Generate unidata.c.
20524 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
20525 * commands/ls.c (grub_ls_list_devices): Likewise.
20526 (grub_ls_list_files): Likewise.
20527 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
20528 (grub_mini_cmd_lsmod): Likewise.
20529 * commands/read.c: Likewise.
20530 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
20531 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
20532 * lib/arg.c (grub_arg_show_help): Likewise.
20533 * lib/crypto.c (grub_password_get): Likewise.
20534 * normal/auth.c (grub_username_get): Likewise.
20535 * normal/misc.c (grub_normal_print_device_info): Likewise.
20536 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
20537 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
20538 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
20539 (normal/charset.c_DEPENDENCIES): New variable.
20540 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
20541 (pkglib_MODULES): Remove charset.mod.
20542 (charset_mod_SOURCES): Removed.
20543 (charset_mod_CFLAGS): Likewise.
20544 (charset_mod_LDFLAGS): Likewise.
20545 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
20546 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
20547 and term/tparm.c.
20548 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20549 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20550 (kernel_img_HEADERS): Add terminfo.h.
20551 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
20552 Fill ->font. Reverse ascii bitmaps.
20553 (grub_font_get_xheight): New function.
20554 * font/font.c (grub_font_get_string_width): Moved from here ...
20555 * gfxmenu/font.c (grub_font_get_string_width): ... here.
20556 * font/font.c (grub_font_draw_string): Moved from here ...
20557 * gfxmenu/font.c (grub_font_draw_string): ... here.
20558 * font/font.c (grub_font_dup_glyph): New function.
20559 (grub_font_blit_glyph): Likewise.
20560 (grub_font_blit_glyph_mirror): Likewise.
20561 (blit_comb): Likewise.
20562 (grub_font_construct_dry_run): Likewise.
20563 (grub_font_get_constructed_device_width): Likewise.
20564 (grub_font_construct_glyph): Likewise.
20565 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
20566 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
20567 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
20568 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
20569 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
20570 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
20571 (grub_font_get_xheight): New proto.
20572 (grub_font_get_constructed_device_width): Likewise.
20573 (grub_font_construct_glyph): Likewise.
20574 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
20575 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
20576 * include/grub/font.h (grub_font_draw_string): Moved from here ...
20577 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
20578 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
20579 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
20580 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
20581 (grub_console_getcharwidth): Likewise.
20582 * include/grub/misc.h (grub_xputs): New proto.
20583 (grub_puts): Inlined.
20584 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
20585 (grub_normal_get_line_counter): Removed.
20586 (grub_install_newline_hook): Likewise.
20587 (grub_normal_get_char_counter): New proto.
20588 (grub_normal_reset_more): Likewise.
20589 (grub_xputs_normal): Likewise.
20590 * include/grub/powerpc/ieee1275/console.h: Removed.
20591 * include/grub/sparc64/ieee1275/console.h: Likewise.
20592 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
20593 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
20594 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
20595 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
20596 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
20597 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
20598 (grub_term_input): Pass reference to self. All users updated.
20599 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
20600 Pass reference to self. New fields normal_color, highlight_color and
20601 data. All users updated.
20602 (grub_putchar): Removed.
20603 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
20604 (grub_unicode_estimate_width): New function.
20605 (grub_term_getcharwidth): Add defaults.
20606 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
20607 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
20608 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
20609 (grub_cls): Remove EXPORT_FUNC.
20610 (grub_setcolorstate): Inline.
20611 (grub_newline_hook): Removed.
20612 * include/grub/terminfo.h: Rewritten. All users updated.
20613 * include/grub/unicode.h: New file.
20614 * include/grub/video.h (grub_video_signed_rect): New type.
20615 * kern/emu/console.c (grub_console_highlight_color): Removed.
20616 (grub_console_normal_color): Likewise.
20617 (grub_console_standard_color): Made static.
20618 (grub_ncurses_putchar): Remove mapping.
20619 (grub_ncurses_getcharwidth): Removed.
20620 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20621 (grub_ncurses_setcolor): Removed.
20622 (grub_ncurses_getcolor): Likewise.
20623 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
20624 (grub_console_putchar): ... this.
20625 (grub_console_putchar): Handle argument difference.
20626 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
20627 console_init_early and console_init_lately.
20628 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
20629 * kern/misc.c (grub_puts): Removed.
20630 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
20631 (grub_vsnprintf_real): Remove str = NULL support.
20632 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
20633 * normal/charset.c (grub_utf8_to_ucs4): ... here.
20634 * kern/term.c (grub_putcode): Renamed to ...
20635 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
20636 (grub_putchar): Removed.
20637 (grub_xputs_dumb): New function.
20638 (grub_xputs): New variable.
20639 * lib/charset.c: Move from here ...
20640 * normal/charset.c: ... to here.
20641 (grub_ucs4_to_utf8): New function.
20642 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
20643 (join_types): New variable.
20644 (unpack_join): New function.
20645 (bidi_types): New variable.
20646 (unpack_bidi): New function.
20647 (get_bidi_type): Likewise.
20648 (get_join_type): Likewise.
20649 (is_mirrored): Likewise.
20650 (grub_unicode_get_comb_type): Likewise.
20651 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
20652 (is_type_after): Likewise.
20653 (grub_unicode_aglomerate_comb): Likewise.
20654 (bidi_line_wrap): Likewise.
20655 (grub_bidi_line_logical_to_visual): Likewise.
20656 (grub_bidi_logical_to_visual): Likewise.
20657 (grub_unicode_mirror_code): Likewise.
20658 (grub_unicode_shape_code): Likewise.
20659 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
20660 Don't use grub_putchar.
20661 * normal/main.c (grub_normal_init_page): Use grub_putcode.
20662 (grub_normal_reader_init): Likewise.
20663 (grub_xputs_saved): New variable.
20664 (GRUB_MOD_INIT): Set grub_xputs.
20665 (GRUB_MOD_FINI): Restore grub_xputs.
20666 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
20667 (menu_init): Avoid printing gfxmenu error.
20668 (show_menu): Use grub_normal_get_char_counter.
20669 * normal/menu_entry.c (update_screen): Fix out-of-array.
20670 (complete): Avoid NULL dereferencing.
20671 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
20672 * normal/menu_text.c (print_spaces): Removed.
20673 (grub_print_ucs4): Likewise.
20674 (grub_print_message_indented): Use grub_print_ucs4.
20675 (print_message): Use grub_putcode.
20676 (print_entry): Hanlde diacritics.
20677 * normal/term.c (term_state): New type.
20678 (grub_more_lines): Removed.
20679 (term_states): New variable.
20680 (grub_normal_line_counter): Renamed to ..
20681 (grub_normal_char_counter): ...this. All users updated.
20682 (grub_normal_get_line_counter): Renamed to ...
20683 (grub_normal_get_char_counter): ... this.
20684 (grub_normal_reset_more): New function.
20685 (process_newline): Removed.
20686 (print_more): New function.
20687 (grub_install_newline_hook): Removed.
20688 (map_code): New function.
20689 (grub_puts_terminal): Use grub_print_ucs4.
20690 (putglyph): New function.
20691 (putcode_real): Likewise.
20692 (grub_putcode): Use putcode_real.
20693 (get_maxwidth): New function.
20694 (get_startwidth): Likewise.
20695 (print_ucs4_terminal): Likewise.
20696 (find_term_state): Likewise.
20697 (put_glyphs_terminal): Likewise.
20698 (print_backlog): Likewise.
20699 (print_ucs4_real): Likewise.
20700 (grub_print_ucs4): Likewise.
20701 (grub_xputs_normal): Likewise.
20702 * term/efi/console.c (grub_console_putchar): Output diacritics.
20703 (grub_console_getcharwidth): Removed.
20704 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20705 * term/gfxterm.c (clear_char): Free chars.
20706 (scroll_up): Avoid leaking memory.
20707 (grub_gfxterm_putchar): Support diacritics.
20708 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
20709 * term/i386/pc/console.c (grub_console_term_output): Declare as
20710 GRUB_TERM_CODE_TYPE_VGA.
20711 * term/i386/pc/vga.c (grub_vga_term): Declare as
20712 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
20713 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
20714 GRUB_TERM_CODE_TYPE_VGA.
20715 * term/i386/vga_common.c (map_char): Removed.
20716 (grub_console_putchar): Likewise.
20717 (grub_console_getcharwidth): Likewise.
20718 * term/ieee1275/ofconsole.c: Simplify using terminfo.
20719 (colors): Reordered to match terminfo.
20720 (grub_ofconsole_normal_color): Removed.
20721 (grub_ofconsole_writeesc): Likewise.
20722 (grub_ofconsole_highlight_color): Likewise.
20723 (grub_ofconsole_getcharwidth): Likewise.
20724 (grub_ofconsole_setcolorstate): Likewise.
20725 (grub_ofconsole_setcolor): Likewise.
20726 (grub_ofconsole_getcolor): Likewise.
20727 (grub_ofconsole_readkey): Renamed to ...
20728 (readkey): ... this. Remove escape sequence handling. Return -1 on no
20729 key.
20730 (grub_ofconsole_checkkey): Removed.
20731 (grub_ofconsole_getkey): Likewise.
20732 (grub_ofconsole_getxy): Likewise.
20733 (grub_ofconsole_gotoxy): Likewise.
20734 (grub_ofconsole_cls): Likewise.
20735 (grub_ofconsole_refresh): Likewise.
20736 (grub_ofconsole_terminfo_input): New struct.
20737 (grub_ofconsole_terminfo_output): Likewise.
20738 (grub_ofconsole_term_input): Use terminfo.
20739 (grub_ofconsole_term_output): Likewise.
20740 (grub_console_init): Split into ...
20741 (grub_console_init_early): ...this and ...
20742 (grub_console_init_lately): ...this. Use terminfo.
20743 (grub_ofconsole_putchar): Renamed to ...
20744 (put): ... this. Remove mapping.
20745 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
20746 * term/serial.c: Simplify using terminfo.
20747 (xpos): Removed.
20748 (ypos): Likewise.
20749 (keep_track): Likewise.
20750 (registered): Likewise.
20751 (input_buf): Likewise.
20752 (npending): Likewise.
20753 (serial_translate_key_sequence): Likewise.
20754 (fill_input_buf): Likewise.
20755 (grub_serial_checkkey): Likewise.
20756 (grub_serial_getkey): Likewise.
20757 (grub_serial_getxy): Likewise.
20758 (grub_serial_gotoxy): Likewise.
20759 (grub_serial_putchar): Likewise.
20760 (grub_serial_cls): Likewise.
20761 (grub_serial_setcolorstate): Likewise.
20762 (grub_serial_setcursor): Likewise.
20763 (serial_hw_init): Use serial_hw_fetch.
20764 (grub_serial_terminfo_input): New variable.
20765 (grub_serial_terminfo_output): Likewise.
20766 (grub_serial_term_input): Use terminfo.
20767 (grub_serial_term_output): Likewise.
20768 * term/terminfo.c (putstr): Use put.
20769 (grub_terminfo_all_free): New function
20770 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
20771 (grub_terminfo_output_register): New function.
20772 (grub_terminfo_output_unregister): Likewise.
20773 (grub_terminfo_getxy): Likewise.
20774 (grub_terminfo_readkey): Likewise.
20775 (grub_terminfo_checkkey): Likewise.
20776 (grub_terminfo_getkey): Likewise.
20777 (grub_terminfo_input_init): Likewise.
20778 (print_terminfo): Likewise.
20779 (grub_cmd_terminfo): Handle encoding.
20780 (grub_terminfo_gotoxy): Track position.
20781 (grub_terminfo_cls): Likewise.
20782 (grub_terminfo_putchar): Likewise.
20783 (grub_terminfo_setcolorstate): Handle colors
20784 (grub_terminfo_cursor_on): This ...
20785 (grub_terminfo_cursor_off): ... and this merged into ...
20786 (grub_terminfo_setcursor): ... this.
20787 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
20788 * unicode/ArabicShaping.txt: New file (imported from Unicode).
20789 * unicode/BidiMirroring.txt: Likewise.
20790 * unicode/UnicodeData.txt: Likewise.
20791 * unicode/COPYING: Likewise.
20792 * util/grub-editenv.c (grub_putchar): Removed.
20793 (grub_xputs_real): New function.
20794 (grub_xputs): New variable.
20795 * util/grub-fstest.c (grub_putchar): Removed.
20796 (grub_xputs_real): New function.
20797 (grub_xputs): New variable.
20798 * util/grub-mkdevicemap.c (grub_putchar): Removed.
20799 (grub_xputs_real): New function.
20800 (grub_xputs): New variable.
20801 * util/grub-probe.c (grub_putchar): Removed.
20802 (grub_xputs_real): New function.
20803 (grub_xputs): New variable.
20804 * util/grub-script-check.c (grub_putchar): Removed.
20805 (grub_xputs_real): New function.
20806 (grub_xputs): New variable.
20807 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
20808 (grub_xputs_real): New function.
20809 (grub_xputs): New variable.
20810 * util/import_unicode.py: New file.
20811 * util/grub-mkfont.c (ft_errmsgs): New array.
20812 (grub_glyph_info): Make bitmap a pointer.
20813 (file_formats): New type WIDTH_SPEC.
20814 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20815 (options): Add width-spec.
20816 (help): Likewise.
20817 (add_char): Renamed to ...
20818 (add_glyph): ... this.
20819 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20820 (glyph_replace): New type.
20821 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20822 (add_char): New function.
20823 (add_subst): Likewise.
20824 (process_cursive): Likewise.
20825 (add_font): Handle GSUB.
20826 (write_font_width_spec): New function.
20827 (main): Sort glyphs.
20828 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20829 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20830 * kern/term.c (grub_cls): Moved from here...
20831 * normal/term.c (grub_cls): ... here.
20832
50f0bcda
CW
208332010-07-02 Colin Watson <cjwatson@ubuntu.com>
20834
20835 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20836 suitable for using within the format argument of printf when
20837 converting grub_size_t.
20838 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20839 "x" to convert grub_size_t arguments.
20840
40372103
VS
208412010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20842
20843 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20844 too long captions.
20845 (list_get_minimal_size): Take selection box into account.
20846
942a10c7
VS
208472010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20848
20849 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20850 NULL font.
20851
2bdb2892
CW
208522010-07-02 Colin Watson <cjwatson@ubuntu.com>
20853
20854 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20855 devices when iterating over /dev/disk/by-id; they will be handled
20856 later if appropriate, which they aren't always (e.g. LVM).
20857
e03ed6c1
CW
208582010-07-02 Colin Watson <cjwatson@ubuntu.com>
20859
20860 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20861 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20862 fails.
20863 (grub_halt): Likewise.
20864 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20865 reset-all fails.
20866 (grub_halt): Don't return, even if all of shut-down, power-off, and
20867 poweroff fail.
20868
47695765
CW
208692010-07-02 Colin Watson <cjwatson@ubuntu.com>
20870
20871 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20872 arguments, not three.
20873
507736c8
CW
208742010-07-02 Colin Watson <cjwatson@ubuntu.com>
20875
20876 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20877 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20878 LVM-on-RAID is handled correctly.
20879
e3c8cd37
CW
208802010-07-02 Colin Watson <cjwatson@ubuntu.com>
20881
20882 * docs/grub.texi (Changes from GRUB Legacy): New section.
20883 (Future): Fix typo.
20884
8d4a2fec
CW
208852010-07-02 Colin Watson <cjwatson@ubuntu.com>
20886
20887 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20888 grub.d/README accidentally ends up executable for one reason or
20889 another. Ignore it.
20890
1c4827be
VS
208912010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20892
20893 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20894 (gpt_partition_map_iterate): Support non-512B sectors.
20895
d9a0c941
VS
208962010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20897
20898 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20899 Tested by: Seth Goldberg.
20900
48f27e87
VS
209012010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20902
20903 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20904 Properly align mbi.
20905 Reported by: Seth Goldberg.
20906
b0c4f956
VS
209072010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20908
20909 * util/grub-mkrescue.in: Avoid module duplication.
20910
105a2e8c
SF
209112010-07-01 Sean Finney <seanius@seanius.net>
20912
20913 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20914
5944958c
SF
209152010-07-01 Sean Finney <seanius@seanius.net>
20916
20917 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20918
209192010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20920
20921 * disk/lvm.c (grub_lvm_checkvalue): New function.
20922 (grub_lvm_check_flag): Likewise.
20923
b79889ba
RM
209242010-07-01 Robert Millan <rmh@gnu.org>
20925
20926 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20927 Support 'p' as partition separator on kernel of FreeBSD (used
20928 with GPT labels).
20929 (grub_util_biosdisk_get_grub_dev): Likewise.
20930
ec1d04f1
VS
209312010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20932
20933 Yeeloong firmware port.
20934
20935 * boot/mips/yeeloong/fwstart.S: New file.
20936 * bus/cs5536.c (gpiodump): New const.
20937 (set_io_space): New function.
20938 (set_iod): Likewise.
20939 (set_p2d): Likewise.
20940 (grub_cs5536_init_geode): Likewise.
20941 * commands/mips/yeeloong/lsspd.c: New file.
20942 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20943 (serial_mod_SOURCES): New variable.
20944 (serial_mod_CFLAGS): Likewise.
20945 (serial_mod_LDFLAGS): Likewise.
20946 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20947 term/terminfo.c and term/tparm.c.
20948 (pkglib_IMAGES): Add fwstart.img.
20949 (fwstart_img_SOURCES): New variable.
20950 (fwstart_img_CFLAGS): Likewise.
20951 (fwstart_img_ASFLAGS): Likewise.
20952 (fwstart_img_LDFLAGS): Likewise.
20953 (fwstart_img_FORMAT): Likewise.
20954 (pkglib_MODULES): Add lsspd.mod.
20955 (lsspd_mod_SOURCES): New variable.
20956 (lsspd_mod_CFLAGS): Likewise.
20957 (lsspd_mod_LDFLAGS): Likewise.
20958 (pkglib_MODULES): Add halt.mod.
20959 (halt_mod_SOURCES): New variable.
20960 (halt_mod_CFLAGS): Likewise.
20961 (halt_mod_LDFLAGS): Likewise.
20962 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20963 (serial_mod_SOURCES): Removed.
20964 (serial_mod_CFLAGS): Likewise.
20965 (serial_mod_LDFLAGS): Likewise.
20966 * disk/ata.c (check_device): New function.
20967 (grub_ata_device_initialize): Use check_device.
20968 (grub_ata_iterate): Recheck devices.
20969 (grub_ata_open): Likewise.
20970 (grub_atapi_iterate): Likewise.
20971 (grub_atapi_open): Likewise.
20972 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20973 (GRUB_ATA_CH1_PORT1): Likewise.
20974 (GRUB_ATA_CH0_PORT2): Likewise.
20975 (GRUB_ATA_CH1_PORT2): Likewise.
20976 * include/grub/mips/loongson.h: New file.
20977 * include/grub/mips/yeeloong/ec.h: Likewise.
20978 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20979 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20980 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20981 * include/grub/misc.h (grub_halt): Declare as noreturn.
20982 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20983 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20984 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20985 (UART_ENABLE_DTRRTS): Likewise.
20986 (UART_ENABLE_MODEM): Removed.
20987 (UART_ENABLE_OUT2): New const.
20988 * include/grub/term.h (grub_term_register_input_active): New function.
20989 (grub_term_register_output_active): Likewise.
20990 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20991 argument.
20992 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20993 (init_pci): New function.
20994 (grub_machine_init): Execute platform init when firmware. Init serial.
20995 (grub_halt): Implement.
20996 (grub_exit): Likewise.
20997 (grub_reboot): Likewise.
20998 * term/serial.c (serial_hw_init): Update macros.
20999 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
21000 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
21001 (image_targets): New target mipsel-yeeloong-flash.
21002 (generate_image): Support IMAGE_YEELOONG_FLASH.
21003 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
21004 (grub_video_sm712_setup): Init card.
21005 (grub_video_sm712_set_palette): Removed.
21006 * video/sm712_init.c: New file.
21007
ff4a70d2
CW
210082010-06-30 Colin Watson <cjwatson@ubuntu.com>
21009
21010 * Makefile.in (install-local): Temporarily prepend $(builddir) to
21011 PATH when running help2man and then run it on the unadorned
21012 executable names, rather than passing $(builddir)/* paths to
21013 help2man. This avoids the build directory ending up in generated
21014 manual pages.
21015
1246efeb
CW
210162010-06-29 Colin Watson <cjwatson@ubuntu.com>
21017
21018 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
21019 to avoid accidents when debugging with 'sh -x'.
21020 * util/grub-mkrescue.in: Likewise.
21021 * util/grub.d/00_header.in: Likewise.
21022 * util/grub.d/10_hurd.in: Likewise.
21023 * util/grub.d/10_kfreebsd.in: Likewise.
21024 * util/grub.d/10_linux.in: Likewise.
21025 * util/grub.d/10_netbsd.in: Likewise.
21026 * util/grub.d/10_windows.in: Likewise.
21027 * util/grub.d/20_linux_xen.in: Likewise.
21028 * util/grub.d/30_os-prober.in: Likewise.
21029 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21030
1ba9b889
CW
210312010-06-29 Colin Watson <cjwatson@ubuntu.com>
21032
21033 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
21034 last character in the buffer.
21035 Reported by: Vladimir Serbinenko.
21036
dccaf99d
RM
210372010-06-29 Robert Millan <rmh@gnu.org>
21038
21039 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
21040 (Command-line and menu entry commands): Document `badram' command.
21041
d500ed12
RM
210422010-06-28 Robert Millan <rmh@gnu.org>
21043
21044 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
21045 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
21046 command using ${GRUB_BADRAM} as parameter.
21047
20bc84a6
CW
210482010-06-28 Colin Watson <cjwatson@ubuntu.com>
21049
21050 * docs/grub.texi (Device map): New section.
21051 (Themes): New section (stub).
21052 * Makefile.in (docs/grub.info): The info documentation now builds
21053 without errors. Make sure it stays that way.
21054
4045dee1
VS
210552010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21056
21057 Use normal parser for menu entries.
21058 Reported by: Thomas Frauendorfer
21059
21060 * include/grub/parser.h (grub_parser_execute): Don't export.
21061 * normal/menu.c (grub_menu_execute_entry_real): New function.
21062 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
21063
bca58c7b
CW
210642010-06-28 Colin Watson <cjwatson@ubuntu.com>
21065
21066 * docs/grub.texi (Embedded configuration): New section (replacing
21067 old "Preset Menu" stub).
21068 (Images): New section.
21069 (configfile): Note that any menu entries defined in `file' are shown
21070 immediately.
21071
dec53e63
JT
210722010-06-28 Josh Triplett <josh@joshtriplett.org>
21073
21074 * mmap/i386/pc/mmap_helper.S: Set CF on return.
21075
c06e40f7
CW
210762010-06-28 Colin Watson <cjwatson@ubuntu.com>
21077
21078 * util/grub-install.in: Add --debug-image= option.
21079
cb88052b
CW
210802010-06-28 Colin Watson <cjwatson@ubuntu.com>
21081
21082 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
21083 possible on Linux.
21084
21085 * util/deviceiter.c (check_device): Rename to ...
21086 (check_device_readable_unique): ... this. Update all callers.
21087 Maintain and check a list of which devices (by canonicalized name)
21088 have already been seen.
21089 (clear_seen_devices): New function.
21090 (compare_file_names) [__linux__]: New function.
21091 (grub_util_iterate_devices): Clear the list of seen devices on exit
21092 and (just in case) on entry.
21093 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
21094 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
21095 seen-devices list, superseded by general code in check_device.
21096
bbe34652
CW
210972010-06-28 Colin Watson <cjwatson@ubuntu.com>
21098
21099 * commands/cat.c (options): New variable.
21100 (grub_cmd_cat): Parse options. If the --dos option is given, print
21101 DOS-style "\r\n" line endings as simple newlines (Debian bug
21102 #586358).
21103 (GRUB_MOD_INIT): Use extcmd.
21104 (GRUB_MOD_FINI): Likewise.
21105 * docs/grub.texi (cat): Document --dos.
21106
412e09f3
VS
211072010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
21108
21109 XEN with Linux grub-mkconfig support.
21110
21111 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
21112 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
21113 GRUB_CMDLINE_XEN_DEFAULT.
21114 * util/grub.d/20_linux_xen.in: New file.
21115
53f3ef38 211162010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
21117
21118 Initialise VGA video on qemu ourselves.
21119
21120 * boot/i386/qemu/boot.S: Don't call 0xc000.
21121 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
21122 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
21123 (kernel_img_HEADERS): Add pci.h.
21124 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
21125 * configure.ac: Force unifont on qemu and yeeloong.
21126 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
21127 (grub_vga_palette_write): Use correct register.
21128 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
21129 Call grub_qemu_init_cirrus.
21130 * kern/i386/qemu/init.c: New file.
21131 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
21132
21133 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
21134
c75be4fb
PR
211352010-06-26 Pavel Roskin <proski@gnu.org>
21136
21137 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
21138 13.
21139
d8034603
CW
211402010-06-26 Colin Watson <cjwatson@ubuntu.com>
21141
21142 * docs/grub.texi (Simple configuration): Explain that
21143 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
21144 set to `true' to disable their respective recovery entries, not
21145 merely set.
21146
3fa06487
CW
211472010-06-26 Colin Watson <cjwatson@ubuntu.com>
21148
21149 Make the `source' command slightly faster.
21150
21151 * normal/main.c (grub_normal_execute): Don't re-read list files when
21152 nested.
21153
e9b29642
CW
211542010-06-23 Colin Watson <cjwatson@ubuntu.com>
21155
21156 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
21157 field position and mask size to red fields from mode_info, not
21158 green.
21159 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
21160 Remove redundant tag->common.framebuffer_type assignment.
21161 Reported by: Seth Goldberg.
21162
e726542f
CW
211632010-06-23 Colin Watson <cjwatson@ubuntu.com>
21164
21165 Sync up other versions of the Linux loader with Robert Millan's
21166 change of 2010-01-09, "Make loader output a bit more user-friendly".
21167
21168 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
21169 grub_dprintf().
21170 (grub_cmd_linux): Likewise.
21171 (grub_cmd_initrd): Likewise.
21172 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
21173 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21174
d6e98a17
CW
211752010-06-21 Colin Watson <cjwatson@ubuntu.com>
21176
21177 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
21178 larger than MEMORY_MAP_SIZE.
21179
14d3f08e
BC
211802010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
21181
21182 Fix parallel build.
21183
21184 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
21185 dependency.
21186 * script/parser.y: #include grub_script.tab.h header.
21187
4f9613a3
VS
211882010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 Support >3GiB and <16MiB RAM in i386-qemu.
21191
21192 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
21193 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
21194 (grub_lower_mem): Removed.
21195 (grub_upper_mem): Likewise.
21196 (mem_size): Made static.
21197 (above_4g): New variable.
21198 (grub_machine_mmap_init): Detect small mem_size and above_4g.
21199 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
21200 support.
21201
05e51879
VS
212022010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21203
21204 Cirrus 5446 and Bochs video cards support.
21205
21206 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
21207 video_bochs.mod
21208 (video_cirrus_mod_SOURCES): New variable.
21209 (video_cirrus_mod_CFLAGS): Likewise.
21210 (video_cirrus_mod_LDFLAGS): Likewise.
21211 (video_bochs_mod_SOURCES): Likewise.
21212 (video_bochs_mod_CFLAGS): Likewise.
21213 (video_bochs_mod_LDFLAGS): Likewise.
21214 * include/grub/vga.h: New file.
21215 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
21216 (grub_video_fb_set_page_t): New type.
21217 (grub_video_fb_setup): New prototype.
21218 (grub_video_fb_swap_buffers): Likewise.
21219 (grub_video_fb_get_info_and_fini): Likewise.
21220 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
21221 (CRTC_DATA_PORT): Likewise.
21222 (CRTC_CURSOR): Likewise.
21223 (CRTC_CURSOR_ADDR_HIGH): Likewise.
21224 (CRTC_CURSOR_ADDR_LOW): Likewise.
21225 (CRTC_CURSOR_DISABLE): Likewise.
21226 (update_cursor): Use grub_vga_cr_write.
21227 (grub_vga_text_setcursor): Likewise.
21228 * video/bochs.c: New file.
21229 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
21230 (palette): Likewise.
21231 (palette_size): Likewise.
21232 (framebuffer): New variable.
21233 (grub_video_fb_init): Use 'framebuffer'.
21234 (grub_video_fb_fini): Likewise.
21235 (grub_video_fb_get_info): Likewise.
21236 (grub_video_fb_get_palette): Likewise.
21237 (grub_video_fb_set_palette): Likewise.
21238 (grub_video_fb_set_viewport): Likewise.
21239 (grub_video_fb_get_viewport): Likewise.
21240 (grub_video_fb_map_color): Likewise.
21241 (grub_video_fb_map_rgb): Likewise.
21242 (grub_video_fb_map_rgba): Likewise.
21243 (grub_video_fb_unmap_color): Likewise.
21244 (grub_video_fb_unmap_color_int): Likewise.
21245 (grub_video_fb_fill_rect): Likewise.
21246 (grub_video_fb_blit_bitmap): Likewise.
21247 (grub_video_fb_blit_render_target): Likewise.
21248 (grub_video_fb_scroll): Likewise.
21249 (grub_video_fb_create_render_target): Likewise.
21250 (grub_video_fb_doublebuf_blit_init): Likewise.
21251 (grub_video_fb_set_active_render_target): Handle doublebuffering.
21252 (doublebuf_pageflipping_update_screen): New function.
21253 (doublebuf_pageflipping_init): Likewise.
21254 (grub_video_fb_setup): Likewise.
21255 (grub_video_fb_swap_buffers): Likewise.
21256 (grub_video_fb_get_info_and_fini): Likewise.
21257 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
21258 All users updated.
21259 (doublebuf_pageflipping_commit): Restructured into ...
21260 (doublebuf_pageflipping_set_page): ... this.
21261 (doublebuf_pageflipping_update_screen): Removed.
21262 (doublebuf_pageflipping_init): Likewise.
21263 (double_buffering_init): Likewise.
21264 (grub_video_vbe_setup): Use grub_video_fb_setup.
21265 (grub_video_vbe_swap_buffers): Removed.
21266 (grub_video_vbe_set_active_render_target): Likewise.
21267 (grub_video_vbe_get_active_render_target): Likewise.
21268 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
21269 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
21270 grub_video_fb_set_active_render_target and
21271 grub_video_fb_get_active_render_target.
21272 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
21273 (SEQUENCER_DATA_PORT): Likewise.
21274 (MAP_MASK_REGISTER): Likewise.
21275 (CRTC_ADDR_PORT): Likewise.
21276 (CRTC_DATA_PORT): Likewise.
21277 (START_ADDR_HIGH_REGISTER): Likewise.
21278 (START_ADDR_LOW_REGISTER): Likewise.
21279 (GRAPHICS_ADDR_PORT): Likewise.
21280 (GRAPHICS_DATA_PORT): Likewise.
21281 (READ_MAP_REGISTER): Likewise.
21282 (INPUT_STATUS1_REGISTER): Likewise.
21283 (INPUT_STATUS1_VERTR_BIT): Likewise.
21284 (get_map_mask): Use grub_vga_sr_read.
21285 (set_map_mask): Use grub_vga_sr_write.
21286 (set_read_map): Use grub_vga_gr_write.
21287 (set_start_address): Use grub_vga_cr_write.
21288 * video/sm712.c (framebuffer): Remove leftover fields.
21289
4321c64a
CW
212902010-06-20 Colin Watson <cjwatson@ubuntu.com>
21291
21292 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
21293 setting GRUB_VIDEO_BACKEND. Make it available as a user override
21294 instead. Replace the gfxterm backend check with a check that
21295 ${GRUB_PREFIX}/video.lst is non-empty.
21296 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
21297 again.
21298 (load_video): New generated function. Call it before loading
21299 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
21300 * util/grub.d/10_linux.in (linux_entry): Call load_video.
21301 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
21302 * docs/grub.texi (Simple configuration): Document
21303 GRUB_VIDEO_BACKEND.
21304
213052010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
21306
21307 Use video functions in linux and xnu loaders.
21308
21309 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
21310 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
21311 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
21312 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
21313 loader/i386/pc/linux.c.
21314 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
21315 (find_line_len): Removed.
21316 (find_framebuf): Likewise.
21317 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
21318 * loader/i386/efi/xnu.c: Removed.
21319 * loader/i386/pc/xnu.c: Moved from here...
21320 * loader/i386/xnu.c: ...here.
21321
21322 Enable priorities in video drivers.
21323
21324 * include/grub/video.h (grub_video_adapter_prio_t): New type.
21325 (grub_video_adapter): New field prio.
21326 (grub_video_register): Respect prio when inserting.
21327 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
21328 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
21329 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
21330 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
21331 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
21332 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
21333 * video/sm712.c (grub_video_sm712_adapter): Likewise.
21334
21335 Fix SDL driver ID.
21336
21337 * include/grub/video.h (grub_video_driver_id_t): New value
21338 GRUB_VIDEO_DRIVER_SDL.
21339 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
21340
7d24e434
CW
213412010-06-17 Colin Watson <cjwatson@ubuntu.com>
21342
21343 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
21344 argument to printf.
21345 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21346
c88a83f6
CW
213472010-06-17 Colin Watson <cjwatson@ubuntu.com>
21348
21349 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
21350 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21351
094dfb69
CW
213522010-06-17 Colin Watson <cjwatson@ubuntu.com>
21353
21354 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
21355 directly, and recommend grub-install instead.
21356 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
21357
2164da6b
CW
213582010-06-17 Colin Watson <cjwatson@ubuntu.com>
21359
21360 Fix i386-pc prefix handling with nested partitions (Debian bug
21361 #585068). Note that the case where the core image is booted using
21362 multiboot and relocated from its original location still requires
21363 more work.
21364
21365 * kern/i386/pc/init.c (make_install_device): If the prefix starts
21366 with "(,", fill the boot drive in between those two characters, but
21367 expect that a full partition specification including partition map
21368 names will follow.
21369 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
21370 specified, write a prefix without the drive name but including a
21371 full partition specification.
21372
044e2e60
CW
213732010-06-16 Colin Watson <cjwatson@ubuntu.com>
21374
21375 * util/grub-mkconfig.in: Ignore non-option arguments, for
21376 compatibility with older versions (before 2010-06-12) which did the
21377 same. In particular, this makes it easier to ship an update-grub
21378 wrapper which is compatible with that used with GRUB Legacy (Debian
21379 bug #586056).
21380
5591324f
GS
213812010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21382
21383 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
21384 for manual page generation.
21385
662e24d5
GS
213862010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
21387
21388 * po/POTFILES: Remove leftover commands/handler.c.
21389
8d70754e
CW
213902010-06-14 Colin Watson <cjwatson@ubuntu.com>
21391
21392 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
21393 left this script non-functional.
21394
41160e2e
CW
213952010-06-14 Colin Watson <cjwatson@ubuntu.com>
21396
21397 * docs/man/grub-emu.h2m: New file.
21398
b5309cc1
CW
213992010-06-13 Colin Watson <cjwatson@ubuntu.com>
21400
21401 * docs/grub.texi (Commands): Document reduced command set in rescue
21402 mode.
21403 (cpuid): New section.
21404
fcb2d090
GS
214052010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
21406
21407 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
21408 new partition naming style.
21409 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
21410
96e5c556
BC
214112010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
21412
21413 Add "-o grub.iso" like cmdline options support.
21414
21415 * util/grub-install.in: Improve cmdline option parsing.
21416 * util/grub-mkconfig.in: Likewise.
21417 * util/grub-mkrescue.in: Likewise.
21418 * util/grub-reboot.in: Likewise.
21419 * util/grub-set-default.in: Likewise.
21420 * util/i386/efi/grub-install.in: Likewise.
21421 * util/ieee1275/grub-install.in: Likewise.
21422 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21423
c16be99b
CW
214242010-06-12 Colin Watson <cjwatson@ubuntu.com>
21425
21426 * .bzrignore: Ignore 41_custom.
21427
ce08a9fb
TS
214282010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21429
21430 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
21431
7beac90c
CW
214322010-06-12 Colin Watson <cjwatson@ubuntu.com>
21433
21434 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
21435 prototype declarations.
21436
21437 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
21438 generating fs, partmap, and video lists.
21439 * include/grub/fs.h (grub_fs_register): Omit prototype if
21440 GRUB_LST_GENERATOR is defined.
21441 * include/grub/partition.h (grub_partition_map_register): Likewise.
21442 * include/grub/video.h (grub_video_register): Likewise.
21443
1c8f0f8d
JM
214442010-06-12 Javier Martín <lordhabbit@gmail.com>
21445
21446 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
21447
a6085973
TS
214482010-06-12 Thomas Schmitt <scdbackup@gmx.net>
21449
21450 * util/grub-mkrescue.in: Support --xorriso argument.
21451
25c56d29
VS
214522010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21453
21454 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
21455 Suggested by: Thomas Schmitt.
21456
e03e4b24
VS
214572010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21458
21459 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
21460 Suggested by: Thomas Schmitt.
21461
57711df6
VS
214622010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
21463
21464 custom.cfg support.
21465
21466 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
21467 * util/grub.d/41_custom.in: New file.
21468
ee62c427
CW
214692010-06-12 Colin Watson <cjwatson@ubuntu.com>
21470
21471 * util/grub-mkrescue.in (make_image): Remove sh module, which has
21472 been merged back into normal.
21473
283af07a
CW
214742010-06-11 Colin Watson <cjwatson@ubuntu.com>
21475
21476 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
21477 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
21478
56a0d956
CW
214792010-06-11 Colin Watson <cjwatson@ubuntu.com>
21480
21481 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
21482 when generating manual pages.
21483 * docs/man/grub-bin2h.h2m: New file.
21484 * docs/man/grub-editenv.h2m: New file.
21485 * docs/man/grub-fstest.h2m: New file.
21486 * docs/man/grub-install.h2m: New file.
21487 * docs/man/grub-macho2img.h2m: New file.
21488 * docs/man/grub-mkconfig.h2m: New file.
21489 * docs/man/grub-mkdevicemap.h2m: New file.
21490 * docs/man/grub-mkfont.h2m: New file.
21491 * docs/man/grub-mkimage.h2m: New file.
21492 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
21493 * docs/man/grub-mkrelpath.h2m: New file.
21494 * docs/man/grub-mkrescue.h2m: New file.
21495 * docs/man/grub-ofpathname.h2m: New file.
21496 * docs/man/grub-pe2elf.h2m: New file.
21497 * docs/man/grub-probe.h2m: New file.
21498 * docs/man/grub-reboot.h2m: New file.
21499 * docs/man/grub-script-check.h2m: New file.
21500 * docs/man/grub-set-default.h2m: New file.
21501 * docs/man/grub-setup.h2m: New file.
21502
3a37e322
VS
215032010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
21504
21505 Use FOR_* macros instead of *_iterate whenever possible.
21506
21507 * commands/handler.c: Removed.
21508 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
21509 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
21510 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21511 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
21512 (grub_probe_SOURCES): Remove kern/parser.c.
21513 (util/grub-script-check.c_DEPENDENCIES): Removed.
21514 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
21515 and grub_script_check_init.c.
21516 (grub_script_check_init.lst): Removed.
21517 (grub_script_check_init.h): Likewise.
21518 (grub_script_check_init.c): Likewise.
21519 (pkglib_MODULES): Remove handler.mod and sh.mod.
21520 (handler_mod_SOURCES): Removed.
21521 (handler_mod_CFLAGS): Likewise.
21522 (handler_mod_LDFLAGS): Likewise.
21523 (normal_mod_SOURCES): Remove normal/handler.c.
21524 Add script/main.c, script/script.c, script/execute.c,
21525 script/function.c, script/lexer.c, grub_script.tab.c
21526 and grub_script.yy.c.
21527 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21528 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21529 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
21530 (grub_setup_SOURCES): Remove kern/parser.c.
21531 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21532 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
21533 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
21534 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21535 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
21536 (grub_setup_SOURCES): Remove kern/parser.c.
21537 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
21538 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
21539 * include/grub/command.h (grub_command_iterate): Removed.
21540 (FOR_COMMANDS): New macro.
21541 * include/grub/dl.h (grub_dl): New member next.
21542 (grub_dl_iterate): Removed.
21543 (grub_dl_head): New variable declaration.
21544 (FOR_DL_MODULES): New macro.
21545 * include/grub/fs.h: Include list.h.
21546 (grub_fs): Make next first element.
21547 (grub_fs_list): New variable declaration.
21548 (grub_fs_register): Make inline.
21549 (grub_fs_unregister): Likewise.
21550 (grub_fs_iterate): Removed.
21551 (FOR_FILESYSTEMS): New macro.
21552 * include/grub/handler.h: Removed.
21553 * include/grub/list.h (grub_list_hook_t): Removed.
21554 (grub_list_test_t): Likewise.
21555 (grub_list_pop): Likewise.
21556 (grub_list_iterate): Likewise.
21557 (grub_list_insert): Likewise.
21558 (FOR_LIST_ELEMENTS): New macro.
21559 * include/grub/parser.h (grub_parser_class): Removed.
21560 (grub_parser_register): Likewise.
21561 (grub_parser_unregister): Likewise.
21562 (grub_parser_get_current): Likewise.
21563 (grub_parser_set_current): Likewise.
21564 (grub_register_rescue_parser): Likewise.
21565 (grub_rescue_parse_line): New function.
21566 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
21567 * include/grub/script_sh.h (grub_script_function_list): New variable
21568 declaration.
21569 (FOR_SCRIPT_FUNCTIONS): New macro.
21570 (grub_script_function_iterate): Removed.
21571 (grub_normal_parse_line): New prototype.
21572 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
21573 (FOR_DISABLED_TERM_INPUTS): Likewise.
21574 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
21575 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
21576 * include/grub/video.h (grub_video_adapter): Move 'next' to first
21577 element.
21578 (grub_video_register): Inline.
21579 (grub_video_unregister): Likewise.
21580 (grub_video_adapter_list): New variable declaration.
21581 (grub_video_iterate): Removed.
21582 (FOR_VIDEO_ADAPTERS): New macro.
21583 * kern/dl.c (grub_dl_list): Removed. All users updated.
21584 (grub_dl_iterate): Removed.
21585 * kern/fs.c (grub_fs_list): Make global.
21586 (grub_fs_register): Removed.
21587 (grub_fs_unregister): Likewise.
21588 (grub_fs_iterate): Likewise.
21589 * kern/handler.c: Removed.
21590 * kern/list.c (grub_list_pop): Removed.
21591 (grub_list_iterate): Likewise.
21592 (grub_list_insert): Likewise.
21593 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
21594 (grub_prio_list_insert): Don't use grub_list_insert.
21595 * kern/main.c (grub_register_rescue_parser): Don't call
21596 grub_register_rescue_parser.
21597 * kern/parser.c (grub_parser_class): Removed.
21598 (grub_parser_execute): Use grub_rescue_parse_line.
21599 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
21600 (grub_rescue_parser): Removed.
21601 (grub_register_rescue_parser): Likewise.
21602 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
21603 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
21604 (grub_auth_check_authentication): Likewise.
21605 * normal/completion.c (iterate_command): Removed.
21606 (grub_normal_do_completion): Use FOR_COMMANDS.
21607 * normal/handler.c: Removed.
21608 * normal/main.c (read_config_file): Remove parser changing.
21609 (grub_normal_execute): Don't call read_handler_list.
21610 (grub_normal_read_line_real): Statically allocate prompt.
21611 (grub_cmdline_run): Use grub_normal_parse_line.
21612 (GRUB_MOD_FINI): Don't call free_handler_list.
21613 * normal/menu_entry.c (run): Likewise.
21614 * script/function.c (grub_script_function_list): Make global.
21615 (grub_script_function_iterate): Removed.
21616 * script/main.c (grub_normal_parse_line): Make global.
21617 (grub_sh_parser): Removed.
21618 (GRUB_MOD_INIT): Likewise.
21619 (GRUB_MOD_FINI): Likewise.
21620 * tests/lib/functional_test.c (grub_functional_test): Use
21621 FOR_LIST_ELEMENTS.
21622 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
21623 (grub_test_run): Use FOR_LIST_ELEMENTS.
21624 * tests/lib/unit_test.c (main): Likewise.
21625 * util/deviceiter.c (grub_util_iterate_devices): Don't use
21626 grub_list_pop.
21627 * util/grub-fstest.c (grub_term_input_class): Removed.
21628 (grub_term_output_class): Likewise.
21629 * util/grub-probe.c: Likewise.
21630 * util/i386/pc/grub-setup.c: Likewise.
21631 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21632 * util/grub-script-check.c (main): Don't call grub_init_all and
21633 grub_fini_all.
21634 * video/video.c (grub_video_adapter_list): Make global.
21635 (grub_video_register): Removed.
21636 (grub_video_unregister): Likewise.
21637 (grub_video_iterate): Likewise.
21638
6289c3a7
VS
216392010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
21640
21641 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
21642 reported by Henrique Ferreiro.
21643
91460247
RM
216442010-06-09 Robert Millan <rmh@gnu.org>
21645
21646 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
21647 ones, when both are available.
21648
0ea7c4f9
GS
216492010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21650
21651 Make --version uniform and avoid hard-coded program name.
21652
21653 * util/grub-mkimage.c (main): Use `program_name' instead of
21654 hard-coded string.
21655 * util/i386/pc/grub-setup.c (main): Likewise.
21656 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
21657 * util/grub-install.in: Save the basename of $0 in $self, and use the
21658 latter in informational messages. Use the same format for --version
21659 as the binary programs.
21660 * util/grub-mkconfig.in: Likewise.
21661 * util/grub-mkrescue.in: Likewise.
21662 * util/grub-reboot.in: Likewise.
21663 * util/grub-set-default.in: Likewise.
21664 * util/i386/efi/grub-install.in: Likewise.
21665 * util/ieee1275/grub-install.in: Likewise.
21666 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
21667
e8a6f3b6
GS
216682010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21669
21670 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
21671 embedding area. Use <= instead of == when checking for non-emptiness.
21672
f4d095d7
GS
216732010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21674
21675 * configure.ac: Add `.' to the directories searched for unifont.
21676
50e532ca
CW
216772010-06-08 Colin Watson <cjwatson@ubuntu.com>
21678
21679 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
21680 grub_script.yy.h.
21681
d39f3dec
CW
216822010-06-08 Colin Watson <cjwatson@ubuntu.com>
21683
21684 * docs/grub.texi (History): Expand to cover GRUB 2.
21685 (Serial terminal): Refer to `terminal_input' and `terminal_output'
21686 commands, not `terminal'.
21687 (serial): Likewise.
21688 (terminal_input): New section.
21689 (terminal_output): New section.
21690 (uppermem): New section (stub).
21691 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
21692
6ef0ddb4
CW
216932010-06-08 Colin Watson <cjwatson@ubuntu.com>
21694
21695 * docs/grub.texi (Security): Menu entries are unrestricted by
21696 default, not restricted to superusers as I had previously thought.
21697 Reword to account for this.
21698
e0f4c438
CW
216992010-06-07 Colin Watson <cjwatson@ubuntu.com>
21700
21701 * kern/emu/misc.c (device_mapper_null_log): New function.
21702 (grub_device_mapper_supported): New function.
21703 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
21704 prototype.
21705 * kern/emu/hostdisk.c (find_partition_start): Check whether
21706 device-mapper is supported before trying to use it.
21707 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
21708
da908200
CW
217092010-06-07 Colin Watson <cjwatson@ubuntu.com>
21710
21711 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
21712 (File name syntax): Likewise.
21713 (help): --all is no longer supported in GRUB 2. Be more precise
21714 about pattern matching.
21715
fb55c3ac
CW
217162010-06-07 Colin Watson <cjwatson@ubuntu.com>
21717
21718 * normal/completion.c (grub_normal_do_completion): When completing
21719 arguments to "set" and the current word contains an equals sign,
21720 skip to after the equals sign before starting completion.
21721
258c2573
CW
217222010-06-07 Colin Watson <cjwatson@ubuntu.com>
21723
21724 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
21725
ee75515e
CW
217262010-06-07 Colin Watson <cjwatson@ubuntu.com>
21727
21728 * docs/grub.texi (Network): New section.
21729 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
21730 `(nd)' as in GRUB Legacy.
21731 (pxe_unload): New section.
21732
a6a700aa
CW
217332010-06-07 Colin Watson <cjwatson@ubuntu.com>
21734
21735 * docs/grub.texi (Troubleshooting): `echo' is not usually available
21736 in the rescue shell, so recommend using `set' instead. Thanks,
21737 Jordan Uggla.
21738
4003dd38
CW
217392010-06-07 Colin Watson <cjwatson@ubuntu.com>
21740
21741 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
21742 (password): New section.
21743 (password_pbkdf2): New section.
21744 (search): New section.
21745 (Security): New section.
21746 (Troubleshooting): New section, currently very incomplete.
21747 (Invoking grub-mkpasswd-pbkdf2): New section.
21748 (Internals): New section, currently very incomplete.
21749
e1cbcc40
CW
217502010-06-07 Colin Watson <cjwatson@ubuntu.com>
21751
21752 * util/grub.d/00_header.in: Add some more quoting (of
21753 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
21754 work again.
21755 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
21756
db8fa1ad
CW
217572010-06-07 Colin Watson <cjwatson@ubuntu.com>
21758
21759 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
21760 to `count', fixing variable shadowing that broke the -c option.
21761
217622010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
21763
21764 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
21765 in case they contain spaces.
21766
f28a9212
CW
217672010-06-04 Colin Watson <cjwatson@ubuntu.com>
21768
21769 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
21770 "part_" to partmap module names, in line with grub-install.
21771 Reported by: Jindřich Makovička (Debian bug #584426).
21772
9cdfe32f
CW
217732010-06-04 Colin Watson <cjwatson@ubuntu.com>
21774
21775 * util/grub-mkimage.c: Make target-related error messages slightly
21776 more helpful; -O talks about "format". Explicitly point to the use
21777 of -O if no target is specified.
21778 Reported by: Didier Raboud (Debian bug #584415).
21779
795b593a
CW
217802010-06-03 Colin Watson <cjwatson@ubuntu.com>
21781
21782 * INSTALL: Document several build requirements for optional features
21783 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
21784
9d9b5833
GS
217852010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
21786
21787 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
21788 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
21789 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
21790
0819fec8
CW
217912010-06-02 Colin Watson <cjwatson@ubuntu.com>
21792
21793 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
21794 Thanks to Jordan Uggla for spotting this.
21795
49396b4f
VS
217962010-06-02 Aleš Nesrsta <starous@volny.cz>
21797
21798 Finally make USB usable.
21799
21800 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
21801 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
21802 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
21803 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
21804 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
21805 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
21806 (GRUB_OHCI_FSMPS): Likewise.
21807 (GRUB_OHCI_PERIODIC_START): Likewise.
21808 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
21809 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
21810 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
21811 (GRUB_OHCI_SET_PORT_RESET): Likewise.
21812 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
21813 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
21814 (grub_ohci_transaction): Likewise.
21815 (grub_ohci_transfer): Improve condition detection algorithms.
21816 Handle toggle property. Program the transactions correctly.
21817 Improve error handling. Various important fixups.
21818 (grub_ohci_portstatus): Put register writes in right order.
21819 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21820 (grub_uhci_transfer): Don't show "failed" message on success.
21821 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21822 array.
21823 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21824 determine its size.
21825 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21826 before initialization is completed. Use IN direction for empty
21827 transfers. Use last_trans and compute toggle.
21828 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21829 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21830 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21831 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21832 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21833 (grub_usb_device): Increase toggle to 256.
21834 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21835 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21836 GRUB_USBMS_SUBCLASS_SFF8070.
21837 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21838 (grub_scsi_inquiry): New member page and alloc_length.
21839 (grub_scsi_request_sense): New structure.
21840 (grub_scsi_request_sense_data): Likewise.
21841 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21842 control.
21843 * disk/scsi.c (grub_scsi_request_sense): New function.
21844 (grub_scsi_test_unit_ready): Likewise.
21845 (grub_scsi_inquiry): Fill new fields.
21846 (grub_scsi_read_capacity): Likewise.
21847 (grub_scsi_read10): Add request sense at the end.
21848 (grub_scsi_read12): Likewise.
21849 (grub_scsi_write10): Likewise.
21850 (grub_scsi_write12): Likewise.
21851 (grub_scsi_open): Add Test Unit Ready.
21852 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21853 Support additional subclasses. Con't clear halt yet. Activate the
21854 proper config. Calculate LUNs correctly.
21855 (grub_usbms_transfer): Various important fixups.
21856
218572010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21858
21859 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21860 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21861 (grub_ohci_fini_hw): New function.
21862 (grub_ohci_restore_hw): Likewise.
21863 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21864 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21865 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21866
218672010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21868
21869 Dedicated DMA allocations.
21870
21871 * bus/pci.c (grub_memalign_dma32): New function
21872 (grub_dma_free): Likewise.
21873 (grub_dma_get_virt): Likewise.
21874 (grub_dma_get_phys): Likewise.
21875 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21876 (grub_ohci_pci_iter): Use dma32_alloc.
21877 (grub_ohci_transfer): Likewise.
21878 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21879 (grub_usb_bulk_readwrite): Likewise.
21880 * include/grub/pci.h: Add declarations.
21881
218822010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21883
21884 CS5536 support.
21885
21886 * bus/cs5536.c: New file.
21887 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21888 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21889 (cs5536_mod_SOURCES): New variable.
21890 (cs5536_mod_CFLAGS): Likewise.
21891 (cs5536_mod_LDFLAGS): Likewise.
21892 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21893 machine/pci.h.
21894 (kernel_img_SOURCES): Add bus/cs5536.c.
21895 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21896 usb_keyboard.mod.
21897 (usb_mod_SOURCES): New variable.
21898 (usb_mod_CFLAGS): New variable.
21899 (usb_mod_LDFLAGS): New variable.
21900 (usbtest_mod_SOURCES): New variable.
21901 (usbtest_mod_CFLAGS): New variable.
21902 (usbtest_mod_LDFLAGS): New variable.
21903 (ohci_mod_SOURCES): New variable.
21904 (ohci_mod_CFLAGS): New variable.
21905 (ohci_mod_LDFLAGS): New variable.
21906 (usbms_mod_SOURCES): New variable.
21907 (usbms_mod_CFLAGS): New variable.
21908 (usbms_mod_LDFLAGS): New variable.
21909 (usb_keyboard_mod_SOURCES): New variable.
21910 (usb_keyboard_mod_CFLAGS): New variable.
21911 (usb_keyboard_mod_LDFLAGS): New variable.
21912 * include/grub/smbus.h: New file.
21913 * include/grub/cs5536.h: New file.
21914
0b35b2a9
CW
219152010-06-02 Colin Watson <cjwatson@ubuntu.com>
21916
21917 * util/grub.d/00_header.in: Add safety check to make sure that
21918 ${locale_dir} exists before trying to probe it.
21919
ca0afd5b
CW
219202010-06-02 Colin Watson <cjwatson@ubuntu.com>
21921
21922 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21923 per the GNU Coding Standards; this is now too obscure to be worth
21924 documenting.
21925 (QNX): Likewise.
21926 (chainloader): Remove cross-reference to `SCO UnixWare'.
21927
1c41aa78
CW
219282010-06-02 Colin Watson <cjwatson@ubuntu.com>
21929
21930 * docs/grub.texi (Chain-loading): New section.
21931 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21932 adjusted for GRUB 2.
21933 (SCO UnixWare): Likewise.
21934 (QNX): Likewise.
21935 (chainloader): Add reference to `Block list syntax'.
21936 (drivemap): New section.
21937 (parttool): New section.
21938
bb8ea0f5
CW
219392010-06-02 Colin Watson <cjwatson@ubuntu.com>
21940
21941 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21942 the grub shell'.
21943 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21944 (Installing GRUB using grub-install): Remove reference to the grub
21945 shell; mention `grub-mkimage' and `grub-setup' instead.
21946 (Invoking grub-install): Likewise.
21947 (Interface): Add reference to `Menu entry editor'.
21948 (serial): Remove `--device' option.
21949
288dd6ed
CW
219502010-06-02 Colin Watson <cjwatson@ubuntu.com>
21951
21952 * docs/grub.texi (Configuration): New section, documenting
21953 configuration file generation using grub-mkconfig. I've left a slot
21954 for documenting the full shell scripting format but have not yet
21955 started on writing that up.
21956 (Invoking grub-mkconfig): New section.
21957
34c9f0e9
CW
219582010-06-02 Colin Watson <cjwatson@ubuntu.com>
21959
21960 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21961 (GNU GRUB manual): Likewise.
21962 (General commands): Update description of `terminfo' for GRUB 2.
21963
9121567e
CW
219642010-06-02 Colin Watson <cjwatson@ubuntu.com>
21965
21966 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21967 (GRUB_MOD_INIT): Fix capitalisation.
21968 * docs/grub.texi (Command-line and menu entry commands): Document
21969 gettext and gptsync commands.
21970
ab631611
CW
219712010-06-02 Colin Watson <cjwatson@ubuntu.com>
21972
21973 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21974 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21975
bde4a9ac
CW
219762010-06-01 Colin Watson <cjwatson@ubuntu.com>
21977
21978 Add btrfs probing support, currently only in the single-device case.
21979
21980 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21981 function.
21982 (grub_guess_root_device): Call find_root_device_from_mountinfo
21983 before looking in /dev.
21984
b1d17e10
VS
219852010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21986
21987 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21988 GRUB_DISK_SIZE_UNKNOWN.
21989 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21990
dfbfe004
JS
219912010-05-31 Jiro SEKIBA <jir@unicus.jp>
21992
21993 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21994 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21995 corrupted or not synced properly.
21996
c2ffc8e9
VS
219972010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21998
21999 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
22000 Reported by: Seth Goldberg.
22001
56293166
VS
220022010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22003
22004 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
22005 addition of dest.
22006 Reported by: Seth Goldberg.
22007
7620e7de
VS
220082010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22009
22010 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
22011 Reported by: Seth Goldberg.
22012
c837af3f
VS
220132010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
22014
22015 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
22016 64-bit address as signed on MIPS.
22017
c7c75cf4
CW
220182010-05-28 Colin Watson <cjwatson@ubuntu.com>
22019
22020 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
22021 to the empty string.
22022
fa4b8490
BC
220232010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
22024
22025 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
22026
22027 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
22028 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
22029 * kern/misc.c (__enable_execute_stack): Disable on
22030 GRUB_MACHINE_EMU.
22031
a33075b9
CW
220322010-05-28 Colin Watson <cjwatson@ubuntu.com>
22033
22034 Make grub-probe work with symbolic links under /dev/mapper as well
22035 as with real block devices. The Linux world seems to be (at best)
22036 in transition here, and GRUB shouldn't get caught in the middle.
22037
22038 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
22039 /dev/mapper.
22040
d8708134
CW
220412010-05-27 Colin Watson <cjwatson@ubuntu.com>
22042
22043 * util/grub-script-check.c (main): Ensure defined behaviour on empty
22044 input files (in which case exit zero).
22045
db2102a0
CW
220462010-05-27 Colin Watson <cjwatson@ubuntu.com>
22047
22048 * kern/emu/misc.c (canonicalize_file_name): realpath can still
22049 return NULL for various reasons even if it has a maximum-length
22050 buffer: for example, there might be a symlink loop, or the path
22051 might exceed PATH_MAX. If this happens, return NULL.
22052
5fdba519
RM
220532010-05-27 Robert Millan <rmh@gnu.org>
22054
22055 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
22056 partmap module to handle cross-partmap setups.
22057 Reported by Orestes Mas. Gràcies!
22058
d1d368e4
CW
220592010-05-27 Colin Watson <cjwatson@ubuntu.com>
22060
22061 * util/grub-mkrescue.in: Initialise override_dir rather than
22062 assuming that it's unset or empty in the environment.
22063
95ac3c73
GS
220642010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
22065
22066 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
22067 variable index into p_index to suppress a warning with -Wshadow.
22068
7d8c0213
BC
220692010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
22070
22071 * INSTALL: Added flex >= 2.5.35 requirement.
22072
db4d5813
VS
220732010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22074
22075 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
22076
f24f4300
VS
220772010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22078
22079 cmostest support.
22080
22081 * commands/i386/cmostest.c: New file.
22082 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
22083 (cmostest_mod_SOURCES): New variable.
22084 (cmostest_mod_CFLAGS): Likewise.
22085 (cmostest_mod_LDFLAGS): Likewise.
22086 * conf/i386-pc.rmk: Likewise.
22087 * docs/grub.texi (Vendor power-on keys): New section.
22088 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
22089 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
22090 and GRUB_BUTTON_CMOS_ADDRESS.
22091 * util/grub.d/00_header.in: Handle powering-on by separate button.
22092
ad603f61
VS
220932010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22094
22095 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
22096 Removed drawing_scrollbar argument. All users updated
22097 Fixes #29792.
22098 Reported by Jo Shields
22099
3ecb080a
VS
221002010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22101
22102 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
22103 buffer since gfxterm handles double repaint.
22104
5f2316c1
VS
221052010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
22106
22107 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
22108 * term/gfxterm.c (real_scroll): Likewise.
22109
9a25f885
VS
221102010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22111
22112 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
22113 before calling BIOS.
22114
39fbb79a
VS
221152010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22116
22117 * include/grub/i18n.h: Always enable grub_gettext.
22118
228cfa97
VS
221192010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
22120
22121 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
22122 partition naming style.
22123
21717c8f
CW
221242010-05-21 Colin Watson <cjwatson@ubuntu.com>
22125
22126 * util/grub-mkconfig.in: Fix handling of -o so that it works when
22127 not the first option.
22128
c0f48e65
CW
221292010-05-20 Colin Watson <cjwatson@ubuntu.com>
22130
22131 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
22132
96779aec
CW
221332010-05-20 Colin Watson <cjwatson@ubuntu.com>
22134
22135 * util/misc.c: Move inclusion of <limits.h> to ...
22136 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
22137
fa9d256e
GS
221382010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
22139
22140 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
22141 Fix merge error in NetBSD code.
22142 (find_partition_start) [__NetBSD__]: Likewise.
22143
123b7a85
BC
221442010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
22145
22146 Fix grub-mkrescue usage unit testing.
22147
22148 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
22149
74276c0d
CF
221502010-05-18 Christian Franke <franke@computer.org>
22151
22152 * util/grub.d/10_windows.in: Use path names instead of
22153 drive letters to prevent warning from Cygwin 1.7.
22154 Add drivemap command to menuentry if needed.
22155
c4f7b523
ST
221562010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
22157
22158 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
22159 gnumach and gnumach.gz.
22160
95b97950
VS
221612010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22162
22163 * include/grub/i18n.h (gettext): Inline instead of using #define.
22164 (grub_gettext): Likewise.
22165 (_): Likewise.
22166
01b8d2d7
VS
221672010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22168
22169 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
22170 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
22171 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
22172 (main): Add a slash after pkglibdirroot.
22173
654e1d1e
VS
221742010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22175
22176 * util/grub-install.in: Add missing "in" keyword.
22177
26966aeb
VS
221782010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22179
22180 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
22181 Reported by: Seth Goldberg.
22182
75006747
VS
221832010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
22184
22185 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
22186
74cbf5bd
CW
221872010-05-18 Colin Watson <cjwatson@ubuntu.com>
22188
22189 * configure.ac: Check for Linux device-mapper support.
22190
22191 * util/hostdisk.c (device_is_mapped): New function.
22192 (find_partition_start): New function, partly broken out from
22193 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
22194 device-mapper support added.
22195 (linux_find_partition): Use find_partition_start.
22196 (convert_system_partition_to_system_disk): Add `st' argument.
22197 Support Linux /dev/mapper/* devices if device-mapper support is
22198 available; only DM-RAID devices are understood at present.
22199 (find_system_device): Add `st' argument. Pass it to
22200 convert_system_partition_to_system_disk.
22201 (grub_util_biosdisk_get_grub_dev): Pass stat result to
22202 find_system_device and convert_system_partition_to_system_disk. Use
22203 find_partition_start.
22204
22205 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
22206 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
22207 * util/deviceiter.c [__linux__]: Define MINOR.
22208 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
22209 * util/mkdevicemap.c (grub_putchar): New function.
22210 (grub_getkey): New function.
22211 (grub_refresh): New function.
22212 (main): Set debug=all if -v -v is used.
22213
355b51e9
CW
222142010-05-18 Colin Watson <cjwatson@ubuntu.com>
22215
22216 Fix build with non-GNU libcs.
22217
22218 * util/misc.c (canonicalize_file_name): Move to ...
22219 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
22220 grub_make_system_path_relative_to_its_root.
22221
7fb5c25f
CW
222222010-05-18 Colin Watson <cjwatson@ubuntu.com>
22223
22224 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
22225 we handle finding grub-mkimage. Default to finding grub-mkimage in
22226 ${bindir} with program_transform_name applied, and provide a
22227 --grub-mkimage option to override this.
22228
1d3293d6
VS
222292010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22230
22231 Remove grub-mkisofs.
22232
22233 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
22234 (grub_mkisofs_SOURCES): Removed.
22235 (grub_mkisofs_CFLAGS): Removed.
22236 * util/mkisofs/defaults.h: Removed.
22237 * util/mkisofs/eltorito.c: Likewise.
22238 * util/mkisofs/exclude.h: Likewise.
22239 * util/mkisofs/hash.c: Likewise.
22240 * util/mkisofs/include/: Likewise.
22241 * util/mkisofs/include/fctldefs.h: Likewise.
22242 * util/mkisofs/include/mconfig.h: Likewise.
22243 * util/mkisofs/include/prototyp.h: Likewise.
22244 * util/mkisofs/include/statdefs.h: Likewise.
22245 * util/mkisofs/iso9660.h: Likewise.
22246 * util/mkisofs/joliet.c: Likewise.
22247 * util/mkisofs/match.c: Likewise.
22248 * util/mkisofs/match.h: Likewise.
22249 * util/mkisofs/mkisofs.c: Likewise.
22250 * util/mkisofs/mkisofs.h: Likewise.
22251 * util/mkisofs/msdos_partition.h: Likewise.
22252 * util/mkisofs/multi.c: Likewise.
22253 * util/mkisofs/name.c: Likewise.
22254 * util/mkisofs/rock.c: Likewise.
22255 * util/mkisofs/tree.c: Likewise.
22256 * util/mkisofs/write.c: Likewise.
22257
5dde9afe
VS
222582010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
22259
22260 Unify grub-mkimage accross platforms.
22261
22262 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
22263 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
22264 (grub_mkelfimage_SOURCES): Removed.
22265 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
22266 (util/grub-mkimage.c_DEPENDENCIES): .. this.
22267 (bin_UTILITIES): Add grub-mkimage.
22268 (grub_mkimage_SOURCES): New variable.
22269 (kernel_img_HEADERS): Remove machine/kernel.h.
22270 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
22271 (pkglib_PROGRAMS): Add kernel.img.
22272 (kernel_img_HEADERS): Add machine/kernel.h.
22273 (kernel_img_FORMAT): Removed.
22274 (bin_UTILITIES): Remove grub-mkimage.
22275 (grub_mkimage_SOURCES): Removed.
22276 (grub_mkimage_CFLAGS): Likewise.
22277 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22278 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
22279 (pkglib_PROGRAMS): Add kernel.img.
22280 (bin_UTILITIES): Remove grub-mkimage.
22281 (grub_mkimage_SOURCES): Removed.
22282 (grub_mkimage_CFLAGS): Likewise.
22283 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22284 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
22285 (pkglib_PROGRAMS): Add kernel.img.
22286 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
22287 (pkglib_PROGRAMS): Add kernel.img.
22288 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
22289 (grub_mkimage_SOURCES): Removed.
22290 (grub_mkimage_CFLAGS): Likewise.
22291 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22292 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
22293 (pkglib_PROGRAMS): Add kernel.img.
22294 (bin_UTILITIES): Remove grub-mkimage.
22295 (grub_mkimage_SOURCES): Removed.
22296 (grub_mkimage_CFLAGS): Likewise.
22297 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22298 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
22299 (grub_mkimage_SOURCES): Removed.
22300 (grub_mkimage_CFLAGS): Likewise.
22301 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
22302 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
22303 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
22304 (grub_pe32_optional_header): ... this.
22305 (grub_pe64_optional_header): ... and this. All users updated.
22306 (GRUB_PE32_PE32_MAGIC): Split into ..
22307 (GRUB_PE32_PE32_MAGIC): .. this.
22308 (GRUB_PE32_PE64_MAGIC): .. and this.
22309 (GRUB_PE32_SIGNATURE_SIZE): New definition.
22310 * include/grub/elf.h (PT_GNU_STACK): New definition.
22311 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
22312 * include/grub/i386/efi/kernel.h: Likewise.
22313 * include/grub/i386/kernel.h: Likewise.
22314 * include/grub/i386/pc/kernel.h: Likewise.
22315 * include/grub/i386/qemu/boot.h: Likewise.
22316 * include/grub/mips/kernel.h: Likewise.
22317 * include/grub/mips/qemu-mips/kernel.h: Likewise.
22318 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
22319 * include/grub/powerpc/kernel.h: Likewise.
22320 * include/grub/sparc64/ieee1275/boot.h: Likewise.
22321 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
22322 * include/grub/sparc64/kernel.h: Likewise.
22323 * include/grub/x86_64/efi/kernel.h: Likewise.
22324 * include/grub/x86_64/kernel.h: Likewise.
22325 * include/grub/offsets.h: New file.
22326 * include/grub/kernel.h (grub_module_info): Split into ...
22327 (grub_module_info32): ... this.
22328 (grub_module_info64): ... and this.
22329 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
22330 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
22331 (grub_boot_blocklist): Moved from here ...
22332 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
22333 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
22334 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
22335 * include/grub/types.h (grub_target_to_host16): Removed.
22336 (grub_target_to_host32): Likewise.
22337 (grub_target_to_host64): Likewise.
22338 (grub_host_to_target16): Likewise.
22339 (grub_host_to_target32): Likewise.
22340 (grub_host_to_target64): Likewise.
22341 (grub_host_to_target_addr): Likewise.
22342
22343 Support grub-mkrescue for efi, coreboot and qemu.
22344
22345 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
22346 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
22347 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
22348 * util/grub-mkrawimage.c: Moved from here ...
22349 * util/grub-mkimage.c: ... here. All users updated.
22350 (ALIGN_ADDR): Use image_target.
22351 (TARGET_NO_FIELD): New const.
22352 (image_target_desc): New type.
22353 (image_targets): New array.
22354 (grub_target_to_host64): Use image_target.
22355 (grub_target_to_host32): Likewise.
22356 (grub_target_to_host16): Likewise.
22357 (grub_host_to_target64): Likewise.
22358 (grub_host_to_target32): Likewise.
22359 (grub_host_to_target16): Likewise.
22360 (grub_host_to_target_addr): Likewise.
22361 (generate_image): Handle multiimage.
22362 (main): Require -O parameter. All users updated.
22363 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
22364 util/efi/grub-mkimage.c
22365 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
22366 New option --rom-directory.
22367 Use xorriso.
22368 * util/i386/efi/grub-mkimage.c: Removed.
22369 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
22370 (grub_target_to_host32): Likewise.
22371 (grub_target_to_host64): Likewise.
22372 (grub_host_to_target16): Likewise.
22373 (grub_host_to_target32): Likewise.
22374 (grub_host_to_target64): Likewise.
22375 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
22376 (grub_target_to_host32): Likewise.
22377 (grub_target_to_host64): Likewise.
22378 (grub_host_to_target16): Likewise.
22379 (grub_host_to_target32): Likewise.
22380 (grub_host_to_target64): Likewise.
22381
f4fc97d0
BC
223822010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
22383
22384 Source tree is reorganized for emu build.
22385
22386 * include/grub/util/console.h: Move from here...
22387 * include/grub/emu/console.h: ...to here.
22388 * include/grub/util/getroot.h: Move from here...
22389 * include/grub/emu/getroot.h: ...to here.
22390 * include/grub/util/hostdisk.h: Move from here...
22391 * include/grub/emu/hostdisk.h: ...to here.
22392 * util/console.c: Move from here...
22393 * kern/emu/console.c: ...to here.
22394 * util/getroot.c: Move from here...
22395 * kern/emu/getroot.c: ...to here.
22396 * util/grub-emu.c: Move from here...
22397 * kern/emu/main.c: ...to here.
22398 * util/hostdisk.c: Move from here...
22399 * kern/emu/hostdisk.c: ...to here.
22400 * util/hostfs.c: Move from here...
22401 * kern/emu/hostfs.c: ...to here.
22402 * util/mm.c: Move from here...
22403 * kern/emu/mm.c: ...to here.
22404 * util/pci.c: Move from here...
22405 * bus/emu/pci.c: ...to here.
22406 * util/sdl.c: Move from here...
22407 * video/emu/sdl.c: ...to here.
22408 * util/time.c: Move from here...
22409 * kern/emu/time.c: ...to here.
22410 * util/usb.c: Move from here...
22411 * bus/usb/emu/usb.c: ...to here.
22412
22413 * include/grub/emu/misc.h: New header for grub-emu functions.
22414 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
22415
22416 * conf/any-emu.rmk: Rule updates for above renames.
22417 * conf/common.rmk: Likewise.
22418 * conf/i386-pc.rmk: Likewise.
22419 * conf/i386-qemu.rmk: Likewise.
22420 * conf/mips.rmk: Likewise.
22421 * conf/sparc64-ieee1275.rmk: Likewise.
22422 * conf/x86-efi.rmk: Likewise.
22423
22424 * disk/lvm.h: #include updates for above renames.
22425 * util/grub-mkrelpath.c: Likewise.
22426 * util/grub-probe.c: Likewise.
22427 * util/i386/pc/grub-setup.c: Likewise.
22428 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22429 * kern/emu/console.c: Likewise.
22430 * kern/emu/getroot.c: Likewise.
22431 * kern/emu/hostdisk.c: Likewise.
22432 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
22433
22434 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
22435 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
22436 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
22437 * util/misc.c: Remove grub-emu functions.
22438
cced9145
VS
224392010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
22440
22441 Fix gfxmenu crash.
22442 Reported by: Thorsten Grützmacher.
22443
22444 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
22445 timeout hook.
22446 (circprog_set_property): Register and unregister timeout hook.
22447 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
22448 (label_destroy): Free template. and unregister hook.
22449 (label_set_state): New function.
22450 (label_set_property): Handle templates and hooks.
22451 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
22452 timeout hook.
22453 (progress_bar_set_property): Register and unregister timeout hook.
22454 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
22455 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
22456 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
22457 (update_timeout_visit): Removed.
22458 (update_timeouts): New function.
22459 (redraw_timeouts): Likewise.
22460 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
22461 (grub_gfxmenu_clear_timeout): Likewise.
22462 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
22463 (grub_gfxmenu_timeout_notify): Likewise.
22464 (grub_gfxmenu_timeout_notifications): New external variable.
22465 (grub_gfxmenu_timeout_register): New function.
22466 (grub_gfxmenu_timeout_unregister): Likewise.
22467
c6e5caab
VS
224682010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
22469
22470 Transform (broken) vga terminal into (working) vga video driver.
22471
22472 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
22473 video/i386/pc/vga.c.
22474 * include/grub/video.h (grub_video_driver_id):
22475 Add GRUB_VIDEO_DRIVER_VGA.
22476 * term/i386/pc/vga.c: Renamed to ...
22477 * video/i386/pc/vga.c: ...this
22478 (DEBUG_VGA): Removed.
22479 (CHAR_WIDTH): Likewise.
22480 (CHAR_HEIGHT): Likewise.
22481 (TEXT_WIDTH): Likewise.
22482 (TEXT_HEIGHT): Likewise.
22483 (DEFAULT_FG_COLOR): Likewise.
22484 (DEFAULT_BG_COLOR): Likewise.
22485 (colored_char): Likewise.
22486 (xpos): Likewise.
22487 (ypos): Likewise.
22488 (cursor_state): Likewise.
22489 (fg_color): Likewise.
22490 (bg_color): Likewise.
22491 (text_buf): Likewise.
22492 (page): Likewise.
22493 (font): Likewise.
22494 (framebuffer): New variable.
22495 (set_read_map): Disabled.
22496 (setup): New variable.
22497 (is_target): Likewise.
22498 (grub_vga_mod_init): Likewise.
22499 (grub_vga_mod_fini): Likewise.
22500 (check_vga_mem): Likewise.
22501 (write_char): Likewise.
22502 (write_cursor): Likewise.
22503 (scroll_up): Likewise.
22504 (grub_vga_putchar): Likewise.
22505 (grub_vga_getcharwidth): Likewise.
22506 (grub_vga_getwh): Likewise.
22507 (grub_vga_getxy): Likewise.
22508 (grub_vga_gotoxy): Likewise.
22509 (grub_vga_cls): Likewise.
22510 (grub_vga_setcolorstate): Likewise.
22511 (grub_vga_setcursor): Likewise.
22512 (grub_video_vga_init): New function.
22513 (grub_video_vga_setup): Likewise.
22514 (grub_video_vga_fini): Likewise.
22515 (update_target): Likewise.
22516 (grub_video_vga_blit_bitmap): Likewise.
22517 (grub_video_vga_blit_render_target): Likewise.
22518 (grub_video_vga_set_active_render_target): Likewise.
22519 (grub_video_vga_get_active_render_target): Likewise.
22520 (grub_video_vga_swap_buffers): Likewise.
22521 (grub_video_vga_set_palette): Likewise.
22522 (grub_video_vga_get_info_and_fini): Likewise.
22523 (grub_vga_term): Removed.
22524 (grub_video_vga_adapter): New variable.
22525 (GRUB_MOD_INIT): Register a video driver instead of terminal.
22526 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
22527
2bf61a98
VS
225282010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22529
22530 * video/readers/jpeg.c: Indented.
22531
09ddcd11
VS
225322010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22533
22534 Various jpeg cleanups.
22535
22536 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
22537 (grub_jpeg_decode_quan_table): Use sizeof.
22538 (grub_jpeg_decode_du): Use ARRAY_SIZE.
22539
e5507505
PH
225402010-05-05 Peter Hurley <No e-mail available> (tiny change)
22541
22542 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
22543 tables. Ignore non-last ac bit.
22544 (grub_jpeg_decode_quan_table): Likewise.
22545
7e720a9b
VS
225462010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22547
22548 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
22549 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
22550 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
22551 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
22552 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
22553 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
22554
a7fc080b
VS
225552010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22556
22557 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
22558 error.
22559
2bf6012d
VS
225602010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
22561
22562 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
22563
265d68cd
VS
225642010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
22567 condition.
22568
225692010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
22570
22571 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
22572 part.
22573
265d68cd 225742010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
22575
22576 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
22577 pointers.
22578
265d68cd 225792010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
22580
22581 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
22582
d1b61374
CF
225832010-05-01 Christian Franke <franke@computer.org>
22584
22585 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
22586 Remove broken Cygwin path conversion.
22587 * util/misc.c: [__CYGWIN__] Add include and define.
22588 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
22589 for Cygwin 1.7.
22590 (make_system_path_relative_to_its_root): Simplify loop, replace early
22591 return by break.
22592 [__CYGWIN__] Add conversion to win32 path.
22593 Include "/" case in trailing slash removal.
22594
3558c6e9
VS
225952010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22596
22597 * kern/main.c (grub_load_config): Fix copy-pasted comment.
22598 Reported by: Seth Goldberg
22599
f5f3ff93
VS
226002010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22601
22602 * commands/help.c (grub_cmd_help): Fix a typo.
22603 Reported by: Seth Goldberg
22604
d8b5cd40
VS
226052010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22606
22607 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
22608 name and add N_.
22609 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
22610 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
22611 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
22612 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
22613 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
22614 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
22615 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
22616 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
22617 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
22618 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
22619 * normal/context.c (GRUB_MOD_INIT): Likewise.
22620 * normal/main.c (GRUB_MOD_INIT): Likewise.
22621 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
22622 * term/serial.c (GRUB_MOD_INIT): Likewise.
22623 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
22624
88c14915
VS
226252010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22626
22627 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
22628 extra == 0.
22629
165134bc
VS
226302010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22631
22632 * commands/iorw.c: New file.
22633 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
22634 (iorw_mod_SOURCES): New variable.
22635 (iorw_mod_CFLAGS): Likewise.
22636 (iorw_mod_LDFLAGS): Likewise.
22637
c5ac9b32
VS
226382010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22639
22640 Hotkey support
22641
22642 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
22643 * normal/main.c (hotkey_aliases): New variable.
22644 (grub_normal_add_menu_entry): Parse "--hotkey".
22645 * normal/menu_text.c (run_menu): Handle hotkeys.
22646
ce60689c
VS
226472010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22648
22649 * kern/i386/coreboot/init.c (grub_machine_init): Call
22650 grub_machine_mmap_init on qemu.
22651
0359d006
VS
226522010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22653
22654 * boot/i386/qemu/boot.S: Add a missing .code16.
22655
7819a456
VS
226562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22657
22658 Use LBIO on coreboot.
22659
22660 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
22661 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
22662 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
22663 New declaration.
22664 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
22665 grub_machine_mmap_init on coreboot.
22666 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
22667 GRUB_LINUXBIOS_MEMBER_LINK.
22668 (grub_machine_mmap_iterate): Fix declaration.
22669 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
22670
7210dca9
VS
226712010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22672
22673 Split coreboot and multiboot ports.
22674
22675 * conf/i386-multiboot.rmk: New file.
22676 * configure.ac: Add multiboot port.
22677 * include/grub/i386/multiboot/boot.h: New file.
22678 * include/grub/i386/multiboot/console.h: Likewise.
22679 * include/grub/i386/multiboot/init.h: Likewise.
22680 * include/grub/i386/multiboot/kernel.h: Likewise.
22681 * include/grub/i386/multiboot/loader.h: Likewise.
22682 * include/grub/i386/multiboot/memory.h: Likewise.
22683 * include/grub/i386/multiboot/serial.h: Likewise.
22684 * include/grub/i386/multiboot/time.h: Likewise.
22685 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
22686 * loader/multiboot.c: Likewise.
22687 * loader/multiboot_mbi2.c: Likewise.
22688 * util/grub-mkrescue.in: Generate multiboot rescue.
22689
6f8aaf68
VS
226902010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22691
3080f7a7
VS
22692 * kern/parser.c (grub_parser_execute): Cope with read-only config.
22693
226942010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
22695
22696 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
22697
22698 * commands/terminal.c (abstract_terminal): New struct.
22699 (handle_command): New function. Based on grub_cmd_terminal_input.
22700 (grub_cmd_terminal_input): Use handle_command.
22701 (grub_cmd_terminal_output): Use handle_command.
22702
a8ebb841
BC
227032010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
22704
22705 Fix comment handling.
22706
22707 * tests/grub_script_comments.in: New testcase.
22708 * conf/tests.rmk: Rules for new testcase.
22709 * script/yylex.l: Updated flex rules.
22710
bb06ba08
ST
227112010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
22712
22713 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
22714 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
22715 if argc is 1.
bb06ba08 22716
cc9d2425
VS
227172010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
22718
22719 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
22720 autogen issues.
22721
460d8402
CF
227222010-04-26 Christian Franke <franke@computer.org>
22723
22724 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
22725 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
22726 (grub_get_prefix): Remove function.
22727 * util/grub-emu.c (main): Replace grub_get_prefix () call by
22728 make_system_path_relative_to_its_root ().
22729 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
22730
553c01f9
CF
227312010-04-24 Christian Franke <franke@computer.org>
22732
22733 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
22734 (kernel_img_LDFLAGS): Remove -static-libgcc.
22735
2aec1692
CF
227362010-04-24 Christian Franke <franke@computer.org>
22737
22738 * configure.ac: Do not CHECK_BSS_START_SYMBOL
22739 and CHECK_END_SYMBOL if grub-emu is built.
22740 Unset TARGET_OBJ2ELF if grub-emu is built
22741 without module support.
22742
f67dc308
JS
227432010-04-24 Jiro SEKIBA <jir@unicus.jp>
22744
22745 Nilfs2 support.
22746
22747 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
22748 (grub_fstest_SOURCES): Likewise.
22749 (pkglib_MODULES): Add nilfs2.mod.
22750 (nilfs2_mod_SOURCES): New variable.
22751 (nilfs2_mod_CFLAGS): Likewise.
22752 (nilfs2_mod_LDFLAGS): Likewise.
22753 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22754 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
22755 * fs/nilfs2.c: New file.
22756
4ba8d354
VS
227572010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
22758
22759 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
22760 is not supported.
22761
0d2c20c6
GS
227622010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
22763
22764 Add grub-mkconfig support for NetBSD.
22765
22766 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
22767 * util/grub-mkconfig.in: export new NetBSD specific variables.
22768 * po/POTFILES-shell: added 10_netbsd.in.
22769 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
22770
bc4a2d83
BC
227712010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
22772
22773 Fix emu build with grub-emu-pci and grub-emu-modules.
22774
22775 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
22776 functions.
22777 * include/grub/libpciaccess.h: New file.
22778 * conf/any-emu.rmk: Update kernel headers for emu build.
22779
f48c87aa
VS
227802010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22781
22782 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
22783
18959385
VS
227842010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
22785
22786 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
22787
0037de3f
VS
227882010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22789
22790 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
22791 Retrieve chosen/bootpath if bootpath isn't hardcoded.
22792 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
22793 util/ieee1275/ofpath.c.
22794 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
22795 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
22796 * include/grub/sparc64/ieee1275/boot.h
22797 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
22798 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
22799 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
22800 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
22801 const char *.
22802 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
22803 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
22804 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
22805 install.
22806
38e55e90
GS
228072010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22808
22809 * util/grub-mkconfig.in: Corrected two == equality tests.
22810 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
22811 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
22812 expect a number appended to it.
22813 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
22814 expects a number appended to it.
22815
a9e6ff28
VS
228162010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22817
22818 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22819
0b830b8f
VS
228202010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22821
22822 * util/hostdisk.c (make_device_name): Change to new partition naming.
22823
0973daeb
VS
228242010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22825
22826 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22827
460d8402 228282010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
22829
22830 * Makefile.in: Add missing localedir setting.
22831
0b456309
CW
228322010-04-14 Colin Watson <cjwatson@ubuntu.com>
22833
22834 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22835 mistake in r2156. Noticed by Anthony Fok.
22836
22837 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22838 @localedir@.
22839 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22840
08f46d62
BC
228412010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22842
22843 Fix a spurious, uninitialized variable warning.
22844
22845 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22846 Initialize variable, shdr.
22847 (grub_freebsd_load_elfmodule): Likewise.
22848 (grub_freebsd_load_elf_meta): Likewise.
22849
8c4a72d4
BC
228502010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22851
22852 Fix for escaped dollar in double quoted strings.
22853
22854 * script/yylex.l: Updated flex rules.
22855 * conf/tests.rmk: Rule for new testcase.
22856 * tests/grub_script_dollar.in: New testcase.
22857
ce44826e
CPE
228582010-04-13 Carles Pina i Estany <carles@pina.cat>
228592010-04-13 Colin Watson <cjwatson@ubuntu.com>
22860
22861 Enclose all translated strings in grub.cfg in single quotes, and
22862 escape them appropriately (Ubuntu bug #552921).
22863
22864 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22865 * util/grub.d/10_hurd.in: Use it.
22866 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22867 * util/grub.d/10_linux.in (linux_entry): Likewise.
22868
4b0cd8f8
VS
228692010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22870
22871 Fix cygwin compilation.
22872
22873 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22874 * include/grub/misc.h (__register_frame_info)
22875 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22876 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22877 * kern/misc.c (__register_frame_info)
22878 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22879 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22880
01fcf061
VS
228812010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22882
22883 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22884
5d04b11e
VS
228852010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22886
22887 Unify libgcc processing.
22888
22889 * Makefile.in (kernel_img_LDFLAGS): New variable.
22890 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22891 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22892 overwriting.
22893 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22894 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22895 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22896 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22897 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22898 overwriting. Remove -lgcc and -static-libgcc
22899 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22900 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22901 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22902 (kernel_img_LDFLAGS): Append instead of overwriting.
22903 Remove -lgcc and -static-libgcc
22904 * conf/sparc64-ieee1275.rmk: Likewise.
22905 * include/grub/powerpc/libgcc.h: Move to ...
22906 * include/grub/libgcc.h: .. this.
22907 * include/grub/libgcc.h: Don't export most of the function on x86.
22908 (__bswapsi2): New export.
22909 (__bswapdi2): Likewise.
22910 * include/grub/mips/libgcc.h: Removed.
22911 * include/grub/sparc64/libgcc.h: Likewise.
22912
b7f3ac29
VS
229132010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22914
22915 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22916 disk_info_msg (conflicts with gettexting into languages with cases).
22917
2c7031b1
GS
229182010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22919
22920 Add grub-probe support for NetBSD.
22921
22922 * util/getroot.c (find_root_device): Convert block device to
22923 character device on NetBSD.
22924 * util/probe.c (probe): Require character device on NetBSD.
22925 * util/hostdisk.c: NetBSD specific headers.
22926 (configure_device_driver): new function to tune device driver
22927 parameters (currently only for NetBSD floppy driver).
22928 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22929 via disklabel ioctl).
22930 (open_device): call configure_device_driver on NetBSD.
22931 (convert_system_partition_to_system_disk): NetBSD specific code.
22932 (device_is_wholedisk): Likewise.
22933 (grub_util_biosdisk_get_grub_dev): Likewise.
22934 (make_device_name): Fixed a typo in bsd_part_str.
22935 * configure.ac: check for opendisk() and getrawpartition() on
22936 NetBSD and set LIBUTIL.
22937 * Makefile.in: add LIBUTIL to LIBS.
22938
f516290c
BC
229392010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22940
22941 Documentation fix.
22942
22943 * util/grub-script-check.c: Better help message.
22944
d8dcc0df
BC
229452010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22946
22947 Fix FreeBSD build.
22948
22949 * configure.ac: Flex version check.
22950 * conf/common.rmk: Add -Wno-error to sh.mod.
22951 * script/yylex.l: Remove all #pragma.
22952
6734334a
VS
229532010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22954
22955 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22956 prototype.
22957 Reported by: Seth Goldberg.
22958
daea6abd
VS
229592010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22960
22961 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22962 Rename "module" to "module2".
22963 Reported by: Seth Goldberg.
22964
f2fd9d2b
VS
229652010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22966
22967 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22968 EXPORT_FUNC.
22969 Reported by: Seth Goldberg.
22970
be124579
VS
229712010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22972
22973 * lib/posix_wrap/locale.h: Add missing file.
22974 Reported by: Seth Goldberg.
22975
ef5da797
VS
229762010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22977
22978 grub-emu module load support.
22979
22980 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22981 NO_DYNAMIC_MODULES switched to this.
22982 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22983 (CFLAGS): Likewise.
22984 * conf/any-emu.rmk: Generate symlist.
22985 (kernel_img_HEADERS): Add util/datetime.h.
22986 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22987 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22988 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22989 kern/$(target_cpu)/cache.S.
22990 * configure.ac (grub-emu-modules): New option.
22991 * genmk.rb: Handle multiple source lists.
22992 * include/grub/sdl.h: New file.
22993 * include/grub/libusb.h: Likewise.
22994 * util/grub-emu.c (main): Hanle (host) root.
22995 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22996 GRUB_ERR_UNKNOWN_DEVICE.
22997 * util/misc.c: Move mm functions to ...
22998 * util/mm.c: ... here. All users updated.
22999
47822096
VS
230002010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23001
23002 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
23003 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
23004 missing files.
23005 (maintainer-clean): Remove libgcrypt-grub.
23006
5d7e7445
VS
230072010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23008
23009 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
23010
25f4e252
EC
230112010-04-09 EFI Coder <eficoder@hotmail.com>
23012
23013 * normal/menu_text.c (print_message): Clean up the message and show
23014 the Fn information when on EFI
23015 * term/efi/console.c (grub_console_checkkey): Add F4 support.
23016
027de555
VS
230172010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23018
23019 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
23020 All users updated.
23021 * normal/crypto.c (read_crypto_list): Likewise.
23022 * normal/dyncmd.c (read_command_list): Likewise.
23023 * normal/term.c (read_terminal_list): Likewise.
23024 * normal/main.c (read_lists): Use explicit prefix.
23025 (read_lists_hook): Use read_lists.
23026 (grub_normal_execute): Likewise.
23027
47779711
VS
230282010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23029
23030 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
23031 Reported by: Thomas Schmitt.
23032 Add -no-emul-boot to grub-mkisofs parameters.
23033
1118c32e
VS
230342010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23035
23036 * font/font.c: Indented.
23037
7d652447
BC
230382010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23039
23040 Elif support to GRUB script (by Deepak Vankadaru).
23041
23042 * tests/grub_script_if.in: New testcase.
23043 * conf/tests.rmk: Rule for new testcase.
23044 * script/parser.y: Grammar rules for elif.
23045
34bb22df
BC
230462010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
23047
23048 While and until loops support to GRUB script.
23049
23050 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
23051 (grub_script_create_cmdwhile): New function prototype.
23052 (grub_script_execute_cmdwhile): New function prototype.
23053 * script/execute.c (grub_script_execute_cmdwhile): New function.
23054 * script/parser.y (command): New commands.
23055 (whilecmd): New grammar rule.
23056 (untilcmd): New grammar rule.
23057 * script/script.c (grub_script_create_cmdwhile): New function.
23058 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
23059 function.
23060
23061 * tests/grub_script_while1.in: New testcase.
23062 * conf/tests.rmk: Rule for new testcase.
23063
e215d8e0
VS
230642010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23065
23066 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
23067 as *.jpg.
23068
d7c43ba1
MV
230692010-04-09 Mario Vazquez <mariovazq@gmail.com>
23070
23071 GRUB_BACKGROUND support.
23072
23073 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
23074 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
23075
d64795c0
VS
230762010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23077
23078 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 23079 Idea by: Mario Vazquez
d64795c0
VS
23080
23081 * util/grub.d/00_header.in: Load pf2 and image modules.
23082
f267f83a
VS
230832010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23084
23085 grub-mkconfig multiple terminal support.
23086
23087 * util/grub-mkconfig.in: Handle multiple terminals correctly.
23088 * util/grub.d/00_header.in: Likewise.
23089
b7841ceb
VS
230902010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
23091
23092 * Makefile.in: Specify files explicitly instead of using $< and $@ since
23093 we use cd $(srcdir).
23094
df60998c
CW
230952010-04-08 Colin Watson <cjwatson@ubuntu.com>
23096
23097 * util/grub.d/10_linux.in: Only use the first word of
23098 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
23099 spaces in GRUB_DISTRIBUTOR.
23100 * util/grub.d/10_kfreebsd.in: Likewise.
23101 * util/grub.d/10_hurd.in: Likewise.
23102
fa09c82e
BC
231032010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
23104
14e18ae3 23105 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
23106
23107 * tests/util/grub-shell.in: Remove -serial stdio option.
23108
daf892b3
BC
231092010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
23110
23111 POSIX header file wrappers.
23112
23113 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
23114 equivalents.
23115 * lib/posix_wrap/ctype.h: Likewise.
23116 * lib/posix_wrap/errno.h: Likewise.
23117 * lib/posix_wrap/langinfo.h: Likewise.
23118 * lib/posix_wrap/limits.h: Likewise.
23119 * lib/posix_wrap/localcharset.h: Likewise.
23120 * lib/posix_wrap/stdint.h: Likewise.
23121 * lib/posix_wrap/stdio.h: Likewise.
23122 * lib/posix_wrap/stdlib.h: Likewise.
23123 * lib/posix_wrap/string.h: Likewise.
23124 * lib/posix_wrap/sys/types.h: Likewise.
23125 * lib/posix_wrap/unistd.h: Likewise.
23126 * lib/posix_wrap/wchar.h: Likewise.
23127 * lib/posix_wrap/wctype.h: Likewise.
23128 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
23129 (grub_script.yy.h): Likewise.
23130 * script/yylex.l: Remove POSIX emulation #defines.
23131 * Makefile.in (POSIX_CFLAGS): New variable.
23132 (GNULIB_UTIL_CFLAGS): Likewise.
23133
23134 Regexp support.
23135
23136 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
23137 (regexp_mod_SOURCES): New variable.
23138 (regexp_mod_CFLAGS): Likewise.
23139 (regexp_mod_LDFLAGS): Likewise.
23140 * commands/regexp.c: New file.
23141 * gnulib/regcomp.c: New file. Imported from gnulib.
23142 * gnulib/regex.c: Likewise.
23143 * gnulib/regex_internal.c: Likewise.
23144 * gnulib/regex_internal.h: Likewise.
23145 * gnulib/regexec.c: Likewise.
23146 * gnulib/regex.h: Likewise.
23147
974ac4f7
VS
231482010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23149
23150 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
23151 unsupported video mode types.
23152
2622c3ff
VS
231532010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23154
23155 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
23156
064cb524
VS
231572010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23158
23159 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
23160 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
23161
a8c3b552
VS
231622010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
23163
23164 Remove unused grub_vga_get_font.
23165
23166 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
23167 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
23168
187bbe3d
GS
231692010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23170
23171 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
23172 * include/grub/misc.h: Likewise.
23173
b9396631
GS
231742010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23175
23176 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
23177 for which failure is fatal.
23178
50479feb
GS
231792010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23180
23181 * util/grub-install.in: Use mkdir -p to create grub directory.
23182 * util/i386/efi/grub-install.in: Likewise.
23183 * util/ieee1275/grub-install.in: Likewise.
23184
b1654fdf
GS
231852010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23186
23187 * Makefile.in (LEX): new variable.
23188
bd5a6415
GS
231892010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
23190
23191 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
23192 `=' and added double quotes on operands of this equality test.
23193
3db3a82b
VS
231942010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23195
23196 * Makefile.in (uninstall): Remove a leftover debug echo.
23197 Reported by: Grégoire Sutre
23198
38023412
VS
231992010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
23200
23201 MIPS multiboot2 support.
23202
23203 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
23204 (multiboot2_mod_SOURCES): New variable.
23205 (multiboot2_mod_CFLAGS): Likewise.
23206 (multiboot2_mod_LDFLAGS): Likewise.
23207 (multiboot2_mod_ASFLAGS): Likewise.
23208 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
23209 definition.
23210 (MULTIBOOT_ENTRY_REGISTER): Likewise.
23211 (MULTIBOOT_MBI_REGISTER): Likewise.
23212 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
23213 (MULTIBOOT_ELF32_MACHINE): Likewise.
23214 (MULTIBOOT_ELF64_MACHINE): Likewise.
23215 * include/grub/mips/multiboot.h: New file.
23216 * include/grub/video.h (grub_video_driver_id): New type
23217 GRUB_VIDEO_DRIVER_SM712.
23218 (grub_video_get_info_and_fini): Export.
23219 (grub_video_get_palette): Likewise.
23220 (grub_video_get_driver_id): Likewise.
23221 * include/multiboot2.h: Resynced with spec.
23222 * loader/i386/multiboot.c: Moved from here ...
23223 * loader/multiboot.c: ... here. All users updated.
23224 (grub_multiboot_boot): Use platform-specific macros.
23225 * loader/i386/multiboot_elfxx.c: Moved from here ...
23226 * loader/multiboot_elfxx.c: ... here. All users updated.
23227 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
23228 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
23229 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
23230
47674667
VS
232312010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
23232
23233 Import gnulib argp module.
23234
23235 * gnulib/argp-ba.c: New file.
23236 * gnulib/argp-eexst.c: Likewise.
23237 * gnulib/argp-fmtstream.c: Likewise.
23238 * gnulib/argp-fmtstream.h: Likewise.
23239 * gnulib/argp-fs-xinl.c: Likewise.
23240 * gnulib/argp-help.c: Likewise.
23241 * gnulib/argp-namefrob.h: Likewise.
23242 * gnulib/argp-parse.c: Likewise.
23243 * gnulib/argp-pin.c: Likewise.
23244 * gnulib/argp-pv.c: Likewise.
23245 * gnulib/argp-pvh.c: Likewise.
23246 * gnulib/argp-version-etc.c: Likewise.
23247 * gnulib/argp-version-etc.h: Likewise.
23248 * gnulib/argp-xinl.c: Likewise.
23249 * gnulib/argp.h: Likewise.
23250
495442ed
VS
232512010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 * kern/device.c (grub_device_iterate): Clear errors after failed
23254 opening device.
23255
f9fd65df
VS
232562010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
23257
23258 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
23259 returned by firmware.
23260
af09641e
VS
232612010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
23262
23263 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
23264 compilation on coreboot and qemu
23265
016883a5
VS
232662010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23267
23268 * include/multiboot2.h: Resync with spec.
23269
f97e1f7d
VS
232702010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
23271
23272 Multiboot2 tag support
23273
23274 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
23275 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
23276 Remove loader/multiboot_loader.c.
23277 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
23278 (grub_multiboot2_real_boot): Likewise.
23279 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
23280 (grub_get_multiboot_mmap_count): New proto.
23281 (grub_fill_multiboot_mmap): Likewise.
23282 (grub_multiboot_set_video_mode): Likewise.
23283 (grub_multiboot_set_console): Likewise.
23284 (grub_multiboot_load): Likewise.
23285 (grub_multiboot_load_elf): Likewise.
23286 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
23287 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
23288 * include/multiboot.h: Resynced with specification.
23289 * include/multiboot2.h: Resynced with specification.
23290 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
23291 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
23292 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
23293 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
23294 users updated.
23295 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
23296 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
23297 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
23298 Removed.
23299 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
23300 Moved from here...
23301 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
23302 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23303 Moved from here...
23304 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
23305 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
23306 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
23307 All users updated.
23308 * loader/i386/multiboot_mbi2.c: New file.
23309
3506b90b
VS
233102010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23311
23312 Resync with gnulib.
23313
23314 * Makefile.in (GNULIB_CFLAGS): New variable.
23315 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
23316 (grub_script_check_CFLAGS): New variable.
23317 * gnulib/alloca.h: Resync with gnulib.
23318 * gnulib/error.c: Likewise.
23319 * gnulib/error.h: Likewise.
23320 * gnulib/fnmatch.c: Likewise.
23321 * gnulib/fnmatch_loop.c: Likewise.
23322 * gnulib/getdelim.c: Likewise.
23323 * gnulib/getline.c: Likewise.
23324 * gnulib/getopt.c: Likewise.
23325 * gnulib/getopt1.c: Likewise.
23326 * gnulib/getopt_int.h: Likewise.
23327 * gnulib/gettext.h: Likewise.
23328 * gnulib/progname.c: Likewise.
23329 * gnulib/progname.h: Likewise.
23330
394a3120
GS
233312010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
23332
23333 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
23334 which is the case with --disabled-nls.
23335
23336 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
23337 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
23338 * util/misc.c: Likewise.
23339 * util/mkisofs/mkisofs.c: Likewise.
23340 * util/mkisofs/mkisofs.h: Likewise.
23341
969d1c78
VS
233422010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
23343
23344 Simplify Apple CC support.
23345
23346 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
23347 Add 0 byte at the end not to have a symbol with empty target.
23348 * mmap/i386/pc/mmap_helper.S: Likewise.
23349 * genmk.rb: Ignore errors 2030 and 2050.
23350 * kern/i386/pc/startup.S: Use LOCAL when possible.
23351
8d2977bb
BC
233522010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
23353
23354 Testcase and the fix for final semicolon on cmdline.
23355
23356 * tests/grub_script_final_semicolon.in: New testcase.
23357 * conf/tests.rmk: Rules for the new testcase.
23358 * script/parser.y: Grammar fix.
23359
a7bd6915
BC
233602010-03-26 BVK Chaitanya <bvk@localhost>
23361
23362 Blank lines testcase for GRUB script.
23363
23364 * tests/grub_script_blanklines.in: New testcase.
23365 * conf/tests.rmk: Rules for the new testcase.
23366
e4ff6628
VS
233672010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23368
23369 Don't use __FILE__.
23370
23371 * genmk.rb: Add -DGRUB_FILE to all C targets.
23372 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
23373 * include/grub/list.h: Likewise.
23374 * include/grub/misc.h: Likewise.
23375 * include/grub/mm.h: Likewise.
23376 * include/grub/test.h: Likewise.
23377 * kern/mm.c: Likewise.
23378 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
23379
6a5cf6b6
VS
233802010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23381
23382 Sunpc partitions support.
23383
23384 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
23385 (grub_fstest_SOURCES): Likewise.
23386 (pkglib_MODULES): Add part_sunpc.mod.
23387 (part_sunpc_mod_SOURCES): New variable.
23388 (part_sunpc_mod_CFLAGS): Likewise.
23389 (part_sunpc_mod_LDFLAGS): Likewise.
23390 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
23391 * partmap/sunpc.c: New file.
23392
746d9045
BC
233932010-03-26 BVK Chaitanya <bvk@localhost>
23394
23395 For loop support to GRUB script.
23396
23397 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
23398 (grub_script_create_cmdfor): New function prototype.
23399 (grub_script_execute_cmdfor): New function prototype.
23400 * script/execute.c (grub_script_execute_cmdfor): New function.
23401 * script/parser.y (command): New for command.
23402 (forcmd): New grammar rule.
23403 * script/script.c (grub_script_create_cmdfor): New function.
23404 * util/grub-script-check.c (grub_script_execute_cmdfor): New
23405 function.
23406 * tests/grub_script_for1.in: New testcase.
23407 * conf/tests.rmk: Rules for new testcase.
23408
18486b18
VS
234092010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
23410
23411 Nested partitions
23412
23413 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
23414 'partition' is NULL, grub_partition_get_start already does that.
23415 * commands/loadenv.c (check_blocklists): Likewise.
23416 (write_blocklists): Likewise.
23417 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
23418 (grub_fstest_SOURCES): Likewise.
23419 (pkglib_MODULES): Add part_bsd.mod.
23420 (part_bsd_mod_SOURCES): New variable.
23421 (part_bsd_mod_CFLAGS): Likewise.
23422 (part_bsd_mod_LDFLAGS): Likewise.
23423 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
23424 (grub_emu_SOURCES): Likewise.
23425 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23426 * include/grub/bsdlabel.h: New file.
23427 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
23428 'get_name'.
23429 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
23430 (grub_partition_map_list): New variable.
23431 (grub_partition_map_register): Inline.
23432 (grub_partition_map_unregister): Likewise.
23433 (FOR_PARTITION_MAPS): New macro.
23434 (grub_partition_map_iterate): Removed.
23435 (grub_partition_get_start): Handle nested partitions.
23436 * include/grub/msdos_partition.h: Remove bsd-related entries.
23437 (grub_pc_partition): Remove.
23438 * kern/disk.c (grub_disk_close): Free partition data.
23439 (grub_disk_adjust_range): Handle nested partitions.
23440 * kern/partition.c (grub_partition_map_probe): New function.
23441 (grub_partition_probe): Parse name to number, handle subpartitions.
23442 (get_partmap): New function.
23443 (grub_partition_iterate): Handle subpartitions.
23444 (grub_partition_get_name): Likewise.
23445 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
23446 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
23447 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
23448 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
23449 Set 'number'.
23450 (acorn_partition_map_probe): Remove.
23451 (acorn_partition_map_get_name): Likewise.
23452 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
23453 Set 'number'.
23454 Set 'index' to 0 since there can be only one partition entry per sector.
23455 (amiga_partition_map_probe): Remove.
23456 (amiga_partition_map_get_name): Likewise.
23457 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
23458 Set 'number'.
23459 Set 'offset' and 'index' to real positions of partitions.
23460 (apple_partition_map_probe): Remove.
23461 (apple_partition_map_get_name): Likewise.
23462 * partmap/bsdlabel.c: New file.
23463 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
23464 Set 'number'.
23465 Allocate 'data' so it can be correctly freed.
23466 Set 'index' to offset inside sector.
23467 (gpt_partition_map_probe): Remove.
23468 (gpt_partition_map_get_name): Likewise.
23469 * partmap/msdos.c (grub_partition_parse): Remove.
23470 (pc_partition_map_iterate): Don't force raw access.
23471 Set 'number'.
23472 Make 'ext_offset' a local variable.
23473 (pc_partition_map_probe): Remove.
23474 (pc_partition_map_get_name): Remove.
23475 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
23476 Set 'number'.
23477 (sun_partition_map_probe): Remove.
23478 (sun_partition_map_get_name): Likewise.
23479 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
23480 (grub_pcpart_type): Likewise.
23481 * util/hostdisk.c (open_device): Handle new numbering scheme.
23482 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
23483 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
23484 * util/grub-probe.c (probe_partmap): Handle nested paritions.
23485 * util/grub-install.in: Insert all subpartition modules.
23486 * util/ieee1275/grub-install.in: Likewise.
23487
a3940f88
AG
234882010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
23489
23490 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
23491 grammar.
23492
21b99926 234932010-03-24 Colin Watson <cjwatson@ubuntu.com>
23494
23495 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
23496
bed1d352
CW
234972010-03-21 Colin Watson <cjwatson@ubuntu.com>
23498
23499 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
23500 match where 'make install' puts them.
23501 * util/i386/efi/grub-install.in: Likewise.
23502
c9f58427
CW
235032010-03-19 Colin Watson <cjwatson@ubuntu.com>
23504
23505 * .bzrignore: Add gentrigtables, grub-script-check,
23506 grub_script_check_init.c, grub_script_check_init.h, and
23507 trigtables.c.
23508
f84afb27
VS
235092010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
23510
23511 * kern/parser.c: Indented.
23512
ed0e3d30
VS
235132010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23514
23515 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
23516
0ea81d98
VS
235172010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
23518
23519 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
23520 alpha_mask_size == 0 case.
23521
0cdc2a09
BC
235222010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
23523
23524 GRUB shell lexer and parser improvements.
23525
23526 * conf/any-emu.rmk: Build rule updates.
23527 * conf/common.rmk: Likewise.
23528 * conf/i386-coreboot.rmk: Likewise.
23529 * conf/i386-efi.rmk: Likewise.
23530 * conf/i386-ieee1275.rmk: Likewise.
23531 * conf/i386-pc.rmk: Likewise.
23532 * conf/powerpc-ieee1275.rmk: Likewise.
23533 * conf/x86_64-efi.rmk: Likewise.
23534
23535 * configure.ac: Configure check for flex.
23536
23537 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
23538 types.
23539 (grub_lexer_param): Struct member updates.
23540 (grub_parser_param): Likewise.
23541 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
23542 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
23543 (grub_script_lexer_init): Prototype update.
23544 (grub_script_lexer_record_start): Likewise.
23545 (grub_script_lexer_record_stop): Likewise.
23546 (grub_script_lexer_yywrap): New function prototype.
23547 (grub_script_lexer_fini): Likewise.
23548 (grub_script_execute_argument_to_string): Removed by...
23549 (grub_script_execute_argument_to_argv): ...better version.
23550
23551 * script/execute.c (ROUND_UPTO): New macro.
23552 (grub_script_execute_cmdline): Out of memory fixes.
23553 (grub_script_execute_menuentry): Likewise.
23554 (grub_script_execute_argument_to_string): Removed. Update all
23555 users by...
23556 (grub_script_execute_argument_to_argv): ...better version.
23557 * script/function.c (grub_script_function_create): Use
23558 grub_script_execute_argument_to_argv instead of
23559 grub_script_execute_argument_to_string.
23560
23561 * script/lexer.c (check_varstate): Removed.
23562 (check_textstate): Removed.
23563 (grub_script_lexer_record_start): Likewise.
23564 (grub_script_lexer_record_stop): Likewise.
23565 (recordchar): Replaced with...
23566 (grub_script_lexer_record): ...new function.
23567 (nextchar): Removed.
23568 (grub_script_lexer_init): Rewritten.
23569 (grub_script_yylex): Rewritten.
23570 (append_newline): New function.
23571 (grub_script_lexer_yywrap): New function.
23572 (grub_script_lexer_fini): New function.
23573 (grub_script_yyerror): Sets error flag.
23574
23575 * script/yylex.l: New file.
23576 (grub_lexer_yyfree): Wrapper for flex yyffre.
23577 (grub_lexer_yyalloc): Likewise.
23578 (grub_lexer_yyrealloc): Likewise.
23579 * script/parser.y: Refactored.
23580
23581 * script/script.c (grub_script_arg_add): Out of memory fixes.
23582 (grub_script_add_arglist): Likewise.
23583 (grub_script_create_cmdline): Likewise.
23584 (grub_script_create_cmdmenu): Likewise.
23585 (grub_script_add_cmd): Likewise.
23586 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
23587 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
23588 unnecessary code.
23589
23590 * tests/grub_script_echo1.in: New testcase.
23591 * tests/grub_script_vars1.in: New testcase.
23592 * tests/grub_script_echo_keywords.in: New testcase.
23593
1d63a066
VS
235942010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23595
23596 Remove some redundancy in build system.
23597
23598 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
23599 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
23600 (TARGET_LDFLAGS): Add -nostdlib.
23601 (TARGET_IMG_LDFLAGS): Likewise.
23602 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
23603 anything since mmap isn't available.
23604 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
23605 Add util/time.c.
23606 (pkglib_MODULES): Remove reboot.mod.
23607 (reboot_mod_SOURCES): Removed.
23608 (reboot_mod_CFLAGS): Likewise.
23609 (reboot_mod_LDFLAGS): Likewise.
23610 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
23611 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
23612 (DEFSYMFILES): Add kernel_syms.lst.
23613 (kernel_img_HEADERS): Add common headers.
23614 (symlist.c): New target.
23615 (kernel_syms.lst): Likewise.
23616 (pkglib_MODULES): Add memdisk.mod.
23617 (memdisk_mod_SOURCES): New variable.
23618 (memdisk_mod_CFLAGS): Likewise.
23619 (memdisk_mod_LDFLAGS): Likewise.
23620 (pkglib_MODULES): Add reboot.mod.
23621 (reboot_mod_SOURCES): New variable.
23622 (reboot_mod_CFLAGS): Likewise.
23623 (reboot_mod_LDFLAGS): Likewise.
23624 (pkglib_MODULES): Add date.mod.
23625 (date_mod_SOURCES): New variable.
23626 (date_mod_CFLAGS): Likewise.
23627 (date_mod_LDFLAGS): Likewise.
23628 (pkglib_MODULES): Add datehook.mod.
23629 (datehook_mod_SOURCES): New variable.
23630 (datehook_mod_CFLAGS): Likewise.
23631 (datehook_mod_LDFLAGS): Likewise.
23632 (pkglib_MODULES): Add lsmmap.mod.
23633 (lsmmap_mod_SOURCES): New variable.
23634 (lsmmap_mod_CFLAGS): Likewise.
23635 (lsmmap_mod_LDFLAGS): Likewise.
23636 (pkglib_MODULES): Add boot.mod.
23637 (boot_mod_SOURCES): New variable.
23638 (boot_mod_CFLAGS): Likewise.
23639 (boot_mod_LDFLAGS): Likewise.
23640 * conf/i386-coreboot.rmk: Removed redundant parts.
23641 * conf/i386-ieee1275.rmk: Likewise.
23642 * conf/i386-pc.rmk: Likewise.
23643 * conf/mips-yeeloong.rmk: Likewise.
23644 * conf/mips.rmk: Likewise.
23645 * conf/powerpc-ieee1275.rmk: Likewise.
23646 * conf/sparc64-ieee1275.rmk: Likewise.
23647 * conf/x86_64-efi.rmk: Likewise.
23648 * conf/i386-coreboot.rmk: Moved qemu parts ..
23649 * conf/i386-qemu.rmk: ... here
23650 * conf/i386-efi.rmk: Moved common parts to...
23651 * conf/x86-efi.rmk: ... here.
23652 * conf/i386.rmk: Added modules common to all x86 variants.
23653 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
23654 * disk/memdisk.c: Remove grub/machine/kernel.h.
23655 * gensymlist.sh.in: Include symbol.h.
23656 * hook/datehook.c: Correct module name.
23657 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
23658 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
23659 * include/grub/i386/efi/serial.h: New file.
23660 * include/grub/x86_64/efi/serial.h: Likewise.
23661 * util/time.c: Likewise.
23662 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
23663
463ac55f
CK
236642010-03-14 Colin King <colin.king@ubuntu.com>
236652010-03-14 Colin Watson <cjwatson@ubuntu.com>
23666
23667 Shrink the pre-partition-table part of boot.img by eight bytes.
23668
23669 * boot/i386/pc/boot.S (ERR): New macro.
23670 (chs_mode): Use ERR.
23671 (geometry_error): Likewise.
23672 (hd_probe_error): Remove. This is only used once, so we wrwite
23673 it inline instead.
23674 (read_error): Instead of printing read_error_string, just set up
23675 %si and fall through to ...
23676 (error_message): ... this new function, also used by ERR.
23677
08e46ede
CW
236782010-03-14 Colin Watson <cjwatson@ubuntu.com>
23679
23680 Speed up consecutive hostdisk operations on the same device.
23681
23682 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
23683 (grub_util_biosdisk_open): Initialise disk->data.
23684 (struct linux_partition_cache): New structure.
23685 (linux_find_partition): Cache partition start positions; these are
23686 expensive to compute on every read and write.
23687 (open_device): Cache open file descriptor in disk->data, so that we
23688 don't have to reopen it and flush the buffer cache for consecutive
23689 operations on the same device.
23690 (grub_util_biosdisk_close): New function.
23691 (grub_util_biosdisk_dev): Set `close' member.
23692
23693 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
23694 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
23695 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23696 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23697 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
23698
4a6d2d06
VS
236992010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23700
23701 Compile parts of grub-emu as modules.
23702
23703 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
23704 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
23705 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
23706 (all-local): Add $(GRUB_EMU).
23707 (install-local): Install $(GRUB_EMU).
23708 (uninstall): Uninstall $(GRUB_EMU).
23709 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
23710 * kern/dl.c: Likewise.
23711 * commands/sleep.c: Not include machine/time.h.
23712 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
23713 (COMMON_CFLAGS): Likewise.
23714 (sbin_UTILITIES): Remove grub-emu.
23715 (grub_emu_SOURCES): Removed.
23716 (kernel_img_RELOCATABLE): New variable.
23717 (pkglib_PROGRAMS): Add kernel.img.
23718 (kernel_img_SOURCES): New variable
23719 (kernel_img_CFLAGS): Likewise.
23720 (kernel_img_LDFLAGS): Likewise.
23721 (TARGET_NO_STRIP): Likewise.
23722 (TARGET_NO_DYNAMIC_MODULES): Likewise.
23723 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
23724 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
23725 (grub-emu): New target.
23726 (GRUB_EMU): New variable.
23727 * configure.ac: Whitelist -emu as possible x86_64 architecture.
23728 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
23729 * loader/xnu.c: Likewise.
23730 * include/grub/pci.h: Likewise.
23731 * genemuinit.sh: New file.
23732 * genemuinitheader.sh: Likewise.
23733 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
23734 Support TARGET_NO_DYNAMIC_MODULES.
23735 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
23736 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
23737 * disk/loopback.c: Likewise.
23738 * font/font_cmd.c: Likewise.
23739 * partmap/acorn.c: Likewise.
23740 * partmap/amiga.c: Likewise.
23741 * partmap/apple.c: Likewise.
23742 * partmap/gpt.c: Likewise.
23743 * partmap/msdos.c: Likewise.
23744 * partmap/sun.c: Likewise.
23745 * parttool/msdospart.c: Likewise.
23746 * term/gfxterm.c: Likewise.
23747 * video/bitmap.c: Likewise.
23748 * video/readers/jpeg.c: Likewise.
23749 * video/readers/png.c: Likewise.
23750 * video/readers/tga.c: Likewise.
23751 * video/video.c: Likewise.
23752 * util/grub-emu.c (read_command_list): Removed.
23753 (main): Don't call util_init_nls.
23754 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
23755 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
23756
91fdd2ed
VS
237572010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23758
23759 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
23760 date.mod, datehook.mod.
23761 (datetime_mod_SOURCES): New variable.
23762 (datetime_mod_CFLAGS): Likewise.
23763 (datetime_mod_LDFLAGS): Likewise.
23764 (date_mod_SOURCES): Likewise.
23765 (date_mod_CFLAGS): Likewise.
23766 (date_mod_LDFLAGS): Likewise.
23767 (datehook_mod_SOURCES): Likewise.
23768 (datehook_mod_CFLAGS): Likewise.
23769 (datehook_mod_LDFLAGS): Likewise.
23770 * conf/sparc64-ieee1275.rmk: Likewise.
23771 * lib/ieee1275/datetime.c: New file.
23772
873ccae6
VS
237732010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23774
23775 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
23776 (ieee1275_fb_mod_SOURCES): New variable.
23777 (ieee1275_fb_mod_CFLAGS): Likewise.
23778 (ieee1275_fb_mod_LDFLAGS): Likewise.
23779 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
23780 New proto.
23781 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
23782 (HEAP_MAX_ADDR): Likewise.
23783 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
23784 type.
23785 Correct stop condition.
23786 (grub_ieee1275_devices_iterate): New function.
23787 * video/ieee1275.c: New file.
23788
601c97c0
VS
237892010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
23790
23791 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
23792
23793 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
23794 as scratch.
23795 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
23796 SCRATCH_PAD_DISKBOOT as scratch.
23797 (bootit): Pass Openfirmware pointer in %o4.
23798 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
23799 of 0x200000.
23800 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
23801 with util/grub-mkrawimage.c.
23802 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
23803 * include/grub/aout.h (AOUT_MID_SUN): New definition.
23804 (grub_aout_get_type) [GRUB_UTIL]: Removed.
23805 (grub_aout_load) [GRUB_UTIL]: Likewise.
23806 * include/grub/kernel.h (grub_modules_get_end): New proto.
23807 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
23808 (SCRATCH_PAD_BOOT): New definition.
23809 (SCRATCH_PAD_DISKBOOT): Likewise.
23810 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
23811 * include/grub/sparc64/ieee1275/ieee1275.h
23812 (grub_ieee1275_original_stack): New variable
23813 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23814 New definition
23815 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23816 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23817 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23818 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23819 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23820 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23821 (grub_platform_image_format_t): New type.
23822 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23823 * kern/main.c (grub_modules_get_end)
23824 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23825 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23826 (codestart): Switch stacks.
23827 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23828 variable.
23829 (grub_heap_init): Use grub_modules_get_end.
23830 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23831 stack.
23832 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23833 (main): Likewise.
23834 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23835
d68b491e
TG
238362010-03-14 Thorsten Glaser <tg@mirbsd.org>
23837
23838 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23839
4e02ed50
MK
238402010-03-08 Matt Kraai <kraai@ftbfs.org>
23841
23842 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23843 bug #559005).
23844
1f15fc1e
VS
238452010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23846
23847 * genmoddep.awk: Output all missing symbols and not only first.
23848
fce5d8ff
VS
238492010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23850
23851 * NEWS: Put the date of 1.98 release.
23852
d1e8a02f
VS
238532010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23854
23855 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23856 ft2build.h.
23857
696fd607
VS
238582010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23859
23860 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23861 completition in the middle of string.
23862
33e2e6f3
VS
238632010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23864
23865 * util/grub-mkrescue.in: Use mktemp with explicit template.
23866
b1f6d291
VS
238672010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23868
23869 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23870
2ac227c7
VS
238712010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23872
23873 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23874 right pointer.
23875
8f9a632b
VS
238762010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23877
23878 Fix FreeBSD compilation.
23879
23880 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23881 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23882
60b03859
VS
238832010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23884
23885 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23886
48a5a769
VS
238872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23888
23889 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23890
3ab4bd77
VS
238912010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23892
23893 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23894
d116e0d8
RM
238952010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23896
23897 Support relative image path in theme file.
23898
23899 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23900 (image_set_property): Handle theme_dir and relative path.
23901
c7ef54aa
VS
239022010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23903
23904 * configure.ac: Alias amd64 to x86_64.
23905
fcee14ed
VS
239062010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23907
23908 * NEWS: mention multiboot on EFI.
23909
d0780363
VS
239102010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23911
23912 * kern/main.c (grub_load_modules): Handle errors from init functions of
23913 embeded modules.
23914
41168ea4
VS
239152010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23916
23917 * normal/autofs.c (autoload_fs_module): Handle errors.
23918
b54d93ac
VS
239192010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23920
23921 Disable linux.mod on qemu-mips since it's not functional and leads
23922 to compilation failure.
23923
23924 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23925 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23926 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23927 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23928 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23929 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23930 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23931 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23932 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23933 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23934 Reported by: BVK Chaitanya
23935
fc8345da
JU
239362010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23937
23938 * INSTALL: Add gettext as a dependency and add qemu to a new section
23939 "Prerequisites for make-check".
23940
4760f979
CF
239412010-03-04 Christian Franke <franke@computer.org>
23942
23943 * util/grub-pe2elf.c: Add missing include "progname.h".
23944
f209b5b2
VS
239452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23946
23947 * normal/crypto.c (read_crypto_list): Fix a typo.
23948 Reported by: Seth Goldberg.
23949
b4b7be98
VS
239502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23951
23952 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 23953 Reported by: Seth Goldberg.
b4b7be98 23954
c0ee0385
VS
239552010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23956
23957 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23958 ascii.bitmaps.
23959
a8efbf64
VS
239602010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23961
23962 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 23963 Reported by: Seth Goldberg.
a8efbf64 23964
08dcd913
VS
239652010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23966
23967 * util/i386/efi/grub-install.in: Copy gettext files.
23968
c4d0b332
VS
239692010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23970
23971 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23972
c6f2fe52
VS
239732010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23974
23975 Wait for user entry basing on presence of output rather than on errors.
23976
23977 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23978 (grub_install_newline_hook): Likewise.
23979 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23980 * normal/menu.c (show_menu): Check line_counter to determine presence
23981 of output.
23982 * normal/term.c (grub_normal_line_counter): New variable.
23983 (grub_normal_get_line_counter): New function.
23984 (grub_install_newline_hook): Likewise.
23985
5382b1e4
VS
239862010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23987
23988 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23989
5519963b
VS
239902010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23991
23992 * configure.ac: Update version to 1.98.
23993
72b28631
VS
239942010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23995
23996 * util/grub.d/10_linux.in (linux_entry): Don't default to
23997 gfxpayload=keep if Linux doesn't support video handover.
23998
c140a180
VS
239992010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
24000
24001 Don't compile video modules on yeeloong since video subsystem is part
24002 of kernel.
24003
24004 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
24005 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
24006 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
24007 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
24008 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
24009 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
24010 * include/grub/bitmap_scale.h: Likewise.
24011 * include/grub/bufio.h: Likewise.
24012 * include/grub/font.h: Likewise.
24013 * include/grub/gfxterm.h: Likewise.
24014 * include/grub/video.h: Likewise.
24015 * include/grub/vbe.h: Don't include video_fb.h.
24016 * video/i386/pc/vbe.c: Include video_fb.h.
24017 * commands/i386/pc/vbetest.c: Include video.h.
24018
a0ca21c2
CW
240192010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
24020
24021 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
24022 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
24023 default entry if GRUB_SAVEDEFAULT=true. This allows using
24024 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
24025 saving a new default on every boot.
24026
4a8a763c
VS
240272010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24028
24029 * normal/crypto.c (read_crypto_list): Fix a memory leak.
24030 * normal/term.c (read_terminal_list): Likewise.
24031 * normal/main.c (grub_normal_init_page): Likewise.
24032 (grub_normal_read_line_real): Likewise.
24033
607ffde2
VS
240342010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
24035
24036 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
24037 memory leak.
24038 Reported by: Seth Goldberg.
24039
2b8fa975
CW
240402010-02-24 Joey Korkames <joey+lists@kidfixit.com>
24041
24042 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
24043 duplicate declaration of `start'.
24044
618307dd
VS
240452010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24046
24047 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
24048 filename.
24049 Reported by: Georgy Buranov
24050
7dd05b96 240512010-02-20 Carles Pina i Estany <carles@pina.cat>
24052
24053 * util/grub-mkrawimage.c (usage): Change string formatting to
24054 improve gettext.
24055
d1484a42
MRA
240562010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
24057
24058 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
24059 backspace keys.
24060
42b1d186
VS
240612010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
24062
24063 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
24064 Reported by: Michael Suchanek.
24065
240662010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
24067
24068 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
24069 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
24070
d9f31a41
VS
240712010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
24072
24073 Remove any reference to non-free fonts.
24074
24075 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
24076 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
24077 uses non-free components.
24078 * font/font.c (grub_font_get_name): Remove example name.
24079 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
24080 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
24081 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
24082 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
24083
2793c71e
GB
240842010-02-16 Georgy Buranov <gburanov@gmail.com>
24085
24086 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
24087
402e3779
VS
240882010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24089
24090 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
24091 Double divisor.
24092 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
24093 features.
24094 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
24095
0dd1e0dd
VS
240962010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
24097
24098 * gensymlist.sh.in: Use TARGET_CC instead of CC.
24099
6fa7cfce
ST
241002010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24101
24102 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
24103 * docs/grub.texi (Command-line and menu entry commands): Document play
24104 command.
24105
37c8483b
ST
241062010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24107
24108 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
24109 parse arguments as inline tempo and notes. Move code for playing notes
24110 to...
24111 (play): ... new function.
24112
14da0fb7
ST
241132010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
24114
24115 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
24116 grub_uint16_t instead of short.
24117 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
24118 disk from little endian to cpu endianness.
24119
04459e70
ST
241202010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
24121
24122 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
24123 GRUB_TICKS_PER_SECOND instead of 120.
24124
a0876943
VS
241252010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24126
24127 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
24128 escape sequence after \e.
24129
e29f95dc
VS
241302010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24131
24132 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
24133 non-ASCII characters.
24134
d27859b2
VS
241352010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24136
24137 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
24138 set root in single quotes to prevent \, from being unescaped.
24139
bc028f2f
VS
241402010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24141
24142 Prevent unknown commands from stopping menuentry execution.
24143
24144 * script/execute.c (grub_script_execute_cmdline): Print error after
24145 unknown command.
24146
095f5f82
VS
241472010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
24150 Reported by: Pavel Pisa.
24151
8c717950
VS
241522010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24153
24154 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
24155
904935c3
VS
241562010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24157
24158 Merge grub_ieee1275_map_physical into grub_map and rename to
24159 grub_ieee1275_map
24160
24161 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
24162 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
24163 Remove.
24164 * kern/ieee1275/openfw.c (grub_map): Rename to ...
24165 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
24166 necessary.
24167 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
24168
5b59a4e3
VS
241692010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24170
24171 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
24172 opening and not after.
24173
69e137e8
VS
241742010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24175
24176 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
24177 constants.
24178
2c0fcc36
VS
241792010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24180
24181 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
24182 (alloc_phys): Use ALIGN_UP instead of align_addr.
24183
8c6052ce
VS
241842010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24185
24186 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
24187
17cec782
VS
241882010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24189
24190 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
24191
e0128bbd
VS
241922010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24193
24194 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
24195 verbose dprintf.
24196
ca62070b
VS
241972010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24198
24199 Fix over-4GiB seek on sparc64.
24200
24201 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
24202 Replace pos_i and pos_lo with pos. All users updated.
24203 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24204 New constant.
24205 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
24206 Likewise.
24207 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
24208 and pos_lo.
24209
bdca2607
VS
242102010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24211
24212 * util/grub-mkrawimage.c (main): Call set_program_name.
24213
da278c4d
VS
242142010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24215
24216 Properly align 64-bit targets.
24217
24218 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
24219 (generate_image): Use ALIGN_ADDR.
24220
b274d734
VS
242212010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24222
24223 Properly create cross-endian images.
24224
24225 * include/grub/types.h (grub_host_to_target_addr): New macro
24226 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
24227
82da2062
VS
242282010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
24229
24230 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
24231
7cae4377
VS
242322010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24233
24234 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
24235
24236 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
24237 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
24238 (grub_linux_boot): Divide by 64K when on VESA.
24239
65a533e7
VS
242402010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24241
24242 Support GRUB_GFXPAYLOAD_LINUX.
24243
24244 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
24245 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
24246
dd01d397
VS
242472010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
24248
24249 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
24250 to show messages instead of discarding them.
24251 Process errors after executing command and not before. Keep old method
24252 too as precaution.
24253
660960d6
VS
242542010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
24255
24256 * configure.ac: Check for ft2build.h.
24257
62509f04
VS
242582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24259
24260 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
24261
473df63d
VS
242622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24263
24264 * genkernsyms.sh.in: Use TARGET_CC.
24265
c98d2a13
CW
242662010-02-07 Colin Watson <cjwatson@ubuntu.com>
24267
24268 * NEWS: Update.
24269
6e14234c
VS
242702010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24271
24272 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
24273 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
24274 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 24275
b255e9cf
YB
242762010-02-07 Yves Blusseau <blusseau@zetam.org>
24277
6e14234c 24278 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 24279
98e6959d
VS
242802010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24281
24282 Fix warnings in grub-emu when compiling with maximum warning options.
24283
24284 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
24285 (grub_arch_modules_addr): Return 0 and not NULL.
24286 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 24287 (xstrdup): Use newstr instead of dup.
f88d801b
VS
24288 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
24289 of disk to dsk to avoid shadowing.
74e4934e
VS
24290 (find_free_slot): Fix prototype.
24291 * util/getroot.c (grub_util_is_dmraid): Make static.
24292 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
24293 Add missing prototype.
24294 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 24295
74e31b5c
VS
242962010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24297
24298 * loader/i386/linux.c (grub_linux_setup_video): Handle error
24299 appropriately.
24300
6b2ad14b
VS
243012010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24302
24303 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
24304 code out.
24305
8f891adc
VS
243062010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24307
24308 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
24309 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
24310 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
24311 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
24312 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
24313 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
24314
74b45184
VS
243152010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24316
24317 * include/grub/err.h (grub_err_printf): Don't export.
24318
a4bced77
VS
243192010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24320
24321 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
24322
007d0695
VS
243232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
24324
24325 * include/grub/i18n.h (grub_gettext_dummy): Removed.
24326 * kern/misc.c (grub_gettext_dummy): Make static.
24327
b6c0d9c2
VS
243282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24329
24330 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
24331 by non-valid ones.
24332 * kern/term.c (grub_putchar): Likewise.
24333
f51a90d0
VS
243342010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24335
24336 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
24337 buggy hook call and memory leak.
24338
6846cec5
VS
243392010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24340
24341 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
24342
468d69fe
VS
243432010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24344
24345 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
24346
51906b8c
VS
243472010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24348
24349 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
24350 modevar.
24351 Return grub_errno on allocation error.
24352
09706ce5
VS
243532010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24354
24355 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
24356
911df80c
YB
243572010-02-06 Yves Blusseau <blusseau@zetam.org>
24358
24359 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
24360 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
24361
3746a6bc
VS
243622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24363
24364 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
24365 non-pxe disk.
24366 (grub_pxefs_open): Likewise.
24367
09706ce5
VS
243682010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24369
24370 * util/grub.d/10_hurd.in: Add --class information to menuentries.
24371 * util/grub.d/10_kfreebsd.in: Likewise.
24372 * util/grub.d/10_linux.in: Likewise.
24373
7cc192d9
VS
243742010-02-06 Colin D Bennett <colin@gibibit.com>
24375
24376 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
24377 (gfxmenu_mod_SOURCES): New variable.
24378 (gfxmenu_mod_CFLAGS): Likewise.
24379 (gfxmenu_mod_LDFLAGS): Likewise.
24380 * include/grub/term.h (grub_term_set_current_output): Declare
24381 argument as const.
24382 * docs/gfxmenu-theme-example.txt: New file.
24383 * gfxmenu/gfxmenu.c: Likewise.
24384 * gfxmenu/gui_box.c: Likewise.
24385 * gfxmenu/gui_canvas.c: Likewise.
24386 * gfxmenu/gui_circular_progress.c: Likewise.
24387 * gfxmenu/gui_image.c: Likewise.
24388 * gfxmenu/gui_label.c: Likewise.
24389 * gfxmenu/gui_list.c: Likewise.
24390 * gfxmenu/gui_progress_bar.c: Likewise.
24391 * gfxmenu/gui_string_util.c: Likewise.
24392 * gfxmenu/gui_util.c: Likewise.
24393 * gfxmenu/icon_manager.c: Likewise.
24394 * gfxmenu/model.c: Likewise.
24395 * gfxmenu/named_colors.c: Likewise.
24396 * gfxmenu/theme_loader.c: Likewise.
24397 * gfxmenu/view.c: Likewise.
24398 * gfxmenu/widget-box.c: Likewise.
24399 * include/grub/gfxmenu_model.h: Likewise.
24400 * include/grub/gfxmenu_view.h: Likewise.
24401 * include/grub/gfxwidgets.h: Likewise.
24402 * include/grub/gui.h: Likewise.
24403 * include/grub/gui_string_util.h: Likewise.
24404 * include/grub/icon_manager.h: Likewise.
24405
244062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24407
24408 Agglomerate scrolling in gfxterm.
24409
24410 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
24411 (grub_virtual_screen_setup): Initialise 'total_screen'.
24412 (write_char): Split to ...
24413 (paint_char): ... this ...
24414 (write_char): ... and this.
24415 (paint_char): Handle delayed scrolling.
24416 (draw_cursor): Likewise.
24417 (scroll_up): Split to ...
24418 (real_scroll): ... this ...
24419 (scroll_up): ... and this.
24420 (real_scroll): Handle multi-line scroll and draw below-the-bottom
24421 characters.
24422 (grub_gfxterm_refresh): Call real_scroll.
24423
244242010-02-06 Colin D Bennett <colin@gibibit.com>
24425
24426 * include/grub/misc.h (grub_iscntrl): New inline function.
24427 (grub_isalnum): Likewise.
24428 (grub_strtol): Likewise.
24429
244302010-02-06 Colin D Bennett <colin@gibibit.com>
24431
24432 * normal/menu_text.c (get_entry_number): Move from here ...
24433 * normal/menu.c (get_entry_number): ... moved here.
24434 * include/grub/menu.h (grub_menu_get_default_entry_index):
24435 New prototype.
24436 * normal/menu.c (grub_menu_get_default_entry_index): New function.
24437 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
24438 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
24439 (grub_menu_viewer_should_return): Likewise.
24440 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
24441 * normal/menu_text.c (run_menu): Enable menu switching.
24442 * normal/menu_viewer.c (should_return): New variable.
24443 (menu_viewer_changed): Likewise.
24444 (grub_menu_viewer_show_menu): Handle menu viewer changes.
24445 (grub_menu_viewer_should_return): New function.
24446 (menuviewer_write_hook): Likewise.
24447 (grub_menu_viewer_init): Likewise.
24448
244492010-02-06 Colin D Bennet <colin@gibibit.com>
244502010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24451
24452 Support for gfxterm in a window.
24453
24454 * include/grub/gfxterm.h: New file.
24455 * include/grub/video.h (struct grub_video_rect): New declaration.
24456 (grub_video_rect_t): Likewise.
24457 * term/gfxterm.c (struct grub_gfxterm_window): New type.
24458 (refcount): New variable.
24459 (render_target): Likewise.
24460 (window): Likewise.
24461 (repaint_callback): Likewise.
24462 (grub_virtual_screen_setup): Use 'render_target'.
24463 (init_window): New function.
24464 (grub_gfxterm_init_window): Likewise.
24465 (grub_gfxterm_init): Check reference counter.
24466 Use init_window.
24467 (destroy_window): New function.
24468 (grub_gfxterm_destroy_window): Likewise.
24469 (grub_gfxterm_fini): Check reference counter.
24470 Use destroy_window.
24471 (redraw_screen_rect): Restore viewport.
24472 Use 'render_target' and 'window'.
24473 Call 'repaint_callback'.
24474 (write_char): Use 'render_target'.
24475 (draw_cursor): Likewise.
24476 (scroll_up): Restore viewport.
24477 Use 'render_target' and 'window'.
24478 Call 'repaint_callback'.
24479 (grub_gfxterm_cls): Likewise.
24480 (grub_gfxterm_refresh): Use 'window'.
24481 (grub_gfxterm_set_repaint_callback): New function.
24482 (grub_gfxterm_background_image_cmd): Use 'window'.
24483 (grub_gfxterm_get_term): New function.
24484 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
24485
244862010-02-06 Colin D Bennett <colin@gibibit.com>
24487
24488 Bitmap scaling support.
24489
24490 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
24491 (bitmap_scale_mod_SOURCES): New variable.
24492 (bitmap_scale_mod_CFLAGS): Likewise.
24493 (bitmap_scale_mod_LDFLAGS): Likewise.
24494 * include/grub/bitmap_scale.h: New file.
24495 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
24496 (background_image_cmd_options): New variable.
24497 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
24498 (cmd): Rename and change type to ...
24499 (background_image_cmd_handle): ... this. All users updated.
24500 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
24501 * video/bitmap_scale.c: New file.
24502
245032010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24504
24505 SDL support.
24506
24507 * Makefile.in (LIBSDL): New variable.
24508 (enable_grub_emu_sdl): Likewise.
24509 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
24510 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
24511 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
24512 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
24513 * util/sdl.c: New file.
24514
245152010-02-06 Colin D Bennett <colin@gibibit.com>
245162010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24517
24518 Double buffering support.
24519
24520 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
24521 * include/grub/video.h: Update comment.
24522 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
24523 New type.
24524 (grub_video_fb_doublebuf_blit_init): New prototype.
24525 * term/gfxterm.c (scroll_up): Support double buffering.
24526 (grub_gfxterm_refresh): Likewise.
24527 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
24528 (grub_video_fb_doublebuf_blit_init): Likewise.
24529 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
24530 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
24531 'displayed_page', 'render_page' and 'update_screen'.
24532 (grub_video_vbe_fini): Free offscreen buffer.
24533 (doublebuf_pageflipping_commit): New function.
24534 (doublebuf_pageflipping_update_screen): Likewise.
24535 (doublebuf_pageflipping_init): Likewise.
24536 (double_buffering_init): Likewise.
24537 (grub_video_vbe_setup): Enable doublebuffering.
24538 (grub_video_vbe_swap_buffers): Implement.
24539 (grub_video_vbe_set_active_render_target): Handle double buffering.
24540 (grub_video_vbe_get_active_render_target): Likewise.
24541 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
24542 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
24543 (grub_video_vbe_enable_double_buffering): Likewise.
24544 (grub_video_vbe_swap_buffers): Use update_screen.
24545 (grub_video_set_mode): Use double buffering.
24546
245472010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24548
24549 * maintainance/gentrigtables.py: Remove.
24550 * lib/trig.c: Likewise.
24551
24552 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
24553
24554 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
24555 `trigtables.c'.
24556 (trigtables.c): New rule.
24557 (gentrigtables): Likewise.
24558 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
24559
245602010-02-06 Robert Millan <rmh.grub@aybabtu.com>
24561
24562 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
24563 integer constants.
24564
245652010-02-06 Colin D Bennet <colin@gibibit.com>
24566
24567 Trigonometry support.
24568
24569 * include/grub/trig.h: New file.
24570 * lib/trig.c: Likewise.
24571 * maintainance/gentrigtables.py: Likewise.
24572 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
24573 (trig_mod_SOURCES): New variable.
24574 (trig_mod_CFLAGS): Likewise.
24575 (trig_mod_LDFLAGS): Likewise.
24576
5562834e
VS
245772010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24578
24579 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
24580 disk devices.
24581
4f8528fc
VS
245822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
24583
24584 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
24585 error.
24586
2b4068e9
VS
245872010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24588
24589 * util/hostdisk.c (open_device): Don't use partition device when reading
24590 before the partition.
24591 (grub_util_biosdisk_read): Don't read from partition and before the
24592 partition in single operation.
24593 (grub_util_biosdisk_write): Don't write to partition and before the
24594 partition in single operation.
24595
399f6e4d
TL
245962010-02-03 Torsten Landschoff <torsten@debian.org>
24597
24598 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24599 last sectors.
24600
996649b0
VS
246012010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
24602
24603 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
24604 CDROM reads.
24605 (grub_biosdisk_write): Refuse to write to CDROM.
24606
3b205d4d
VS
246072010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24608
24609 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
24610
61e89d9d
VS
246112010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
24612
24613 * font/font.c (find_glyph): Check that bmp_idx is available before
24614 using it.
24615 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
24616 with (font == NULL).
24617
bf7fcba2
CS
246182010-01-28 Christian Schmitt <chris@ilovelinux.de>
24619
24620 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
24621
f45d2663
BC
246222010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
24623
24624 * include/grub/script_sh.h (sourcecode): Add const qualifier.
24625 * util/grub-script-check.c (getline): Fix empty lines case.
24626
ec1444e6
RM
246272010-01-28 Robert Millan <rmh.grub@aybabtu.com>
24628
24629 * Makefile.in (check): Exit with fail status when one of the tests
24630 fails.
24631 * tests/example_functional_test.c (example_test): Fix reversed assert.
24632 * tests/example_unit_test.c (example_test): Likewise.
24633
2e1cb9bb
CW
246342010-01-28 Colin Watson <cjwatson@ubuntu.com>
24635
24636 * util/grub.d/10_linux.in: This script does not use any of the
24637 contents of gettext.sh, only the external command `gettext', so stop
24638 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
24639 the same prefix as GRUB.)
24640 * util/grub.d/10_kfreebsd.in: Likewise.
24641
63533ab0
VS
246422010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24643
24644 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
24645 of the line.
24646
989e1f93
VS
246472010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24648
24649 * kern/disk.c (grub_disk_read): Fix offset computation when reading
24650 last sectors.
24651
e709ebe2
VS
246522010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
24653
24654 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
24655 having a 4KiB and not 32KiB buffer size.
24656
27dea7ed
RM
246572010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24658
24659 * util/hostfs.c: Include `<errno.h>'.
24660 (grub_hostfs_read): Handle errors from fseeko() and fread().
24661
67667b9c
RM
246622010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24663
24664 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
24665 loop when using read hooks on files whose size isn't sector-aligned.
24666
c294d9d8
RM
246672010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24668
24669 Remove unused parameter.
24670
24671 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
24672 (grub_iso9660_open): Remove initialization of `data->length'.
24673
af75a9f1
RM
246742010-01-27 Robert Millan <rmh.grub@aybabtu.com>
24675
24676 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
24677 memleak conditions.
24678
254e2ce5 246792010-01-27 Carles Pina i Estany <carles@pina.cat>
24680
24681 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
24682 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
24683
b510928c 246842010-01-26 Carles Pina i Estany <carles@pina.cat>
24685
24686 * util/bin2h.c (usage): Fix warning (space after backslash).
24687
aa2f9dd2 246882010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 24689
24690 * font/font.c: Include `grub/fontformat.h.
24691 Remove font file format constants.
24692 (grub_font_load): Use the new macros.
24693 * include/grub/fontformat.h: New file.
24694 * util/grub-mkfont.c: Include `grub/fontformat.c'.
24695 (write_font_pf2): Use the new macros.
24696
94e7e712
RM
246972010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24698
24699 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
24700 does.
24701
3973a59a
RM
247022010-01-26 Robert Millan <rmh.grub@aybabtu.com>
24703
24704 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
24705
24706 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
24707 (_start): Macroify `0x7F'.
24708
24709 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
24710 (make_install_device): Use "(pxe)" as fallback prefix when booting
24711 via PXE.
24712
42e0cba3
GS
247132010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
24714
24715 * configure.ac: Reset LIBS after check for libgcc symbols.
24716
847effd8
CW
247172010-01-25 Colin Watson <cjwatson@ubuntu.com>
24718
24719 * util/hostdisk.c (open_device): Add trailing newline to debug
24720 message.
24721
ea4a7e35
GS
247222010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
24723
24724 * configure.ac: Check for `limits.h'.
24725 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
24726
67951a53
RM
247272010-01-24 Robert Millan <rmh.grub@aybabtu.com>
24728
24729 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
24730 capitalize error strings.
24731
c273d4ce
ST
247322010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
24733
24734 * util/grub.d/10_hurd.in: Add a recovery mode.
24735
69be5b74
VS
247362010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
24737
24738 * configure.ac: Check for libgcc symbols with -nostdlib.
24739
fc9e5810
BC
247402010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
24741
24742 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
24743
4b358c0a
VS
247442010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24745
24746 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
24747 stack since heap may be unavailable at that point.
24748 (grub_ofconsole_gotoxy): Likewise.
24749
454fcd1c
VS
247502010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24751
24752 * configure.ac: Check for _restgpr_14_x.
24753 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
24754 and _savegpr_* prototypes.
24755
566863ca
RM
247562010-01-22 Robert Millan <rmh.grub@aybabtu.com>
24757
24758 Use generic grub_reboot() for i386-efi.
24759
24760 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
24761 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
24762 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
24763
bf86e59a
VS
247642010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
24765
24766 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
24767 presence of "prefix" variable as it breaks when normal.mod is
24768 embedded.
24769
d645e0f8
VS
247702010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24771
24772 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
24773 stack since heap is unavailable at that point.
24774
f9ab2e25
VS
247752010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24776
24777 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
24778 (grub_freebsd_bootinfo): Rewritten.
24779 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
24780
01fc7054
VS
247812010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
24782
24783 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
24784
caab4fd6
RM
247852010-01-21 Robert Millan <rmh.grub@aybabtu.com>
24786
24787 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
24788 domain now.
24789
67eb1427
FZ
247902010-01-20 Felix Zielcke <fzielcke@z-51.de>
24791
24792 * util/misc.c (make_system_path_relative_to_its_root): Change the work
24793 around for handling "/" to the correct fix. Fix a memory leak. Use
24794 xstrdup instead of strdup.
24795
a9ed4ff3
VS
247962010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24797
24798 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
24799
248002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
24801
24802 Optimise glyph lookup by Basic Multilingual Plane lookup array.
24803
24804 * font/font.c (struct grub_font): New member 'bmp_idx'.
24805 (font_init): Initialise 'bmp_idx'.
24806 (load_font_index): Fill 'bmp_idx'.
24807 (find_glyph): Make inline. Use bmp_idx for BMP characters.
24808
48209f4f
VS
248092010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24810
24811 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
24812 unnecessary calls.
24813
9f0a4bb7
VS
248142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24815
24816 Move context handling out of the kernel.
24817
24818 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24819 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24820 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24821 * conf/i386-efi.rmk: Likewise.
24822 * conf/i386-ieee1275.rmk: Likewise.
24823 * conf/i386-pc.rmk: Likewise.
24824 * conf/powerpc-ieee1275.rmk: Likewise.
24825 * conf/sparc64-ieee1275.rmk: Likewise.
24826 * conf/x86_64-efi.rmk: Likewise.
24827 * include/grub/env.h: Include grub/menu.h.
24828 (grub_env_var_type): Removed.
24829 (grub_env_var): Replaced field 'type' with 'global'.
24830 (grub_env_find): New prototype.
24831 (grub_env_context_open): Remove EXPORT_FUNC.
24832 (grub_env_context_close): Likewise.
24833 (grub_env_export): Likewise.
24834 (grub_env_set_data_slot): Removed.
24835 (grub_env_get_data_slot): Likewise.
24836 (grub_env_unset_data_slot): Likewise.
24837 (grub_env_unset_menu): New prototype.
24838 (grub_env_set_menu): Likewise.
24839 (grub_env_get_menu): Likewise.
24840 * include/grub/env_private.h: New file.
24841 * include/grub/normal.h (grub_context_init): New prototype.
24842 (grub_context_fini): Likewise.
24843 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24844 * normal/context.c (grub_cmd_export): ... to here.
24845 * kern/env.c: Include env_private.h.
24846 (HASHSZ): Moved to include/grub/env_private.h.
24847 (grub_env_context): Likewise.
24848 (grub_env_sorted_var): Likewise.
24849 (current_context): Renamed from this ...
24850 (grub_current_context): ...to this. 'static' removed. All users updated.
24851 (grub_env_find): Removed 'static'.
24852 (grub_env_context_open): Moved to normal/context.c.
24853 (grub_env_context_close): Likewise.
24854 (grub_env_export): Likewise.
24855 (mangle_data_slot_name): Removed.
24856 (grub_env_set_data_slot): Likewise.
24857 (grub_env_get_data_slot): Likewise.
24858 (grub_env_unset_data_slot): Likewise.
24859 * kern/main.c (grub_set_root_dev): Don't export root.
24860 It will be done later.
24861 (grub_main): Don't export prefix.
24862 It will be done later.
24863 * normal/context.c: New file.
24864 * normal/main.c (free_menu): Use grub_env_unset_menu.
24865 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24866 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24867 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24868 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24869
8dd35b8c
VS
248702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24871
24872 setpci support.
24873
24874 * commands/setpci.c: New file.
24875 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24876 (setpci_mod_SOURCES): New variable.
24877 (setpci_mod_CFLAGS): Likewise.
24878 (setpci_mod_LDFLAGS): Likewise.
24879
449193d5
VS
248802010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24881
24882 Byte-addressable PCI configuration space.
24883
24884 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24885 dword address.
24886 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24887 GRUB_PCI_REG_CACHELINE.
24888 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24889 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24890 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24891 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24892 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24893 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24894 grub_pci_make_address.
24895 (lock_rom_area): Likewise.
24896 * commands/lspci.c (grub_lspci_iter): Use macroses
24897 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24898 of grub_pci_make_address.
24899 * disk/ata.c (grub_ata_pciinit): Likewise.
24900 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24901 (GRUB_PCI_REG_VENDOR): Likewise.
24902 (GRUB_PCI_REG_DEVICE): Likewise.
24903 (GRUB_PCI_REG_COMMAND): Likewise.
24904 (GRUB_PCI_REG_STATUS): Likewise.
24905 (GRUB_PCI_REG_REVISION): Likewise.
24906 (GRUB_PCI_REG_CLASS): Likewise.
24907 (GRUB_PCI_REG_CACHELINE): Likewise.
24908 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24909 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24910 (GRUB_PCI_REG_BIST): Likewise.
24911 (GRUB_PCI_REG_ADDRESSES): Likewise.
24912 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24913 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24914 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24915 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24916 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24917 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24918 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24919 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24920 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24921 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24922 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24923 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24924 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24925 (GRUB_PCI_REG_MIN_GNT): Likewise.
24926 (GRUB_PCI_REG_MAX_LAT): Likewise.
24927 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24928 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24929 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 24930 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
24931 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24932 space.
24933
96d73208
RM
249342010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24935
24936 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24937 can be reliably determined to be supported.
24938
d4484482
RM
249392010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24940
24941 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24942 that VESA is supported.
24943 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24944 supported.
24945
00308ecf
VS
249462010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24947
24948 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24949
f66924a4
RM
249502010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24951
24952 * util/misc.c (make_system_path_relative_to_its_root): Work around
24953 special-casing of "/", as previous incarnation of this routine did.
24954
cbca0ada
VS
249552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24956
24957 Fix any-emu compilation.
24958
24959 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24960 * grub_bin2h_SOURCES: New variable.
24961
34a66d99
RM
249622010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24963
24964 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24965
94fabf58
RM
249662010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24967
24968 * util/grub.d/00_header.in: Fix handling of locale_dir.
24969
02cf98ca
VS
249702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24971
24972 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24973 as possible unifont location (Gentoo).
24974 Reported by: Alexander Brüning
24975
327dbcd7
VS
249762010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24977
24978 Don't try to generate lists for kernel.img.
24979
24980 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24981 (pkglib_MODULES): Remove kernel.img.
24982 (kernel_img_EXPORTS): Removed.
24983 (kernel_img_RELOCATABLE): New variable.
24984 * conf/x86_64-efi.rmk: Likewise.
24985 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24986
ca467290
VS
249872010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24988
24989 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24990 grub_xasprintf or grub_snprintf.
24991 (grub_vsprintf): Likewise.
24992 (grub_snprintf): New proto.
24993 (grub_vsnprintf): Likewise.
24994 (grub_xasprintf): Likewise.
24995 (grub_xvasprintf): Likewise.
24996 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24997 (grub_sprintf): Removed.
24998 (grub_vsnprintf): New function.
24999 (grub_snprintf): Likewise.
25000 (grub_xvasprintf): Likewise.
25001 (grub_xasprintf): Likewise.
25002 (grub_vsprintf): Renamed to ...
25003 (grub_vsnprintf_real): ...this. New argument max_len.
25004
aca655fd
BC
250052010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
25006
25007 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
25008 fix grub-script-check warning.
25009
7ee92c32
VS
250102010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25011
25012 * include/grub/font.h (grub_font_load): Fix prototype.
25013
f80927ca
VS
250142010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25015
25016 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
25017
119c50ea
VS
250182010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25019
25020 * include/grub/x86_64/at_keyboard.h: New file.
25021
47d5f3c1
VS
250222010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25023
25024 * loader/mips/linux.c: Include missing grub/i18n.h.
25025
55ff5266
RM
250262009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25027
25028 * normal/menu.c (notify_execution_failure): Clarify error message.
25029
c893cc87
RM
250302009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25031
25032 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
25033 return value (and revert all return statements). Update users.
25034
917dd370
CW
250352010-01-20 Dan Merillat <debian@dan.merillat.org>
25036
25037 * kern/device.c (grub_device_iterate): Allocate new part_ent
25038 structure based on sizeof (*p) rather than sizeof (p->next), to
25039 account for structure padding.
25040
25041 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
25042 disk is NULL, which might happen for LVM physical volumes with no
25043 LVM signature.
25044
d4a4ee57
RM
250452009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25046
25047 * loader/mips/linux.c (grub_cmd_initrd)
25048 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
25049
250502009-12-20 Robert Millan <rmh.grub@aybabtu.com>
25051
25052 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
25053 (grub_video_video_init, grub_video_bitmap_init)
25054 (grub_font_manager_init, grub_term_gfxterm_init)
25055 (grub_at_keyboard_init): New extern declarations.
25056 (grub_machine_init): Initialize gfxterm and at_keyboard.
25057
25058 * kern/main.c (grub_main): Revert grub_printf delay kludge.
25059
25060 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
25061 `gfxterm.mod' into core image.
25062
25063 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25064 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25065 (kernel_img_FORMAT): Copy to ...
25066
25067 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25068 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25069 (kernel_img_FORMAT): ... here, and ...
25070
25071 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
25072 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
25073 (kernel_img_FORMAT): ... here.
25074
25075 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
25076 and input (at_keyboard) terminals in kernel.
25077 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
25078
25079 (pkglib_MODULES): Remove `pci.mod'.
25080 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
25081 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
25082 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
25083 (at_keyboard_mod_LDFLAGS): Remove variables.
25084
250852010-01-11 Felix Zielcke <fzielcke@z-51.de>
25086
25087 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
25088
250892009-12-10 Robert Millan <rmh.grub@aybabtu.com>
25090
25091 * include/grub/mips/libgcc.h: Only export symbols for functions
25092 that libgcc provides.
25093
250942009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
25095
25096 MIPS support.
25097
25098 * bus/bonito.c: New file.
25099 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
25100 GRUB_PCI_NUM_DEVICES.
25101 * term/i386/pc/serial.c: Move to ...
25102 * term/serial.c: ... here. All users updated.
25103 * util/i386/pc/grub-mkimage.c: Move to ...
25104 * util/grub-mkrawimage.c: ... here. All users updated.
25105 * term/i386/pc/at_keyboard.c: Move to ...
25106 * term/at_keyboard.c: ... here. All users updated.
25107 * conf/mips-qemu-mips.rmk: New file.
25108 * conf/mips-yeeloong.rmk: Likewise.
25109 * conf/mips.rmk: Likewise.
25110 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
25111 mipsel-qemu-mips.
25112 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
25113 to port addresses.
25114 (grub_ata_pciinit): Support CS5536.
25115 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
25116 * font/font_cmd.c (loadfont_command): Open file before passing it to
25117 grub_font_load.
25118 (pseudo_file_read): New function.
25119 (pseudo_file_close): Likewise.
25120 (pseudo_fs): New structure.
25121 (load_font_module): New function.
25122 (GRUB_MOD_INIT(font_manager)): Load embedded font.
25123 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
25124 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
25125 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
25126 * include/grub/i386/at_keyboard.h: Split into ...
25127 * include/grub/at_keyboard.h: ... this ...
25128 * include/grub/i386/at_keyboard.h: ... and this.
25129 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
25130 New prototype.
25131 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
25132 updated.
25133 (grub_elf64_size): Likewise.
25134 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
25135 filename.
25136 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
25137 * include/grub/i386/coreboot/serial.h: Rewritten.
25138 * include/grub/i386/ieee1275/serial.h: Include
25139 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
25140 * include/grub/i386/pc/serial.h: Moved from here ...
25141 * include/grub/serial.h: ... to here. All users updated.
25142 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
25143 (GRUB_PCI_NUM_BUS): Likewise.
25144 (GRUB_PCI_NUM_DEVICES): Likewise.
25145 (grub_pci_device_map_range): Add missing volatile keyword.
25146 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
25147 * include/grub/mips/at_keyboard.h: New file.
25148 * include/grub/mips/cache.h: Likewise.
25149 * include/grub/mips/io.h: Likewise.
25150 * include/grub/mips/kernel.h: Likewise.
25151 * include/grub/mips/libgcc.h: Likewise.
25152 * include/grub/mips/pci.h: Likewise.
25153 * include/grub/mips/qemu-mips/boot.h: Likewise.
25154 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25155 * include/grub/mips/qemu-mips/loader.h: Likewise.
25156 * include/grub/mips/qemu-mips/memory.h: Likewise.
25157 * include/grub/mips/qemu-mips/serial.h: Likewise.
25158 * include/grub/mips/qemu-mips/time.h: Likewise.
25159 * include/grub/mips/relocator.h: Likewise.
25160 * include/grub/mips/time.h: Likewise.
25161 * include/grub/mips/types.h: Likewise.
25162 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
25163 * include/grub/mips/yeeloong/boot.h: Likewise.
25164 * include/grub/mips/yeeloong/kernel.h: Likewise.
25165 * include/grub/mips/yeeloong/loader.h: Likewise.
25166 * include/grub/mips/yeeloong/memory.h: Likewise.
25167 * include/grub/mips/yeeloong/pci.h: Likewise.
25168 * include/grub/mips/yeeloong/serial.h: Likewise.
25169 * include/grub/mips/yeeloong/time.h: Likewise.
25170 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
25171 * kern/elf.c (grub_elf32_size): New parameter. All users
25172 updated.
25173 (grub_elf64_size): Likewise.
25174 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
25175 Load modules before saying "Welcome to GRUB!".
25176 Call grub_refresh after saying "Welcome to GRUB!".
25177 * kern/mips/cache.S: New file.
25178 * kern/mips/cache_flush.S: Likewise.
25179 * kern/mips/dl.c: Likewise.
25180 * kern/mips/init.c: Likewise.
25181 * kern/mips/qemu-mips/init.c: Likewise.
25182 * kern/mips/startup.S: Likewise.
25183 * kern/mips/yeeloong/init.c: Likewise.
25184 * kern/term.c (grub_putcode): Handle NULL terminal.
25185 (grub_getcharwidth): Likewise.
25186 (grub_getkey): Likewise.
25187 (grub_checkkey): Likewise.
25188 (grub_getkeystatus): Likewise.
25189 (grub_getxy): Likewise.
25190 (grub_getwh): Likewise.
25191 (grub_gotoxy): Likewise.
25192 (grub_cls): Likewise.
25193 (grub_setcolorstate): Likewise.
25194 (grub_setcolor): Likewise.
25195 (grub_getcolor): Likewise.
25196 (grub_refresh): Likewise.
25197 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
25198 (write_jump): Add hatch nop.
25199 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
25200 * lib/mips/setjmp.S: New file.
25201 * loader/mips/linux.c: Likewise.
25202 * term/i386/pc/at_keyboard.c: Move from here ...
25203 * term/at_keyboard.c: ... to here.
25204 * term/i386/pc/serial.c: Moved from here ...
25205 * term/serial.c: ... to here. All users updated.
25206 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
25207 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
25208 (serial_translate_key_sequence): Avoid deadlock.
25209 (grub_serial_getkey): Handle backspace.
25210 (grub_serial_putchar): Fix newline handling.
25211 * util/i386/pc/grub-mkimage.c: Move from here ...
25212 * util/grub-mkrawimage.c: ... to here. All users updated.
25213 (generate_image): New parameters 'font_path' and 'format'.
25214 Support embedding font.
25215 Use grub_host_to_target* instead of grub_cpu_to_le*.
25216 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
25217 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
25218 (options): New option "--font".
25219 (usage): Likewise.
25220 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
25221 (main): Handle "--font".
25222 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
25223 (grub_virtual_screen_setup): Set bg_color_display.
25224 (redraw_screen_rect): Use bg_color_display instead of incorrect
25225 bg_color.
25226 (grub_gfxterm_cls): Likewise.
25227 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
25228 Support embedding config file.
25229 (add_segments): Likewise.
25230 (options): New option "--config".
25231 (main): Handle "--config".
25232 * video/sm712.c: New file.
25233
25c2b5b3
RM
252342010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25235
25236 Fix parallel builds.
25237
25238 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
25239 font.c depend on ascii.h).
25240
252412010-01-12 Carles Pina i Estany <carles@pina.cat>
25242
25243 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
25244
252452010-01-11 Carles Pina i Estany <carles@pina.cat>
25246
25247 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
25248 By default: disabled.
25249 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
25250 parameter.
25251
252522010-01-10 Carles Pina i Estany <carles@pina.cat>
25253
25254 * font/font.c: Update copyright years.
25255 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
25256
252572010-01-10 Carles Pina i Estany <carles@pina.cat>
25258
25259 * font/font.c: Include `ascii.h'.
25260 (ASCII_BITMAP_SIZE): New macro.
25261 (ascii_font_glyph): Define.
25262 (ascii_glyph_lookup): New function.
25263 (grub_font_get_string_width): Change comment. If glyph not found, use
25264 ascii_glyph_lookup.
25265 (grub_font_get_glyph_with_fallback): If glyph not available returns
25266 ascii_glyph_lookup.
25267 * util/grub-mkfont.c (file_formats): New enum.
25268 (options): Add `ascii-bitmaps' new option.
25269 (usage): Add `asii-bitmaps' new option.
25270 (write_font_ascii_bitmap): New function.
25271 (write_font): Rename to ...
25272 (write_font_p2): ... this. Remove print_glyphs call.
25273 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
25274 used. Call print_glyphs.
25275 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
25276
252772010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25278
25279 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
25280 (grub_bin2h_SOURCES): New variable.
25281 * util/bin2h.c: New file.
25282
915fc1b8
VS
252832010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
25284
25285 * include/multiboot.h: Resynced with spec.
25286 * include/multiboot2.h: Likewise.
25287 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
25288 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
25289
9444b678
RM
252902010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25291
25292 * include/grub/term.h (grub_term_register_input,
25293 grub_term_register_output): Check return of terminal init()
25294 routines, and abort if errors are raised.
25295
25296 * commands/terminal.c: Update copyright year.
25297
cba98e8d
RM
252982010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25299
25300 * commands/terminal.c (grub_cmd_terminal_input)
25301 (grub_cmd_terminal_output): Check return of terminal init()
25302 routines, and abort if errors are raised.
25303
6f7db5d6
VS
253042010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25305
25306 * include/grub/i386/bsd.h: Fix include pathes.
25307
262bff8d
VS
253082010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
25309
25310 Add missing *BSD copyright headers.
25311
25312 * include/grub/aout.h: Add BSD licence.
25313 * include/grub/i386/bsd.h: Parts under different licences moved to ...
25314 * include/grub/i386/freebsd_linker.h: ... here,
25315 * include/grub/i386/freebsd_reboot.h: ... here,
25316 * include/grub/i386/netbsd_bootinfo.h: ... here,
25317 * include/grub/i386/netbsd_reboot.h: ... here,
25318 * include/grub/i386/openbsd_bootarg.h: ... here,
25319 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
25320 licence to each file.
25321
b2cab848
RM
253222010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25323
25324 * acinclude.m4: Remove `nop' assembly instruction; it's not
25325 implemented by all architectures.
25326
2cb6be4b
RM
253272010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25328
25329 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
25330 ELILO. This is no longer necessary.
25331
a2eaee15
BC
253322010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
25333
25334 Added new tool, grub-scrit-check to verify grub.cfg syntax.
25335
25336 * util/grub-script-check.c: grub-script-check tool.
25337 * conf/common.rmk: Make rules for grub-script-check.
25338
88d17012
RM
253392010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25340
25341 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
25342 spotting it back in 2008. Shame on me for forgetting he did.
25343
25344 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
25345
8040619d
RM
253462010-01-18 Robert Millan <rmh.grub@aybabtu.com>
25347
25348 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
25349 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
25350 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
25351 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
25352 (GRUB_VIDEO_TYPE_EFI): Rename to ...
25353 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
25354
a0c2a0f6
RM
253552010-01-17 Robert Millan <rmh.grub@aybabtu.com>
25356
25357 * include/grub/test.h: Add license header.
25358 * tests/example_functional_test.c: Likewise.
25359 * tests/example_unit_test.c: Likewise.
25360 * tests/lib/functional_test.c: Likewise.
25361 * tests/lib/test.c: Likewise.
25362 * tests/lib/unit_test.c: Likewise.
25363
b0b13907
VS
253642010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
25365
25366 Use flag-based instead of hook-based video mode selection and "auto"
25367 keyword.
25368
25369 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
25370 (grub_video_set_mode): Changed prototype. All users updated.
25371 (grub_video_check_mode_flag): New inline function.
25372 * video/video.c (parse_modespec): New function.
25373 (grub_video_set_mode): Parse flags and keywords.
25374
ea379330 253752010-01-17 Carles Pina i Estany <carles@pina.cat>
25376
25377 * util/misc.c (grub_util_info): Fix the order of the parameters in a
25378 fprintf call.
25379
e15c215e
FZ
253802010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
25381
25382 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
25383
409ae1c9 253842010-01-16 Carles Pina i Estany <carles@pina.cat>
25385
25386 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
25387 string.
25388 * util/grub-emu.c (usage): Likewise.
25389 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
25390 * util/i386/efi/grub-mkimage.c (usage): Likewise.
25391 * util/i386/pc/grub-mkimage.c (usage): Likewise.
25392 * util/i386/pc/grub-setup.c (usage): Likewise.
25393
70a14d3d 253942010-01-16 Carles Pina i Estany <carles@pina.cat>
25395
25396 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
25397 the message.
25398 (grub_util_info): Likewise.
25399 (grub_util_error): Likewise.
25400 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
25401 and/or new lines in `grub_util_warna', `grub_util_info',
25402 `grub_util_error' calls.
25403 * util/getroot.c: Likewise.
25404 * util/grub-editenv.c: Likewise.
25405 * util/grub-emu.c: Likewise.
25406 * util/grub-fstest.c: Likewise.
25407 * util/grub-mkdevicemap.c: Likewise.
25408 * util/grub-mkfont.c: Likewise.
25409 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25410 * util/grub-mkrelpath.c: Likewise.
25411 * util/grub-pe2elf.c: Likewise.
25412 * util/grub-probe.c: Likewise.
25413 * util/hostdisk.c: Likewise.
25414 * util/i386/efi/grub-mkimage.c: Likewise.
25415 * util/i386/pc/grub-mkimage.c: Likewise.
25416 * util/i386/pc/grub-setup.c: Likewise.
25417 * util/ieee1275/ofpath.c: Likewise.
25418 * util/mkisofs/eltorito.c: Likewise.
25419 * util/mkisofs/rock.c: Likewise.
25420 * util/mkisofs/write.c: Likewise.
25421 * util/raid.c: Likewise.
25422 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
25423 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25424
a0b766fc
VS
254252010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25426
25427 Enable multiboot on non-pc.
25428
25429 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
25430 multiboot.mod and multiboot2.mod to ...
25431 * conf/i386.rmk (pkglib_MODULES): ... here.
25432 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
25433 Moved to ...
25434 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
25435 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
25436 Moved to ...
25437 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
25438 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
25439 Moved to ...
25440 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
25441 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
25442 Moved to ...
25443 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
25444 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
25445 relocator.mod.
25446 (ata_mod_SOURCES): Removed.
25447 (ata_mod_CFLAGS): Likewise.
25448 (ata_mod_LDFLAGS): Likewise.
25449 (relocator_mod_SOURCES): Removed.
25450 (relocator_mod_CFLAGS): Likewise.
25451 (relocator_mod_ASFLAGS): Likewise.
25452 (relocator_mod_LDFLAGS): Likewise.
25453 Include i386.mk.
25454 * include/grub/x86_64/multiboot.h: New file.
25455 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
25456 Terminate EFI.
25457
884ade56
VS
254582010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25459
25460 Video multiboot support.
25461
25462 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
25463 New prototype.
25464 * include/multiboot.h: Resynced with multiboot specification.
25465 * include/multiboot2.h: Likewise.
25466 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
25467 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
25468 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
25469 (HAS_VGA_TEXT): Likewise.
25470 (accepts_video): New variable.
25471 (grub_multiboot_set_accepts_video): New function.
25472 (grub_multiboot_get_mbi_size): Account for video structures.
25473 (set_video_mode): New function.
25474 (retrieve_video_parameters): Likewise.
25475 (grub_multiboot_make_mbi): Fill video fields.
25476
0d90e8a6
VS
254772010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
25478
25479 Video driver ids.
25480
25481 * include/grub/video.h (grub_video_driver_id): New type.
25482 (grub_video_adapter): New member 'id'. All users updated.
25483 (grub_video_get_driver_id): New proto.
25484 * video/video.c (grub_video_get_driver_id): New function.
25485
5c71db1b 254862010-01-14 Carles Pina i Estany <carles@pina.cat>
25487
25488 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
25489 `var=val'.
25490
cca15b52 254912010-01-14 Carles Pina i Estany <carles@pina.cat>
25492
25493 * normal/cmdline.c (print_completion): Gettextizze.
25494
c586fbb2 254952001-01-14 Carles Pina i Estany <carles@pina.cat>
25496
25497 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
25498
ba2f6848 254992010-01-14 Carles Pina i Estany <carles@pina.cat>
25500
25501 * gettext/gettext.c (grub_gettext_translate): Push and pop
25502 grub_errno.
25503 (grub_gettext_delete_list): Change comment style.
25504 * kern/err.c (grub_error): Gettextizze.
25505 (grub_fatal): Gettextizze.
25506
0a46429a
RM
255072010-01-14 Robert Millan <rmh.grub@aybabtu.com>
25508
25509 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
25510 (grub_linux16_real_boot): ... this.
25511 * kern/i386/loader.S: Likewise.
25512 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
25513 (grub_linux16_boot): New function. Switches to text mode and calls
25514 grub_linux16_real_boot().
25515
25516 * loader/i386/bsd.c: Include `<grub/video.h>'.
25517 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
25518 text mode before calling grub_unix_real_boot().
25519
25520 * loader/i386/multiboot.c: Include `<grub/video.h>'.
25521 (grub_multiboot_boot): Switch to text mode before calling
25522 grub_relocator32_boot().
25523
25524 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
25525 (grub_chainloader_boot): Switch to text mode before calling
25526 grub_chainloader_real_boot().
25527
d6f93a66
RM
255282010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
255292010-01-05 Colin Watson <cjwatson@ubuntu.com>
25530
25531 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
25532 non-empty value.
25533
255342010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
255352010-01-05 Colin Watson <cjwatson@ubuntu.com>
25536
25537 * util/grub.d/00_header.in: Define a "savedefault" function for use
25538 in menu entries.
25539 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
25540
255412010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
255422010-01-05 Colin Watson <cjwatson@ubuntu.com>
25543
25544 * util/grub-mkconfig_lib.in (save_default_entry): Only set
25545 saved_entry if boot_once is unset.
25546 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
25547 previous saved entry (i.e. grub-reboot).
25548
255492009-12-08 Colin Watson <cjwatson@ubuntu.com>
25550
25551 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
25552
255532009-12-08 Colin Watson <cjwatson@ubuntu.com>
25554
25555 * util/grub.d/00_header.in: Use `set var=val' rather than plain
25556 `var=val'.
25557 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
25558
255592009-12-08 Colin Watson <cjwatson@ubuntu.com>
25560
25561 * util/grub-reboot.in: Fix --version output.
25562 * util/grub-set-default.in: Likewise.
25563
255642009-12-08 Colin Watson <cjwatson@ubuntu.com>
25565
25566 * util/grub.d/00_header.in: Silently ignore zero-sized environment
25567 blocks.
25568
255692009-12-08 Colin Watson <cjwatson@ubuntu.com>
25570
25571 * util/grub.d/00_header.in: Quote the value assigned to `default',
25572 in case it contains spaces.
25573
255742009-12-08 Colin Watson <cjwatson@ubuntu.com>
25575
25576 * util/grub.d/30_os-prober.in: Fix merge error that moved a
25577 `save_default_entry' call from the macosx case to the linux case.
25578
255792009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
255802009-10-25 Colin Watson <cjwatson@ubuntu.com>
25581
25582 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
25583 in `chosen' environment variable.
25584 * normal/menu_text.c (get_entry_number): Check if the variable
25585 matches the title of a menu entry.
25586 (run_menu): Pass menu to get_entry_number.
25587
25588 * util/grub-reboot.in: New file.
25589 * util/grub-set-default.in: New file.
25590 * conf/common.rmk (grub-reboot): New utility.
25591 (grub-set-default): New utility.
25592
25593 * util/grub-mkconfig_lib.in (save_default_entry): New function.
25594 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
25595 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
25596 move it to `saved_entry' for the next boot. Load environment on
25597 initialisation.
25598 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
25599 * util/grub.d/10_hurd.in: Likewise.
25600 * util/grub.d/10_linux.in (linux_entry): Likewise.
25601 * util/grub.d/10_windows.in: Likewise.
25602 * util/grub.d/30_os-prober.in: Likewise.
25603
25604 * util/grub-install.in: Create environment block.
25605 * util/i386/efi/grub-install.in: Likewise.
25606 * util/ieee1275/grub-install.in: Likewise.
25607 * util/sparc64/ieee1275/grub-install.in: Likewise.
25608
0934d184
BC
256092010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
25610
25611 Unit testing framework for GRUB.
25612
25613 * Makefile.in: Test framework build rules for 'make check'.
25614 * conf/tests.rmk: Build rules for individual tests and framework.
25615
25616 * include/grub/test.h: Header file for whitebox tests.
25617 * tests/lib/functional_test.c: Framework support for whitebox
25618 functional tests.
25619 * tests/lib/test.c: Common whitebox testing code for unit and
25620 functional tests.
25621 * tests/lib/unit_test.c: Framework support for whitebox unit
25622 tests.
25623
25624 * tests/util/grub-shell-tester.in: Support utility for grub-script
25625 tests.
25626 * tests/util/grub-shell.in: Utility to execute grub-script
25627 commands in a Qemu instance.
25628
25629 * tests/example_functional_test.c: Example whitebox functional
25630 test.
25631 * tests/example_grub_script_test.in: Example grub-script test.
25632 * tests/example_scripted_test.in: Example scripted test.
25633 * tests/example_unit_test.c: Example whitebox unit test.
25634
9c4ffeeb
VS
256352010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
25636
25637 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
25638 Add loader/i386/multiboot_mbi.c.
25639 (multiboot2_mod_SOURCES): Likewise.
25640 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
25641 (multiboot2_mod_SOURCES): Likewise.
25642 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
25643 (grub_multiboot_make_mbi): Likewise.
25644 (grub_multiboot_free_mbi): Likewise.
25645 (grub_multiboot_init_mbi): Likewise.
25646 (grub_multiboot_add_module): Likewise.
25647 (grub_multiboot_set_bootdev): Likewise.
25648 * loader/i386/multiboot.c (mbi): Removed.
25649 (mbi_dest): Likewise.
25650 (alloc_mbi): New variable.
25651 (grub_multiboot_payload_size): Removed. All users updated.
25652 (grub_multiboot_pure_size): New variable.
25653 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
25654 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
25655 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
25656 (grub_fill_multiboot_mmap): Likewise.
25657 (grub_multiboot_get_bootdev): Likewise.
25658 (grub_multiboot): Use multiboot_mbi functions.
25659 * loader/i386/multiboot_mbi.c: New file.
25660
17383dfe
VS
256612010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25662
25663 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
25664 it would result in module crash.
25665
c1f28820
VS
256662010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
25667
25668 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
25669 (grub_ofconsole_getwh): Split to ...
25670 (grub_ofconsole_getwh): ... this.
25671 (grub_ofconsole_dimensions): ...and this.
25672 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
25673
58655a16
RM
256742010-01-13 Robert Millan <rmh.grub@aybabtu.com>
25675
25676 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
25677
10891398
VS
256782010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25679
25680 * loader/i386/pc/multiboot2.c: Removed stalled file.
25681
0b8a223c
VS
256822010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
25683
25684 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
25685 Reported by: Grégoire Sutre
25686
92ab12b0
RM
256872010-01-11 Robert Millan <rmh.grub@aybabtu.com>
25688
25689 * util/misc.c (canonicalize_file_name): New function.
25690 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
25691 instead of realpath().
25692
a788afb6
CW
256932010-01-11 Colin Watson <cjwatson@ubuntu.com>
25694
25695 * util/grub-install.in (usage): Clarify meaning of --root-directory,
25696 and make it clearer that it's optional. Based on confusion
25697 witnessed on IRC.
25698
ffa8e3d2
VS
256992010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25700
25701 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
25702 in premature implicit newline.
25703
e9060a9d
VS
257042010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
25705
25706 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
25707 which resulted in garbled command line at the end of screen.
25708
f0d0c0b7
RM
257092010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25710
25711 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
25712 initialization with similar approach as with other Linux loaders.
25713
0e60bae7
RM
257142010-01-10 Robert Millan <rmh.grub@aybabtu.com>
25715
25716 Fix i386-ieee1275 build.
25717
25718 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
25719 and grub_term_height() for video_{width,height} initialization.
25720
257212010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
25722
25723 Fix grub-emu build.
25724
25725 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
25726
cdb3f378
RM
257272010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
257282010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25729
25730 Support for multiple terminals.
25731
25732 * Makefile.in (pkglib_DATA): terminal.lst.
25733 (terminal.lst): New target.
25734 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
25735 (GRUB_MOD_INIT(handler)): Likewise.
25736 (GRUB_MOD_FINI(handler)): Likewise.
25737 * commands/help.c (grub_cmd_help): Handle multiple terminals.
25738 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
25739 * commands/sleep.c (do_print): Use grub_term_restore_pos.
25740 (grub_cmd_sleep): Use grub_term_save_pos.
25741 * commands/terminal.c: New file.
25742 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
25743 commands/terminal.c and lib/charset.c.
25744 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
25745 (pkglib_MODULES): Add terminal.mod.
25746 (terminal_mod_SOURCES): New variable.
25747 (terminal_mod_CFLAGS): Likewise.
25748 (terminal_mod_LDFLAGS): Likewise.
25749 * genhandlerlist.sh: Don't handle terminals.
25750 * genmk.rb: Generate terminal-*.lst.
25751 * genterminallist.sh: New file.
25752 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
25753 (grub_is_valid_utf8): Likewise.
25754 (grub_utf8_to_ucs4_alloc): Likewise.
25755 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
25756 (grub_menu_register_viewer): Changed argument.
25757 (grub_menu_try_text): New proto.
25758 (grub_gfxmenu_try_hook): New declaration.
25759 * include/grub/normal.h (grub_normal_exit_level): New declaration.
25760 (grub_menu_init_page): Additional argument term.
25761 (grub_normal_init_page): Likewise.
25762 (grub_cmdline_get): Arguments simplified.
25763 (grub_utf8_to_ucs4_alloc): Removed.
25764 (grub_print_ucs4): Additional argument term.
25765 (grub_getstringwidth): Likewise.
25766 (grub_print_message_indented): Likewise.
25767 (grub_menu_text_register_instances): New proto.
25768 (grub_show_menu): Likewise.
25769 (read_terminal_list): Likewise.
25770 (grub_set_more): Likewise.
25771 * include/grub/parser.h: Include handler.h.
25772 * include/grub/reader.h: Rewritten.
25773 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
25774 (GRUB_TERM_WIDTH): Changed to function.
25775 (GRUB_TERM_HEIGHT): Likewise.
25776 (GRUB_TERM_BORDER_WIDTH): Likewise.
25777 (GRUB_TERM_BORDER_HEIGHT): Likewise.
25778 (GRUB_TERM_NUM_ENTRIES): Likewise.
25779 (GRUB_TERM_ENTRY_WIDTH): Likewise.
25780 (GRUB_TERM_CURSOR_X): Likewise.
25781 (grub_term_input_class): Likewise.
25782 (grub_term_output_class): Likewise.
25783 (grub_term_outputs_disabled): New declaration.
25784 (grub_term_inputs_disabled): Likewise.
25785 (grub_term_outputs): Likewise.
25786 (grub_term_inputs): Likewise.
25787 (grub_term_register_input): Rewritten.
25788 (grub_term_register_output): Likewise.
25789 (grub_term_unregister_input): Likewise.
25790 (grub_term_unregister_output): Likewise.
25791 (FOR_ACTIVE_TERM_INPUTS): New macro.
25792 (FOR_DISABLED_TERM_INPUTS): Likewise.
25793 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
25794 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
25795 * include/grub/terminfo.h: Add oterm argument to all protypes.
25796 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
25797 Use grub_rescue_run.
25798 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
25799 All users updated.
25800 * kern/reader.c: Removed. All users updated.
25801 * kern/rescue_reader.c (grub_rescue_init): Removed.
25802 (grub_rescue_reader): Likewise.
25803 (grub_register_rescue_reader): Likewise.
25804 (grub_rescue_run): New function based on kern/reader.c.
25805 * kern/term.c: Adapted for multiterm.
25806 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
25807 (grub_is_valid_utf8): Likewise.
25808 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
25809 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
25810 right terminal.
25811 * loader/i386/linux.c (grub_linux_boot): Likewise.
25812 * normal/auth.c (grub_username_get): New function.
25813 (grub_auth_check_authentication): Use grub_username_get.
25814 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25815 * normal/color.c: Adapt for multiterm.
25816 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25817 (grub_normal_init_page): Additional argument term.
25818 (read_lists): Call read_terminal_lists.
25819 (grub_enter_normal_mode): Call grub_cmdline_run.
25820 Handle grub_normal_exit_level.
25821 (grub_cmd_normal): Make reentrant.
25822 (grub_cmd_normal_exit): New function.
25823 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25824 * normal/menu.c: Adapt for multiterm.
25825 * normal/menu_entry.c: Likewise.
25826 * normal/menu_text.c: Likewise.
25827 * normal/menu_viewer.c: Removed. All users updated.
25828 * normal/term.c: New file.
25829 * util/console.c: Change order of includes to workaround a bug in
25830 ncurses headers.
25831 * term/terminfo.c: New argument oterm on all exported functions.
25832 All users updated.
25833 * util/grub-editenv.c (grub_term_input_class): Removed.
25834 (grub_term_output_class): Likewise.
25835
1a064917
RM
258362010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25837
25838 Make loader output a bit more user-friendly.
25839
25840 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25841 is being loaded. Likewise for the Hurd.
25842
25843 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25844 that kernel of FreeBSD ${version} is being loaded.
25845
25846 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25847 grub_dprintf().
25848 (grub_cmd_initrd): Likewise.
25849 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25850 that Linux ${version} is being loaded. Likewise for initrd.
25851
5ce0a83a 258522010-01-09 Carles Pina i Estany <carles@pina.cat>
25853
25854 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25855
809bbfeb 258562010-01-08 Carles Pina i Estany <carles@pina.cat>
25857
25858 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25859 (GRUB_MOD_INIT): Gettextizze.
25860 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25861 (GRUB_MOD_INIT): Gettextizze.
25862 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25863 (grub_cmd_linux): Capitalise Linux.
25864 (GRUB_MOD_INIT): Gettextizze.
25865 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25866 (grub_cmd_linux): Capitalise Linux.
25867 (GRUB_MOD_INIT): Gettextizze.
25868 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25869 (grub_cmd_linux): Capitalise Linux.
25870 (GRUB_MOD_INIT): Gettextizze.
25871 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25872 (GRUB_MOD_INIT): Gettextizze.
25873 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25874 (grub_cmd_linux): Capitalise Linux.
25875 (GRUB_MOD_INIT): Gettextizze.
25876 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25877 (grub_cpu_xnu_init): Gettextizze.
25878 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25879 (GRUB_MOD_INIT): Gettextizze.
25880 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25881 (GRUB_MOD_INIT): Gettextizze.
25882 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25883 (grub_linux_load64): Capitalise Linux.
25884 (GRUB_MOD_INIT): Gettextizze.
25885 * loader/xnu.c: Include `<grub/i18n.h>'.
25886 (GRUB_MOD_INIT): Gettextizze.
25887 * po/POTFILES: Add `loader/efi/appleloader.c',
25888 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25889 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25890 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25891 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25892 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25893 and `loader/xnu.c'.
25894
b394b2ca
RM
258952010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25896
25897 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25898
258992010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
25900
25901 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25902 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25903 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25904
bc8b32b3
RM
259052010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25906
25907 Reset Multiboot 2 support. New loader implements the draft in
25908 /branches/multiboot2 and shares as much code as possible with the
25909 production Multiboot 1 implementation.
25910
25911 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25912 * loader/multiboot2.c: Likewise.
25913 * loader/i386/multiboot_helper.S: Likewise.
25914 * include/multiboot2.h: Replace with latest version from the draft
25915 in /branches/multiboot2.
25916
25917 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25918 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25919 and `loader/multiboot2.c'.
25920 (pkglib_MODULES): Add `multiboot2.mod'.
25921 (multiboot2_mod_SOURCES): New variable.
25922 (multiboot2_mod_LDFLAGS): Likewise.
25923 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25924
25925 * conf/i386-pc.rmk: Likewise.
25926
25927 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25928 (multiboot_mod_SOURCES): Remove variable.
25929 (multiboot_mod_LDFLAGS): Likewise.
25930 (multiboot_mod_CFLAGS): Likewise.
25931
25932 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25933 `<multiboot2.h>' instead of `<multiboot.h>'.
25934 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25935 (MULTIBOOT_HEADER_MAGIC): New macros.
25936
25937 * loader/multiboot_loader.c (module_version_status): Remove variable.
25938 (find_multi_boot2_header): Remove function.
25939 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25940 logic. Always check for the Multiboot version we're compiling for.
25941 (grub_cmd_module_loader): Likewise.
25942 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25943 command instead of `multiboot'.
25944
5d2c52b8
RM
259452010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25946
25947 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25948 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25949 all users.
25950
53108d92
RM
259512010-01-07 Robert Millan <rmh.grub@aybabtu.com>
259522010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25953
25954 Fix breakage introduced with previous commit.
25955
25956 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25957 commands.
25958 * normal/handler.c (read_handler_list): Revert part of previous commit
25959 affecting this file.
25960 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25961 (grub_normal_execute): ... here.
25962
e2e936b2
RM
259632010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25964
25965 Merge prefix-redefinition-fix branch.
25966
25967 * normal/autofs.c (read_fs_list): Make function capable of being
25968 run multiple times, gracefuly replacing the previous data
25969 structures.
25970 * normal/dyncmd.c (read_command_list): Likewise.
25971 * normal/handler.c (read_handler_list): Likewise.
25972 * normal/main.c (read_lists): New function. Calls all the
25973 list reading functions.
25974 (grub_normal_execute): Use read_lists() instead of calling all
25975 list reading functions explicitly. Register read_lists() as a
25976 variable hook attached to ${prefix}.
25977
607a3701
VS
259782010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25979
25980 Merge crypto branch.
25981
25982 * Makefile.in (pkglib_DATA): Add crypto.lst.
25983 (crypto.lst): New target.
25984 * commands/hashsum.c: New file.
25985 * commands/password.c (check_password): Use grub_crypto_memcmp.
25986 * commands/password_pbkdf2.c: New file.
25987 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25988 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25989 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25990 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25991 -I$(srcdir)/lib/libgcrypt_wrap.
25992 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25993 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25994 password_pbkdf2.mod.
25995 (crypto_mod_SOURCES): New variable.
25996 (crypto_mod_CFLAGS): Likewise.
25997 (crypto_mod_LDFLAGS): Likewise.
25998 (hashsum_mod_SOURCES): New variable.
25999 (hashsum_mod_CFLAGS): Likewise.
26000 (hashsum_mod_LDFLAGS): Likewise.
26001 (pbkdf2_mod_SOURCES): New variable.
26002 (pbkdf2_mod_CFLAGS): Likewise.
26003 (pbkdf2_mod_LDFLAGS): Likewise.
26004 (password_pbkdf2_mod_SOURCES): New variable.
26005 (password_pbkdf2_mod_CFLAGS): Likewise.
26006 (password_pbkdf2_mod_LDFLAGS): Likewise.
26007 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
26008 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
26009 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
26010 Include conf/gcry.rmk.
26011 * include/grub/auth.h: Rewritten.
26012 * include/grub/crypto.h: New file.
26013 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
26014 * include/grub/normal.h (read_crypto_list): New prototype.
26015 * lib/crypto.c: New file.
26016 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26017 * lib/pbkdf2.c: Likewise.
26018 * normal/auth.c (grub_auth_strcmp): Removed.
26019 (grub_iswordseparator): Likewise.
26020 (grub_auth_strword): Likewise.
26021 (is_authenticated): Use grub_strword.
26022 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
26023 and grub_strword. Pass entered password to authentication callback.
26024 * normal/crypto.c: New file.
26025 * normal/main.c: Call read_crypto_list.
26026 * util/grub-mkpasswd-pbkdf2.c: New file.
26027 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
26028
42841caa
VS
260292010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
26030
26031 Fix descent and ascent calculation.
26032
26033 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
26034 (options): New option "asce".
26035 (usage): Likewise.
26036 (add_char): Ignore invalid glyphs for descent calculation.
26037 Calculate ascent from actual content.
26038 (print_glyphs): Use 'asce'.
26039 (write_font): Likewise. Allow ascent override.
26040 (main): Handle "asce" option.
26041
e7730de7 260422010-01-06 Carles Pina i Estany <carles@pina.cat>
26043
26044 * kern/err.c: Include `<grub/i18n.h>'.
26045 (grub_print_error): Add full stop. Gettextizze.
26046 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
26047 (grub_bsd_load_elf): Capitalise ELF.
26048 (grub_cmd_freebsd_loadenv): Add `s' in error string.
26049 (grub_cmd_freebsd_module): Likewise.
26050 (grub_cmd_freebsd_module_elf): Likewise.
26051 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
26052
40e3a41f 260532010-01-06 Carles Pina i Estany <carles@pina.cat>
26054
26055 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
26056 * commands/search_file.c (HELP_MESSAGE): New macro.
26057 * commands/search_label.c (HELP_MESSAGE): Likewise.
26058 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
26059 * po/POTFILES: Add `commands/search_file.c',
26060 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
26061 `commands/search.c'.
26062
83507e68
RM
260632010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26064
26065 * config.rpath: Update from Gnulib.
26066
465c787b
YB
260672010-01-05 Yves Blusseau <blusseau@zetam.org>
26068
26069 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
26070
6581dd3a
YB
260712010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
26072
26073 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
26074
3bff18c5
CW
260752010-01-05 Colin Watson <cjwatson@ubuntu.com>
26076
26077 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
26078 arguments to fread so that we get a return value in bytes, rather
26079 than something that will normally be rounded down to 0.
26080 Adjust error handling to avoid producing garbage when size_t is not
26081 the same size as long long.
26082
a1368118
CW
260832010-01-05 Colin Watson <cjwatson@ubuntu.com>
26084
26085 * util/mkisofs/write.c (padblock_write): Check return value of
26086 fread.
26087
7c302978
RM
260882010-01-05 Robert Millan <rmh.grub@aybabtu.com>
26089
26090 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
26091 floppy images now.
26092
26093 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
26094
e33ace06
RM
260952010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26096
26097 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
26098 instead of manual alignment.
26099 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
26100 verbose). Avoid attempts to read past end of the device
26101 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
26102 but GRUB_DISK_CACHE_SIZE may exceed that).
26103
4b856776
RM
261042010-01-04 Robert Millan <rmh.grub@aybabtu.com>
26105
26106 * commands/crc.c (grub_cmd_crc): Abort on read errors.
26107 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
26108 it to upper layer.
26109
52c2d97f
VS
261102010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26111
26112 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
26113 New constant.
26114 (grub_efi_piwg_device_path): New structure
26115 (grub_efi_piwg_device_path_t): New type.
26116 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
26117 (devpath_1): Transform to a structure. All users updated.
26118 (devpath_2): Likewise.
26119 (devpath_3): Likewise.
26120 (devpath_4): Likewise.
26121 (devpath_5): Likewise.
26122
98ff6a54
VS
261232010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
26124
26125 * loader/efi/appleloader.c: Restored. Update all users.
26126
3a73dcb6
RM
261272010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26128
26129 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
26130
26131 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
26132 (struct boot_blocklist): Move from here ...
26133 * include/grub/i386/pc/boot.h [ASM_FILE]
26134 (struct grub_boot_blocklist): ... to here. Update all users.
26135 (setup): Only initialize `start' member of `first_block'
26136 structure. Add assert() calls to verify the other members.
26137
26138 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
26139 (generate_image): Fix broken blocklist length initialization.
26140 Add assert() call to verify blocklist `segment' field.
26141
ab0eeb0c
RM
261422010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26143
26144 * loader/efi/appleloader.c: Remove. Update all users.
26145
58bc8bd5
RM
261462010-01-03 Robert Millan <rmh.grub@aybabtu.com>
26147
26148 * boot/i386/pc/boot.S: Update copyright year.
26149 * boot/i386/pc/cdboot.S: Likewise.
26150 * boot/i386/pc/diskboot.S: Likewise.
26151 * boot/i386/pc/lnxboot.S: Likewise.
26152 * boot/i386/pc/pxeboot.S: Likewise.
26153 * bus/pci.c: Likewise.
26154 * commands/cmp.c: Likewise.
26155 * commands/help.c: Likewise.
26156 * commands/hexdump.c: Likewise.
26157 * commands/i386/pc/halt.c: Likewise.
26158 * commands/i386/pc/play.c: Likewise.
26159 * commands/i386/pc/vbeinfo.c: Likewise.
26160 * commands/ls.c: Likewise.
26161 * commands/test.c: Likewise.
26162 * disk/dmraid_nvidia.c: Likewise.
26163 * disk/i386/pc/biosdisk.c: Likewise.
26164 * disk/ieee1275/nand.c: Likewise.
26165 * disk/ieee1275/ofdisk.c: Likewise.
26166 * disk/lvm.c: Likewise.
26167 * disk/raid.c: Likewise.
26168 * disk/raid6_recover.c: Likewise.
26169 * disk/scsi.c: Likewise.
26170 * fs/affs.c: Likewise.
26171 * fs/cpio.c: Likewise.
26172 * fs/ext2.c: Likewise.
26173 * fs/hfs.c: Likewise.
26174 * fs/iso9660.c: Likewise.
26175 * fs/ntfs.c: Likewise.
26176 * fs/sfs.c: Likewise.
26177 * fs/udf.c: Likewise.
26178 * fs/ufs.c: Likewise.
26179 * fs/xfs.c: Likewise.
26180 * gencmdlist.sh: Likewise.
26181 * genmk.rb: Likewise.
26182 * include/grub/disk.h: Likewise.
26183 * include/grub/efi/api.h: Likewise.
26184 * include/grub/efi/efi.h: Likewise.
26185 * include/grub/efi/pe32.h: Likewise.
26186 * include/grub/elf.h: Likewise.
26187 * include/grub/fs.h: Likewise.
26188 * include/grub/i386/at_keyboard.h: Likewise.
26189 * include/grub/i386/pc/memory.h: Likewise.
26190 * include/grub/i386/pc/vbe.h: Likewise.
26191 * include/grub/i386/pci.h: Likewise.
26192 * include/grub/i386/tsc.h: Likewise.
26193 * include/grub/ieee1275/ieee1275.h: Likewise.
26194 * include/grub/ntfs.h: Likewise.
26195 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26196 * include/grub/sparc64/libgcc.h: Likewise.
26197 * include/grub/symbol.h: Likewise.
26198 * include/grub/types.h: Likewise.
26199 * include/multiboot2.h: Likewise.
26200 * io/gzio.c: Likewise.
26201 * kern/device.c: Likewise.
26202 * kern/disk.c: Likewise.
26203 * kern/efi/efi.c: Likewise.
26204 * kern/efi/mm.c: Likewise.
26205 * kern/elf.c: Likewise.
26206 * kern/file.c: Likewise.
26207 * kern/i386/dl.c: Likewise.
26208 * kern/i386/pc/init.c: Likewise.
26209 * kern/i386/pc/startup.S: Likewise.
26210 * kern/ieee1275/ieee1275.c: Likewise.
26211 * kern/ieee1275/init.c: Likewise.
26212 * kern/main.c: Likewise.
26213 * kern/mm.c: Likewise.
26214 * kern/powerpc/dl.c: Likewise.
26215 * kern/sparc64/dl.c: Likewise.
26216 * kern/x86_64/dl.c: Likewise.
26217 * lib/hexdump.c: Likewise.
26218 * loader/efi/appleloader.c: Likewise.
26219 * loader/i386/ieee1275/linux.c: Likewise.
26220 * loader/i386/pc/chainloader.c: Likewise.
26221 * loader/i386/pc/linux.c: Likewise.
26222 * loader/i386/pc/multiboot2.c: Likewise.
26223 * loader/ieee1275/multiboot2.c: Likewise.
26224 * loader/multiboot2.c: Likewise.
26225 * loader/multiboot_loader.c: Likewise.
26226 * loader/powerpc/ieee1275/linux.c: Likewise.
26227 * normal/completion.c: Likewise.
26228 * normal/menu_entry.c: Likewise.
26229 * partmap/apple.c: Likewise.
26230 * util/grub.d/10_hurd.in: Likewise.
26231 * util/hostfs.c: Likewise.
26232 * video/readers/png.c: Likewise.
26233
e2d70b5c
CW
262342010-01-03 Colin Watson <cjwatson@ubuntu.com>
26235
26236 * include/grub/misc.h (GNUC_PREREQ): New macro.
26237 (ATTRIBUTE_ERROR): New macro.
26238 * include/grub/list.h (grub_bad_type_cast_real): Use
26239 ATTRIBUTE_ERROR.
26240
a173283f 262412010-01-03 Carles Pina i Estany <carles@pina.cat>
26242
26243 * normal/menu_text.c (print_message): Change messages.
26244
7fa7ff74 262452010-01-03 Carles Pina i Estany <carles@pina.cat>
26246
26247 * normal/menu_entry.c (store_completion): Gettextizze.
26248
136d24f6 262492010-01-03 Carles Pina i Estany <carles@pina.cat>
26250
26251 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
26252
f936862e 262532010-01-03 Carles Pina i Estany <carles@pina.cat>
26254
26255 * po/POTFILES: Sort correctly.
26256
29c44ad1 262572010-01-03 Carles Pina i Estany <carles@pina.cat>
26258
26259 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
26260 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
26261 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
26262 full stop.
26263 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
26264 summary. Gettextizze the strings.
26265 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
26266 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
26267 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
26268 full stop.
26269 (GRUB_MOD_INIT): Remove command name from summary.
26270 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
26271 summary.
26272 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
26273 * term/i386/pc/serial.c (options): Add full stops.
26274 (GRUB_MOD_INIT): Remove command name from the summary.
26275
77a79592 262762010-01-03 Carles Pina i Estany <carles@pina.cat>
26277
26278 * commands/acpi.c: Gettextizze help strings and/or options. Include
26279 `grub/i18n.h' if needed.
26280 * commands/blocklist.c: Likewise.
26281 * commands/boot.c: Likewise.
26282 * commands/cat.c: Likewise.
26283 * commands/cmp.c: Likewise.
26284 * commands/configfile.c: Likewise.
26285 * commands/crc.c: Likewise.
26286 * commands/date.c: Likewise.
26287 * commands/echo.c: Likewise.
26288 * commands/efi/fixvideo.c: Likewise.
26289 * commands/efi/loadbios.c: Likewise.
26290 * commands/gptsync.c: Likewise.
26291 * commands/halt.c: Likewise.
26292 * commands/handler.c: Likewise.
26293 * commands/hdparm.c: Likewise.
26294 * commands/hexdump.c: Likewise.
26295 * commands/i386/cpuid.c: Likewise.
26296 * commands/i386/pc/drivemap.c: Likewise.
26297 * commands/i386/pc/halt.c: Likewise.
26298 * commands/i386/pc/pxecmd.c: Likewise.
26299 * commands/i386/pc/vbeinfo.c: Likewise.
26300 * commands/i386/pc/vbetest.c: Likewise.
26301 * commands/ieee1275/suspend.c: Likewise.
26302 * commands/keystatus.c: Likewise.
26303 * commands/loadenv.c: Likewise.
26304 * commands/ls.c: Likewise.
26305 * commands/lsmmap.c: Likewise.
26306 * commands/lspci.c: Likewise.
26307 * commands/memrw.c: Likewise.
26308 * commands/minicmd.c: Likewise.
26309 * commands/parttool.c: Likewise.
26310 * commands/password.c: Likewise.
26311 * commands/probe.c: Likewise.
26312 * commands/read.c: Likewise.
26313 * commands/reboot.c: Likewise.
26314 * commands/search.c: Likewise.
26315 * commands/sleep.c: Likewise.
26316 * commands/test.c: Likewise.
26317 * commands/true.c: Likewise.
26318 * commands/usbtest.c: Likewise.
26319 * commands/videotest.c: Likewise.
26320 * commands/xnu_uuid.c: Likewise.
26321 * disk/loopback.c: Likewise.
26322 * hello/hello.c: Likewise.
26323 * loader/i386/bsd.c: Likewise.
26324 * term/i386/pc/serial.c: Likewise.
26325 * po/POTFILES: Add new files.
26326
da8d5c53
CW
263272010-01-02 Colin Watson <cjwatson@ubuntu.com>
26328
26329 * term/i386/pc/at_keyboard.c
26330 (keyboard_controller_wait_untill_ready): Rename to ...
26331 (keyboard_controller_wait_until_ready): ... this. Update all users.
26332
33937904 263332010-01-01 Carles Pina i Estany <carles@pina.cat>
26334
26335 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
26336 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
26337 string using string width.
26338 * normal/menu_text.c (grub_print_message_indented): Use
26339 grub_print_spaces and not print_spaces.
26340 (print_timeout): Likewise.
26341 (print_spaces): Move to...
26342 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
26343
3fd3b8d8
RM
263442010-01-01 Robert Millan <rmh.grub@aybabtu.com>
26345
26346 Import from Gnulib.
26347
26348 * gnulib/getdelim.c: New file.
26349 * gnulib/getline.c: Likewise.
26350
33433555
VS
263512009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
26352
26353 * include/grub/list.h (grub_assert_fail): Removed.
26354 (grub_bad_type_cast_real): New function.
26355 (grub_bad_type_cast): New macro.
26356 (GRUB_AS_LIST): Use grub_bad_type_cast.
26357 (GRUB_AS_LIST_P): Likewise.
e44721e8 26358 (GRUB_AS_NAMED_LIST): Likewise.
33433555 26359 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 26360 (GRUB_AS_PRIO_LIST): Likewise.
33433555 26361 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 26362 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 26363
f5a51306
VS
263642009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
26365
26366 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
26367 Fix syntax error.
26368
90d1e879
RM
263692009-12-29 Robert Millan <rmh.grub@aybabtu.com>
26370
26371 * configure.ac: Check for TARGET_CFLAGS initialization before we
26372 initialize it ourselves (sigh).
26373 Move a few modifications to TARGET_CFLAGS to be unconditional
26374 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
26375 eh_frame)
26376
26377 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
26378 * term/i386/pc/at_keyboard.c
26379 (keyboard_controller_wait_untill_ready): Likewise.
26380 (keyboard_controller_led): Rename `led_status' paramter to avoid
26381 name conflict.
26382
465b5a81 263832009-12-28 Carles Pina i Estany <carles@pina.cat>
26384
26385 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
26386 quotes.
26387
c181849b
VS
263882009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26389
26390 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
26391
9c8739a4
VS
263922009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26393
26394 * normal/menu_text.c (grub_print_message_indented): Prevent
26395 past-the-end-of-array dereference.
26396
3e74249c
VS
263972009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
26398
26399 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
26400 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
26401
64fd18ed 264022009-12-27 Carles Pina i Estany <carles@pina.cat>
26403
26404 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
26405 * normal/main.c (grub_normal_read_line): Remove a space from the
26406 default prompt.
26407
714af9b9 264082009-12-27 Carles Pina i Estany <carles@pina.cat>
26409
26410 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
26411 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26412 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26413 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26414 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26415 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26416 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26417
82f3e412 264182009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 26419
26420 * video/readers/jpeg.c (cmd): Declare.
26421 (grub_cmd_jpegtest): Use `grub_command_t' type.
26422 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26423 Assign to `cmd'.
26424 (GRUB_MOD_FINI): Use `cmd' to unregister.
26425 * video/readers/png.c (cmd): Declare.
26426 (grub_cmd_pngtest): Use `grub_command_t' type.
26427 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26428 Assign to `cmd'.
26429 (GRUB_MOD_FINI): Use `cmd' to unregister.
26430 * video/readers/tga.c (cmd): Declare.
26431 (grub_cmd_tgatest): Use `grub_command_t' type.
26432 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
26433 Assign to `cmd'.
26434 (GRUB_MOD_FINI): Use `cmd' to unregister.
26435
82f3e412 264362009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 26437
26438 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
26439 stops.
26440 * kern/corecmd.c (grub_register_core_commands): Likewise.
26441 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
26442 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26443 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
26444 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26445 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
26446 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
26447 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
26448 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
26449 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26450 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
26451 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26452 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26453 * normal/handler.c (insert_handler): Likewise.
26454 * normal/main.c (GRUB_MOD_INIT): Likewise.
26455 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
26456
fdcdbb66 264572009-12-26 Carles Pina i Estany <carles@pina.cat>
26458
26459 * commands/help.c (grub_cmd_help): Print the command name before the
26460 summary.
26461 (GRUB_MOD_INIT): Remove command name from the summary.
26462 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 26463 string as summary.
fdcdbb66 26464 * lib/arg.c (find_long): Print the command name before the summary.
26465 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
26466 summary.
26467 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
26468 * commands/cat.c (GRUB_MOD_INIT): Likewise.
26469 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
26470 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
26471 * commands/crc.c (GRUB_MOD_INIT): Likewise.
26472 * commands/date.c (GRUB_MOD_INIT): Likewise.
26473 * commands/echo.c (GRUB_MOD_INIT): Likewise.
26474 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
26475 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26476 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26477 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
26478 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
26479 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
26480 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
26481 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26482 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
26483 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
26484 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
26485 * commands/ls.c (GRUB_MOD_INIT): Likewise.
26486 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26487 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26488 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26489 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
26490 * commands/password.c (GRUB_MOD_INIT): Likewise.
26491 * commands/probe.c (GRUB_MOD_INIT): Likewise.
26492 * commands/read.c (GRUB_MOD_INIT): Likewise.
26493 * commands/search.c (GRUB_MOD_INIT): Likewise.
26494 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
26495 * commands/test.c (GRUB_MOD_INIT): Likewise.
26496 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
26497 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
26498 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
26499 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
26500 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
26501 * lib/arg.c (GRUB_MOD_INIT): Likewise.
26502 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
26503 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
26504 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
26505 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
26506 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
26507 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
26508 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
26509 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
26510
9c288be2
VS
265112009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26512
26513 Use search command for preliminar UUID search.
26514
26515 * commands/search.c: Split into ...
26516 * commands/search_wrap.c: ...this
26517 * commands/search.c: ...and this.
26518 * commands/search_file.c: New file.
26519 * commands/search_label.c: New file.
26520 * commands/search_uuid.c: New file.
26521 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
26522 Add commands/search_wrap.c, commands/search_file.c,
26523 commands/search_label.c and commands/search_uuid.c.
26524 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
26525 (search_mod_SOURCES): Set to commands/search_wrap.c.
26526 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
26527 search_label.mod.
26528 (search_fs_file_mod_SOURCES): New variable.
26529 (search_fs_file_mod_CFLAGS): Likewise.
26530 (search_fs_file_mod_LDFLAGS): Likewise.
26531 (search_label_mod_SOURCES): Likewise.
26532 (search_label_mod_CFLAGS): Likewise.
26533 (search_label_mod_LDFLAGS): Likewise.
26534 (search_fs_uuid_mod_SOURCES): New variable.
26535 (search_fs_uuid_mod_CFLAGS): Likewise.
26536 (search_fs_uuid_mod_LDFLAGS): Likewise.
26537 (fs_file_mod_SOURCES): Removed.
26538 (fs_file_mod_CFLAGS): Likewise.
26539 (fs_file_mod_LDFLAGS): Likewise.
26540 (fs_uuid_mod_SOURCES): Removed.
26541 (fs_uuid_mod_CFLAGS): Likewise.
26542 (fs_uuid_mod_LDFLAGS): Likewise.
26543 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
26544 Set to util/grub-install.in.
26545 * disk/fs_file.c: Removed.
26546 * disk/fs_uuid.c: Likewise.
26547 * include/grub/search.h: New file.
26548 * util/grub-install.in: Handle sparc64.
26549 Create and use load.cfg.
26550 * util/sparc64/ieee1275/grub-install.in: Removed.
26551
db943399
VS
265522009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26553
26554 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
26555 Ignore return status if CF is cleared.
26556 (grub_biosdisk_get_diskinfo_standard): Likewise.
26557
3fdae612
RM
265582009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26559
26560 * term/i386/pc/at_keyboard.c
26561 (keyboard_controller_wait_untill_ready): New function.
26562 (grub_keyboard_controller_write, grub_keyboard_controller_read)
26563 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
26564 for keyboard polling, rather than duplicate the same loop. This
26565 saves a few bytes in code size.
26566
7ebaa2b4
VS
265672009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
26568
26569 Support for (pxe[:server[:gateway]]) syntax and
26570 use environment variable for PXE.
26571
26572 * commands/i386/pc/pxecmd.c (options): Removed.
26573 (print_ip): Removed.
26574 (grub_cmd_pxe): Removed
26575 (grub_cmd_pxe_unload): New function.
26576 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
26577 (grub_pxe_your_ip): Made static.
26578 (grub_pxe_default_server_ip): Likewise.
26579 (grub_pxe_default_gateway_ip): Likewise.
26580 (grub_pxe_blksize): Likewise.
26581 (parse_ip): New function.
26582 (grub_pxe_open): Support server and gateway specification.
26583 (grub_pxe_close): Free disk->data.
26584 (grub_pxefs_open): Use disk->data.
26585 (grub_pxefs_read): Likewise.
26586 (grub_env_write_readonly): New function.
26587 (set_mac_env): Likewise.
26588 (set_env_limn_ro): Likewise.
26589 (parse_dhcp_vendor): Likewise.
26590 (grub_pxe_detect): Set the environment variables.
26591 (set_ip_env): New function.
26592 (write_ip_env): Likewise.
26593 (grub_env_write_pxe_default_server): Likewise.
26594 (grub_env_write_pxe_default_gateway): Likewise.
26595 (grub_env_write_pxe_blocksize): Likewise.
26596 (GRUB_MOD_INIT(pxe)): Set environment variables.
26597 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
26598 (grub_pxe_mac_addr_t): ... this. All users updated.
26599 (grub_pxe_your_ip): Removed.
26600 (grub_pxe_server_ip): Likewise.
26601 (grub_pxe_gateway_ip): Likewise.
26602 (grub_pxe_blksize): Likewise.
26603
ec5f98ab 266042009-12-25 Carles Pina i Estany <carles@pina.cat>
26605
26606 * commands/help.c: Include `<grub/i18n.h>'.
26607 (grub_cmd_help): Gettextizze.
26608 (GRUB_MOD_INIT): Likewise.
26609 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
26610 (GRUB_MOD_INIT): Gettextizze.
26611 * commands/search.c: Include `<grub/i18n.h>'.
26612 (options): Gettextizze.
26613 (GRUB_MOD_INIT): Gettextizze.
26614 * lib/arg.c: Include `<grub/i18n.h>'.
26615 (help_options): Gettextizze.
26616 (find_long): Likewise.
26617 (grub_arg_show_help): Likewise.
26618 * normal/dyncmd.c: Include `<grub/i18n.h>'.
26619 (read_command_list): Gettextizze.
26620 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 26621 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 26622
22815526
RM
266232009-12-25 Robert Millan <rmh.grub@aybabtu.com>
26624
26625 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
26626 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
26627 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
26628 (led_status): New variable.
26629 (keyboard_controller_led): New function.
26630 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
26631 update led status for caps lock, num lock and scroll lock.
26632
0ad46fd7
FZ
266332009-12-25 Felix Zielcke <fzielcke@z-51.de>
26634
26635 * util/hostdisk.c (open_device): Fix a comment.
26636
d0e158c2
RM
266372009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26638
26639 * util/grub-install.in (host_os): New variable.
26640 * util/i386/efi/grub-install.in (host_os): Likewise.
26641
401c0ad6
RM
266422009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26643
26644 * util/mkisofs/write.c (padblock_write): Abort when given an
26645 excedingly large embed image, instead of silently truncating it.
26646
d14d3370
RM
266472009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26648
26649 * include/multiboot.h: Indentation fixes.
26650
eeed10b4
RM
266512009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26652
26653 * include/multiboot.h (struct multiboot_aout_symbol_table)
26654 (struct multiboot_elf_section_header_table): New structure
26655 declarations (stolen from GRUB Legacy).
26656 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
26657 table information.
26658
26659 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
26660 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
26661 type aliases.
26662
681c70ab
RM
266632009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26664
26665 * include/multiboot.h: Make comments src2texi-friendly.
26666
e4d47d8d
RM
266672009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26668
26669 For consistency with [multiboot]/docs/boot.S.
26670
26671 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
26672 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
26673 (MULTIBOOT_MAGIC2): Rename from this ...
26674 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
26675
a0b70bda
RM
266762009-12-24 Robert Millan <rmh.grub@aybabtu.com>
26677
26678 * include/multiboot.h: Remove `<grub/types.h>'.
26679 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
26680 types. Update all users.
26681
61ba42be 266822009-12-25 Carles Pina i Estany <carles@pina.cat>
26683
26684 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
26685 `couldn't' and `can not' by `cannot'.
26686 * commands/i386/pc/drivemap.c: Likewise.
26687 * disk/ata.c: Likewise.
26688 * disk/ieee1275/nand.c: Likewise.
26689 * fs/affs.c: Likewise.
26690 * fs/fat.c: Likewise.
26691 * fs/hfs.c: Likewise.
26692 * fs/hfsplus.c: Likewise.
26693 * fs/iso9660.c: Likewise.
26694 * fs/jfs.c: Likewise.
26695 * fs/minix.c: Likewise.
26696 * fs/reiserfs.c: Likewise.
26697 * fs/sfs.c: Likewise.
26698 * fs/udf.c: Likewise.
26699 * fs/ufs.c: Likewise.
26700 * fs/xfs.c: Likewise.
26701 * loader/powerpc/ieee1275/linux.c: Likewise.
26702 * loader/sparc64/ieee1275/linux.c: Likewise.
26703 * util/grub-probe.c: Likewise.
26704 * util/misc.c: Likewise.
26705
7fd0baee 267062009-12-24 Carles Pina i Estany <carles@pina.cat>
26707
26708 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
26709 grub_errno calls.
26710 * commands/acpi.c: Likewise.
26711 * commands/blocklist.c: Likewise.
26712 * commands/efi/loadbios.c: Likewise.
26713 * commands/i386/pc/drivemap.c: Likewise.
26714 * commands/loadenv.c: Likewise.
26715 * commands/memrw.c: Likewise.
26716 * commands/password.c: Likewise.
26717 * commands/videotest.c: Likewise.
26718 * disk/ata.c: Likewise.
26719 * disk/ata_pthru.c: Likewise.
26720 * disk/dmraid_nvidia.c: Likewise.
26721 * disk/ieee1275/nand.c: Likewise.
26722 * disk/ieee1275/ofdisk.c: Likewise.
26723 * disk/loopback.c: Likewise.
26724 * disk/lvm.c: Likewise.
26725 * disk/mdraid_linux.c: Likewise.
26726 * disk/raid.c: Likewise.
26727 * disk/raid6_recover.c: Likewise.
26728 * disk/scsi.c: Likewise.
26729 * efiemu/main.c: Likewise.
26730 * efiemu/mm.c: Likewise.
26731 * efiemu/pnvram.c: Likewise.
26732 * efiemu/symbols.c: Likewise.
26733 * font/font.c: Likewise.
26734 * fs/cpio.c: Likewise.
26735 * fs/hfsplus.c: Likewise.
26736 * fs/iso9660.c: Likewise.
26737 * fs/jfs.c: Likewise.
26738 * fs/minix.c: Likewise.
26739 * fs/ntfs.c: Likewise.
26740 * fs/ntfscomp.c: Likewise.
26741 * fs/reiserfs.c: Likewise.
26742 * fs/ufs.c: Likewise.
26743 * fs/xfs.c: Likewise.
26744 * gettext/gettext.c: Likewise.
26745 * include/grub/auth.h: Likewise.
26746 * kern/elf.c: Likewise.
26747 * kern/file.c: Likewise.
26748 * kern/ieee1275/init.c: Likewise.
26749 * kern/ieee1275/mmap.c: Likewise.
26750 * kern/ieee1275/openfw.c: Likewise.
26751 * kern/powerpc/dl.c: Likewise.
26752 * kern/sparc64/dl.c: Likewise.
26753 * lib/arg.c: Likewise.
26754 * loader/i386/bsd.c: Likewise.
26755 * loader/i386/bsdXX.c: Likewise.
26756 * loader/i386/efi/linux.c: Likewise.
26757 * loader/i386/efi/xnu.c: Likewise.
26758 * loader/i386/ieee1275/linux.c: Likewise.
26759 * loader/i386/linux.c: Likewise.
26760 * loader/i386/multiboot.c: Likewise.
26761 * loader/i386/pc/linux.c: Likewise.
26762 * loader/i386/pc/multiboot2.c: Likewise.
26763 * loader/i386/xnu.c: Likewise.
26764 * loader/ieee1275/multiboot2.c: Likewise.
26765 * loader/macho.c: Likewise.
26766 * loader/machoXX.c: Likewise.
26767 * loader/multiboot2.c: Likewise.
26768 * loader/multiboot_loader.c: Likewise.
26769 * loader/powerpc/ieee1275/linux.c: Likewise.
26770 * loader/sparc64/ieee1275/linux.c: Likewise.
26771 * loader/xnu.c: Likewise.
26772 * loader/xnu_resume.c: Likewise.
26773 * mmap/i386/pc/mmap.c: Likewise.
26774 * normal/menu_viewer.c: Likewise.
26775 * partmap/acorn.c: Likewise.
26776 * partmap/amiga.c: Likewise.
26777 * partmap/apple.c: Likewise.
26778 * script/lexer.c: Likewise.
26779 * term/gfxterm.c: Likewise.
26780 * term/i386/pc/serial.c: Likewise.
26781 * term/i386/pc/vga.c: Likewise.
26782 * term/ieee1275/ofconsole.c: Likewise.
26783 * term/terminfo.c: Likewise.
26784 * video/bitmap.c: Likewise.
26785 * video/efi_gop.c: Likewise.
26786 * video/efi_uga.c: Likewise.
26787 * video/fb/video_fb.c: Likewise.
26788 * video/i386/pc/vbe.c: Likewise.
26789 * video/readers/tga.c: Likewise.
26790 * video/video.c: Likewise.
26791
0ad46fd7 267922009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
26793
26794 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
26795 * commands/lspci.c: Likewise.
26796 * commands/probe.c: Likewise.
26797 * commands/xnu_uuid.c: Likewise.
26798 * conf/i386-coreboot.rmk: Likewise.
26799 * conf/i386-efi.rmk: Likewise.
26800 * conf/i386-ieee1275.rmk: Likewise.
26801 * conf/i386-pc.rmk: Likewise.
26802 * conf/powerpc-ieee1275.rmk: Likewise.
26803 * conf/sparc64-ieee1275.rmk: Likewise.
26804 * conf/x86_64-efi.rmk: Likewise.
26805 * fs/i386/pc/pxe.c: Likewise.
26806 * gettext/gettext.c: Likewise.
26807 * include/grub/efi/graphics_output.h: Likewise.
26808 * include/grub/i386/pc/memory.h: Likewise.
26809 * kern/env.c: Likewise.
26810 * kern/i386/qemu/startup.S: Likewise.
26811 * lib/i386/pc/biosnum.c: Likewise.
26812 * lib/i386/relocator.c: Likewise.
26813 * lib/i386/relocator_asm.S: Likewise.
26814 * lib/relocator.c: Likewise.
26815 * loader/i386/bsd.c: Likewise.
26816 * loader/i386/multiboot.c: Likewise.
26817 * loader/i386/pc/chainloader.c: Likewise.
26818 * loader/i386/xnu.c: Likewise.
26819 * loader/xnu.c: Likewise.
26820 * normal/main.c: Likewise.
26821 * normal/menu_text.c: Likewise.
26822 * util/getroot.c: Likewise.
26823 * util/grub-mkconfig_lib.in: Likewise.
26824 * util/grub.d/00_header.in: Likewise.
26825 * util/i386/pc/grub-mkimage.c: Likewise.
26826 * util/mkisofs/eltorito.c: Likewise.
26827 * util/mkisofs/exclude.h: Likewise.
26828 * util/mkisofs/hash.c: Likewise.
26829 * util/mkisofs/iso9660.h: Likewise.
26830 * util/mkisofs/joliet.c: Likewise.
26831 * util/mkisofs/mkisofs.c: Likewise.
26832 * util/mkisofs/mkisofs.h: Likewise.
26833 * util/mkisofs/multi.c: Likewise.
26834 * util/mkisofs/name.c: Likewise.
26835 * util/mkisofs/rock.c: Likewise.
26836 * util/mkisofs/tree.c: Likewise.
26837 * util/mkisofs/write.c: Likewise.
26838 * video/efi_gop.c: Likewise.
26839
009ec743
VS
268402009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26841
26842 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26843 size counting.
26844
0ad46fd7 268452009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
26846
26847 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26848 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26849
d3d30ea0
VS
268502009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26851
26852 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26853 (GRUB_MOD_INIT(memrw)): Update help line.
26854
a34f5c70
VS
268552009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26856
26857 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26858 Use grub_extcmd_t. All users updated.
26859 (options): New variable.
26860 (grub_cmd_read): Restructure for readability. Support "-v" option.
26861 (grub_cmd_write): Restructure for readability.
26862
0ad46fd7 268632009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
26864
26865 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26866
0ad46fd7 268672009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
26868
26869 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26870 with the actual contents of the correspondending make variable.
26871 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26872 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26873 specifying `*.lst' and `efiemu??.o'
26874
0ad46fd7 268752009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
26876
26877 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26878 after function name.
26879 Noticed by Rene Engelhard <rene@debian.org>.
26880
dc77a799
VS
268812009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26882
26883 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26884 (options): New variable.
26885 (iospace): Likewise.
26886 (grub_lspci_iter): List IO spaces if "-i" was given.
26887 (grub_cmd_lspci): Parse options.
26888 (GRUB_MOD_INIT(lspci)): Use extcmd.
26889 (GRUB_MOD_FINI(lspci)): Likewise.
26890
0ad46fd7 268912009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
26892
26893 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26894 `function' keyword.
26895 Patch by Tony Mancill <tmancill@debian.org>.
26896
b5d5993b
VS
268972009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26898
26899 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26900 (grub_uhci_portstatus): Likewise.
26901 (grub_uhci_portstatus): Add necessary delay.
11d18281 26902 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 26903
941903f2 269042009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 26905
941903f2 26906 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26907 (GRUB_MOD_INIT): Likewise.
26908 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 26909 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26910 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 26911 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26912 (enable_rom_area): Likewise.
26913 (GRUB_MOD_INIT): Likewise.
26914 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26915 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26916 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26917 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26918 * commands/hexdump.c (options): Likewise.
26919 * commands/i386/cpuid.c (options): Likewise.
26920 (GRUB_MOD_INIT): Likewise.
26921 * commands/i386/pc/drivemap.c (options): Likewise.
26922 (GRUB_MOD_INIT): Likewise.
26923 * commands/i386/pc/halt (options): Likewise.
26924 (GRUB_MOD_INIT): Likewise.
26925 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26926 * commands/i386/pc/pxecmd.c (options): Likewise.
26927 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26928 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26929 * commands/keystatus.c (options): Likewise.
26930 (GRUB_MOD_INIT): Likewise.
26931 * commands/loadenv.c (options): Likewise.
26932 * commands/ls.c (options): Likewise.
26933 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26934 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26935 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26936 * commands/parttool.c (helpmsg): Likewise.
26937 * commands/probe.c (options): Likewise.
26938 * commands/read.c (GRUB_MOD_INIT): Likewise.
26939 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26940 * commands/search.c (options): Likewise.
26941 * commands/sleep.c (options): Likewise.
26942 * commands/test.c (GRUB_MOD_INIT): Likewise.
26943 * commands/true.c (GRUB_MOD_INIT): Likewise.
26944 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26945 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26946 * lib/arg.c (help_options): Likewise.
e9bbb4e7 26947 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26948 `$(XGETTEXT)'.
98a50553 26949 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 26950
0ad46fd7 269512009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 26952
ef3c2c3a 26953 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
26954 instead of specifying them explicit.
26955
7922f68b
RM
269562009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26957
26958 * NEWS: Add grub-probe support for GNU/Hurd.
26959
537ce47f
RM
269602009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26961
26962 * NEWS: gettext was added after 1.97.
26963
9b214e3a
RM
269642009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26965
26966 * util/mkisofs/msdos_partition.h: New file (based on
26967 include/grub/msdos_partition.h).
26968 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26969 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26970 (ld_options, main): Recognize --protective-msdos-label.
26971 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26972 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26973 (padblock_write): If `use_protective_msdos_label' is set, patch a
26974 protective DOS-style label in the output image.
26975
26976 * util/grub-mkrescue.in: Use --protective-msdos-label.
26977
e9309813
RM
269782009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26979
26980 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26981 boot.
26982
0ae56929
RM
269832009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26984
26985 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26986 variables.
26987 (ld_options, main): Recognize `--embedded-boot'.
26988 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26989 declarations.
26990 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26991 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26992 (padblock_write): Likewise. Rewrite to support embedded boot image.
26993
26994 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26995 for BIOS-based disk boot instead of only ElTorito.
26996
b15937b1
RM
269972009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26998
26999 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
27000 build (not needed for bootstrap).
27001
52cc3ce0
RM
270022009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27003
27004 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
27005 from i386-pc build (not needed for bootstrap).
27006 Rewrite a pair of strings.
27007
36f5ff04
RM
270082009-12-21 Robert Millan <rmh.grub@aybabtu.com>
27009
27010 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
27011
973c6c85 270122009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
27013
27014 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
27015
05d21547
AB
270162009-12-21 Andreas Born <futur.andy@googlemail.com>
27017
27018 * kern/env.c (grub_env_context_open): Mark exported variable for
27019 reexport.
27020
0175d51f
AB
270212009-12-21 Andreas Born <futur.andy@googlemail.com>
27022
27023 * kern/env.c (grub_env_export): Create nonexistent variables before
27024 exporting.
27025
7f39d92f 270262009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 27027
7f39d92f 27028 * include/grub/auth.h: Include `<grub/i18n.h>'.
27029 (GRUB_GET_PASSWORD): Gettextizze string.
27030 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
27031 menu_text.c.
27032 (grub_utf8_to_ucs4_alloc): Fix indentation.
27033 (grub_print_ucs4): Likewise.
27034 (grub_getstringwidth): Likewise.
27035 (print_message_indented): New declaration.
27036 * normal/auth.c: Include `<grub/i18n.h>'.
27037 (grub_auth_check_authentication): Gettexttize string.
27038 * normal/cmdline.c: Include `<grub/i18n.h>'.
27039 (grub_cmdline_get): Gettextizze.
27040 * normal/color.c: Include `<grub/i18n.h>'.
27041 (grub_parse_color_name_pair): Gettexttize strings.
27042 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
27043 string (use `print_message_indented').
27044 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
27045 `include/grub/normal.h'.
27046 (print_message_indented): Renamed to ...
27047 (grub_print_message_indented): ... this. Remove `static' qualifer (now
27048 used in normal/main.c).
27049 (print_message): Use `grub_print_message_indented' instead of
27050 `print_message_indented'.
27051 (print_timeout): Likewise.
27052 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
27053 (grub_normal_print_device_info): Gettexttize strings.
27054 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
27055
3041d898
VS
270562009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27057
27058 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
27059 of arguments. Return number of tokens and not arguments. All users
27060 updated.
27061
de15bf8e
VS
270622009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
27063
27064 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
27065 non-MSDOS paritions.
27066
e0a6ca52
VS
270672009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
27068
27069 * include/grub/types.h (UNUSED): Removed since it conflicts with
27070 NetBSD headers. All users changed to direct __attribute__ ((unused)).
27071 Reported by Grégoire Sutre.
27072
b99518d1 270732009-12-19 Carles Pina i Estany <carles@pina.cat>
27074
27075 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
27076 (grub_print_ucs4_alloc): Likewise.
27077 (grub_getstringwidth): Likewise.
27078 * normal/main.c (grub_normal_init_page): Gettextize version string.
27079 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
27080 (getstringwidth): Renamed to ...
27081 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
27082 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
27083 (grub_print_ucs4): Remove `static' qualifer (now used in
27084 normal/main.c).
27085 * po/POTFILES: Add normal/main.c.
27086
bfd5e52b 270872009-12-19 Carles Pina i Estany <carles@pina.cat>
27088
27089 * normal/menu_text.c (STANDARD_MARGIN): New macro.
27090 (print_message_indented): Add `margin_left' and `margin_right'
27091 parameters.
27092 (print_message): Update `print_message_indented' calls. Adds '\n' to the
27093 strings.
27094 (print_timeout): Use `print_message_indented' to print the message.
27095 Deletes `second_stage' parameter.
27096 (run_menu): Update `print_timeout' calls.
27097
5a1ad2b9
VS
270982009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27099
27100 Fix console palette on OpenFirmware.
27101
27102 * term/ieee1275/ofconsole.c (MAX): Removed.
27103 (colors): Redone based on VGA palette.
27104 (grub_ofconsole_setcolor): Discard brightness bit since only 8
27105 colors are supported.
27106 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
27107
b045f00a
VS
271082009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27109
27110 Fix potential EfiEmu double prepare.
27111
27112 * efiemu/main.c (prepared): New variable
27113 (grub_efiemu_unload): Set prepare to '0'.
27114 (grub_efiemu_prepare): Return if already prepared. Set prepared.
27115
27116 set_virtual_address_map support.
27117
27118 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
27119 prototype.
27120 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
27121 prototype.
27122 (grub_efiemu_crc32): Likewise.
27123 (grub_efiemu_crc64): Likewise.
27124 (grub_efiemu_set_virtual_address_map): Likewise.
27125 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
27126 New definition.
27127 (grub_autoefi_set_virtual_address_map): Likewise.
27128 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
27129 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
27130 Restructure flow to accomodate it.
27131 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
27132 (grub_efiemu_crc): Recompute CRC32.
27133 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
27134 (efiemu_ptv_relocated): ... this. Made global. All users updated.
27135 * efiemu/symbols.c (relocated_handle): New variable.
27136 (grub_efiemu_free_syms): Free relocated_handle.
27137 (grub_efiemu_alloc_syms): Allocate relocated_handle.
27138 (grub_efiemu_write_sym_markers): New function.
27139 (grub_efiemu_set_virtual_address_map): Likewise.
27140
27141 Newer XNU parameters.
27142
27143 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
27144 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
27145 (grub_xnu_fill_devicetree): New prototype.
27146 (grub_xnu_heap_real_start): New variable.
27147 * loader/xnu.c (get_name_ptr): New function.
27148 (grub_xnu_load_driver): Fill namelen and name.
27149
27150 64-bit xnu support.
27151
27152 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
27153 and 'loader/macho64.c'.
27154 * conf/i386-pc.rmk: Likewise.
27155 * conf/x86_64-efi.rmk: Likewise.
27156 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
27157 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
27158 * include/grub/macho.h (grub_macho_segment64): New structure.
27159 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
27160 (grub_macho_size32): ... to this.
27161 (grub_macho32_get_entry_point): Renamed from ...
27162 (grub_macho_get_entry_point32): ... to this.
27163 (grub_macho_contains_macho64): New prototype.
27164 (grub_macho_size64): Likewise.
27165 (grub_macho_get_entry_point64): Likewise.
27166 (grub_macho32_load): Renamed from ...
27167 (grub_macho_load32): ... to this.
27168 (grub_macho32_filesize): Renamed from ...
27169 (grub_macho_filesize32): ... to this.
27170 (grub_macho32_readfile): Renamed from ...
27171 (grub_macho_readfile32): ... to this.
27172 (grub_macho_filesize64): New prototype.
27173 (grub_macho_readfile64): Likewise.
27174 (grub_macho_parse32): Likewise.
27175 (grub_macho_parse64): Likewise.
27176 * loader/macho.c: Split into ...
27177 * loader/machoXX.c: ... and this. Replace 32 with XX.
27178 * loader/macho32.c: New file.
27179 * loader/macho64.c: Likewise.
27180 * loader/xnu.c (grub_xnu_is_64bit): New variable.
27181 (grub_cmd_xnu_kernel): Make 32-bit only.
27182 (grub_cmd_xnu_kernel64): New function.
27183 (grub_xnu_load_driver): Support Mach-O 64.
27184 (grub_cmd_xnu_mkext): Likewise.
27185 * util/grub.d/30_os-prober.in (osx_entry): New function.
27186 Generate entries for 64-bit boot too.
27187
27188 Eliminate ad-hoc tree format in XNU and EfiEmu.
27189
27190 * efiemu/main.c (grub_efiemu_prepare): Update comment.
27191 * efiemu/pnvram.c: Rewritten to use environment variables.
27192 All users updated.
27193
27194 Inline utf16_to_utf8.
27195
27196 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
27197 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
27198 All users updated.
27199 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
27200
27201 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
27202 * commands/usbtest.c (grub_usb_get_string): ... move here.
27203 (usb_print_str): Fix error handling.
27204 * include/grub/usb.h (grub_usb_get_string): Remove.
27205
27206 UTF-8 to UTF-16 transformation.
27207
27208 * conf/common.rmk (pkglib_MODULES): Add charset.mod
27209 (charset_mod_SOURCES): New variable.
27210 (charset_mod_CFLAGS): Likewise.
27211 (charset_mod_LDFLAGS): Likewise.
27212 * include/grub/utf.h: New file.
27213 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
27214
27215 Support for device properties.
27216
27217 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
27218 (grub_xnu_devprop_device_header): Likewise.
27219 (grub_xnu_devprop_device_descriptor): Likewise.
27220 (grub_xnu_devprop_add_device): New prototype.
27221 (grub_xnu_devprop_remove_device): Likewise.
27222 (grub_xnu_devprop_remove_property): Likewise.
27223 (grub_xnu_devprop_add_property_utf8): Likewise.
27224 (grub_xnu_devprop_add_property_utf16): Likewise.
27225 (grub_cpu_xnu_init): Likewise.
27226 (grub_cpu_xnu_fini): Likewise.
27227 (grub_cpu_xnu_unload): Likewise.
27228 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
27229 (property_descriptor): Likewise.
27230 (devices): New variable.
27231 (grub_xnu_devprop_remove_property): New function.
27232 (grub_xnu_devprop_add_device): Likewise.
27233 (grub_xnu_devprop_remove_device): Likewise.
27234 (grub_xnu_devprop_add_property): Likewise.
27235 (grub_xnu_devprop_add_property_utf8): Likewise.
27236 (grub_xnu_devprop_add_property_utf16): Likewise.
27237 (hextoval): Likewise.
27238 (grub_cpu_xnu_fill_devprop): Likewise.
27239 (grub_cmd_devprop_load): Likewise.
27240 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
27241 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
27242 (cmd_devprop_load): New variable.
27243 (grub_cpu_xnu_init): New function.
27244 (grub_cpu_xnu_fini): Likewise.
27245 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
27246 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
27247 (grub_cmd_xnu_devtree): Likewise.
27248 (hextoval): New function.
27249 (unescape): Likewise.
27250 (grub_xnu_fill_devicetree): Likewise.
27251
27252 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
27253 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
27254
0945f181
VS
272552009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
27256
27257 Workaround for broken ATI VBE.
27258
27259 * video/i386/pc/vbe.c (last_set_mode): New variable.
27260 (grub_vbe_set_video_mode): Set 'last_set_mode'.
27261 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
27262 (grub_video_vbe_setup): Don't check for reserved flag.
27263
0ad46fd7 272642009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
27265
27266 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
27267 the `find' command.
27268
c179ebe4
VS
272692009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
27270
27271 UUID support for HFS.
27272
27273 * fs/hfs.c (grub_hfs_uuid): New function.
27274 (grub_hfs_fs): New value .uuid.
27275 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
27276
0ad46fd7 272772009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
27278
27279 Fix a segfault with parsing unknown long options.
27280
27281 * util/grub-mkrelpath.c (options): Zero terminate it.
27282
c4a3e41a
CPE
272832009-12-13 Carles Pina i Estany <carles@pina.cat>
27284
27285 * include/grub/misc.h (grub_puts): New declaration.
27286 (grub_puts_): Likewise.
a22008a6 27287 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
27288 (grub_puts_): Likewise.
27289
2e8a7602
RM
272902009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27291
27292 * util/grub-probe.c (probe): Improve error message.
27293
b50b77b9
RM
272942009-12-13 Robert Millan <rmh.grub@aybabtu.com>
27295
27296 * loader/i386/multiboot_elfxx.c
27297 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
27298 initialization.
27299
273002009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27301
27302 Relocator framework
27303
27304 * loader/i386/xnu_helper.S: Removed. All users updated.
27305 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
27306 (relocator_mod_SOURCES): New variable.
27307 (relocator_mod_CFLAGS): Likewise.
27308 (relocator_mod_LDFLAGS): Likewise.
27309 (relocator_mod_ASFLAGS): Likewise.
27310 * conf/x86_64.rmk: Likewise.
27311 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
27312 (grub_multiboot_payload_entry_offset): Likewise.
27313 (grub_multiboot_forward_relocator): Likewise.
27314 (grub_multiboot_forward_relocator_end): Likewise.
27315 (grub_multiboot_backward_relocator): Likewise.
27316 (grub_multiboot_backward_relocator_end): Likewise.
27317 (grub_multiboot_payload_eip): New variable.
27318 (grub_multiboot_payload_orig): Likewise.
27319 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
27320 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
27321 * include/grub/i386/memory.h
27322 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
27323 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
27324 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
27325 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
27326 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
27327 * include/grub/i386/relocator.h: New file.
27328 * include/grub/x86_64/relocator.h: Likewise.
27329 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
27330 (XNU_RELOCATOR): New macro.
27331 (grub_xnu_launcher_start): Remove.
27332 (grub_xnu_launcher_end): Likewise.
27333 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
27334 (grub_xnu_heap_real_start): Remove.
27335 (grub_xnu_heap_start): Change to void *. All users updated.
27336 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
27337 * lib/i386/relocator.c: New file.
27338 * lib/i386/relocator_asm.S: Likewise.
27339 * lib/i386/relocator_backward.S: Likewise.
27340 * lib/mips/relocator.c: Likewise.
27341 * lib/mips/relocator_asm.S: Likewise.
27342 * lib/relocator.c: Likewise.
27343 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
27344 (entry): Removed.
27345 (playground): Likewise.
27346 (grub_multiboot_payload_orig): New variable.
27347 (grub_multiboot_payload_dest): Likewise.
27348 (grub_multiboot_payload_size): Likewise.
27349 (grub_multiboot_payload_eip): Likewise.
27350 (grub_multiboot_payload_esp): Likewise.
27351 (grub_multiboot_boot): Use grub_relocator32_boot.
27352 (grub_multiboot_unload): Free relocators.
27353 (grub_multiboot): Setup stack. Use relocators.
27354 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
27355 (grub_multiboot_load_elfXX): Use relocators.
27356 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
27357 (grub_multiboot_payload_size): Likewise.
27358 (grub_multiboot_payload_dest): Likewise.
27359 (grub_multiboot_payload_entry_offset): Likewise.
27360 (grub_multiboot_forward_relocator): Likewise.
27361 (grub_multiboot_backward_relocator): Likewise.
27362 (grub_multiboot_real_boot): Likewise.
27363 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
27364 (grub_xnu_entry_point): Likewise.
27365 (grub_xnu_arg1): Likewise.
27366 (grub_xnu_stack): Likewise.
27367 (grub_xnu_launch): Removed.
27368 (grub_xnu_boot_resume): New function.
27369 (grub_xnu_boot): Use relocators.
27370 * loader/i386/xnu_helper.S: Removed.
27371 * loader/xnu.c (grub_xnu_heap_start): New variable.
27372 (grub_xnu_heap_size): Likewise.
27373 (grub_xnu_heap_malloc): Use relocators.
27374 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
27375
29eb90c6
VS
273762009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
27377
27378 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
27379 anything.
27380
31027430
CPE
273812009-12-13 Carles Pina i Estany <carles@pina.cat>
27382
27383 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
27384 GRUB_ERR_NONE before calling grub_env_set.
27385
dc0c71d9
RM
273862009-12-12 Robert Millan <rmh@aybabtu.com>
27387
27388 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
27389 * genmk.rb (video): New variable.
27390 (CLEANFILES, VIDEOFILES): Add #{video}.
27391 (#{video}): New target rule.
27392 * genvideolist.sh: New file.
27393 * Makefile.in (pkglib_DATA): Add video.lst.
27394 (video.lst): New target rule.
27395 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
27396 `video.lst'.
27397 * util/grub.d/30_os-prober.in: Replace `vbe' with
27398 ${GRUB_VIDEO_BACKEND}.
27399
2a4bfcf0
RM
274002009-12-11 Robert Millan <rmh.grub@aybabtu.com>
27401
27402 * THANKS: Add David Miller.
27403
2a3aa4d5
RM
274042009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
27405
27406 libpciaccess support.
27407
27408 * Makefile.in (LIBPCIACCESS): New variable.
27409 (enable_grub_emu_pci): Likewise.
27410 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
27411 util/pci.c and commands/lspci.c.
27412 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
27413 * configure.ac (grub-emu-pci): New option.
27414 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
27415 (grub_pci_device_unmap_range): Likewise.
27416 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
27417 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
27418 (grub_pci_address_t) [!GRUB_UTIL]: New type.
27419 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
27420 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
27421 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
27422 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
27423 * include/grub/pciutils.h: New file.
27424 * util/pci.c: Likewise.
27425
0ad46fd7 274262009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
27427
27428 * util/misc.c: Don't include <errno.h> twice.
27429
0ad46fd7 274302009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
27431
27432 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
27433 name in an error message.
27434 (grub_biosdisk_rw): Likewise.
27435
2e59983c
VS
274362009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27437
27438 Eliminate NTFS 4Gib barrier.
27439
27440 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
27441 (read_run_data): Likewise.
27442 (grub_ntfs_read_run_list): Likewise.
27443 (grub_ntfs_read_block): Likewise.
27444 (grub_ntfs_iterate_dir): Likewise.
27445 (read_mft): Likewise.
27446 (read_data): Likewise.
27447 Use COM_LOG_LEN.
27448 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
27449 to avoid 64-bit division
27450 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
27451 (grub_ntfs_rlst): Use grub_disk_addr_t.
27452
71ee178a
VS
274532009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27454
27455 Eliminate grub-fstest 4Gib barrier.
27456
27457 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
27458 (read_file): Fix error reporting.
27459
2520d4b8
VS
274602009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27461
27462 Eliminate hexdump 4Gib barrier.
27463
27464 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
27465 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
27466
e1f27065
VS
274672009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
27468
27469 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
27470 Fixes amarsh bug.
27471
1a0f7f45
RM
274722009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
27473
27474 Remove miscellaneous files in distclean target.
27475
27476 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
27477
c631d9fb
CW
274782009-12-09 Colin Watson <cjwatson@ubuntu.com>
27479
27480 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
27481 if they're already set. This resolves the conflict between my
27482 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
27483 fixing the --grub-probe option again.
27484 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
27485 change on 2009-10-06, so that we now once again source
27486 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27487
7c7b6106
RM
274882009-12-08 Robert Millan <rmh.grub@aybabtu.com>
27489
27490 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
27491 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
27492 `util/devicemap.c'.
27493
e3069ec1
CPE
274942009-12-08 Carles Pina i Estany <carles@pina.cat>
27495
27496 * include/grub/misc.h (grub_printf_): New declaration.
27497 * kern/misc.c (grub_printf_): New definition.
27498 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
27499 instead of `grub_printf' and `_'.
27500 * normal/menu_entry.c (store_completion): Likewise.
27501 (run): Likewise.
27502 (grub_menu_entry_run): Likewise.
27503 * normal/menu_text.c (grub_wait_after_message): Likewise.
27504 (notify_booting): Likewise.
27505 (notify_fallback): Likewise.
27506 (notify_execution_failure): Likewise.
27507
d6ceebf1
CW
275082009-12-07 Colin Watson <cjwatson@ubuntu.com>
27509
27510 * configure.ac: Check for vasprintf.
27511 * util/misc.c (asprintf): Move allocation from here ...
27512 (vasprintf): ... to here. New function.
27513 (xasprintf): New function.
27514 * include/grub/util/misc.h (vasprintf, xasprintf): Add
27515 prototypes.
27516 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
27517 * util/grub-mkfont.c (write_font): Likewise.
27518 * util/grub-probe.c (probe): Likewise.
27519 * util/hostdisk.c (make_device_name): Likewise.
27520
de6daa8b
DM
275212009-12-06 David S. Miller <davem@sunset.davemloft.net>
27522
27523 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
27524 anything even prefixed with 'cdrom' as a cdrom.
27525
0ad46fd7 275262009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
27527
27528 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
27529 mount points.
27530
98d3dc02
CPE
275312009-12-05 Carles Pina i Estany <carles@pina.cat>
27532
27533 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
27534 grub_gettext_msg_list.
27535 (grub_gettext_gettranslation_from_position): Return const char *
27536 and not char *.
a2c1332b 27537 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
27538 returns from the list if existing there.
27539 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
27540 (grub_gettext_delete_list): Delete the list.
27541 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
27542 lang environment variable is changed.
27543 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
27544
b283f108
VS
275452009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27546
27547 Rename kernel.mod to kernel.img.
27548
27549 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
27550 (kernel_mod_EXPORTS): Rename to ...
27551 (kernel_img_EXPORTS): ... this.
27552 (kernel_mod_SOURCES): Rename to ...
27553 (kernel_img_SOURCES): ... this.
27554 (kernel_mod_HEADERS): Rename to ...
27555 (kernel_img_HEADERS): ... this. All users updated.
27556 (kernel_mod_CFLAGS): Rename to ...
27557 (kernel_img_CFLAGS): ... this.
27558 (kernel_mod_ASFLAGS): Rename to ...
27559 (kernel_img_ASFLAGS): ... this.
27560 (kernel_mod_LDFLAGS): Rename to ...
27561 (kernel_img_LDFLAGS): ... this.
27562 * conf/x86_64-efi.rmk: Likewise.
27563 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
27564 (read_kernel_image): ... this. All users updated.
27565 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
27566
69055f8a
CPE
275672009-12-05 Carles Pina i Estany <carles@pina.cat>
27568
27569 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
27570 (print_spaces): New function.
27571 (grub_print_ucs4): New function.
27572 (getstringwidth): New function.
27573 (print_message_indented): New function.
27574 (print_message): Gettexttize strings using print_message_indented.
27575 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
27576 width.
27577 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 27578 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
27579 Gettextize.
27580 * normal/menu_entry.c (store_completion): Cleanup the gettextized
27581 string.
27582 (run): Likewise.
27583 (grub_menu_entry_run): Likewise.
27584 * PO/POTFILES: Add normal/menu_entry.c.
27585
f616f51c
VS
275862009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
27587
27588 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
27589
57bbe3be
CPE
275902009-12-05 Carles Pina i Estany <carles@pina.cat>
27591
27592 * util/grub-install.in: Install gettext .mo files.
27593 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
27594
013d67a1
CPE
275952009-12-05 Carles Pina i Estany <carles@pina.cat>
27596
27597 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
27598 grub_dprintf.
27599
fb954db0
RM
276002009-12-05 Robert Millan <rmh.grub@aybabtu.com>
27601
27602 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
27603 non-firmware-dependant one in realmode.S takes precedence.
27604
6b8474f8
RM
276052009-12-04 Robert Millan <rmh.grub@aybabtu.com>
27606
27607 * commands/halt.c: Replace misc arch-specific headers with
27608 `<grub/misc.h>'.
27609 * commands/reboot.c: Likewise.
27610 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
27611 `<grub/misc.h>'.
27612 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
27613 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
27614 (kernel_img_SOURCES): ... to here.
27615
27616 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
27617 * include/grub/i386/pc/init.h: Likewise.
27618 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27619 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27620
27621 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
27622
27623 * include/grub/i386/halt.h: Remove.
27624 * include/grub/i386/reboot.h: Likewise.
27625
27626 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
27627
4b2e6ca2
DM
276282009-12-03 David S. Miller <davem@sunset.davemloft.net>
27629
27630 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
27631 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
27632 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
27633 "progname.h"
27634 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27635 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27636 (usage): Add missing comma in printf.
27637
5239348f
RM
276382009-12-02 Robert Millan <rmh.grub@aybabtu.com>
27639
27640 Use the same reboot approach on i386 coreboot and qemu as we do on
27641 BIOS.
27642
27643 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
27644 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
27645 * kern/i386/reboot.c: Remove.
27646 * include/grub/i386/reboot.h (grub_reboot): Export function.
27647 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
27648 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
27649 0xf000:0xfff0 instead of 0xffff:0x0000.
27650 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
27651 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
27652
ef34cbd4
RM
276532009-11-30 Robert Millan <rmh.grub@aybabtu.com>
27654
27655 Fix $srcdir != $objdir build.
27656
27657 * Makefile.in (po/%.po): Rewrite as ...
27658 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
27659
dc9837ea
ST
276602009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
27661
27662 Fix GNU/Hurd grub-install crash.
27663 * util/grub-probe.c (probe): Try to access `path' only when it is not
27664 NULL.
27665
2f857f98
VS
276662009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27667
27668 Correct module naming.
27669
27670 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27671 (GRUB_MOD_INIT(efi_uga)): ... to this
27672 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27673 (GRUB_MOD_FINI(efi_uga)): ... to this
27674 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
27675 (GRUB_MOD_INIT(efi_gop)): ... to this
27676 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
27677 (GRUB_MOD_FINI(efi_gop)): ... to this
27678
c5448046
RM
276792009-11-28 Robert Millan <rmh.grub@aybabtu.com>
27680
27681 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
27682 translatable.
27683 (usage): Translate `arg' strings using gettext().
27684 Thanks to Jordi Mallach for the suggestion.
27685
c85184ad
VS
276862009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27687
27688 GOP support. Based on patch from Bean
27689 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27690
27691 * video/efi_gop.c: New file.
27692 * include/grub/efi/graphics_output.h: Likewise.
27693 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
27694 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27695 variables.
27696 * conf/x86_64-efi.rmk: Likewise.
27697
8a4c48d8
VS
276982009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
27699
27700 Rename efi_fb to efi_uga.
27701
27702 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27703 'efi_uga.mod'.
27704 (efi_fb_mod_SOURCES): Rename this ...
27705 (efi_uga_mod_SOURCES): ... to this.
27706 (efi_fb_mod_CFLAGS): Rename this ...
27707 (efi_uga_mod_CFLAGS): ... to this.
27708 (efi_fb_mod_LDFLAGS): Rename this ...
27709 (efi_uga_mod_LDFLAGS): ... to this.
27710 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
27711 'efi_uga.mod'.
27712 (efi_fb_mod_SOURCES): Rename this ...
27713 (efi_uga_mod_SOURCES): ... to this.
27714 (efi_fb_mod_CFLAGS): Rename this ...
27715 (efi_uga_mod_CFLAGS): ... to this.
27716 (efi_fb_mod_LDFLAGS): Rename this ...
27717 (efi_uga_mod_LDFLAGS): ... to this.
27718 * video/efi_fb.c: Move this ...
27719 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
27720
fb6c1a7b
RM
277212009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27722
27723 * po/README: New file. Explain our PO file workflow.
27724
3bc7896c
RM
277252009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27726
27727 * po/ChangeLog: Remove. Move relevant entries back to ...
27728 * ChangeLog: ... here.
27729 * po/ca.po: Remove (now handled by TLP).
27730 * po/id.po: Likewise.
27731 * po/zh_CN.po: Likewise.
27732 * Makefile.in (LINGUAS): Initialize in a way that supports
27733 empty set.
27734
9ed4841d
RM
277352009-11-27 Robert Millan <rmh.grub@aybabtu.com>
27736
27737 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
27738 reliing on po/LINGUAS.
27739 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
27740 (po/%.po): ... this.
27741
0ad46fd7 277422009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
27743
27744 * util/i386/efi/grub-mkimage.c: Include "progname.h".
27745 (main): Use `program_name' instead of nonexistent `progname'.
27746
e30dd392
FZ
277472009-11-26 Felix Zielcke <fzielcke@z-51.de>
27748
27749 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27750 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
27751
7656de4f
RM
277522009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27753
27754 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
27755 commit.
27756 * conf/i386-efi.rmk: Likewise.
27757 * conf/i386-ieee1275.rmk: Likewise.
27758 * conf/powerpc-ieee1275.rmk: Likewise.
27759 * conf/sparc64-ieee1275.rmk: Likewise.
27760 * conf/x86_64-efi.rmk: Likewise.
27761
db77c4d4
FZ
277622009-11-26 Felix Zielcke <fzielcke@z-51.de>
27763
27764 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
27765
a755bb04
FZ
277662009-11-26 Felix Zielcke <fzielcke@z-51.de>
27767
27768 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
27769
8a4c07fd
RM
277702009-11-26 Robert Millan <rmh.grub@aybabtu.com>
27771
27772 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
27773 (grub_mkdevicemap_SOURCES): New variable.
27774 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
27775 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
27776 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
27777 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
27778 (grub_mkdevicemap_SOURCES): Remove.
27779 * conf/i386-efi.rmk: Likewise.
27780 * conf/i386-ieee1275.rmk: Likewise.
27781 * conf/i386-pc.rmk: Likewise.
27782 * conf/powerpc-ieee1275.rmk: Likewise.
27783 * conf/sparc64-ieee1275.rmk: Likewise.
27784 * conf/x86_64-efi.rmk: Likewise.
27785 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
27786 (usage): Fix strings to use `program_name'.
27787 (main): Initialize gettext.
27788 * util/grub-editenv.c: Likewise.
27789 * util/grub-emu.c: Likewise.
27790 * util/grub-fstest.c: Likewise.
27791 * util/grub-mkdevicemap.c: Likewise.
27792 * util/grub-mkfont.c: Likewise.
27793 * util/grub-mkrelpath.c: Likewise.
27794 * util/grub-pe2elf.c: Likewise.
27795 * util/grub-probe.c: Likewise.
27796 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
27797 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
27798 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27799
27800 * util/misc.c: Include `"progname.h"'.
27801 (progname): Remove variable.
27802 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
27803
6f61ed55
FZ
278042009-11-25 Felix Zielcke <fzielcke@z-51.de>
27805
27806 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
27807 printf and print a newline after the menuentry header line.
27808 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27809
f022876b
FZ
278102009-11-25 Felix Zielcke <fzielcke@z-51.de>
27811
27812 autoconf >= 2.60 support $(localedir).
27813
27814 * INSTALL: Note that autoconf 2.60 is required.
27815 * configure.ac (AC_PREREQ): Bump to 2.60.
27816 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27817 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27818
6717926e
YB
278192009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27820
27821 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27822 aclocal is run.
27823
08806a54
RM
278242009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27825
27826 * normal/main.c (grub_normal_read_line): Fix off-by-one
27827 buffer overflow.
27828
13b33fba
RM
278292009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27830
27831 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27832 "parser.grub" in grub_command_execute() call.
27833
4a8572e9
CPE
278342009-11-24 Carles Pina i Estany <carles@pina.cat>
27835
27836 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27837 * conf/i386-efi.rmk: Likewise.
27838 * conf/i386-ieee1275.rmk: Likewise.
27839 * conf/i386-pc.rmk: Likewise.
27840 * conf/powerpc-ieee1275.rmk: Likewise.
27841 * conf/sparc64-ieee1275.rmk: Likewise.
27842 * conf/x86_64-efi.rmk: Likewise.
27843 * gettext/gettex.c: Include <grub/i18n.h>.
27844 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27845 here ...
27846 * include/grub/i18n.h: ... to here
27847 * include/grub/i18n.h: ... to here.
27848 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 27849 (grub_gettext_dummy): Move above user.
4a8572e9 27850
bee48093
FZ
278512009-11-24 Felix Zielcke <fzielcke@z-51.de>
27852
27853 * util/Makefile.in (install-local): Convert a `for' into a normal
27854 shell expansion.
27855
a031e91c
RM
278562009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27857
27858 * autogen.sh: Add automake call.
27859 * config.guess: Remove.
27860 * config.sub: Likewise.
27861 * install-sh: Likewise.
27862
26bec39d
FZ
278632009-11-24 Felix Zielcke <fzielcke@z-51.de>
27864
27865 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27866
8e2532fd
FZ
278672009-11-24 Felix Zielcke <fzielcke@z-51.de>
27868
27869 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27870 function to a normal shell `for'.
27871
fefa1b7d
FZ
278722009-11-24 Felix Zielcke <fzielcke@z-51.de>
27873
27874 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27875
4501250b
FZ
278762009-11-24 Felix Zielcke <fzielcke@z-51.de>
27877
27878 * util/grub-mkrelpath.c: New file.
27879 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27880 (grub_mkrelpath_SOURCES): New variable.
27881 * include/grub/util/misc.h: New function prototype.
27882 * util/misc.c (make_system_path_relative_to_its_root): New function.
27883
27884 * util/grub-mkconfig_lib.in (bindir): New variable.
27885 (grub_mkrelpath): Likewise.
27886 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27887
27888 * util/probe.c (probe): Make the file path relative to its root.
27889 Change a info message to use the GRUB path. Enable again the
27890 check if we can read the file with GRUB facilities.
27891
27892 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27893 to its root.
27894
11d9778b
FZ
278952009-11-24 Felix Zielcke <fzielcke@z-51.de>
27896
27897 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27898 platform.
27899
4465287d
FZ
279002009-11-24 Felix Zielcke <fzielcke@z-51.de>
27901
27902 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27903 strncmp().
27904
62b47f22
FZ
279052009-11-24 Felix Zielcke <fzielcke@z-51.de>
27906
27907 * util/getroot.c (grub_util_is_dmraid): New function.
27908 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27909 devices as normal ones, not as LVM.
27910
1eafb9b9 279112009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
27912
27913 * conf/common.rmk: Add grub-gettext_lib target and updates
27914 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27915 LDFLAGS.
27916 * gettext/gettext.c: New file. (Reads mo files).
27917 * include/grub/file.h (grub_file_pread): New prototype.
27918 * include/grub/i18n.h (_): New prototype.
27919 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27920 prototypes.
27921 * kern/misc.c (grub_gettext_dummy): New function.
27922 * normal/menu_text.c: Include <grub/i18n.h>.
27923 * normal/menu_text.c (print_timeout): Gettexttize string.
27924 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
27925 * po/POTFILES: Add `normal/menu_text.c'.
27926 * po/ca.po: Add new translations.
c3ea6bd4
CPE
27927 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27928 gettext module and defines locale_dir and lang in grub.cfg.
27929 * NEWS: Add gettext support.
27930
0fdb2568
RM
279312009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27932
27933 * util/hostdisk.c: Include `<grub/i18n.h>'.
27934 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27935 (make_device_name): Rewrite using asprintf.
27936 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27937 (find_system_device): If a device is not found, generate one just
27938 by reusing the OS path name.
27939 (read_device_map): Make it permissible for device.map not to exist.
27940
f515aa62
RM
279412009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27942
27943 * script/sh/execute.c: Move from here ...
27944 * script/execute.c: ... to here. Update all users.
27945 * script/sh/function.c: Move from here ...
27946 * script/function.c: ... to here. Update all users.
27947 * script/sh/lexer.c: Move from here ...
27948 * script/lexer.c: ... to here. Update all users.
27949 * script/sh/main.c: Move from here ...
27950 * script/main.c: ... to here. Update all users.
27951 * script/sh/parser.y: Move from here ...
27952 * script/parser.y: ... to here. Update all users.
27953 * script/sh/script.c: Move from here ...
27954 * script/script.c: ... to here. Update all users.
27955
f84b481b
RM
279562009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27957
27958 * configure.ac: Detect all `emu' platforms. Define
27959 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27960 --enable-grub-emu logic. Disable include/grub/machine
27961 symlink on `emu' platforms.
27962
27963 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27964 * gensymlist.sh.in: Likewise.
27965
27966 * include/grub/i386/coreboot/machine.h: Remove file.
27967 * include/grub/i386/efi/machine.h: Likewise.
27968 * include/grub/i386/ieee1275/machine.h: Likewise.
27969 * include/grub/i386/pc/machine.h: Likewise.
27970 * include/grub/i386/qemu/machine.h: Likewise.
27971 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27972 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27973 * include/grub/x86_64/efi/machine.h: Likewise.
27974
27975 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27976 * commands/halt.c: Likewise.
27977 * commands/reboot.c: Likewise.
27978 * include/grub/autoefi.h: Likewise.
27979 * include/grub/i386/at_keyboard.h: Likewise.
27980 * include/grub/i386/kernel.h: Likewise.
27981 * include/grub/i386/loader.h: Likewise.
27982 * include/grub/i386/pc/memory.h: Likewise.
27983 * kern/dl.c: Likewise.
27984 * kern/i386/coreboot/init.c: Likewise.
27985 * loader/i386/bsd.c: Likewise.
27986 * loader/i386/linux.c: Likewise.
27987 * loader/multiboot_loader.c: Likewise.
27988 * term/i386/pc/serial.c: Likewise.
27989 * term/usb_keyboard.c: Likewise.
27990
27991 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27992 `<grub/machine/machine.h>'
27993 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27994 * util/misc.c: Remove `<grub/machine/machine.h>' and
27995 `<grub/machine/time.h>'.
27996
27997 * Makefile.in (enable_grub_emu): Remove variable.
27998 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27999
28000 * conf/any-emu.rmk: New file.
28001 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
28002 (grub_emu_init.c): Move from here ...
28003 * conf/any-emu.rmk: ... to here.
28004
28005 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
28006 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
28007 * conf/any-emu.rmk: ... to here.
28008
4efeab03
RM
280092009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28010
28011 * include/grub/parser.h (grub_parser_register): Document need
28012 of `name' parameter.
28013 * normal/main.c (grub_normal_read_line): Simplify prompt string.
28014 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
28015 "sh" to "grub".
28016
ea1dd8bf
RM
280172009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28018
28019 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
28020 `$(XGETTEXT)'.
28021 * include/grub/i18n.h (N_): New macro.
28022 * util/mkisofs/mkisofs.h: Likewise.
28023 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
28024 around N_().
28025 (usage): Use gettext() to translate help strings when printing them.
28026
0c140626
RM
280272009-11-23 Robert Millan <rmh.grub@aybabtu.com>
28028
28029 Based on patch from Bean
28030 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
28031
28032 * video/efi_fb.c: New file.
28033 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
28034 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
28035 variables.
28036 * conf/x86_64-efi.rmk: Likewise.
28037
87d58298
RM
280382009-11-22 Robert Millan <rmh.grub@aybabtu.com>
28039
28040 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
28041 * util/i386/pc/grub-setup.c: Likewise.
28042
994cc3a3
ST
280432009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
28044
28045 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
28046 <hurd/fs.h>
28047 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
28048 file_get_storage_info to implement grub_guess_root_device.
28049
26a61d6a
FZ
280502009-11-21 Felix Zielcke <fzielcke@z-51.de>
28051
28052 * Makefile.in (target): Use make's builtin $(shell) function
28053 instead of calling directly $(SHELL) to create the locale directories,
28054 inside the $(foreach) function.
28055
74ff1dd5
FZ
280562009-11-21 Felix Zielcke <fzielcke@z-51.de>
28057
28058 * util/grub-mkrescue.in: Print an error and usage if output option
28059 has not been given.
28060
0b787d0e
FZ
280612009-11-21 Felix Zielcke <fzielcke@z-51.de>
28062
28063 Patch from Loïc Minier <loic.minier@ubuntu.com>.
28064 * util/grub.d/30_os-prober.in: Cope with Linux entries where
28065 root and /boot are on different devices.
28066
1164b270
RM
280672009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28068
28069 Fix build for srcdir != objdir.
28070
28071 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
28072 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
28073 $(srcdir).
28074 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
28075 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
28076 reference for input.
28077
13774a2f
RM
280782009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28079
28080 * util/grub-mkrescue.in: Use source directory direcly (without copiing
28081 or hardlinking it). Remove -J option, Joliet is not compatible with
28082 multiple source directories.
28083
efda854e
RM
280842009-11-21 Carles Pina i Estany <carles@pina.cat>
280852009-11-21 Robert Millan <rmh.grub@aybabtu.com>
28086
28087 * util/grub-mkrescue.in: Recognize `--override-directory' option.
28088 (process_input_dir): New function. Process an arbitrary input
28089 directory.
28090 Misc adjustments to support both "override mode" and system-wide mode.
28091
6c09890c
FZ
280922009-11-20 Felix Zielcke <fzielcke@z-51.de>
28093
28094 * configure.ac (UNIFONT_BDF): Rename to ...
28095 (FONT_SOURCE): ... this. Update all users.
28096
a797824f
FZ
280972009-11-20 Felix Zielcke <fzielcke@z-51.de>
28098
28099 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
28100 to the list of unifont files to look for.
28101
cd4f42b0
RM
281022009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28103
28104 Patch from Joe Auricchio <jauricchio@gmail.com>
28105 * commands/minicmd.c (grub_mini_cmd_clear): New function.
28106 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
28107 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
28108
393c783d
FZ
281092009-11-19 Felix Zielcke <fzielcke@z-51.de>
28110
28111 * Makefile.in (install-local): Add a missing backslash.
28112
b2f1e327
FZ
281132009-11-19 Felix Zielcke <fzielcke@z-51.de>
28114
28115 * include/grub/x86_64/io.h: New file.
28116
f577f7a0
RM
281172009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28118
28119 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
28120 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
28121 Include `"progname.h"'.
28122 (main): Initialize gettext.
28123 * util/i386/pc/grub-setup.c: Gettexttize.
28124 * util/i386/pc/grub-mkimage.c: Likewise.
28125
28126 * Makefile.in (po/*.po): Redefine as ...
28127 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
28128
3bc7896c
RM
28129 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
28130
c37943b6
RM
281312009-11-19 Robert Millan <rmh.grub@aybabtu.com>
28132
28133 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
28134 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
28135 (program_name): Remove.
28136 (main): Initialize gettext support.
6323f705
RM
28137 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
28138 Include `<libintl.h>'.
28139 (_): New macro.
c37943b6
RM
28140
28141 * util/mkisofs/eltorito.c: Gettexttize.
28142 * util/mkisofs/joliet.c: Likewise.
28143 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
28144 * util/mkisofs/multi.c: Likewise.
28145 * util/mkisofs/rock.c: Likewise.
28146 * util/mkisofs/tree.c: Likewise.
28147 * util/mkisofs/write.c: Likewise.
28148
3bc7896c
RM
28149 * po/POTFILES: Update with new files.
28150
5ce77c6e
RM
281512009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28152
28153 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
28154 * util/mkisofs/iso9660.h: Likewise.
28155 * util/mkisofs/joliet.c: Likewise.
28156 * util/mkisofs/mkisofs.c: Likewise.
28157 * util/mkisofs/mkisofs.h: Likewise.
28158 * util/mkisofs/rock.c: Likewise.
28159 * util/mkisofs/tree.c: Likewise.
28160 * util/mkisofs/write.c: Likewise.
28161
28162 * util/mkisofs/eltorito.c (rcsid): Remove.
28163 * util/mkisofs/hash.c: Likewise.
28164 * util/mkisofs/joliet.c: Likewise.
28165 * util/mkisofs/name.c: Likewise.
28166 * util/mkisofs/rock.c: Likewise.
28167 * util/mkisofs/tree.c: Likewise.
28168 * util/mkisofs/write.c: Likewise.
28169
1dabbc77
RM
281702009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28171
28172 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
28173 instead of static allocation.
28174 * util/mkisofs/match.h: Likewise.
28175
633877cb
RM
281762009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28177
3bc7896c
RM
28178 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
28179 and `util/grub.d/10_linux.in'.
633877cb
RM
28180 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
28181 translatable Shell files.
28182
af1c0c85
RM
281832009-11-18 Robert Millan <rmh.grub@aybabtu.com>
28184
28185 * Makefile.in ($(srcdir)/aclocal.m4): New target.
28186
769ae37b
RM
281872009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28188
28189 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 28190 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
28191 * util/grub.d/10_kfreebsd.in (bindir): New variable.
28192 Add gettext initialization.
28193 (kfreebsd_entry): Make menuentry output translatable.
28194
281952009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28196
28197 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
28198 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
28199 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
28200 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
28201 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 28202 * po/LINGUAS: New file.
769ae37b
RM
28203
282042009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28205
28206 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
28207 other things).
28208 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
28209 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
28210 bindtextdomain() calls for gettext initialization.
28211
282122009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28213
28214 * gnulib/progname.c: New file (imported from Gnulib).
28215 * gnulib/progname.h: Likewise.
28216 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
28217 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
28218 (usage): Replace `progname' with `program_name'.
28219 (main): Use set_program_name() for program name initialization.
28220
282212009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28222
28223 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
28224 from here ...
28225 * Makefile.in (CPPFLAGS): ... to here.
28226
282272009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28228
28229 * aclocal.m4: Move from here ...
28230 * acinclude.m4: ... to here.
28231 * autogen.sh: Add call to `aclocal'.
28232 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
28233
282342009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28235
28236 * Makefile.in (CLEANFILES): Add `po/*.mo'.
28237 (LINGUAS): New variable.
28238 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
28239 (install-local): Install MO files.
28240 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
28241 * include/grub/i18n.h: New file.
3bc7896c
RM
28242 * po/POTFILES: New file.
28243 * po/ca.po: New file.
769ae37b
RM
28244 * util/grub.d/10_linux.in (bindir): New variable.
28245 Add gettext initialization.
28246 (linux_entry): Make menuentry output translatable.
28247 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
28248 (usage): Make --help output translatable.
28249 (main): Initialize gettext.
28250
02c0a6ad
RM
282512009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28252
28253 * import_gcry.py: New file (written by Vladimir with minor
28254 adjustments).
28255 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
28256 ciphers.
28257 * INSTALL: Document that Python is required for bootstrap.
28258
282592009-11-17 Robert Millan <rmh.grub@aybabtu.com>
28260
28261 Import ciphers from libgcrypt 1.4.4.
28262
28263 * lib/libgcrypt/cipher/ChangeLog
28264 * lib/libgcrypt/cipher/ac.c
28265 * lib/libgcrypt/cipher/arcfour.c
28266 * lib/libgcrypt/cipher/bithelp.h
28267 * lib/libgcrypt/cipher/blowfish.c
28268 * lib/libgcrypt/cipher/camellia-glue.c
28269 * lib/libgcrypt/cipher/camellia.c
28270 * lib/libgcrypt/cipher/camellia.h
28271 * lib/libgcrypt/cipher/cast5.c
28272 * lib/libgcrypt/cipher/cipher.c
28273 * lib/libgcrypt/cipher/crc.c
28274 * lib/libgcrypt/cipher/des.c
28275 * lib/libgcrypt/cipher/dsa.c
28276 * lib/libgcrypt/cipher/ecc.c
28277 * lib/libgcrypt/cipher/elgamal.c
28278 * lib/libgcrypt/cipher/hash-common.c
28279 * lib/libgcrypt/cipher/hash-common.h
28280 * lib/libgcrypt/cipher/hmac-tests.c
28281 * lib/libgcrypt/cipher/md.c
28282 * lib/libgcrypt/cipher/md4.c
28283 * lib/libgcrypt/cipher/md5.c
28284 * lib/libgcrypt/cipher/primegen.c
28285 * lib/libgcrypt/cipher/pubkey.c
28286 * lib/libgcrypt/cipher/rfc2268.c
28287 * lib/libgcrypt/cipher/rijndael-tables.h
28288 * lib/libgcrypt/cipher/rijndael.c
28289 * lib/libgcrypt/cipher/rmd.h
28290 * lib/libgcrypt/cipher/rmd160.c
28291 * lib/libgcrypt/cipher/rsa.c
28292 * lib/libgcrypt/cipher/seed.c
28293 * lib/libgcrypt/cipher/serpent.c
28294 * lib/libgcrypt/cipher/sha1.c
28295 * lib/libgcrypt/cipher/sha256.c
28296 * lib/libgcrypt/cipher/sha512.c
28297 * lib/libgcrypt/cipher/tiger.c
28298 * lib/libgcrypt/cipher/twofish.c
28299 * lib/libgcrypt/cipher/whirlpool.c
28300
af2f93ac
RM
283012009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28302
28303 Fix build for systems without error().
28304
28305 * gnulib/error.c: New file (imported from Gnulib).
28306 * gnulib/error.h: Likewise.
28307 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
28308 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
28309 (this variable is now used by error()).
28310
73fb3dd5
FZ
283112009-11-16 Felix Zielcke <fzielcke@z-51.de>
28312
814f5e96
FZ
28313 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
28314 instead of relying that char is signed.
73fb3dd5 28315
a691ca33
VS
283162009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
28317
28318 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
28319 blocksize different from specified.
28320 (grub_pxefs_read): Likewise.
28321
2af8f0f4
FZ
283222009-11-16 Felix Zielcke <fzielcke@z-51.de>
28323
28324 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
28325
28326 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
28327 (grub_ata_readwrite): Likewise. Update 2 format strings.
28328 (grub_atapi_read): Likewise.
28329
28330 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
28331 * conf/i386.rmk (pkglib_MODULES): ... to here ...
28332 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
28333 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
28334 (ata_mod_LDFLAGS): Move from here ...
28335 * conf/i386.rmk: ... to here ...
28336 * conf/x86_64-efi.rmk: ... and here.
28337 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
28338 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
28339
83bdecaf
RM
283402009-11-16 Robert Millan <rmh.grub@aybabtu.com>
28341
28342 Relicense multiboot.h, with RMS' blessing.
28343
28344 * include/multiboot.h: Change to X11 license.
28345
fd6fd3d7
RM
283462009-11-15 Robert Millan <rmh.grub@aybabtu.com>
28347
28348 Support --version in grub-mkisofs.
28349
28350 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
28351 (OPTION_VERSION): New macro.
28352 (ld_options): Recognize --version.
28353 (usage): Move `program_name' from here ...
28354 (program_name): ... to here. Add `static' qualifier.
28355 (main): Recognize `OPTION_VERSION'.
28356
16a88c49
FZ
283572009-11-15 Felix Zielcke <fzielcke@z-51.de>
28358
28359 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
28360 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
28361
a4158476
RM
283622009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28363
28364 Fix help2man generation for mkisofs.
28365
28366 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
28367 (usage): Send output to stdout (rather than stderr).
28368
fc2208b0
RM
283692009-11-14 Robert Millan <rmh.grub@aybabtu.com>
28370
28371 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
28372 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28373 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
28374 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
28375 (bin_SCRIPTS): Add `grub-mkfloppy'.
28376 (grub_mkfloppy_SOURCES): New variable.
28377
28378 * util/grub-mkrescue.in: New file.
28379 * util/i386/pc/grub-mkfloppy.in: New file.
28380
28381 * util/i386/coreboot/grub-mkrescue.in: Remove.
28382 * util/i386/pc/grub-mkrescue.in: Remove.
28383
8d0edf4a
RM
283842009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28385
28386 * include/grub/multiboot.h (struct grub_multiboot_header): Move
28387 from here ...
28388 * include/multiboot.h (struct multiboot_header): ... to here. Update
28389 all users.
28390 * include/grub/multiboot.h (struct grub_multiboot_info): Move
28391 from here ...
28392 * include/multiboot.h (struct multiboot_info): ... to here. Update
28393 all users.
28394 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
28395 from here ...
28396 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
28397 Update all users.
28398 * include/grub/multiboot.h (struct grub_mod_list): Move
28399 from here ...
28400 * include/multiboot.h (struct multiboot_mod_list): ... to here.
28401 Update all users.
28402
a73f5969
RM
284032009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28404
28405 * include/multiboot2.h (multiboot_word): Rename from this ...
28406 (multiboot2_word): ... to this. Update all users.
28407 (multiboot_header): Rename from this ...
28408 (multiboot2_header): ... to this. Update all users.
28409 (multiboot_tag_header): Rename from this ...
28410 (multiboot2_tag_header): ... to this. Update all users.
28411 (multiboot_tag_start): Rename from this ...
28412 (multiboot2_tag_start): ... to this. Update all users.
28413 (multiboot_tag_name): Rename from this ...
28414 (multiboot2_tag_name): ... to this. Update all users.
28415 (multiboot_tag_module): Rename from this ...
28416 (multiboot2_tag_module): ... to this. Update all users.
28417 (multiboot_tag_memory): Rename from this ...
28418 (multiboot2_tag_memory): ... to this. Update all users.
28419 (multiboot_tag_unused): Rename from this ...
28420 (multiboot2_tag_unused): ... to this. Update all users.
28421 (multiboot_tag_end): Rename from this ...
28422 (multiboot2_tag_end): ... to this. Update all users.
28423
1c8927f0
RM
284242009-11-13 Robert Millan <rmh.grub@aybabtu.com>
28425
28426 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
28427 this platform we should support Multiboot1 first.
28428
28429 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
28430 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
28431 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
28432
6e1e0d89
RM
284332009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28434
28435 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
28436 of write calls (converting them to fwrite() if they aren't already).
28437 (get_torito_desc): Likewise.
28438 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
28439
7f2b34d8
RM
284402009-11-12 Robert Millan <rmh.grub@aybabtu.com>
28441
28442 * util/i386/pc/grub-install.in: Move from here ...
28443 * util/grub-install.in: ... to here. Update all users.
28444
c0ef3311
CW
284452009-11-11 Colin Watson <cjwatson@ubuntu.com>
28446
28447 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
28448
e1f240ff
RM
284492009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28450
28451 Support for El Torito without floppy emulation.
28452
28453 * util/mkisofs/eltorito.c: Include `<errno.h>'.
28454 (init_boot_catalog): Improve error handling.
28455 (get_torito_desc): Don't use floppy emulation unless requested by
28456 user. Patch boot information table when requested via
28457 `-boot-info-table'.
28458 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
28459 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
28460 (use_boot_info_table): New variables.
28461 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
28462 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
28463 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
28464 `--eltorito-emul-floppy'.
28465 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
28466 and `OPTION_ELTORITO_EMUL_FLOPPY'.
28467 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
28468 (use_boot_info_table, get_731): New prototypes.
28469 * util/mkisofs/write.c (get_731): New function.
28470
af7d4de5
FZ
284712009-11-11 Felix Zielcke <fzielcke@z-51.de>
28472
28473 Fix the generation of the man page.
28474
28475 * util/pc/i386/grub-install.in: Source
28476 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
28477
2c55dbc0
RM
284782009-11-11 Robert Millan <rmh.grub@aybabtu.com>
28479
28480 Large file support for grub-mkisofs.
28481
28482 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
28483 * util/mkisofs/mkisofs.c (next_extent, last_extent)
28484 (session_start): Upgrade type to `uint64_t'. Update all users.
28485 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
28486 (struct directory_entry): Upgrade type of `starting_block' and
28487 `size' to `uint64_t'. Update all users.
28488 (struct deferred): Remove unused structure.
28489 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
28490 Update all users.
28491 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
28492 file is larger than `UINT32_MAX'.
28493 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
28494 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
28495 return value.
28496 (struct deferred_write): Upgrade type of `extent' and `size' to
28497 `uint64_t'. Update all users.
28498 (last_extent_written): Upgrade type to `uint64_t'. Update all
28499 users.
28500 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
28501 Update all users. Upgrade type of `remain' to `int64_t' and
28502 `use' to `size_t'. Use error() to handle fread() errors.
28503 (write_files): Rely on write_one_file() rather than calling
28504 xfwrite() directly.
28505
6a9cead5
FZ
285062009-11-09 Felix Zielcke <fzielcke@z-51.de>
28507
28508 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
28509
4825d790
RM
285102009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28511
28512 * util/mkisofs/fnmatch.c: Remove.
28513 * util/mkisofs/getopt1.c: Likewise.
28514 * util/mkisofs/getopt.c: Likewise.
28515 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
28516 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
28517 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
28518 `gnulib/getopt1.c' and `gnulib/getopt.c'.
28519 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
28520
28521 * configure.ac: Detect `mingw32msvc' host_os.
28522 Check for lstat(), getuid() and getgid().
28523
28524 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
28525 instances of `u_char' with `uint8_t'.
28526
28527 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
28528 [!HAVE_GETUID] (getuid): New function (stub).
28529 [!HAVE_GETGID] (getgid): Likewise.
28530 [!HAVE_LSTAT] (lstat): Likewise.
28531 [!S_IROTH] (S_IROTH): New macro (dummy).
28532 [!S_IRGRP] (S_IRGRP): Likewise.
28533
84b860d8
RM
285342009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28535
28536 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
28537 conditional expression).
28538
66e9b712
RM
285392009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28540
28541 Import from Gnulib.
28542
28543 * gnulib/fnmatch.c: New file.
28544 * gnulib/fnmatch.h: Likewise.
28545 * gnulib/fnmatch_loop.c: Likewise.
28546 * gnulib/getopt.c: Likewise.
28547 * gnulib/getopt.h: Likewise.
28548 * gnulib/getopt1.c: Likewise.
28549 * gnulib/getopt_int.h: Likewise.
28550 * gnulib/gettext.h: Likewise.
28551
34f4a5b0
RM
285522009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28553
28554 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
28555 * normal/handler.c (read_handler_list): Likewise.
28556
ac451143
RM
285572009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28558
28559 Misc cleanup.
28560
28561 * kern/command.c (grub_register_command_prio): Use
28562 grub_zalloc() instead of explicitly zeroing data.
28563 * kern/list.c: Include `<grub/mm.h>'.
28564 (grub_named_list_find): Replace `0' with `NULL'.
28565 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
28566 (fs_module_list): Change type to `grub_named_list_t'. Update all
28567 users.
28568 * normal/dyncmd.c (read_command_list): Add space between function
28569 call and parenthesis.
28570 * normal/handler.c (read_handler_list): Likewise.
28571
4089b167
RM
285722009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28573
28574 * normal/auth.c (punishment_delay): Moved from here ...
28575 (grub_auth_strcmp): ... to here (inside function).
28576
325f5037
RM
285772009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28578
28579 * include/grub/list.h (struct grub_named_list): Remove `const'
28580 qualifier from `name'.
28581 (struct grub_prio_list): Likewise.
28582
7aea29a3
RM
285832009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28584
28585 * normal/auth.c: Include `<grub/time.h>'.
28586 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
28587
3fd6f044
RM
285882009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28589
28590 * normal/auth.c (punishment_delay): New variable.
28591 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
28592 (grub_auth_check_authentication): Punish failed login attempts with
28593 an incremental (2^N) delay.
28594
a4cd68e4
RM
285952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28596
28597 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
28598 path with $(srcdir).
28599
7ad12f43
VS
286002009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28601
28602 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
28603
c1129f03
RM
286042009-11-09 Robert Millan <rmh.grub@aybabtu.com>
28605
28606 * util/i386/coreboot/grub-mkrescue.in: New file.
28607 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
28608 variables.
28609
28610 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
28611 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
28612 * configure.ac: Add header and function checks to satisfy grub-mkisofs
28613 requirements.
28614 * util/mkisofs/defaults.h: New file.
28615 * util/mkisofs/eltorito.c: Likewise.
28616 * util/mkisofs/exclude.h: Likewise.
28617 * util/mkisofs/fnmatch.c: Likewise.
28618 * util/mkisofs/getopt.c: Likewise.
28619 * util/mkisofs/getopt1.c: Likewise.
28620 * util/mkisofs/hash.c: Likewise.
28621 * util/mkisofs/include/fctldefs.h: Likewise.
28622 * util/mkisofs/include/mconfig.h: Likewise.
28623 * util/mkisofs/include/prototyp.h: Likewise.
28624 * util/mkisofs/include/statdefs.h: Likewise.
28625 * util/mkisofs/iso9660.h: Likewise.
28626 * util/mkisofs/joliet.c: Likewise.
28627 * util/mkisofs/match.c: Likewise.
28628 * util/mkisofs/match.h: Likewise.
28629 * util/mkisofs/mkisofs.c: Likewise.
28630 * util/mkisofs/mkisofs.h: Likewise.
28631 * util/mkisofs/multi.c: Likewise.
28632 * util/mkisofs/name.c: Likewise.
28633 * util/mkisofs/rock.c: Likewise.
28634 * util/mkisofs/tree.c: Likewise.
28635 * util/mkisofs/write.c: Likewise.
28636
ec8bb77d
VS
286372009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
28638
28639 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
28640 being insecure.
28641
3716b12c
RM
286422009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28643
28644 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
28645 `grub-mkimage' (and use $0 when possible).
28646
b97b7b91
RM
286472009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28648
28649 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
28650 error message for excessively large memory map.
28651
04114812
RM
286522009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28653
28654 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
28655 executable bit.
28656
e4eb2373
RM
286572009-11-08 Robert Millan <rmh.grub@aybabtu.com>
28658
28659 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
28660 message for coreboot users.
28661
c926e1d5 286622009-11-07 Robert Millan <rmh.grub@aybabtu.com>
28663
28664 Fix build with GNU gold.
28665
28666 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
28667 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
28668 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
28669 link addresses.
28670 * aclocal.m4: Likewise.
28671
86e5b1db 286722009-11-04 Felix Zielcke <fzielcke@z-51.de>
28673
28674 * configure.ac (AC_PREREQ): Bump to 2.59d.
28675 * INSTALL: Make it more clear when Autoconf and Ruby are
28676 needed and when to run `./autogen.sh'.
28677
246cd78f 286782009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28679
28680 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
28681 OSes.
28682
4f9dfb37 286832009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28684
28685 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
28686
b82bd5e1 286872009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28688
28689 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
28690 giving it to GNU Mach.
28691
ff1a9bca 286922009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28693
28694 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
28695 GNU partition number to get internal GRUB partition number.
28696
61697d9c 286972009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
28698
28699 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
28700 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
28701
a50569e1 287022009-11-01 Robert Millan <rmh.grub@aybabtu.com>
28703
28704 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
28705 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
28706 case.
28707
5b153867 287082009-11-01 Felix Zielcke <fzielcke@z-51.de>
28709
28710 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
28711
d9e2cd70 287122009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28713
28714 Fix build problem.
28715
28716 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
28717 `-isystem=$(srcdir)/include'.
28718
805111a4 287192009-10-30 Robert Millan <rmh.grub@aybabtu.com>
28720
28721 * util/i386/pc/grub-install.in: Remove hint that device.map should be
28722 checked (grub-install doesn't currently rely on it).
28723
fa6e945f 287242009-10-29 Robert Millan <rmh.grub@aybabtu.com>
28725
28726 Revert SVN r2660.
28727
28728 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
28729 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28730 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
28731 * conf/i386-ieee1275.rmk: Likewise.
28732 * conf/i386-pc.rmk: Likewise.
28733 * conf/powerpc-ieee1275.rmk: Likewise.
28734 * conf/sparc64-ieee1275.rmk: Likewise.
28735 * conf/x86_64-efi.rmk: Likewise.
28736
cee15086 287372009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28738
28739 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
28740
95b9239e 287412009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28742
28743 * include/grub/misc.h: Stop checking for APPLE_CC.
28744
2ed19dfd 287452009-10-28 Robert Millan <rmh.grub@aybabtu.com>
28746
28747 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
28748 doesn't cause an infinite call loop.
28749
fdcdde19 287502009-10-28 Felix Zielcke <fzielcke@z-51.de>
28751
28752 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
28753 strings.
28754
cefabfe1 287552009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28756
28757 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
28758 variable.
28759 * Makefile.in: Likewise.
28760
ed96ab6d 287612009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28762
28763 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
28764
0579b753 287652009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28766
28767 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
28768
478df409 287692009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28770
28771 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
28772
083d1679 287732009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28774
28775 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
28776 from here ...
28777 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
28778
5947ae32 287792009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28780
28781 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
28782 in $(MAKEINFO) invocation. This makes it clear in output that
28783 errors are being ignored.
28784
94180ff6 287852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28786
28787 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
28788 from here ...
28789 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
28790 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
28791 * conf/i386-ieee1275.rmk: Likewise.
28792 * conf/i386-pc.rmk: Likewise.
28793 * conf/powerpc-ieee1275.rmk: Likewise.
28794 * conf/sparc64-ieee1275.rmk: Likewise.
28795 * conf/x86_64-efi.rmk: Likewise.
28796
9031b03a 287972009-10-26 Colin Watson <cjwatson@ubuntu.com>
28798
28799 * util/grub-editenv.c (main): If only a command is given, use
28800 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
28801 (usage): FILENAME is now optional and has a default.
28802
e4f6809b 288032009-10-26 Colin Watson <cjwatson@ubuntu.com>
28804
28805 Improve grub-mkconfig performance when there are several menu
28806 entries on a single filesystem.
28807
28808 * util/grub.d/10_linux.in (linux_entry): Cache the output of
28809 prepare_grub_to_access_device.
28810 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28811 * util/grub.d/30_os-prober.in: Likewise.
28812
67937d4d 288132009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28814
28815 * util/grub.d/10_freebsd.in: Remove.
28816 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28817 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28818
ee3756cc 288192009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28820
5c35048e 28821 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 28822
4dea1c6f 288232009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28824
28825 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28826 grub_util_error() call.
28827
042484d7 288282009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28829
28830 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28831 `reserved_first_sector' member.
28832 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28833 `reserved_first_sector' to 1.
28834 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28835 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28836 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28837 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28838 filesystems which begin at first sector.
28839 (options): New option --skip-fs-probe.
28840 (main): Handle --skip-fs-probe and pass it to setup().
28841
d64448a7 288422009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28843
28844 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28845 (memset): Fix function prototype.
28846
508d42ec 288472009-10-25 Robert Millan <rmh.grub@aybabtu.com>
288482009-10-25 Vasily Averin <vvs@parallels.com>
28849
28850 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28851 `dirent.direntlen == 0'.
28852
b240e30c 288532009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28854
28855 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28856 `cpio'.
28857 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28858
346e7fbe 288592009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28860
28861 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28862 `__trampoline_setup' and `__ucmpdi2'.
28863 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28864 that libgcc provides.
28865
cdb308b0 288662009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28867
28868 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28869 * include/grub/sparc64/libgcc.h (memset): Likewise.
28870 * include/grub/misc.h (memset, memcmp): New function prototypes.
28871
fb26abc2 288722009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28873
28874 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28875 `cpio'.
28876 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28877
f6693890 288782009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28879
28880 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28881 * docs/grub.cfg: Compensate for recent change in multiboot
28882 loader (since 2009-08-14 it won't pass filename to payload).
28883 * util/grub.d/10_hurd.in: Likewise.
28884
0933cdc0 288852009-10-21 Felix Zielcke <fzielcke@z-51.de>
28886
28887 * config.guess: Update to latest version from config git
28888 repository.
28889 * config.sub: Likewise.
28890
3b2fe8c2 288912009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28892
28893 Fix build on sparc64.
28894
28895 * configure.ac: Perform checks for libgcc symbols before
28896 adding `-nostdlib' to LDFLAGS.
28897
46695a62 288982009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28899
28900 Let user specify OpenBSD root device.
28901
28902 * loader/i386/bsd.c (openbsd_root): New variable.
28903 (openbsd_opts): New option 'root'.
28904 (OPENBSD_ROOT_ARG): New macro.
28905 (grub_openbsd_boot): Use 'openbsd_root'.
28906 (grub_cmd_openbsd): Fill 'openbsd_root'.
28907
d2b6b7fc 289082009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28909
28910 * NEWS: Misc adjustments.
28911
421bd7ac 289122009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28913
28914 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28915
f1d29d87 289162009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28917
28918 * configure.ac: Bump version to 1.97.
28919
6f3cd880 289202009-10-16 Colin Watson <cjwatson@ubuntu.com>
28921
28922 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28923 -mno-3dnow on x86 architectures. Some toolchains enable these
28924 features by default, but they rely on registers that aren't enabled
28925 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28926
035f7122 289272009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28928
28929 Make entry text a bit more readable.
28930
28931 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28932
44998e58 289332009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28934
28935 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28936
cd2851b3 289372009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28938
28939 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28940 operations.
28941
c6f3b249 289422009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28943
28944 * configure.ac: Add missing dollar.
28945
6b5886ba 289462009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28947
28948 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28949
28950 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28951 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28952 exports.
28953 * include/grub/sparc64/libgcc.h: Likewise. Use
28954 preprocessor conditionals.
28955
e9d66f6d 289562009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28957
28958 * conf/common.rmk (grub-dumpbios): Remove rule.
28959 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28960 * util/grub-dumpbios.in: Remove file.
28961
9155bc17 289622009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28963
28964 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28965 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28966
28967 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28968 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28969 users.
28970
28971 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28972 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28973 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28974 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28975 users.
28976
bf7f7a18 289772009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28978
28979 * term/tparm.c: Switch to GPLv3.
28980
86564c26 289812009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28982
28983 * include/grub/i386/cpuid.h: Add header protection.
28984
5c936493 289852009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28986
28987 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28988
28989 * include/grub/i386/cpuid.h: New file.
28990 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28991 (has_longmode): Rename to ...
28992 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28993 `static' attribute.
28994 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28995 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28996 on a CPU that doesn't implement AMD64 instruction set.
28997
186e7cf2 289982009-10-06 Colin Watson <cjwatson@ubuntu.com>
28999
29000 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
29001 that version.texi is rebuilt on version number changes.
29002
83b65c4a 290032009-10-06 Colin Watson <cjwatson@ubuntu.com>
29004
29005 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
29006 Fixes bug #27602.
29007
d244281c 290082009-10-06 Colin Watson <cjwatson@ubuntu.com>
29009
29010 * util/i386/pc/grub-install.in: Source
29011 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
29012 that the --grub-probe option will work.
29013 * util/sparc64/ieee1275/grub-install.in: Likewise.
29014
da25306d 290152009-10-05 Robert Millan <rmh.grub@aybabtu.com>
29016
29017 * configure.ac: Bump version to 1.97~beta4.
29018
e8ee83c0 290192009-10-03 Robert Millan <rmh.grub@aybabtu.com>
29020
29021 Resync grub-mkdevicemap in x86_64-efi.
29022
29023 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
29024 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
29025 `util/devicemap.c'.
29026
50dcabcf 290272009-10-01 Colin Watson <cjwatson@ubuntu.com>
29028
29029 * util/grub-editenv.c (create_envblk_file): Write new block with a
29030 .new suffix and then rename it into place, to ensure atomic
29031 creation.
29032
0e51c3a7 290332009-09-28 Robert Millan <rmh.grub@aybabtu.com>
29034
29035 Do not automatically install headers.
29036
29037 * Makefile.in (include_DATA): Remove. Update all users.
29038
31299a95 290392009-09-26 Robert Millan <rmh.grub@aybabtu.com>
29040
29041 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
29042 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
29043
29044 * util/osdetect.lua: Remove.
29045 * script/lua/lauxlib.c: Likewise.
29046 * script/lua/ldebug.c: Likewise.
29047 * script/lua/grub_main.c: Likewise.
29048 * script/lua/lauxlib.h: Likewise.
29049 * script/lua/ldebug.h: Likewise.
29050 * script/lua/ltablib.c: Likewise.
29051 * script/lua/liolib.c: Likewise.
29052 * script/lua/lstrlib.c: Likewise.
29053 * script/lua/lualib.h: Likewise.
29054 * script/lua/ldo.c: Likewise.
29055 * script/lua/ldump.c: Likewise.
29056 * script/lua/ldo.h: Likewise.
29057 * script/lua/loslib.c: Likewise.
29058 * script/lua/lundump.c: Likewise.
29059 * script/lua/grub_lib.c: Likewise.
29060 * script/lua/ldblib.c: Likewise.
29061 * script/lua/lundump.h: Likewise.
29062 * script/lua/lmem.c: Likewise.
29063 * script/lua/grub_lib.h: Likewise.
29064 * script/lua/lmathlib.c: Likewise.
29065 * script/lua/lstate.c: Likewise.
29066 * script/lua/ltm.c: Likewise.
29067 * script/lua/lvm.c: Likewise.
29068 * script/lua/lmem.h: Likewise.
29069 * script/lua/lstate.h: Likewise.
29070 * script/lua/ltm.h: Likewise.
29071 * script/lua/ltable.c: Likewise.
29072 * script/lua/lvm.h: Likewise.
29073 * script/lua/llex.c: Likewise.
29074 * script/lua/lgc.c: Likewise.
29075 * script/lua/grub_lua.h: Likewise.
29076 * script/lua/loadlib.c: Likewise.
29077 * script/lua/lfunc.c: Likewise.
29078 * script/lua/lopcodes.c: Likewise.
29079 * script/lua/lparser.c: Likewise.
29080 * script/lua/ltable.h: Likewise.
29081 * script/lua/llex.h: Likewise.
29082 * script/lua/lgc.h: Likewise.
29083 * script/lua/lfunc.h: Likewise.
29084 * script/lua/lbaselib.c: Likewise.
29085 * script/lua/lopcodes.h: Likewise.
29086 * script/lua/lparser.h: Likewise.
29087 * script/lua/lzio.c: Likewise.
29088 * script/lua/linit.c: Likewise.
29089 * script/lua/lobject.c: Likewise.
29090 * script/lua/llimits.h: Likewise.
29091 * script/lua/lstring.c: Likewise.
29092 * script/lua/lzio.h: Likewise.
29093 * script/lua/lapi.c: Likewise.
29094 * script/lua/lcode.c: Likewise.
29095 * script/lua/lua.h: Likewise.
29096 * script/lua/lobject.h: Likewise.
29097 * script/lua/lstring.h: Likewise.
29098 * script/lua/lapi.h: Likewise.
29099 * script/lua/lcode.h: Likewise.
29100 * script/lua/luaconf.h: Likewise.
29101
cb8a2c38 291022009-09-26 Colin Watson <cjwatson@ubuntu.com>
29103
29104 * docs/grub.texi (Command-line and menu entry commands): Document
29105 date and echo commands.
29106
6b9b6276 291072009-09-24 Pavel Roskin <proski@gnu.org>
29108
29109 * include/grub/kernel.h (struct grub_module_header): Remove
29110 `grub_module_header_types'. Make `type' unsigned. Make `size'
29111 32-bit on all platforms.
29112 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
29113 8-bit field. Use grub_host_to_target32() for `size'.
29114 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
29115 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
29116 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
29117
4e5a02a7 291182009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29119
29120 Fix "lost keypress" bug in at_keyboard.
29121
29122 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
29123 Checks for readyness of input buffer (without flushing it).
29124 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
29125 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
29126
c6dcedf6 291272009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29128
29129 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
29130 size check within GRUB_MACHINE_PCBIOS section.
29131
74c958b1 291322009-09-24 Robert Millan <rmh.grub@aybabtu.com>
29133
29134 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
29135 return value.
29136 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
29137 KEYBOARD_ISREADY check.
29138 (grub_at_keyboard_checkkey): Rename to ...
29139 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
29140 Remove gratuitous cast.
29141
ff420223 291422009-09-23 Colin Watson <cjwatson@ubuntu.com>
29143
29144 * configure.ac: Call AC_PROG_MKDIR_P.
29145 * Makefile.in (docs/stamp-vti): Create docs directory. Create
29146 version.texi in $(builddir) rather than $(srcdir).
29147 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
29148 to makeinfo's @include search path.
29149
d96875df 291502009-09-23 Felix Zielcke <fzielcke@z-51.de>
29151
29152 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
29153
9b3f8365 291542009-09-23 Felix Zielcke <fzielcke@z-51.de>
29155
29156 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
29157 for `*.dpkg-new'.
29158
c44c90db 291592009-09-21 Colin Watson <cjwatson@ubuntu.com>
29160
29161 Build info documentation. Some code borrowed from Automake.
29162
29163 * configure.ac: Check for makeinfo.
29164 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
29165 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
29166 docs/version.texi.
29167 (MOSTLYCLEANFILES): Add vti.tmp.
29168 (docs/version.texi, docs/stamp-vti): Update automatically.
29169 (docs/grub.info): Build info documentation. Use --force and ignore
29170 errors for now.
29171 (all-local): Add $(INFOS).
29172 (install-local): Install info files.
29173 (uninstall): Uninstall info files.
29174 * docs/version.texi: Remove from revision control. This file is
29175 automatically generated on build now.
29176 * gendistlist.sh: Add `*.info'.
29177
e0b37bb5 291782009-09-21 Felix Zielcke <fzielcke@z-51.de>
29179
29180 * kern/term.c: Fix indentation.
29181
5a78865b 291822009-09-21 Felix Zielcke <fzielcke@z-51.de>
29183
29184 * util/hostdisk.c: Fix a comment.
29185
dace7e8a 291862009-09-20 Robert Millan <rmh.grub@aybabtu.com>
29187
29188 Fix regression introduced in r2539.
29189
29190 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
29191 to 0xA1.
29192
a83d079b 291932009-09-19 Colin Watson <cjwatson@ubuntu.com>
29194
29195 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 29196 os-prober. Under normal operation, it does not print anything to
29197 stderr; if it does, we need to debug it, and throwing away stderr
29198 makes that excessively difficult.
a83d079b 29199
be94a509 292002009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
29201
29202 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
29203
63f745e8 292042009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29205
29206 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
29207 AC_LANG_PROGRAM from autoconf.
29208 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
29209 prototypes (fixes warning).
29210
29211 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
29212 `--disable-werror' was used.
29213
bbb2a70f 292142009-09-16 Robert Millan <rmh.grub@aybabtu.com>
29215
29216 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
29217 uninitialized `lastaddr'.
29218
77c24f1d 292192009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
29220
0f0b8c87 29221 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 29222
07197f23 292232009-09-14 Colin Watson <cjwatson@ubuntu.com>
29224
29225 * commands/test.c (get_fileinfo): Return immediately if
29226 grub_fs_probe fails.
29227
dabf1798 292282009-09-14 José Martínez <xosemp@gmail.com>
29229
29230 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
29231
d52109a7 292322009-09-14 Colin Watson <cjwatson@ubuntu.com>
29233
29234 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
29235 output.
29236
56532179 292372009-09-13 Robert Millan <rmh.grub@aybabtu.com>
29238
29239 * configure.ac: Remove --enable-grub-pe2elf. Only build
29240 grub-pe2elf when needed by the build system itself.
29241 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
29242
8ef070f5 292432009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29244
29245 * configure.ac: Bump version to 1.97~beta3.
29246 * docs/version.texi: Likewise.
29247
61229557 292482009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29249
29250 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
29251 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
29252 from here ...
29253 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
29254 (grub_linux_setup_video): ... to here (with some adjustments).
29255
5c9f8d84 292562009-09-12 Robert Millan <rmh.grub@aybabtu.com>
29257
29258 Fix memory corruption issue (spotted by Colin Watson).
29259
29260 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
29261 causing returned size to be stored in an incorrect memory location.
29262 Fix use of uninitialized value when storing the returned size.
29263
e8f5d6e9 292642009-09-12 Yves Blusseau <blusseau@zetam.org>
29265
29266 Change clean rules to properly remove files
29267
29268 * genmk.rb: add new clean rules
29269 * Makefile.in (clean): add the new targets
29270 (mostlyclean): likewise
29271
cda2a409 292722009-09-11 Colin Watson <cjwatson@ubuntu.com>
29273
29274 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
29275 to grub_uint64_t.
29276 * fs/ntfs.c (init_file): Understand 64-bit sizes for
29277 non-resident files.
29278
86695375 292792009-09-11 Colin Watson <cjwatson@ubuntu.com>
29280
29281 * configure.ac: Don't look for help2man when cross-compiling. Fixes
29282 part of bug #27349.
29283
8aa1541a 292842009-09-10 Felix Zielcke <fzielcke@z-51.de>
29285
29286 * util/grub-mkconfig.in: Make the created config mode 400 and
29287 print a warning if it fails.
29288
48d9bb0a 292892009-09-10 Robert Millan <rmh.grub@aybabtu.com>
29290
29291 * util/grub.d/40_custom.in: Ask user to type custom entries below
29292 comment, rather than below 'exec tail' line.
29293
3b0521be 292942009-09-10 Colin Watson <cjwatson@ubuntu.com>
29295
29296 * util/grub.d/40_custom.in: Make sure that the explanatory text is
29297 visible in grub.cfg.
29298
50051d55 292992009-09-10 Colin Watson <cjwatson@ubuntu.com>
29300
29301 * util/grub.d/40_custom.in: Make it a little clearer how to use this
29302 file.
29303
c0d34387 293042009-09-10 Felix Zielcke <fzielcke@z-51.de>
29305
29306 * docs/grub.cfg: Add an example menu entry for memtest86+.
29307
80a608f3 293082009-09-09 Felix Zielcke <fzielcke@z-51.de>
29309
a2094832 29310 * config.guess: Update to latest version from config git.
80a608f3 29311 * config.sub: Likewise.
29312
99423078 293132009-09-08 Colin Watson <cjwatson@ubuntu.com>
29314
29315 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
29316 unknown-command case. Fixes bug #27320.
29317
44454e4c 293182009-09-08 Felix Zielcke <fzielcke@z-51.de>
29319
29320 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
29321 `help' if the command exists.
29322
e30d87ad 293232009-09-06 Robert Millan <rmh.grub@aybabtu.com>
29324
29325 * INSTALL: Require GCC 4.1.3 or later.
29326
9a86f1ec 293272009-09-06 Yves Blusseau <blusseau@zetam.org>
29328
29329 * Makefile.in (RMKFILES): add i386-qemu.rmk
29330 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
29331 $(srcdir)/stamp-h.in
29332
7f26d466 293332009-09-05 Robert Millan <rmh.grub@aybabtu.com>
29334
29335 * util/grub-probe.c (probe): Comment out buggy codepath, which
29336 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
29337 should be re-enabled after 1.97.
29338
3a613259 293392009-09-05 Felix Zielcke <fzielcke@z-51.de>
29340
29341 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
29342 find searches for.
29343
197f76c7 293442009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
29345
29346 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
29347 unnecessary calls to grub_error.
29348
70ba68ce 293492009-09-04 Colin Watson <cjwatson@ubuntu.com>
29350
29351 * NEWS: Mention `keystatus' and Unicode fonts.
29352
4ff0d7a4 293532009-09-04 Robert Millan <rmh.grub@aybabtu.com>
29354
29355 * configure.ac: Bump version to 1.97~beta2.
29356 * docs/version.texi: Likewise.
29357
77c55a87 293582009-09-03 Colin Watson <cjwatson@ubuntu.com>
29359
29360 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
29361 containing unwind information in some cases where it previously did
29362 not. Use -fno-dwarf2-cfi-asm if available to restore the old
29363 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
29364 discussion.
29365
f79572cd 293662009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
29367
29368 Embedding loadenv module into grub-emu
29369
29370 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
29371 commands/loadenv.c
29372 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
29373 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
29374 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
29375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
29376 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
29377 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
29378
93a81088 293792009-09-03 Magnus Granberg <zorry@ume.nu>
29380
29381 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
29382 include -fPIE in the default specs.
29383 * configure.ac: Check if pie_possible is yes and add -fno-PIE
29384 to TARGET_CFLAGS.
29385
160034b2 293862009-09-03 Felix Zielcke <fzielcke@z-51.de>
29387
29388 * INSTALL: Note that GNU Bison 2.3 or later is required.
29389
087c07c4 293902009-09-03 Colin Watson <cjwatson@ubuntu.com>
29391
29392 * kern/i386/pc/startup.S: Fix typo.
29393
cbf978c0 293942009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
29395
29396 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
29397 according to GCS.
29398
293992009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 29400
29401 * docs/grub.texi (Naming convention): Describe one-based partition
29402 numbering.
29403 (Device syntax): Likewise.
29404 (File name syntax): Likewise.
29405 (Block list syntax): Likewise.
29406 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
29407 menu.lst.
29408 (File name syntax): Likewise.
29409 (Command-line and menu entry commands): Document acpi, blocklist,
29410 crc, export, insmod, keystatus, ls, set, and unset commands.
29411
f3e8cdfd 294122009-09-02 Colin Watson <cjwatson@ubuntu.com>
29413
29414 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
29415 to avoid implying that only one of --shift, --ctrl, or --alt may be
29416 used.
29417
c0bc232b 294182009-09-02 Colin Watson <cjwatson@ubuntu.com>
29419
29420 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
29421 rather than comparing against S_IFREG, which will almost never work.
29422
aa0f752d 294232009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
29424
29425 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
29426 (write_blocklists): Likewise.
29427
ecb3166a 294282009-09-01 Colin Watson <cjwatson@ubuntu.com>
29429
29430 * script/lua/grub_lua.h (fputs): Supply a format string as the first
29431 argument to grub_printf.
29432
c403a125 294332009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 29434
29435 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 29436 non GNU test.
31aba781 29437
b5e7312c 294382009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29439
29440 * kern/file.c (grub_file_read): Spelling fix
29441
fe00f472 294422009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
29443
29444 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
29445 loading of headers in some cases.
29446
cc55302e 294472009-08-30 Robert Millan <rmh.grub@aybabtu.com>
29448
29449 * configure.ac: Bump version to 1.97~beta1.
29450 * docs/version.texi: Likewise.
29451
5c90cdd2 294522009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 29453
29454 * include/grub/i386/xnu.h: Add license header.
29455 include grub/err.h explicitly.
29456
c90edae4 294572009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29458
29459 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
29460 to `ufs' in the vfs.root.mountfrom kernel parameter.
29461
d8888b5c 294622009-08-29 Robert Millan <rmh.grub@aybabtu.com>
29463
29464 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
29465
29466 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
29467 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
29468
29469 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
29470 `ARRAY_SIZE' macro.
29471
6f07b921 294722009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29473
29474 * kern/file.c (grub_file_read): Check offset.
29475 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
29476 * fs/jfs.c (grub_jfs_read_file): Likewise.
29477 * fs/ntfs.c (grub_ntfs_read): Likewise.
29478 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
29479 * fs/minix.c (grub_minix_read_file): Correct offset check.
29480 * fs/ufs.c (grub_ufs_read_file): Likewise.
29481
b4f34077 294822009-08-28 Colin Watson <cjwatson@ubuntu.com>
29483
29484 * term/i386/pc/console.c (bios_data_area): Cast
29485 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
29486
e7c69859 294872009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29488
29489 1-bit optimised blitters.
29490
29491 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
29492 prototype.
29493 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29494 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29495 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29496 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29497 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29498 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29499 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
29500 function.
29501 (grub_video_fbblit_replace_24bit_1bit): Likewise.
29502 (grub_video_fbblit_replace_16bit_1bit): Likewise.
29503 (grub_video_fbblit_replace_8bit_1bit): Likewise.
29504 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
29505 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
29506 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
29507 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
29508 when possible.
29509 * video/video.c (grub_video_get_blit_format): Return
29510 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
29511
a57da43f 295122009-08-28 Colin Watson <cjwatson@ubuntu.com>
29513
29514 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
29515 the first argument to grub_printf.
29516
4cbe67e5 295172009-08-28 Colin Watson <cjwatson@ubuntu.com>
295182009-08-28 Robert Millan <rmh.grub@aybabtu.com>
29519
29520 Add `getkeystatus' terminal method. Add a new `keystatus' command
29521 to query it.
29522
29523 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
29524 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
29525 modifier key bitmasks.
29526 (struct grub_term_input): Add `getkeystatus' member.
29527 (grub_getkeystatus): Add prototype.
29528 * kern/term.c (grub_getkeystatus): New function.
29529
29530 * include/grub/i386/pc/memory.h
29531 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
29532 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
29533 Data Area layout.
29534 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
29535 (grub_console_term_input): Set `getkeystatus' member.
29536 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
29537 constants.
29538 (grub_usb_keyboard_getreport): Likewise.
29539 (grub_usb_keyboard_checkkey): Likewise.
29540 (grub_usb_keyboard_getkeystatus): New function.
29541 (grub_usb_keyboard_term): Set `getkeystatus' member.
29542
29543 * commands/keystatus.c: New file.
29544 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
29545 (keystatus_mod_SOURCES): New variable.
29546 (keystatus_mod_CFLAGS): Likewise.
29547 (keystatus_mod_LDFLAGS): Likewise.
29548 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
29549 commands/keystatus.c.
29550 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29551 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29552 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29553 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29554 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29555 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 29556
6e2a9085 295572009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
29558
29559 Split befs.mod and afs.mod into *_be.mod and *.mod
29560
29561 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
29562 (grub_fstest_SOURCES): Likewise.
29563 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
29564 (afs_be_mod_SOURCES): New variable.
29565 (afs_be_mod_CFLAGS): Likewise.
29566 (afs_be_mod_LDFLAGS): Likewise.
29567 (befs_be_mod_SOURCES): Likewise.
29568 (befs_be_mod_CFLAGS): Likewise.
29569 (befs_be_mod_LDFLAGS): Likewise.
29570 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
29571 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29572 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29573 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
29574 (grub_emu_SOURCES): Likewise.
29575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29576 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29577 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29578 * fs/afs_be.c: New file.
29579 * fs/befs_be.c: New file.
29580 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
29581 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
29582 (U16): Replaced with ...
29583 (grub_afs_to_cpu16): ...this. All users updated.
29584 (U32): Replaced with ...
29585 (grub_afs_to_cpu32): ...this. All users updated.
29586 (U64): Replaced with ...
29587 (grub_afs_to_cpu64): ...this. All users updated.
29588 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
29589 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 29590 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 29591 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29592 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29593 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29594 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29595 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
29596 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
29597 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
29598 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
29599
32a71655 296002009-08-26 Bean <bean123ch@gmail.com>
29601
29602 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
29603 64-bit number.
29604 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
29605 (grub_xfs_inode_block): Change return type to grub_uint64_t.
29606 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
29607
552bf6c5 296082009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29609
29610 NetBSD memory map support.
29611
29612 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
29613 (grub_netbsd_btinfo_mmap_header): New structure.
29614 (grub_netbsd_btinfo_mmap_entry): Likewise.
29615 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
29616
1ae2078c 296172009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29618
29619 Enable bsd.mod on coreboot.
29620
29621 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
29622 (bsd_mod_SOURCES): New variable.
29623 (bsd_mod_CFLAGS): Likewise.
29624 (bsd_mod_LDFLAGS): Likewise.
29625 (bsd_mod_ASFLAGS): Likewise.
29626 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
29627 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
29628
beefc598 296292009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29630
29631 Cleanup NetBSD root support.
29632
29633 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
29634 grub_bsd_get_device.
29635 Fix typo.
29636
3b76e68b 296372009-08-25 Felix Zielcke <fzielcke@z-51.de>
29638
29639 * util/grub.d/00_header.in: Move check for the video backend of
29640 gfxterm from here ...
29641 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
29642 a suitable video backend.
29643
aea664ea 296442009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29645
29646 Fix breakage in grub-setup.
29647
29648 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
29649 "msdos_partition_map".
29650
ff747d50 296512009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29652
29653 Fix breakage in normal/auth.c.
29654
29655 * normal/auth.c (grub_iswordseparator): New function.
29656
e7e1f93f 296572009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
29658
29659 Authentication support.
29660
29661 * commands/password.c: New file.
29662 * conf/common.rmk (pkglib_MODULES): Add password.mod.
29663 (password_mod_SOURCES): New variable.
29664 (password_mod_CFLAGS): Likewise.
29665 (password_mod_LDFLAGS): Likewise.
29666 (normal_mod_SOURCES): Add normal/auth.c.
29667 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
29668 normal/auth.c.
29669 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29670 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29671 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29673 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29674 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29675 * include/grub/auth.h: New file.
29676 * include/grub/err.h (grub_err_t): New enum value
29677 GRUB_ERR_ACCESS_DENIED.
29678 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
29679 'users'.
29680 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
29681 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
29682 users updated.
29683 * normal/auth.c: New file.
29684 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
29685 (grub_cmdline_run): Don't allow to go to command line without
29686 authentication.
29687 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
29688 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
29689 menuentry without superuser rights.
29690 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
29691 user isn't a superuser.
29692
70f1161d 296932009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29694
29695 Save space by inlining misc.c functions.
29696
29697 * kern/misc.c (grub_iswordseparator): Made static.
29698 * kern/misc.c (grub_strcat): Moved from here ...
29699 * include/grub/misc.h (grub_strcat): ... here. Inlined.
29700 * kern/misc.c (grub_strncat): Moved from here ...
29701 * include/grub/misc.h (grub_strncat): ... here. Inlined.
29702 * kern/misc.c (grub_strcasecmp): Moved from here ...
29703 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
29704 * kern/misc.c (grub_strncasecmp): Moved from here ...
29705 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
29706 * kern/misc.c (grub_isalpha): Moved from here ...
29707 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
29708 * kern/misc.c (grub_isdigit): Moved from here ...
29709 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
29710 * kern/misc.c (grub_isgraph): Moved from here ...
29711 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
29712 * kern/misc.c (grub_tolower): Moved from here ...
29713 * include/grub/misc.h (grub_tolower): ... here. Inlined.
29714
48e40bff 297152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29716
29717 * script/sh/function.c (grub_script_function_find): Cut error message
29718 not to flood terminal.
29719 * script/sh/lexer.c (grub_script_yylex): Remove command line length
29720 limit.
29721 * script/sh/script.c (grub_script_arg_add): Duplicate string.
29722
c385bfc3 297232009-08-24 Colin Watson <cjwatson@ubuntu.com>
29724
29725 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
29726 `report' grub_uint8_t *.
29727 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
29728 Use a 50-millisecond timeout rather than just repeating
29729 grub_usb_keyboard_getreport 50 times.
29730 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
29731
2d21e3e8 297322009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29733
29734 Rename *_partition_map to part_*
29735
29736 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
29737 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
29738 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
29739 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
29740 All users updated.
29741 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
29742 All users updated.
29743 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
29744 * util/grub-probe.c (probe_partmap): Don't transform partition name
29745 to get module name.
29746
dd103c4e 297472009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29748
29749 Fix OpenBSD and NetBSD support.
29750
29751 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
29752 memory address conflict.
29753 (OPENBSD_MMAP_ACPI): New definition.
29754 (OPENBSD_MMAP_NVS): Likewise.
29755 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
29756 and OPENBSD_MMAP_NVS.
29757 Add memory map terminator
29758 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 29759 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 29760
16c84d74 297612009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29762
29763 Let user specify NetBSD root device.
29764
29765 * loader/i386/bsd.c (netbsd_root): New variable.
29766 (netbsd_opts): New option 'root'.
29767 (NETBSD_ROOT_ARG): New macro.
29768 (grub_netbsd_boot): Use 'netbsd_root'.
29769 (grub_bsd_unload): Free 'netbsd_root'.
29770 (grub_cmd_netbsd): Fill 'netbsd_root'.
29771
adb29902 297722009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29773
29774 Support for 64-bit NetBSD.
29775
29776 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
29777 point when booting non-FreeBSD.
29778
f5ae9f74 297792009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
29780
29781 Support --no-smp and --no-acpi for NetBSD.
29782
29783 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
29784 (NETBSD_AB_NOACPI): Likewise.
29785 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
29786 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
29787
de74f136 297882009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29789
29790 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
29791 errors.
29792 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
29793 errors. Call grub_error when needed.
29794
e9a925da 297952009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29796
29797 * commands/search.c (search_fs): Try searching without autoload first.
29798 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
29799 filesystem module explicitly for faster booting.
29800
5174302b 298012009-08-23 Colin Watson <cjwatson@ubuntu.com>
29802
29803 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
29804
c8c80635 298052009-08-23 Colin Watson <cjwatson@ubuntu.com>
29806
29807 * util/grub.d/30_os-prober.in: Disable os-prober if
29808 `GRUB_DISABLE_OS_PROBER' was set to true.
29809
71acf5e5 298102009-08-23 Robert Millan <rmh.grub@aybabtu.com>
29811
29812 * partmap/pc.c: Rename to ...
29813 * partmap/msdos.c: ... this. Update all users.
29814 (grub_pc_partition_map): Rename to ...
29815 (grub_msdos_partition_map): ... this. Update all users.
29816
29817 * parttool/pcpart.c: Rename to ...
29818 * parttool/msdospart.c: ... this. Update all users.
29819
29820 * include/grub/pc_partition.h: Rename to ...
29821 * include/grub/msdos_partition.h: ... this. Update all users.
29822 (grub_pc_partition_bsd_entry): Rename to ...
29823 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29824 (grub_pc_partition_disk_label): Rename to ...
29825 (grub_msdos_partition_disk_label): ... this. Update all users.
29826 (grub_pc_partition_entry): Rename to ...
29827 (grub_msdos_partition_entry): ... this. Update all users.
29828 (grub_pc_partition_mbr): Rename to ...
29829 (grub_msdos_partition_mbr): ... this. Update all users.
29830 (grub_pc_partition): Rename to ...
29831 (grub_msdos_partition): ... this. Update all users.
29832 (grub_pc_partition_is_empty): Rename to ...
29833 (grub_msdos_partition_is_empty): ... this. Update all users.
29834 (grub_pc_partition_is_extended): Rename to ...
29835 (grub_msdos_partition_is_extended): ... this. Update all users.
29836 (grub_pc_partition_is_bsd): Rename to ...
29837 (grub_msdos_partition_is_bsd): ... this. Update all users.
29838
29839 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29840 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29841 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29842 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29843 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29844 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29845 (gpt_mod_LDFLAGS): Rename to ...
29846 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29847 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29848 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29849 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29850 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29851 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29852 (part_gpt_mod_LDFLAGS): ... this.
29853 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29854 `pcpart.mod' to `msdospart.mod'.
29855 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29856 to ...
29857 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29858 (msdospart_mod_LDFLAGS): ... this.
29859
c11fded5 298602009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29861
29862 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29863 (openbsd_opts): Likewise.
29864 (netbsd_opts): Likewise.
29865 (freebsd_flags): Added 0 terminator.
29866 (openbsd_flags): Likewise.
29867 (netbsd_flags): Likewise.
29868 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29869 (grub_cmd_freebsd): Transformed into extended command.
29870 (grub_cmd_openbsd): Likewise.
29871 (grub_cmd_netbsd): Likewise.
29872 (cmd_freebsd): Changed type to grub_extcmd_t.
29873 (cmd_openbsd): Likewise.
29874 (cmd_netbsd): Likewise.
29875 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29876 grub_cmd_openbsd as extended commands.
29877 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29878 cmd_netbsd and cmd_openbsd
29879
11d1c769 298802009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29881
29882 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29883
7a9094e5 298842009-08-21 Pavel Roskin <proski@gnu.org>
29885
5496c37e 29886 * Makefile.in (install-local): When checking if a file is in the
29887 build directory, use "test -e" to detect symlinks.
29888
7a9094e5 29889 * Makefile.in (install-local): Remove all files in
29890 $(DESTDIR)$(pkglibdir) before installing new files there.
29891
e53cea11 298922009-08-18 Felix Zielcke <fzielcke@z-51.de>
29893
29894 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29895 grub-mkelfimage.
29896
9aced544 298972009-08-18 Felix Zielcke <fzielcke@z-51.de>
29898
29899 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29900 explicitly specified by the user.
29901
b7da6bab 299022009-08-18 Pavel Roskin <proski@gnu.org>
29903
29904 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29905 grub_uint8_t pointer for data.
29906 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29907 Likewise.
29908 * video/fb/fbutil.c: Remove unnecessary casts.
29909
19f1b335 299102009-08-17 Michal Suchanek <hramrach@centrum.cz>
29911
29912 VBE cleanup.
29913
29914 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29915 (grub_vbe_set_video_mode): Save active mode info
29916 only after setting the mode.
29917 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29918 second argument.
29919
2f467aa9 299202009-08-17 Michal Suchanek <hramrach@centrum.cz>
29921
29922 Rename variables for clarity.
29923
29924 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29925 (active_vbe_mode_info): ... this. All users updated.
29926 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29927 All users updated.
29928 (initial_mode): Rename to ...
29929 (initial_vbe_mode): ... this. All users updated.
29930 (mode_in_use): Rename to ..
29931 (vbe_mode_in_use): ... this. All users updated.
29932 (mode_list): Rename to ..
29933 (vbe_mode_list): ... this. All users updated.
29934 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29935 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29936 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29937 'mode_list_size' to 'vbe_mode_list_size'.
29938 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29939 'best_mode_info' to 'best_vbe_mode_info' and
29940 'best_mode' to 'best_vbe_mode'
29941
6025fcd7 299422009-08-17 Michal Suchanek <hramrach@centrum.cz>
29943
29944 Remove duplicate grub_video_fb_get_video_ptr.
29945
29946 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29947 (grub_video_fb_get_video_ptr): ... this.
29948 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29949 * video/fb/fbutil.c: Add comment about addressing.
29950 (get_data_ptr): Rename to ...
29951 (grub_video_fb_get_video_ptr): ... this. All users updated.
29952 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29953
cc8c6faf 299542009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29955
29956 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29957 grub_dprintf() that was just added.
29958
08aa61f0 299592009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29960
29961 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29962 (DEFAULT_VIDEO_MODE): Remove macros.
29963 (grub_linux_boot): Remove assumption that Linux has FB support,
29964 and use "text" as default video mode.
29965
7cef4f75 299662009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29967
29968 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29969 grub_dprintf.
29970 * fs/fat.c (grub_fat_read_data): Likewise.
29971
e1f39873 299722009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29973
29974 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29975 payload.
29976 (grub_module): Likewise.
29977
c166d79e 299782009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29979
29980 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29981 mbi->cmdline but free playground.
29982
c60cee8e 299832009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29984
29985 Handle group offset on UFS1.
29986
29987 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29988 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29989
c0d8b5d4 299902009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29991
29992 Split ufs.mod into ufs1.mod and ufs2.mod.
29993
29994 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29995 (grub_fstest_SOURCES): Likewise.
29996 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29997 (ufs_mod_SOURCES): Remove.
29998 (ufs_mod_CFLAGS): Likewise.
29999 (ufs_mod_LDFLAGS): Likewise.
30000 (ufs1_mod_SOURCES): New variable.
30001 (ufs1_mod_CFLAGS): Likewise.
30002 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 30003 (ufs2_mod_SOURCES): New variable.
30004 (ufs2_mod_CFLAGS): Likewise.
30005 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 30006 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
30007 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30008 Likewise.
30009 (grub_emu_SOURCES): Likewise.
30010 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30011 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30012 (grub_setup_SOURCES): Likewise.
30013 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30014 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
30015 (grub_setup_SOURCES): Likewise.
30016 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
30017 Likewise.
30018 * fs/ufs2.c: New file.
30019 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
30020
d3539132 300212009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
30022
30023 Framebuffer split.
30024
30025 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
30026 subsystem at the end.
30027 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
30028 (video_fb_mod_SOURCES): New variable.
30029 (video_fb_mod_CFLAGS): Likewise.
30030 (video_fb_mod_LDFLAGS): Likewise.
30031 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
30032 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
30033 * video/i386/pc/vbeblit.c: Moved from here ...
30034 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
30035 * video/i386/pc/vbefill.c: Moved from here ...
30036 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
30037 * video/i386/pc/vbeutil.c: Moved from here ...
30038 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
30039 * include/grub/i386/pc/vbeblit.h: Moved from here ...
30040 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
30041 * include/grub/i386/pc/vbefill.h: Moved from here ...
30042 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
30043 * include/grub/i386/pc/vbeutil.h: Moved from here ...
30044 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
30045 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
30046 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
30047 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
30048 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
30049 (grub_video_adapter): Added 'get_info_and_fini'.
30050 (grub_video_get_info_and_fini): New prototype.
30051 (grub_video_set_mode): make modestring const char *.
30052 * loader/i386/linux.c (grub_linux_setup_video): Use
30053 grub_video_get_info_and_fini.
30054 (grub_linux_boot): Move modesetting just before booting.
30055 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
30056 grub_video_get_info_and_fini.
30057 * video/i386/pc/vbe.c: Moved framebuffer part ...
30058 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
30059 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
30060 grub_video_fbstd_colors and grub_video_fb_set_palette.
30061 (grub_video_vbe_init): Clear 'framebuffer' variable and use
30062 grub_video_fb_init.
30063 (grub_video_vbe_fini): Use grub_video_fb_fini.
30064 (grub_video_vbe_setup): Use framebuffer.render_target instead of
30065 render_target and use grub_video_fb_set_active_render_target and
30066 grub_video_fb_set_palette.
30067 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
30068 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
30069 (grub_video_vbe_adapter): Use framebuffer.
30070 * video/video.c (grub_video_get_info_and_fini): New function.
30071 (grub_video_set_mode): Make modestring const char *.
30072 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
30073 values are already initialised.
30074
d404ee56 300752009-08-14 Pavel Roskin <proski@gnu.org>
30076
30077 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
30078 ABS and APPLE_CC.
30079 * boot/i386/pc/diskboot.S: Likewise.
30080 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
30081 sectors allow compilation on MacOSX.
30082 * conf/i386-pc.rmk: Enable unconditional compilation of
30083 lnxboot.img.
30084
9a10df16 300852009-08-13 Colin Watson <cjwatson@ubuntu.com>
30086
30087 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
30088 * util/grub.d/00_header.in: Enter interruptible sleep if
30089 GRUB_HIDDEN_TIMEOUT is set.
30090
be3c9ca7 300912009-08-13 Yves Blusseau <blusseau@zetam.org>
30092
30093 * include/grub/symbol.h: Add the LOCAL macro.
30094 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
30095 starting with "L_".
30096
1f9e557e 300972009-08-13 Pavel Roskin <proski@gnu.org>
30098
9ca62843 30099 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
30100 any modern compilers we support.
30101
1f9e557e 30102 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
30103 Use local labels starting with "L_" so that Apple assembler
30104 knows they are local.
30105
81623db6 301062009-08-10 Robert Millan <rmh.grub@aybabtu.com>
30107
30108 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
30109 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
30110 (bsd_kernel_types): ... this enum.
30111
30112 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
30113 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
30114 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
30115
30116 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
30117 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
30118 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
30119 messages.
30120
f5d35e7a 301212009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30122
30123 * util/grub-dumpdevtree: Moved from here ...
30124 * util/i386/efi/grub-dumpdevtree: ... to here.
30125 (hexify): New function. Converts a string to its hex version.
30126 Generate hex versions of "efi" and "device-properties" by calling
30127 hexify() on the ASCII strings rather than by hardcoding numbers.
30128
d1e1d527 301292009-08-08 Robert Millan <rmh.grub@aybabtu.com>
30130
30131 * fs/jfs.c: Update copyright year.
30132
1ebbe064 301332009-08-08 Felix Zielcke <fzielcke@z-51.de>
30134
30135 * util/grub.d/00_header.in: Fix a comment.
30136 * util/grub.d/10_linux.in: Likewise.
30137 * util/grub.d/10_windows.in: Likewise.
30138 * util/grub.d/10_hurd.in: Likewise.
30139
a78c8d24 301402009-08-08 Felix Zielcke <fzielcke@z-51.de>
30141
30142 * util/grub-mkconfig.in: Allow the user to specify the used font
30143 with GRUB_FONT.
30144
29a6b9e8 301452009-08-08 Pavel Roskin <proski@gnu.org>
30146
b5f16cc4 30147 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
30148 available, xfs.mod needs it now.
30149
2f5cb827 30150 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
30151 the "g" modifier in sed when the intention is to strip something
30152 once. This fixes comparison of kernels with multiple dashes.
30153
29a6b9e8 30154 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
30155 on it. Add missing space before closing bracket. Fix
30156 misleading formatting.
30157
892a3d98 301582009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30159
30160 * docs/grub.texi: Major overhaul. Remove all sections that are
30161 specific to GRUB Legacy, or mostly composed of Legacy-specific
30162 information.
30163
ed94253f 301642009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30165
30166 * docs/version.texi: New file. Provides version information for
30167 grub.texi.
30168
126d6628 301692009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30170
30171 * docs/grub.texi: Update CVS information to SVN.
30172 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
30173
998b5aa9 301742009-08-07 Felix Zielcke <fzielcke@z-51.de>
30175
30176 * util/grub-mkconfig.in: Remove a wrong `fi'.
30177
818e094a 301782009-08-07 Felix Zielcke <fzielcke@z-51.de>
30179
30180 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
30181 (grub_jfs_uuid): New function.
30182 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
30183
b969c52f 301842009-08-07 Felix Zielcke <fzielcke@z-51.de>
30185
30186 * util/grub-mkconfig_lib.in (font_path): Move the functionality
30187 of it to ...
30188 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
30189 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
30190
7a4894cc 301912009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30192
30193 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
30194 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
30195 Update all users.
30196
30197 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
30198 not just "vmlinu[zx]".
30199 Moved from here ...
30200 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
30201 all users.
30202
30203 * util/grub.d/10_linux.in (find_latest): Moved from here ...
30204 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
30205 all users.
30206
4e2171f8 302072009-08-07 Robert Millan <rmh.grub@aybabtu.com>
30208
30209 * util/grub.d/10_freebsd.in: Use an absolute device path for
30210 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
30211
6dcfcb32 302122009-08-06 Felix Zielcke <fzielcke@z-51.de>
30213
30214 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
30215 handling of multiple abstraction modules.
30216
f56a8756 302172009-08-04 Robert Millan <rmh.grub@aybabtu.com>
30218
30219 Fix a bug resulting in black screen when loading Linux using a
30220 packed video mode.
30221
30222 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
30223 function.
30224
30225 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
30226 (grub_vbe_bios_getset_dac_palette_width): New function.
30227 (grub_vbe_bios_get_dac_palette_width)
30228 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
30229 grub_vbe_bios_getset_dac_palette_width()).
30230
30231 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
30232 check for return status.
30233 (grub_vbe_get_video_mode_info): When getting information for a packed
30234 mode (<= 8 bpp), obtain DAC palette width using
30235 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
30236 {red,green,blue}_mark_size.
30237
222671b2 302382009-08-04 Felix Zielcke <fzielcke@z-51.de>
30239
ecb1a6d9 30240 * commands/search.c (options): Fix help output to match actual code.
222671b2 30241
f84114f5 302422009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
30243
30244 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
30245 of homegrown code.
30246
bd288a20 302472009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 30248
30249 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
30250 on XFS or ReiserFS.
30251
8aab5e25 302522009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
30253
30254 Support Apple partition map with sector size different from 512 bytes.
30255
30256 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
30257 (apple_partition_map_iterate): Respect 'aheader.blocksize'
30258 and 'apart.partmap_size'.
30259
6ad6258a 302602009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
302612009-08-01 Robert Millan <rmh.grub@aybabtu.com>
30262
30263 Fix cpuid command.
30264
30265 * commands/i386/cpuid.c (options): New variable.
30266 (grub_cmd_cpuid): Return real error.
30267 (GRUB_MOD_INIT(cpuid)): Declare options.
30268
67459bc6 302692009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
30270
30271 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
30272 valid.
30273
fbc6ab54 302742009-07-31 Bean <bean123ch@gmail.com>
30275
30276 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
30277 log2_inode.
30278 (grub_fshelp_node): Move inode field to the end.
30279 (grub_xfs_data): Remove inode field.
30280 (grub_xfs_inode_block): Calculate inode size using sblock.
30281 (grub_xfs_inode_offset): Likewise.
30282 (grub_xfs_read_inode): Calculate inode size using sblock.
30283 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
30284 (grub_xfs_iterate_dir): Calculate inode size using sblock.
30285 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
30286 to match inode size.
30287 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
30288 not accessible when data is null.
30289 (grub_xfs_open): Likewise.
30290
f45d6cfc 302912009-07-31 Bean <bean123ch@gmail.com>
30292
30293 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
30294 Don't change pv->disk if it's already set.
30295
30296 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
30297 (grub_raid_register): ... here.
30298 (grub_raid_rescan): Removed.
30299
30300 * include/grub/raid.h (grub_raid_rescan): Removed.
30301
30302 * util/grub-fstest.c: Remove include file <grub/raid.h>.
30303 (fstest): Replace grub_raid_rescan with module fini function followed
30304 by init function.
30305
30306 * util/grub-probe.c: Add include file <grub/raid.h>.
30307 (probe_raid_level): New function.
30308 (probe): Detect abstraction by walking the disk device, support two
30309 level of abstraction (LVM on RAID) when detecting partition map.
30310
24443b5a 303112009-07-31 Pavel Roskin <proski@gnu.org>
30312
30313 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
30314 to grub_zalloc(), it was erroneous.
30315 Reported by Bean <bean123ch@gmail.com>
30316
a275d9e7 303172009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
30318
30319 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 30320 embedding zone, not only the first one.
a275d9e7 30321
56c5a47f 303222009-07-29 Joe Auricchio <jauricchio@gmail.com>
30323
30324 * term/gfxterm.c (clear_char): New function.
30325 (grub_virtual_screen_setup): Use clear_char.
30326 (scroll_up): Likewise.
30327 (grub_virtual_screen_cls): Likewise.
30328
67bb323a 303292009-07-29 Felix Zielcke <fzielcke@z-51.de>
30330
30331 * util/deviceiter.c (get_acceleraid_disk_name): New static
30332 function.
30333 (grub_util_iterate_devices): Handle Accelraid devices.
30334 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
30335
388a7c75 303362009-07-28 Robert Millan <rmh.grub@aybabtu.com>
30337
30338 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
30339 separator for the suggested gfxpayload string (';' collides with the
30340 parser and needs escaping).
30341
3bb7abcf 303422009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
30343
30344 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
30345 Clear direction flag before jumping to OS.
30346 (grub_multiboot2_real_boot): Likewise.
30347
2ddd36d7 303482009-07-28 Felix Zielcke <fzielcke@z-51.de>
30349
30350 * util/i386/pc/grub-install: Fix parsing of --disk-module
30351 option.
30352
c521b62b 303532009-07-28 Felix Zielcke <fzielcke@z-51.de>
30354
30355 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
30356 when embedding.
30357
880e0a0c 303582009-07-26 Felix Zielcke <fzielcke@z-51.de>
30359
30360 * util/grub-mkconfig.in (package_version): New variable.
30361 Use it do display the version.
30362
2366e356 303632009-07-25 Felix Zielcke <fzielcke@z-51.de>
30364
30365 * kern/file.c (grub_file_open): Revert to previous check with
30366 grub_errno.
30367
7ad8c80e 303682009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30369
30370 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
30371 from help line. It's out of sync with code.
30372
72b9658b 303732009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
30374
30375 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
30376 entries on failed boot.
30377
77435277 303782009-07-25 Felix Zielcke <fzielcke@z-51.de>
30379
30380 * kern/file.c (grub_file_open): Fix an error check.
30381
fcaa8b21 303822009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
30383
35d16c74 30384 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
30385 partition map couldn't be identified.
fcaa8b21 30386
48904cd1 303872009-07-23 Pavel Roskin <proski@gnu.org>
30388
ef3c317f 30389 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
30390 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
30391 case of little endian words becomes just an optimization.
30392 Respect const modifier.
ad8ea1f4 30393 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 30394
48904cd1 30395 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
30396 to avoid loss of upper bits if align is unsigned and shorter
30397 than addr.
30398
260c9a89 303992009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30400
30401 UUID support for UFS
30402
30403 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
30404 (grub_ufs_uuid): New function.
30405 (grub_ufs_fs): add .uuid
30406
f76ce889 304072009-07-21 Pavel Roskin <proski@gnu.org>
30408
30409 * kern/dl.c (grub_dl_check_header): Make static.
30410
6a6cbcaf 304112009-07-21 Felix Zielcke <fzielcke@z-51.de>
30412
30413 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
30414 add drivemap for Vista. It breaks Windows 7.
30415
cffcddb2 304162009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
30417
30418 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
30419 128 bytes
30420
1ef44b80 304212009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30422
30423 Add BFS support
30424
30425 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
30426 (grub_fstest_SOURCES): Likewise.
30427 (pkglib_MODULES): Add befs.mod.
30428 (befs_mod_SOURCES): New variable.
30429 (befs_mod_CFLAGS): Likewise.
30430 (befs_mod_LDFLAGS): Likewise.
30431 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
30432 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
30433 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30434 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30435 (grub_setup_SOURCES): Likewise.
30436 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30437 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30438 (grub_setup_SOURCES): Likewise.
30439 * fs/befs.c: New file.
30440 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
30441 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
30442 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
30443 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
30444 (B_KEY_INDEX_ALIGN): New declaration.
30445 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
30446 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
30447 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
30448 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
30449 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
30450 (grub_afs_mount) [MODE_BFS]: Likewise.
30451 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
30452 (grub_afs_fs): Use GRUB_AFS_FSNAME
30453 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
30454 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
30455 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
30456 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
30457
4f253044 304582009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
30459
30460 * util/getroot.c (find_root_device): Add support for MacOSX.
30461 * util/hostdisk.c: Likewise.
30462
57a55913 304632009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30464
30465 * font/font.c (find_glyph): Check whether a font is present to avoid
30466 segmentation fault.
75421ca9 30467
304682009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 30469
30470 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
30471
e98cd0c2 304722009-07-20 Pavel Roskin <proski@gnu.org>
30473
30474 * configure.ac: Trim excessively wordy excuses.
30475
1d2d169a 304762009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30477
30478 Add symlink, mtime and label support to AtheFS.
30479
30480 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
30481 (grub_afs_iterate_dir): Handle symlinks.
30482 (grub_afs_open): Use grub_afs_read_symlink.
30483 (grub_afs_dir): Likewise.
30484 Pass mtime.
30485 (grub_afs_label): New function.
30486 (grub_afs_fs): Add grub_afs_label.
30487 (grub_afs_read_symlink): New function.
30488
186f3189 304892009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
30490
30491 Fix AtheFS support.
30492
30493 * fs/afs.c: Fix comments style.
30494 (grub_afs_blockrun): Declare as packed.
30495 (grub_afs_datastream): Likewise.
30496 (grub_afs_bnode): Likewise.
30497 (grub_afs_btree): Likewise.
30498 (grub_afs_sblock): Likewise.
30499 Declare `name' as char.
30500 (grub_afs_inode): Declare as packed.
30501 Change void *vnode to grub_uint32_t unused.
30502 (grub_afs_iterate_dir): Check that key_size is positive.
30503 (grub_afs_mount): Don't read superblock twice.
75421ca9 30504 (grub_afs_dir): Don't free node in case of error,
186f3189 30505 grub_fshelp_find_file already handles this.
30506 (grub_afs_open): Likewise.
30507
5680109e 305082009-07-19 Pavel Roskin <proski@gnu.org>
30509
30510 * Makefile.in: Remove LIBLZO and enable_lzo.
30511 * conf/i386-pc.rmk: Remove lzo support.
30512 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
30513 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
30514 support.
30515 * kern/i386/pc/lzo1x.S: Remove.
30516 * kern/i386/pc/startup.S: Remove lzo support.
30517 * util/i386/pc/grub-mkimage.c: Likewise.
30518
ac70fa32 305192009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
30520
30521 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
30522 * fs/xfs.c (grub_xfs_dir): Likewise.
30523 * fs/afs.c (grub_afs_dir): Likewise.
30524 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
30525 (grub_iso9660_open): Likewise.
30526 * fs/jfs.c (grub_jfs_open): Likewise.
30527 * fs/ext2.c (grub_ext2_dir): Likewise.
30528 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
30529 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 30530
eab58da2 305312009-07-16 Pavel Roskin <proski@gnu.org>
30532
d2838156 30533 * configure.ac: Never add "-c" to CFLAGS.
30534
55c70904 30535 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
30536
43e6200c 30537 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
30538 grub_cv_cc_efiemu should be used.
30539
ce7a733d 30540 * configure.ac: Typo fixes.
30541
eab58da2 30542 * kern/mm.c (grub_zalloc): New function.
30543 (grub_debug_zalloc): Likewise.
30544 * include/grub/mm.h: Declare grub_zalloc() and
30545 grub_debug_zalloc().
30546 * util/misc.c (grub_zalloc): New function.
30547 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
30548 instead of grub_malloc(), remove unneeded initializations.
30549 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
30550 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
30551 * commands/parttool.c (grub_cmd_parttool): Likewise.
30552 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
30553 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
30554 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
30555 * disk/usbms.c (grub_usbms_finddevs): Likewise.
30556 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
30557 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
30558 (grub_cmd_efiemu_pnvram): Likewise.
30559 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
30560 * fs/iso9660.c (grub_iso9660_mount): Likewise.
30561 (grub_iso9660_iterate_dir): Likewise.
30562 * fs/jfs.c (grub_jfs_opendir): Likewise.
30563 * fs/ntfs.c (list_file): Likewise.
30564 (grub_ntfs_mount): Likewise.
30565 * kern/disk.c (grub_disk_open): Likewise.
30566 * kern/dl.c (grub_dl_load_core): Likewise.
30567 * kern/elf.c (grub_elf_file): Likewise.
30568 * kern/env.c (grub_env_context_open): Likewise.
30569 (grub_env_set): Likewise.
30570 (grub_env_set_data_slot): Likewise.
30571 * kern/file.c (grub_file_open): Likewise.
30572 * kern/fs.c (grub_fs_blocklist_open): Likewise.
30573 * loader/i386/multiboot.c (grub_module): Likewise.
30574 * loader/xnu.c (grub_xnu_create_key): Likewise.
30575 (grub_xnu_create_value): Likewise.
30576 * normal/main.c (grub_normal_add_menu_entry): Likewise.
30577 (read_config_file): Likewise.
30578 * normal/menu_entry.c (make_screen): Likewise.
30579 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30580 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
30581 * script/sh/script.c (grub_script_parse): Likewise.
30582 * video/bitmap.c (grub_video_bitmap_create): Likewise.
30583 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
30584 * video/readers/png.c (grub_png_output_byte): Likewise.
30585 (grub_video_reader_png): Likewise.
30586
830afef7 305872009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 30588
30589 Enable all targets that can be built by default
30590
830afef7 30591 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 30592 grub-mkfont and grub-fstest if they can be built
30593
ee293aee 305942009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30595
30596 Fix hang and segmentation fault in grub-emu-usb
30597
30598 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
30599 * util/usb.c (grub_libusb_devices): likewise
30600 (grub_libusb_init): rename to ...
30601 (GRUB_MOD_INIT (libusb)):...this
30602 (grub_libusb_fini): rename to ..
30603 (GRUB_MOD_FINI (libusb)):...this
30604 * disk/usbms.c (grub_usbms_transfer): fix retry logic
30605 * include/grub/disk.h (grub_raid_init): removed, it's useless
30606 (grub_raid_fini): likewise
30607 (grub_lvm_init): likewise
30608 (grub_lvm_fini): likewise
30609 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
30610 by grub_init_all
30611
94414221 306122009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30613
30614 Fix libusb
30615
30616 * Makefile.in (LIBUSB): new macro
30617 * genmk.rb (Utility/print_tail): new method
30618 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
30619 (top level): call util.print_tail at the end.
30620
59ade63d 306212009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30622
30623 Make FreeBSD accept zpool.cache
30624
30625 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
30626 type is /boot/zfs/zpool.cache
30627
a58da8c7 306282009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
30629
30630 Fix 64-bit efiemu
30631
30632 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
30633 correct wrong typedef
30634 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
30635
20591577 306362009-07-15 Pavel Roskin <proski@gnu.org>
30637
560ca572 30638 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
30639 * kern/disk.c (struct grub_disk_cache): Likewise.
30640
e8e8e4fd 30641 * commands/probe.c (options): Typo fix.
30642
fde24e10 30643 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
30644 Increase to 0x5a to accommodate FAT32. Adjust other offsets
30645 accordingly.
30646 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
30647
379c54c1 30648 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
30649 the end of "Error" to make the message more readable.
30650
7bd8f5bf 30651 * boot/i386/pc/boot.S (kernel_segment): Remove.
30652 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
30653 for destination.
30654
40b132c5 30655 * boot/i386/pc/boot.S (boot_version): Remove.
30656 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
30657 Remove.
30658
20591577 30659 * include/grub/i386/pc/boot.h: Sort all offsets.
30660 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
30661 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
30662 * boot/i386/pc/boot.S: Assert location of every offset listed in
30663 include/grub/i386/pc/boot.h.
30664
2df32b2c 306652009-07-13 Pavel Roskin <proski@gnu.org>
30666
44b5d879 30667 * include/grub/i386/coreboot/machine.h: Rename
30668 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
30669 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
30670 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
30671
17dc3751 30672 * kern/dl.c: Force native word size to suppress warnings when
30673 compiling grub-emu.
30674
2df32b2c 30675 * kern/device.c (grub_device_iterate): Change struct part_ent to
30676 hold the name, not a pointer to it. Use one grub_malloc() per
30677 partition, not two. Free partition_name if grub_malloc() fails.
30678 Set ents to NULL only before grub_partition_iterate() is called.
30679
75c59f59 306802009-07-11 Bean <bean123ch@gmail.com>
30681
30682 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
30683 childname.
30684
0ae1bf88 306852009-07-10 Bean <bean123ch@gmail.com>
306862009-07-10 Robert Millan <rmh.grub@aybabtu.com>
30687
30688 * kern/ieee1275/openfw.c (grub_children_iterate)
30689 (grub_devalias_iterate): Fix size evaluation for property or path
30690 strings, which was broken since r2132.
30691
8279cade 306922009-07-07 Pavel Roskin <proski@gnu.org>
30693
7d8a52d3 30694 * commands/search.c (search_file): Merge into ...
30695 (search_fs): ... this. Accept search type as argument.
30696 (grub_cmd_search): Pass search type to search_fs().
30697
25f9a05a 30698 * include/grub/util/console.h: New file.
30699 * util/console.c: Use it instead of grub/machine/console.h.
30700 * util/grub-emu.c: Likewise.
30701
8279cade 30702 * lib/arg.c (find_long_option): Remove.
30703 (find_long): Add `len' argument, make `s' const char *.
30704 (grub_arg_parse): Parse long options in place, not in a
30705 temporary buffer.
30706
4a11b60f 307072009-07-06 Pavel Roskin <proski@gnu.org>
30708
99f68041 30709 * commands/search.c (search_fs): Fix potential NULL pointer
30710 dereference.
30711
4a11b60f 30712 * commands/search.c (search_fs): Replace QUID macro with quid_fn
30713 function pointer.
30714
e110f4de 307152009-07-06 Daniel Mierswa <impulze@impulze.org>
30716
30717 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
30718 comparison.
30719
46eeb6a2 307202009-07-05 Pavel Roskin <proski@gnu.org>
30721
bab74958 30722 * include/grub/i386/linux.h (struct linux_kernel_params):
30723 Restore padding3, it's still needed.
30724
46eeb6a2 30725 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
30726 FreeBSD.
30727 * util/osdetect.lua: Likewise.
30728
b4a1dc79 307292009-07-05 Bean <bean123ch@gmail.com>
30730
30731 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
30732
30733 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
30734 (grub_lua_getenv): Likewise.
30735 (grub_lua_setenv): Likewise.
30736 (save_errno): New function.
30737 (push_result): Likewise.
30738 (grub_lua_enum_device): Likewise.
30739 (grub_lua_enum_file): Likewise.
30740 (grub_lua_file_open): Likewise.
30741 (grub_lua_file_close): Likewise.
30742 (grub_lua_file_seek): Likewise.
30743 (grub_lua_file_read): Likewise.
30744 (grub_lua_file_getline): Likewise.
30745 (grub_lua_file_getsize): Likewise.
30746 (grub_lua_file_getpos): Likewise.
30747 (grub_lua_file_eof): Likewise.
30748 (grub_lua_file_exist): Likewise.
30749 (grub_lua_add_menu): Likewise.
30750
30751 * script/lua/grub_lua.h (isupper): New inline function.
30752 (islower): Likewise.
30753 (ispunct): Likewise.
30754 (isxdigit): Likewise.
30755 (strcspn): Change to normal function.
30756 (strpbkr): New function declaration.
30757 (memchr): Likewise.
30758
30759 * script/lua/grub_main.c (scan_str): New function.
30760 (strcspn): Likewise.
30761 (strpbrk): Likewise.
30762 (memchr): Likewise.
30763
30764 * script/lua/linit.c (lualibs): Enable the string library.
30765
30766 * util/osdetect.lua: New file.
30767
2da92295 307682009-07-04 Robert Millan <rmh.grub@aybabtu.com>
30769
30770 * include/grub/i386/linux.h (struct linux_kernel_params): Add
30771 `capabilities' member.
30772
b2582ec9 307732009-07-02 Pavel Roskin <proski@gnu.org>
30774
30775 * genparttoollist.sh: Add missing newline at the end.
30776
32622956 307772009-07-01 Pavel Roskin <proski@gnu.org>
30778
87a7339e 30779 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
30780
d23af54e 30781 * util/hostdisk.c (open_device): Remove `const' from
30782 `sysctl_size', as sysctlbyname() can change it (in this case it
30783 doesn't actually happen).
30784
c94b18a9 30785 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
30786 using signed long int constants.
30787
c6cd3ef0 30788 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
30789 constant to avoid a warning on FreeBSD.
30790
0df63420 30791 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
30792 where it's needed.
30793
999577f1 30794 * Makefile.in: Install include/grub/machine symlink.
30795
6f41557f 30796 * Makefile.in: When installing symlinks, use "cp -fR", which
30797 works on FreeBSD and MacOSX.
30798 From Yves Blusseau <cl7m42e02@sneakemail.com>
30799
c8d22988 30800 * kern/dl.c (grub_dl_resolve_symbol): Make static.
30801 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
30802
1b96e952 30803 * util/misc.c: Move grub_reboot() and grub_halt() ...
30804 * util/grub-emu.c: ... here. Make main_env static.
30805 * include/grub/util/misc.h: Remove main_env.
30806
2ef0084d 30807 * kern/mm.c: Use correct format to print size_t.
30808
32622956 30809 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
30810 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
30811 * kern/powerpc/dl.c: Likewise.
30812 * kern/sparc64/dl.c: Likewise.
30813 * kern/x86_64/dl.c: Likewise.
30814
3f7f0cd0 308152009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30816
30817 Fix grub-emu build on sparc64-ieee1275.
30818
75421ca9 30819 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 30820 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30821
211d06b5 308222009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30823
30824 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30825 (grub_reboot, grub_halt): New functions.
30826
30827 * util/i386/pc/misc.c: Delete. Update all users.
30828 * util/sparc64/ieee1275/misc.c: Likewise.
30829 * util/powerpc/ieee1275/misc.c: Likewise.
30830
aaf53e3c 308312009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30832
30833 * conf/i386.rmk (setjmp_mod_SOURCES)
30834 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30835 * conf/common.rmk (setjmp_mod_SOURCES)
30836 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30837 to use $(target_cpu).
30838 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30839 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30840 * conf/powerpc-ieee1275.rmk: Likewise.
30841 * conf/sparc64-ieee1275.rmk: Likewise.
30842
30843 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30844 $(target_cpu) for kern/$(target_cpu)/dl.c.
30845 * conf/i386-efi.rmk: Likewise.
30846 * conf/i386-ieee1275.rmk: Likewise.
30847 * conf/x86_64-efi.rmk: Likewise.
30848 * conf/i386-coreboot.rmk: Likewise.
30849 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30850 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30851 kern/$(target_cpu)/cache.S.
30852 * conf/sparc64-ieee1275.rmk: Likewise.
30853
a337130b 308542009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30855
30856 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30857 type to `grub_uint8_t', and adjust `padding9' accordingly.
30858
c6fe4d53 308592009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30860
b09db61d 30861 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30862
c6fe4d53 30863 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30864 assembly in final jump, using register constraints.
30865
b09db61d 30866 (grub_linux_boot): For text mode, initialize `have_vga' using
30867 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30868
30869 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30870 right before the final jump.
30871
30872 Set `video_mode' to 0x3.
30873
30874 Document initialization of `video_page', `video_mode' and
30875 `video_ega_bx'.
30876
28333ad0 308772009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30878
30879 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30880 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 30881 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 30882
02164e1b 308832009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30884
30885 Fix build on Debian / sparc.
30886
30887 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30888
18b6c557 308892009-06-28 Pavel Roskin <proski@gnu.org>
30890
85f2aab6 30891 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30892 fix a warning.
30893
18b6c557 30894 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30895
ad760f81 308962009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30897
30898 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30899 `err'.
30900
87a4623b 309012009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30902
30903 Revert r2338.
30904
30905 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30906 file can't be opened. grub_file_open() is already supposed to set
75421ca9 30907 grub_errno / grub_errmsg appropriately.
87a4623b 30908 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30909
8231fb77 309102009-06-27 Pavel Roskin <proski@gnu.org>
309112009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30912
30913 * include/grub/dl.h: Include grub/elf.h.
30914 (struct grub_dl): Add symtab field.
30915 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30916 GRUB_MODULES_MACHINE_READONLY.
30917 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30918 of the header for read-only modules.
30919 (grub_dl_unload): Free mod->symtab for read-only modules.
30920 * kern/i386/dl.c: Use mod->symtab.
30921 * kern/powerpc/dl.c: Likewise.
30922 * kern/sparc64/dl.c: Likewise.
30923 * kern/x86_64/dl.c: Likewise.
30924
30925 * conf/i386-qemu.rmk: New file.
30926 * kern/i386/qemu/startup.S: Likewise.
30927 * kern/i386/qemu/mmap.c: Likewise.
30928 * boot/i386/qemu/boot.S: Likewise.
30929 * include/grub/i386/qemu/time.h: Likewise.
30930 * include/grub/i386/qemu/serial.h: Likewise.
30931 * include/grub/i386/qemu/kernel.h: Likewise.
30932 * include/grub/i386/qemu/console.h: Likewise.
30933 * include/grub/i386/qemu/boot.h: Likewise.
30934 * include/grub/i386/qemu/init.h: Likewise.
30935 * include/grub/i386/qemu/machine.h: Likewise.
30936 * include/grub/i386/qemu/loader.h: Likewise.
30937 * include/grub/i386/qemu/memory.h: Likewise.
30938
30939 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30940 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30941 [qemu] (pkglib_IMAGES): Add `boot.img'.
30942 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30943 [qemu] (boot_img_FORMAT): New variables.
30944 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30945 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30946 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30947 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30948 [qemu] (kernel_img_FORMAT): New variables.
30949
30950 * configure.ac: Recognise `i386-qemu'.
30951
30952 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30953 (for no compression).
30954 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30955 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30956 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30957 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30958 ifdefs).
30959
97fe384e 309602009-06-27 Pavel Roskin <proski@gnu.org>
30961
30962 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30963 read.
30964 * efiemu/prepare32.c: Likewise.
30965 * efiemu/prepare64.c: Likewise.
30966
c402ab17 309672009-06-26 Pavel Roskin <proski@gnu.org>
30968
30969 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30970 * include/grub/elf.h: Define symbols without "32" or "64" based
30971 on GRUB_TARGET_WORDSIZE.
30972 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30973 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30974 ELF definitions.
30975 * efiemu/loadcore64.c: Likewise.
30976 * loader/i386/bsd32.c: Likewise.
30977 * loader/i386/bsd64.c: Likewise.
30978 * kern/dl.c: Remove own ELF definitions.
30979 * util/i386/efi/grub-mkimage.c: Likewise.
30980
9bbdfd4d 309812009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30982
30983 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30984 segment 0x0 unconditionally, because the reference generated by
30985 GAS is an absolute address.
30986
a42ce6e9 309872009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30988
30989 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30990 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30991
c952cf92 309922009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30993
30994 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30995 indexes. Check for -f explicitly.
cc3752ad 30996 (search_file): Improve error message.
30997 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 30998
132a0a59 309992009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31000
31001 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
31002 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
31003
387a140c 310042009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31005
31006 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
31007 * conf/i386-ieee1275.rmk: Likewise.
31008 * conf/i386-coreboot.rmk: Likewise.
31009
31010 * kern/i386/pc/startup.S (grub_stop): Remove function.
31011 * kern/i386/ieee1275/startup.S: Likewise.
31012 * kern/i386/coreboot/startup.S: Likewise.
31013 * kern/i386/misc.S (grub_stop): New function.
31014
41da9665 310152009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31016
31017 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
31018 * kern/i386/realmode.S (real_to_prot): ... to here.
31019
bf337234 310202009-06-22 Robert Millan <rmh.grub@aybabtu.com>
31021
31022 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
31023 with `kernel.img'.
31024 (kernel_elf_SOURCES): Rename to ...
31025 (kernel_img_SOURCES): ... this.
31026 (kernel_elf_HEADERS): Rename to ...
31027 (kernel_img_HEADERS): ... this. Update all users.
31028 (kernel_elf_ASFLAGS): Rename to ...
31029 (kernel_img_ASFLAGS): ... this.
31030 (kernel_elf_CFLAGS): Rename to ...
31031 (kernel_img_CFLAGS): ... this.
31032 (kernel_elf_LDFLAGS): Rename to ...
31033 (kernel_img_LDFLAGS): ... this.
31034 * conf/i386-coreboot.rmk: Likewise.
31035 * conf/powerpc-ieee1275.rmk: Likewise.
31036
31037 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
31038 with "kernel.img".
31039
f52196ff 310402009-06-21 Pavel Roskin <proski@gnu.org>
31041
c3cee413 31042 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
31043 to match nested functions.
31044 * loader/sparc64/ieee1275/linux.c: Likewise.
31045
f52196ff 31046 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
31047
58750afc 310482009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31049
31050 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
31051 all i386 platforms.
31052
15355c7d 310532009-06-21 Robert Millan <rmh.grub@aybabtu.com>
31054
31055 Fix asm file handling on ELF, and remove workarounds.
31056
31057 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 31058 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 31059 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
31060 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
31061
3f3ec72b 310622009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
31063
31064 Load BSD ELF modules
31065
31066 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
31067 and loader/i386/bsd64.c
31068 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
31069 (FREEBSD_MODTYPE_ELF_MODULE): New definition
31070 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
31071 (grub_freebsd_load_elfmodule32): New declaration
31072 (grub_freebsd_load_elfmoduleobj64): Likewise
31073 (grub_freebsd_load_elf_meta32): Likewise
31074 (grub_freebsd_load_elf_meta64): Likewise
31075 (grub_freebsd_add_meta): Likewise
31076 (grub_freebsd_add_meta_module): Likewise
31077 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
31078 (grub_freebsd_add_meta_module): Likewise and move module-specific
31079 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
31080 (grub_cmd_freebsd): Add elf-kernel specific parts
31081 based on grub_freebsd_add_meta_module
31082 (grub_cmd_freebsd_module): Add type parsing moved from
31083 grub_freebsd_add_meta_module
31084 (grub_cmd_freebsd_module_elf): New function
31085 (cmd_freebsd_module_elf): New variable
31086 (GRUB_MOD_INIT): Register freebsd_module_elf
31087 * loader/i386/bsd32.c: New file
31088 * loader/i386/bsd64.c: Likewise
31089 * loader/i386/bsdXX.c: Likewise
31090 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
31091 (grub_elf64_load): Likewise
31092 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
31093 All users updated
31094 (grub_elf64_load_hook_t): Likewise
31095
0db15301 310962009-06-21 Colin Watson <cjwatson@ubuntu.com>
31097
31098 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
31099 variable.
31100 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
31101 don't write a menu entry for recovery mode.
31102
546796c1 311032009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31104
31105 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
31106 after it's no longer needed.
31107
cd7310d5 311082009-06-20 Robert Millan <rmh.grub@aybabtu.com>
31109
31110 * include/grub/i386/loader.h (grub_linux_prot_size)
31111 (grub_linux_tmp_addr, grub_linux_real_addr)
31112 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
31113 GRUB_MACHINE_PCBIOS.
31114 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
31115 common grub_util_info() call to ...
31116 (generate_image): ... here.
31117 Fix use of uninitialized memory, comparison of signed with
31118 unsigned integers and memory leak.
31119 Remove bogus module address message.
31120
ab32d3b5 311212009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
31122
31123 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
31124 grub_raid_register
31125 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
31126
024ef597 311272009-06-19 Pavel Roskin <proski@gnu.org>
31128
31129 * configure.ac: Remove stray AC_MSG_CHECKING.
31130
3ac72b51 311312009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
31132
31133 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 31134
e14cd814 311352009-06-18 Pavel Roskin <proski@gnu.org>
31136
31137 * conf/common.rmk: Add fs_file.mod.
31138 * disk/fs_file.c: New file.
31139 * include/grub/disk.h (enum grub_disk_dev_id): Add
31140 GRUB_DISK_DEVICE_FILE_ID.
31141
26586d98 311422009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31143
31144 Fix build with Apple's toolchain. Part 2
31145
31146 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
31147 a fake start
31148
26de2bcd 311492009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31150
31151 Fix build with Apple's toolchain. Part 1
31152
31153 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
31154 for long calls
31155 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 31156 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 31157 Apple's toolchain
31158
09b3490b 311592009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
31160
31161 Fix warnings
31162
31163 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
31164 (decomp_block): initialize ch
31165 use grub_memcpy instead of memcpy
31166
c22a006a 311672009-06-17 Pavel Roskin <proski@gnu.org>
31168
d3638678 31169 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
31170 version, use declarations needed to use vga_text as the startup
31171 console.
31172
c22a006a 31173 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
31174 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
31175 the kernel.
31176 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
31177 and grub_at_keyboard_fini(), it's done on module load and
31178 unload.
31179
05b129e0 311802009-06-17 Felix Zielcke <fzielcke@z-51.de>
31181
31182 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
31183 file can't be found.
31184 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
31185
cf24ed9e 311862009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31187
31188 Fix newline handling
31189
31190 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 31191 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 31192 (grub_script_yylex): don't segfault on unterminated script
31193 newline terminates command and variable
31194
74aa8e4b 311952009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
31196
31197 avoid double grub_adjust_range call. Bug reported by David Simner
31198
31199 * kern/disk.c (grub_disk_write): change to raw disk access before
31200 calling disk_read
31201
1bd265f3 312022009-06-17 Colin Watson <cjwatson@ubuntu.com>
31203
31204 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
31205 spaces, for the benefit of help2man.
31206 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31207
a2d08c06 312082009-06-16 Pavel Roskin <proski@gnu.org>
31209
31210 * kern/i386/halt.c: Include grub/machine/init.h.
31211 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
31212
b97bcb19 312132009-06-16 Felix Zielcke <fzielcke@z-51.de>
31214
31215 * util/grub.d/30_os-prober.in: Use ${root} in the generated
31216 drivemap menuentry.
31217
0644f96c 312182009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
31219
31220 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
31221 `echo' command.
31222
3ef17a2e 312232009-06-16 Pavel Roskin <proski@gnu.org>
31224
31225 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
31226 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
31227 save %dx, we only need %dl and we never change it.
31228 * boot/i386/pc/cdboot.S: Don't set the root drive.
31229 * boot/i386/pc/pxeboot.S: Likewise.
31230 * include/grub/i386/pc/boot.h: Remove
31231 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
31232 GRUB_BOOT_MACHINE_DRIVE_CHECK.
31233 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
31234 * kern/i386/pc/init.c (make_install_device): Remove references
31235 to grub_root_drive.
31236 * kern/i386/pc/startup.S: Likewise.
31237 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
31238
693fe637 312392009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31240
31241 xnu_uuid command
31242
31243 * commands/xnu_uuid.c: new file
31244 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
31245 (xnu_uuid_mod_SOURCES): new variable
31246 (xnu_uuid_mod_CFLAGS): likewise
31247 (xnu_uuid_mod_LDFLAGS): likewise
31248 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31249 * conf/i386-ieee1275.rmk: likewise
31250 * conf/i386-pc.rmk: likewise
31251 * conf/powerpc-ieee1275.rmk: likewise
31252 * conf/sparc64-ieee1275.rmk: likewise
31253 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
31254
c9da87d0 312552009-06-16 Pavel Roskin <proski@gnu.org>
31256
31257 * configure.ac: Avoid '==' in test command, it's not portable.
31258
9c6f4596 312592009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
31260
31261 Probe command
31262
31263 * commands/probe.c: new file
31264 * conf/common.rmk (pkglib_MODULES): add probe.mod
31265 (probe_mod_SOURCES): new variable
31266 (probe_mod_CFLAGS): likewise
31267 (probe_mod_LDFLAGS): likewise
31268 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
31269 * conf/i386-ieee1275.rmk: likewise
31270 * conf/i386-pc.rmk: likewise
31271 * conf/powerpc-ieee1275.rmk: likewise
31272 * conf/sparc64-ieee1275.rmk: likewise
31273
70b7f9fd 312742009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
31275
31276 Fix handling of string like \"hello\" and "a
31277 b"
31278
31279 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
31280 (grub_script_yylex): fix parsing of quoting, escaping and newline
31281
71c79a6b 312822009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
31283
dd74360c 31284 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 31285 handling
dd74360c 31286
0644f96c 312872009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 31288
31289 * util/grub-mkconfig.in: Fix parsing of --output option.
31290
e40893c3 312912009-06-12 Pavel Roskin <proski@gnu.org>
31292
31293 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
31294 genmk.rb don't need to be generated or installed.
31295
3a1acfe2 312962009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
31297
31298 * commands/i386/pc/drivemap_int13h.S: add more comments
31299
3a4575d4 313002009-06-11 Pavel Roskin <proski@gnu.org>
31301
0658e928 31302 * Makefile.in (uninstall): Uninstall manuals.
31303
ca0388f0 31304 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
31305 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
31306 and update-grub_lib in two places.
31307 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
31308
e3b27c39 31309 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
31310 a compiler warning.
31311
3a4575d4 31312 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
31313 `entry_lo' to fix variable shadowing.
31314
af1f4f55 313152009-06-11 Christian Franke <franke@computer.org>
31316
31317 * kern/misc.c (__enable_execute_stack): Add missing return type
31318 to prevent gcc warning.
31319
5225e649 313202009-06-11 Felix Zielcke <fzielcke@z-51.de>
31321
31322 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
31323
7d83bd47 313242009-06-11 Pavel Roskin <proski@gnu.org>
31325
c1cb63ba 31326 * Makefile.in: Don't rely on any scripts being executable.
31327 Always use $(SHELL) to run shell scripts.
31328
7d83bd47 31329 * configure.ac: Always define ___main if using -nostdlib. This
31330 fixes tests on Cygwin.
31331
948f48e7 313322009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
31333
31334 UDF fix
31335
7d83bd47 31336 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 31337 is in bytes and not in blocks
7d83bd47 31338
8ada9bc1 313392009-06-11 Pavel Roskin <proski@gnu.org>
31340
31341 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
31342 warning.
31343
25ad2323 313442009-06-11 Felix Zielcke <fzielcke@z-51.de>
31345
31346 * util/grub.d/30_os-prober.in: Fix a comment. Source
31347 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
31348 to set the root device. Place drivemap command in the generated
31349 chain entry.
31350
e65acb0c 313512009-06-11 Pavel Roskin <proski@gnu.org>
31352
31353 * configure.ac: Remove host_m32. Issues with 64-bit utilities
31354 have long been resolved.
31355
f285fe2d 313562009-06-11 Colin Watson <cjwatson@ubuntu.com>
31357
bd47b0b5 31358 * util/grub.d/10_linux.in: Capitalise "Linux".
31359
f285fe2d 31360 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
31361
a0c62e4e 313622009-06-11 Pavel Roskin <proski@gnu.org>
31363
b6783cb2 31364 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
31365 fix a gcc warning and ensure that the function won't ever exit.
31366
dde032e8 31367 * kern/i386/ieee1275/init.c: Add missing prototype for
31368 grub_stop_floppy().
31369
22cd079d 31370 * loader/ieee1275/multiboot2.c [__i386__]: Include
31371 grub/cpu/multiboot.h.
31372
a0c62e4e 31373 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
31374 casts to short - they are not portable and cause warnings. Fix
31375 use of uninitialized values in input_buf. Use ARRAY_SIZE.
31376
63963d17 313772009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
31378
31379 Drivemap fixes
31380
31381 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
31382 new function
31383 (grub_get_root_biosnumber_saved): new variable
31384 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
31385 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 31386 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 31387 %dx after the call if necessary
31388 * conf/common.rmk (pkglib_MODULES): remove boot.mod
31389 (boot_mod_SOURCES): remove
31390 (boot_mod_CFLAGS): remove
31391 (boot_mod_LDFLAGS): remove
31392 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
31393 (boot_mod_SOURCES): new variable
31394 (boot_mod_CFLAGS): likewise
31395 (boot_mod_LDFLAGS): likewise
31396 * conf/i386-efi.rmk: likewise
31397 * conf/i386-ieee1275.rmk: likewise
31398 * conf/i386-pc.rmk: likewise
31399 * conf/powerpc-ieee1275.rmk: likewise
31400 * conf/sparc64-ieee1275.rmk: likewise
31401 * conf/x86_64-efi.rmk: likewise
31402 * include/grub/i386/pc/biosnum.h: new file
31403 * lib/i386/pc/biosnum.c: likewise
31404 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
31405 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
31406 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 31407
33abf7ae 314082009-06-10 Pavel Roskin <proski@gnu.org>
31409
5ac35b35 31410 * io/gzio.c (test_header): Don't reuse one buffer for all data.
31411 Use separate variables. Read only the file size at the end, but
31412 not the checksum that we don't use.
31413
5c5215d5 31414 * kern/file.c (grub_file_read): Use void pointer for the buffer.
31415 Adjust all callers.
31416
27d5fef7 31417 * kern/ieee1275/openfw.c: Remove libc includes.
31418 * kern/ieee1275/cmain.c: Likewise.
31419 * include/grub/ieee1275/ieee1275.h: Likewise.
31420
33abf7ae 31421 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
31422 compiler warnings.
31423
19d50c2b 314242009-06-10 Felix Zielcke <fzielcke@z-51.de>
31425
31426 * Makefile.in: Remove all trailing whitespace.
31427 * conf/i386-pc.rmk: Likewise.
31428 * conf/powerpc-ieee1275.rmk: Likewise.
31429 * conf/sparc64-ieee1275.rmk: Likewise.
31430 * docs/grub.texi: Likewise.
31431 * docs/texinfo.tex: Likewise.
31432 * disk/fs_uuid.c: Likewise.
31433 * disk/lvm.c: Likewise.
31434 * disk/scsi.c: Likewise.
31435 * disk/ata.c: Likewise.
31436 * disk/ieee1275/ofdisk.c: Likewise.
31437 * disk/i386/pc/biosdisk.c: Likewise.
31438 * disk/host.c: Likewise.
31439 * disk/raid.c: Likewise.
31440 * disk/efi/efidisk.c: Likewise.
31441 * disk/usbms.c: Likewise.
31442 * disk/memdisk.c: Likewise.
31443 * disk/loopback.c: Likewise.
31444 * kern/powerpc/dl.c: Likewise.
31445 * kern/device.c: Likewise.
31446 * kern/dl.c: Likewise.
31447 * kern/sparc64/dl.c: Likewise.
31448 * kern/ieee1275/ieee1275.c: Likewise.
31449 * kern/term.c: Likewise.
31450 * kern/fs.c: Likewise.
31451 * kern/i386/dl.c: Likewise.
31452 * kern/i386/pc/startup.S: Likewise.
31453 * kern/i386/pc/init.c: Likewise.
31454 * kern/i386/pc/mmap.c: Likewise.
31455 * kern/i386/pc/lzo1x.S: Likewise.
31456 * kern/i386/ieee1275/init.c: Likewise.
31457 * kern/i386/realmode.S: Likewise.
31458 * kern/i386/tsc.c: Likewise.
31459 * kern/partition.c: Likewise.
31460 * kern/corecmd.c: Likewise.
31461 * kern/file.c: Likewise.
31462 * kern/efi/efi.c: Likewise.
31463 * kern/efi/init.c: Likewise.
31464 * kern/efi/mm.c: Likewise.
31465 * kern/main.c: Likewise.
31466 * kern/err.c: Likewise.
31467 * kern/env.c: Likewise.
31468 * kern/disk.c: Likewise.
31469 * kern/generic/millisleep.c: Likewise.
31470 * kern/generic/rtc_get_time_ms.c: Likewise.
31471 * kern/misc.c: Likewise.
31472 * kern/parser.c: Likewise.
31473 * genmk.rb: Likewise.
31474 * configure.ac: Likewise.
31475 * boot/i386/pc/diskboot.S: Likewise.
31476 * boot/i386/pc/pxeboot.S: Likewise.
31477 * boot/i386/pc/boot.S: Likewise.
31478 * boot/i386/pc/lnxboot.S: Likewise.
31479 * boot/i386/pc/cdboot.S: Likewise.
31480 * parttool/pcpart.c: Likewise.
31481 * video/readers/tga.c: Likewise.
31482 * video/video.c: Likewise.
31483 * video/bitmap.c: Likewise.
31484 * lib/envblk.c: Likewise.
31485 * lib/i386/setjmp.S: Likewise.
31486 * fs/xfs.c: Likewise.
31487 * fs/afs.c: Likewise.
31488 * fs/fat.c: Likewise.
31489 * fs/ntfs.c: Likewise.
31490 * fs/udf.c: Likewise.
31491 * fs/affs.c: Likewise.
31492 * fs/iso9660.c: Likewise.
31493 * fs/hfs.c: Likewise.
31494 * fs/fshelp.c: Likewise.
31495 * fs/ext2.c: Likewise.
31496 * fs/jfs.c: Likewise.
31497 * fs/reiserfs.c: Likewise.
31498 * fs/hfsplus.c: Likewise.
31499 * fs/minix.c: Likewise.
31500 * fs/cpio.c: Likewise.
31501 * fs/sfs.c: Likewise.
31502 * fs/ufs.c: Likewise.
31503 * efiemu/prepare.c: Likewise.
31504 * efiemu/loadcore_common.c: Likewise.
31505 * efiemu/runtime/efiemu.sh: Likewise.
31506 * efiemu/runtime/efiemu.S: Likewise.
31507 * efiemu/runtime/efiemu.c: Likewise.
31508 * efiemu/pnvram.c: Likewise.
31509 * efiemu/main.c: Likewise.
31510 * efiemu/i386/pc/cfgtables.c: Likewise.
31511 * efiemu/i386/loadcore64.c: Likewise.
31512 * efiemu/i386/loadcore32.c: Likewise.
31513 * efiemu/loadcore.c: Likewise.
31514 * efiemu/symbols.c: Likewise.
31515 * efiemu/mm.c: Likewise.
31516 * include/grub/autoefi.h: Likewise.
31517 * include/grub/datetime.h: Likewise.
31518 * include/grub/term.h: Likewise.
31519 * include/grub/hfs.h: Likewise.
31520 * include/grub/lvm.h: Likewise.
31521 * include/grub/i386/tsc.h: Likewise.
31522 * include/grub/i386/linux.h: Likewise.
31523 * include/grub/i386/xnu.h: Likewise.
31524 * include/grub/i386/efiemu.h: Likewise.
31525 * include/grub/i386/pc/biosdisk.h: Likewise.
31526 * include/grub/i386/pc/memory.h: Likewise.
31527 * include/grub/i386/pc/vbe.h: Likewise.
31528 * include/grub/parttool.h: Likewise.
31529 * include/grub/video.h: Likewise.
31530 * include/grub/memory.h: Likewise.
31531 * include/grub/fs.h: Likewise.
31532 * include/grub/partition.h: Likewise.
31533 * include/grub/xnu.h: Likewise.
31534 * include/grub/efi/api.h: Likewise.
31535 * include/grub/efi/pe32.h: Likewise.
31536 * include/grub/efi/memory.h: Likewise.
31537 * include/grub/multiboot.h: Likewise.
31538 * include/grub/usbdesc.h: Likewise.
31539 * include/grub/multiboot2.h: Likewise.
31540 * include/grub/acpi.h: Likewise.
31541 * include/grub/efiemu/efiemu.h: Likewise.
31542 * include/grub/disk.h: Likewise.
31543 * include/grub/ieee1275/ieee1275.h: Likewise.
31544 * include/grub/net.h: Likewise.
31545 * include/grub/machoload.h: Likewise.
31546 * include/grub/macho.h: Likewise.
31547 * include/multiboot.h: Likewise.
31548 * genmoddep.awk: Likewise.
31549 * normal/main.c: Likewise.
31550 * normal/menu_entry.c: Likewise.
31551 * normal/menu_viewer.c: Likewise.
31552 * normal/completion.c: Likewise.
31553 * normal/cmdline.c: Likewise.
31554 * normal/misc.c: Likewise.
31555 * normal/datetime.c: Likewise.
31556 * bus/usb/usbtrans.c: Likewise.
31557 * bus/usb/ohci.c: Likewise.
31558 * bus/usb/uhci.c: Likewise.
31559 * bus/usb/usb.c: Likewise.
31560 * mmap/efi/mmap.c: Likewise.
31561 * mmap/i386/pc/mmap_helper.S: Likewise.
31562 * mmap/i386/pc/mmap.c: Likewise.
31563 * mmap/i386/mmap.c: Likewise.
31564 * mmap/i386/uppermem.c: Likewise.
31565 * mmap/mmap.c: Likewise.
31566 * commands/acpi.c: Likewise.
31567 * commands/echo.c: Likewise.
31568 * commands/blocklist.c: Likewise.
31569 * commands/loadenv.c: Likewise.
31570 * commands/usbtest.c: Likewise.
31571 * commands/boot.c: Likewise.
31572 * commands/parttool.c: Likewise.
31573 * commands/search.c: Likewise.
31574 * commands/cat.c: Likewise.
31575 * commands/i386/pc/play.c: Likewise.
31576 * commands/i386/pc/drivemap.c: Likewise.
31577 * commands/i386/pc/vbeinfo.c: Likewise.
31578 * commands/i386/pc/acpi.c: Likewise.
31579 * commands/i386/pc/vbetest.c: Likewise.
31580 * commands/ls.c: Likewise.
31581 * commands/cmp.c: Likewise.
31582 * commands/test.c: Likewise.
31583 * commands/efi/acpi.c: Likewise.
31584 * commands/gptsync.c: Likewise.
31585 * commands/help.c: Likewise.
31586 * partmap/amiga.c: Likewise.
31587 * partmap/apple.c: Likewise.
31588 * partmap/acorn.c: Likewise.
31589 * partmap/pc.c: Likewise.
31590 * partmap/sun.c: Likewise.
31591 * partmap/gpt.c: Likewise.
31592 * script/sh/lexer.c: Likewise.
31593 * script/sh/function.c: Likewise.
31594 * font/font.c: Likewise.
31595 * font/font_cmd.c: Likewise.
31596 * loader/powerpc/ieee1275/linux.c: Likewise.
31597 * loader/efi/chainloader.c: Likewise.
31598 * loader/multiboot_loader.c: Likewise.
31599 * loader/macho.c: Likewise.
31600 * loader/i386/multiboot.c: Likewise.
31601 * loader/i386/linux.c: Likewise.
31602 * loader/i386/pc/linux.c: Likewise.
31603 * loader/i386/pc/multiboot2.c: Likewise.
31604 * loader/i386/pc/chainloader.c: Likewise.
31605 * loader/i386/pc/xnu.c: Likewise.
31606 * loader/i386/bsd_trampoline.S: Likewise.
31607 * loader/i386/efi/linux.c: Likewise.
31608 * loader/i386/multiboot_elfxx.c: Likewise.
31609 * loader/i386/bsd_helper.S: Likewise.
31610 * loader/i386/bsd.c: Likewise.
31611 * loader/i386/linux_trampoline.S: Likewise.
31612 * loader/i386/xnu_helper.S: Likewise.
31613 * loader/i386/xnu.c: Likewise.
31614 * loader/i386/bsd_pagetable.c: Likewise.
31615 * loader/i386/multiboot_helper.S: Likewise.
31616 * loader/xnu.c: Likewise.
31617 * loader/xnu_resume.c: Likewise.
31618 * io/gzio.c: Likewise.
31619 * term/efi/console.c: Likewise.
31620 * term/terminfo.c: Likewise.
31621 * term/ieee1275/ofconsole.c: Likewise.
31622 * term/i386/pc/serial.c: Likewise.
31623 * term/i386/pc/vesafb.c: Likewise.
31624 * term/i386/pc/vga.c: Likewise.
31625 * term/usb_keyboard.c: Likewise.
31626 * term/gfxterm.c: Likewise.
31627 * aclocal.m4: Likewise.
31628 * util/lvm.c: Likewise.
31629 * util/grub.d/30_os-prober.in: Likewise.
31630 * util/grub.d/10_hurd.in: Likewise.
31631 * util/console.c: Likewise.
31632 * util/grub-macho2img.c: Likewise.
31633 * util/grub-probe.c: Likewise.
31634 * util/hostfs.c: Likewise.
31635 * util/i386/pc/grub-mkimage.c: Likewise.
31636 * util/i386/pc/grub-setup.c: Likewise.
31637 * util/i386/efi/grub-mkimage.c: Likewise.
31638 * util/grub-mkconfig.in: Likewise.
31639 * util/raid.c: Likewise.
31640 * util/resolve.c: Likewise.
31641 * util/grub-mkdevicemap.c: Likewise.
31642 * util/grub-emu.c: Likewise.
31643 * util/getroot.c: Likewise.
31644 * util/hostdisk.c: Likewise.
31645 * util/usb.c: Likewise.
31646 * util/grub-editenv.c: Likewise.
31647 * util/misc.c: Likewise.
31648
d2d49665 316492009-06-10 Felix Zielcke <fzielcke@z-51.de>
31650
31651 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
31652 `genparttoollist.sh'.
31653 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
31654 Add `*.sh' to the list find searches for and change `mdate.sh'
31655 to `mdate-sh'.
31656
fe052e37 316572009-06-10 Pavel Roskin <proski@gnu.org>
31658
2763ac18 31659 * include/grub/multiboot2.h: Provide compatibility defines for
31660 multiboot2.h.
31661 * include/multiboot2.h: Include stdint.h only if needed, using
31662 angle brackets.
31663 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
31664 grub/multiboot2.h.
31665 * loader/ieee1275/multiboot2.c: Likewise.
31666 * loader/multiboot2.c: Likewise.
31667 * loader/multiboot_loader.c: Likewise.
31668
437e6adc 31669 * configure.ac: Use -nostdlib when probing for the target. It
31670 should not be required to have libc for the target.
31671
06a6836c 31672 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
31673 they fail without libc headers for the target.
31674 * include/grub/powerpc/libgcc.h: Use weak attribute for all
31675 exports.
31676 * include/grub/sparc64/libgcc.h: Likewise. Don't use
31677 preprocessor conditionals.
31678
fe052e37 31679 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
31680 build system doesn't need to be aware of the tar.c internals.
31681
afd22553 316822009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 31683
afd22553 31684 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 31685
6b787c4f 316862009-06-09 Robert Millan <rmh.grub@aybabtu.com>
31687
31688 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
31689 disk limit to 26 for IDE, Virtio, Xen and SCSI.
31690
316912009-06-09 Felix Zielcke <fzielcke@z-51.de>
31692
31693 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 31694 aren't available if ata.mod gets used.
6b787c4f 31695
473d1e45 316962009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 31697
473d1e45 31698 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 31699 initialising controller.
473d1e45 31700 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 31701
255a27d4 317022009-06-08 Felix Zielcke <fzielcke@z-51.de>
31703
31704 * util/i386/pc/grub-install.in: Add a parameter --disk-module
31705 to choose between ata and biosdisk module on i386-pc.
31706
473d1e45 317072009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 31708
d55842d8 31709 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
31710 Subclass and Programming Interface fields in terms of the 3 byte
31711 Class Code register.
31712 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
31713
fa5db0b1 31714 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
31715 interface is OHCI. Add grub_dprintf for symmetry with
31716 bus/usb/uhci.c.
31717 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
31718 interface is UHCI. Add interf variable for programming
31719 interface. Print interface with class/subclass.
31720
c0947beb 31721 * bus/usb/ohci.c: Set interf with correct field.
31722
69da8877 31723 * bus/usb/uhci.c: Remove unneeded doubled lines.
31724 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
31725 Remove whitespace inside comment.
31726
9e172e30 317272009-06-08 Robert Millan <rmh.grub@aybabtu.com>
31728
31729 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
31730 as fallback an equivalent option without depth.
31731
de65ee2b 317322009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31733
31734 Not fail if unable to retrieve C/H/S on LBA disks
31735
473d1e45 31736 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 31737 if unable to retrieve C/H/S on LBA disks
31738
b57ea2c9 317392009-06-08 Pavel Roskin <proski@gnu.org>
31740
31741 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
31742 about aliasing.
31743
af361263 317442009-06-08 Felix Zielcke <fzielcke@z-51.de>
31745
31746 * Makefile.in (uninstall): Remove all $lib_DATA files.
31747
4c9ec6b3 317482009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
31749
31750 Bugfix: install on partitionless device
31751
31752 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
31753 is a whole disk
31754
e76fc924 317552009-06-08 Felix Zielcke <fzielcke@z-51.de>
31756
31757 * Makefile.in (uninstall): Remove all $include_DATA files.
31758
ba5a0d05 317592009-06-08 Felix Zielcke <fzielcke@z-51.de>
31760
31761 * commands/true.c: New file. Implement the true and false commands.
31762 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
31763 (true_mod_SOURCES): New variable.
31764 (true_mod_CFLAGS): Likewise.
31765 (true_mod_LDFLAGS): Likewise.
31766
c8048e32 317672009-06-05 Colin D Bennett <colin@gibibit.com>
31768
31769 Optimized font character lookup using binary search instead of linear
31770 search. Fonts now are required to have the character index ordered by
31771 code point.
31772
31773 * font/font.c (load_font_index): Verify that fonts have ordered
31774 character indices.
31775 (find_glyph): Use binary search instead of linear search to find a
31776 character in a font.
31777
408305be 317782009-06-05 Michael Scherer <misc@mandriva.org>
31779
31780 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
31781 uses case sensitive btree.
31782 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
31783 only for case insensitive filesystems.
31784
8ee1e0d9 317852009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
31786
31787 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
31788 * conf/common.rmk (search_mod_CFLAGS): likewise
31789
a9966eb1 317902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31791
473d1e45 31792 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 31793 compensate a compiler bug
31794
9e7100fb 317952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31796
473d1e45 31797 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 31798 instead of '\b'
473d1e45 31799
ede21d71 318002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31801
31802 Definitions for creating asm symbols with Apple's CC
31803
31804 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
31805 [APPLE_CC] (VARIABLE): likewise
31806
9dbf7653 318072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31808
31809 Disable lnxboot.img when compiled
31810 with Apple's CC
31811
31812 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
31813 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
31814 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31815 [! APPLE_CC] (CODE_LENG): skip
31816 [! APPLE_CC] (setup_sects): likewise
31817 [! APPLE_CC]: skip filling
473d1e45 31818
e93cdc3d 318192009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31820
31821 Address in trampolines based on 32-bit registers when compiled
31822 with Apple's CC
31823
473d1e45 31824 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 31825 for addresses
31826 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31827
6c688477 318282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31829
31830 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31831
31832 * kern/misc.c [APPLE_CC] (memcpy): new function
31833 [APPLE_CC] (memmove): likewise
31834 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 31835 (memcpy): define alias conditionally on !APPLE_CC
6c688477 31836 (memset): likewise
31837 (abort): likewise
31838 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31839 APPLE_CC are defined
31840 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31841 (grub_assert_fail): make prototype conditional
31842
e37ffc5c 318432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31844
31845 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31846
473d1e45 31847 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31848 grub-macho2img
e37ffc5c 31849 (CLEANFILES): add grub-macho2img
31850 (grub_macho2img_SOURCES): new variable
31851 * kern/i386/pc/startup.S (bss_start): new variable
31852 (bss_end): likewise
31853 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31854 * util/grub-macho2img.c: new file
31855
cf00df31 318562009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31857
31858 Use objconv when compiling with Apple's CC
31859
31860 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31861 (efiemu64.o): likewise
31862 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31863 when compiling with Apple's CC
31864 (efiemu64_s.o): likewise
31865 * configure.ac: check for objconv when compiling with Apple's CC
31866 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 31867
d119a20c 318682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31869
31870 Define segment as well as section when compiling with
31871 Apple's CC
31872
31873 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31874 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31875 (efiemu_convert_pointer): likewise
31876 (efiemu_set_virtual_address_map): likewise
31877 (efiemu_convert_pointer): likewise
31878 (efiemu_getcrc32): likewise
31879 (init_crc32_table): likewise
31880 (reflect): likewise
31881 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31882 (GRUB_MOD_DEP): likewise
473d1e45 31883
c8600122 318842009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31885
31886 Allow a compilation without -mcmodel=large
31887
31888 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31889 when compiled without -mcmodel=large
473d1e45 31890 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 31891 without -mcmodel=large
473d1e45 31892 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 31893 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 31894
e8df1d4e 318952009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31896
31897 Remove nested functions in efiemu core
31898
31899 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 31900
cc6c3ac1 319012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31902
31903 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31904
31905 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31906 temporary storage
473d1e45 31907 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31908 using Apple's CC
cc6c3ac1 31909 (grub_cpu_is_tsc_supported): likewise
31910 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 31911
3e325901 319122009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31913
31914 Absolute addressing through constant with Apple's cc
31915
31916 * kern/i386/pc/startup.S: Define necessary constants
31917 and address through it when using ABS with Apple's CC
31918 * boot/i386/pc/diskboot.S: likewise
31919 * boot/i386/pc/boot.S: likewise
31920 * boot/i386/pc/lnxboot.S: likewise
31921 * boot/i386/pc/cdboot.S: likewise
31922 * mmap/i386/pc/mmap_helper.S: likewise
31923 * commands/i386/pc/drivemap_int13h.S: likewise
31924
2b167a72 319252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31926
31927 Check if compiler is apple cc
31928
31929 * Makefile.in (ASFLAGS): new variable
31930 (TARGET_ASFLAGS): likewise
31931 (TARGET_MODULE_FORMAT): likewise
31932 (TARGET_APPLE_CC): likewise
31933 (OBJCONV): likewise
31934 (TARGET_IMG_CFLAGS): likewise
31935 (TARGET_CPPFLAGS): add includedir
31936 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31937 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31938 Check for linker script only if compiler isn't Apple's CC
31939 (TARGET_MODULE_FORMAT): set
31940 (TARGET_APPLE_CC): likewise
31941 (TARGET_ASFLAGS): likewise
31942 (ASFLAGS): likewise
31943 Check for objcopy only if compiler isn't Apple's CC
31944 Check for BSS symbol only if compiler isn't Apple's CC
31945 * genmk.rb: adapt nm options if we use Apple's utils
31946 * aclocal.m4 (grub_apple_cc): new test
31947 (grub_apple_target_cc): likewise
473d1e45 31948
fb14123e 319492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31950
31951 Simplify sed expressions and improve awk
31952
31953 * Makefile.in (install-local): simplify sed expression
31954 * gencmdlist.sh: likewise
31955 * genmoddep.awk: avoid adding module as a dependency of itself
31956
5b889789 319572009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31958
31959 Add missing start symbols
31960
31961 * boot/i386/pc/boot.S: add start
fb14123e 31962 * boot/i386/pc/pxeboot.S: likewise
473d1e45 31963
fd2bf2e3 319642009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31965
31966 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 31967
31968 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 31969 (relocate_addresses): consider both r_addend and value at offset
31970 (make_mods_section): zerofill modinfo and header
31971 (convert_elf): write prefix here
473d1e45 31972
5389763d 319732009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31974
31975 Use .asciz instead of .string
31976
31977 * i386/pc/diskboot.S: use .asciz instead of .string
31978 * i386/pc/boot.S: likewise
31979 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31980 (GRUB_MOD_NAME): likewise
473d1e45 31981
3eb5ed4e 319822009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31983
31984 gfxpayload support
31985
31986 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31987 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31988 (grub_video_setup): remove
31989 (grub_video_set_mode): new prototype
31990 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31991 (vid_mode): remove
31992 (linux_vesafb_res): compile only on PCBIOS
31993 (grub_linux_boot): support gfxpayload
31994 * loader/i386/pc/xnu.c (video_hook): new function
31995 (grub_xnu_set_video): support gfxpayload
31996 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31997 (DEFAULT_VIDEO_HEIGHT): likewise
31998 (DEFAULT_VIDEO_FLAGS): likewise
31999 (DEFAULT_VIDEO_MODE): new definition
32000 (video_hook): new function
32001 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 32002 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 32003 loading xnu
32004 * video/video.c (grub_video_setup): removed
473d1e45 32005 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 32006 grub_video_setup
32007
4b0e1143 320082009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32009
32010 Avoid calling biosdisk in drivemap
32011
32012 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
32013 (revparse_biosdisk): likewise
32014 (list_mappings): derive name from id directly
32015 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 32016
fda6cb98 320172009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
32018
32019 Script fixes
32020
32021 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
32022 (grub_lexer_param): add tokenonhold
32023 (grub_script_create_cmdline): remove cmdline. All callers updated
32024 (grub_script_function_create): make functionname
32025 grub_script_arg. All callers updated
32026 (grub_script_execute_argument_to_string): new prototype
32027 * kern/parser.c (state_transitions): reorder
32028 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 32029 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 32030 make global
32031 (grub_script_execute_cmdline): use new format
32032 * script/sh/function.c (grub_script_function_create): make functionname
32033 grub_script_arg. All callers updated
473d1e45 32034 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 32035 (grub_script_yylex): remove
32036 (grub_script_yylex2): renamed to ...
32037 (grub_script_yylex): ...renamed
32038 parse the expressions like a${b}c
32039 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
32040 (GRUB_PARSER_TOKEN_VAR): remove
32041 (GRUB_PARSER_TOKEN_NAME): likewise
32042 ("if"): declare as typeless
32043 ("while"): likewise
32044 ("function"): likewise
32045 ("else"): likewise
32046 ("then"): likewise
32047 ("fi"): likewise
32048 (text): remove
32049 (argument): likewise
32050 (script): accept empty scripts and make exit on error
32051 (arguments): use GRUB_PARSER_TOKEN_ARG
32052 (function): likewise
32053 (command): move error handling to script
32054 (menuentry): move grub_script_lexer_ref before
473d1e45 32055 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 32056 argument. All callers updated
32057
f4448a07 320582009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32059
32060 Prevent GRUB from probing floppies during boot.
32061
32062 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
32063 * commands/search.c (options): Add --no-floppy.
32064 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
32065 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
32066 --no-floppy when searching for UUIDs.
32067
2bf5885a 320682009-06-04 Robert Millan <rmh.grub@aybabtu.com>
32069
32070 Simplify the code duplication in commands/search.c.
32071
32072 * commands/search.c (search_label, search_fs_uuid): Merge into ...
32073 (search_fs): ... this. Update all users.
32074
f6fd460a 320752009-06-03 Felix Zielcke <fzielcke@z-51.de>
32076
32077 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
32078
cbb3c83e 320792009-05-28 Pavel Roskin <proski@gnu.org>
32080
57788cfd 32081 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
32082 Remove the original symlink explicitly.
32083
cbb3c83e 32084 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
32085 just one slash. That's how grub_fshelp_find_file() does it.
32086
cd0d5e30 320872009-05-26 Pavel Roskin <proski@gnu.org>
32088
f0f8bbe2 32089 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
32090 to `str'.
32091
cd0d5e30 32092 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
32093 possibly unused.
32094
8c2cab51 320952009-05-25 Christian Franke <franke@computer.org>
32096
32097 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
32098 register.
32099 (grub_atapi_identify): Add wait after drive select.
32100 (grub_ata_identify): Do more strict status register check before
32101 calling grub_atapi_identify (). Suppress error message if status
32102 register is 0x00 after command failure. Add status register
32103 check after PIO read to avoid bogus identify due to stuck DRQ.
32104 Thanks to Pavel Roskin for testing.
32105 (grub_device_initialize): Remove unsafe status register check.
32106 Thanks to 'phcoder' for problem report and patch.
32107 Prevent sign extension in debug message.
32108
230c0ad6 321092009-05-23 Colin D Bennett <colin@gibibit.com>
32110
32111 Cleaned up `include/grub/normal.h'. Grouped prototypes by
32112 definition file, and functions defined in `normal/menu.c' have had
32113 their prototypes moved to `include/grub/menu.h' for consistency.
32114
32115 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
32116 from normal.h.
32117 (grub_menu_get_entry): Likewise.
32118 (grub_menu_get_timeout): Likewise.
32119 (grub_menu_set_timeout): Likewise.
32120 (grub_menu_execute_entry): Likewise.
32121 (grub_menu_execute_with_fallback): Likewise.
32122 (grub_menu_entry_run): Likewise.
32123
32124 * include/grub/normal.h: Re-ordered and grouped function
32125 prototypes by file that the function is defined in.
32126 (grub_menu_execute_callback): Removed; moved to menu.h.
32127 (grub_menu_get_entry): Likewise.
32128 (grub_menu_get_timeout): Likewise.
32129 (grub_menu_set_timeout): Likewise.
32130 (grub_menu_execute_entry): Likewise.
32131 (grub_menu_execute_with_fallback): Likewise.
32132 (grub_menu_entry_run): Likewise.
32133 (grub_menu_addentry): Renamed from this ...
32134 (grub_normal_add_menu_entry): ... to this.
32135
32136 * normal/main.c (grub_menu_addentry): Renamed from this ...
32137 (grub_normal_add_menu_entry): ... to this.
32138
32139 * script/sh/execute.c (grub_script_execute_menuentry): Update
32140 reference to renamed grub_menu_addentry function.
32141
861f03a5 321422009-05-23 Felix Zielcke <fzielcke@z-51.de>
32143
32144 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
32145
96b1619a 321462009-05-22 Pavel Roskin <proski@gnu.org>
32147
bf6a5fb2 32148 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
32149 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
32150 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
32151 compiling for the i386 targets, but not for the utilities.
32152
96b1619a 32153 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
32154 to grub_uint8_t.
32155 (grub_root_drive): Likewise.
32156 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
32157 remove alignment.
32158 (grub_root_drive): Change size to byte.
32159 (grub_start_addr): Remove.
32160 (grub_end_addr): Likewise.
32161 (grub_apm_bios_info): Likewise.
32162
b729776b 321632009-05-21 Felix Zielcke <fzielcke@z-51.de>
32164
32165 * normal/i386: Remove.
32166 * normal/powerpc: Likewise.
32167 * normal/sparc64: Likewise.
32168 * normal/x86_64: Likewise.
32169
0a15ce80 321702009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
32171
32172 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 32173 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 32174 * loader/i386/xnu_helper.S: Likewise
d6da58e6 32175
33db9015 321762009-05-18 Colin D Bennett <colin@gibibit.com>
32177
d6da58e6 32178 Display error messages when parsing a Lua statement fails.
32179 Previously, executing a syntactically invalid statement like
32180 ")foo" or "bar;" would silently fail.
33db9015 32181
32182 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 32183 (grub_lua_parse_line): Improved reporting of Lua parser and
32184 execution errors.
33db9015 32185
46422c89 321862009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32187
32188 Remove -Werror which causes build to fail on some systems
32189
32190 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
32191 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
32192 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 32193
22f53a96 321942009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
32195
32196 trampoline for linux on 64-bit platform
32197
18f547ad 32198 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
32199 loader/i386/efi/linux_trampoline.S
32200 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 32201 declaration
d6da58e6 32202 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
32203 here
22f53a96 32204 * loader/i386/linux_trampoline.S: moved here
d6da58e6 32205 * loader/i386/efi/linux.c (allocate_pages): reserve space for
32206 trampoline
22f53a96 32207 (jumpvector): removed
32208 (grub_linux_trampoline_start): new declaration
32209 (grub_linux_trampoline_end): likewise
32210 (grub_linux_boot): use trampoline when on 64-bit platform
32211 * loader/i386/linux.c: likewise
32212
cb5a0f40 322132009-05-16 Pavel Roskin <proski@gnu.org>
32214
32215 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
32216 const to avoid a warning.
32217 (grub_lua_setenv): Likewise.
32218 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
32219 lmsg to fix a warning.
32220
334f2c28 322212009-05-16 Felix Zielcke <fzielcke@z-51.de>
32222
32223 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 32224 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32225 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
32226 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32227 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32228 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
32229 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
32230 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 32231
59e5d3ec 322322009-05-16 Felix Zielcke <fzielcke@z-51.de>
32233
32234 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
32235
9d87a1ba 322362009-05-16 Bean <bean123ch@gmail.com>
32237
32238 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
32239 (lua_mod_SOURCES): New variable.
32240 (lua_mod_CFLAGS): Likewise.
32241 (lua_mod_LDFLAGS): Likewise.
32242
32243 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
32244 (setjmp_mod_SOURCES): New variable.
32245 (setjmp_mod_CFLAGS): Likewise.
32246 (setjmp_LDFLAGS): Likewise.
32247
32248 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
32249 (setjmp_mod_SOURCES): New variable.
32250 (setjmp_mod_CFLAGS): Likewise.
32251 (setjmp_LDFLAGS): Likewise.
32252
32253 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32254 (setjmp_mod_SOURCES): New variable.
32255 (setjmp_mod_CFLAGS): Likewise.
32256 (setjmp_LDFLAGS): Likewise.
32257
32258 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
32259 (setjmp_mod_SOURCES): New variable.
32260 (setjmp_mod_CFLAGS): Likewise.
32261 (setjmp_LDFLAGS): Likewise.
32262
32263 * normal/i386/setjmp.S: Moved from here ...
32264 * lib/i386/setjmp.S: ... Moved here
32265 * normal/x86_64/setjmp.S: Moved from here ...
32266 * lib/x86_64/setjmp.S: ... Moved here
32267 * normal/powerpc/setjmp.S: Moved from here ...
32268 * lib/powerpc/setjmp.S: ... Moved here
32269 * normal/sparc64/setjmp.S: Moved from here ...
32270 * lib/sparc64/setjmp.S: ... Moved here
32271
32272 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
32273 returns_twice in mingw.
32274
32275 * script/lua/grub_lib.c: New file.
32276 * script/lua/grub_lib.h: Likewise.
32277 * script/lua/grub_lua.h: Likewise.
32278 * script/lua/grub_main.c: Likewise.
32279 * script/lua/lapi.c: Likewise.
32280 * script/lua/lapi.h: Likewise.
32281 * script/lua/lauxlib.c: Likewise.
32282 * script/lua/lauxlib.h: Likewise.
32283 * script/lua/lbaselib.c: Likewise.
32284 * script/lua/lcode.c: Likewise.
32285 * script/lua/lcode.h: Likewise.
32286 * script/lua/ldblib.c: Likewise.
32287 * script/lua/ldebug.c: Likewise.
32288 * script/lua/ldebug.h: Likewise.
32289 * script/lua/ldo.c: Likewise.
32290 * script/lua/ldo.h: Likewise.
32291 * script/lua/ldump.c: Likewise.
32292 * script/lua/lfunc.c: Likewise.
32293 * script/lua/lfunc.h: Likewise.
32294 * script/lua/lgc.c: Likewise.
32295 * script/lua/lgc.h: Likewise.
32296 * script/lua/linit.c: Likewise.
32297 * script/lua/liolib.c: Likewise.
32298 * script/lua/llex.c: Likewise.
32299 * script/lua/llex.h: Likewise.
32300 * script/lua/llimits.h: Likewise.
32301 * script/lua/lmathlib.c: Likewise.
32302 * script/lua/lmem.c: Likewise.
32303 * script/lua/lmem.h: Likewise.
32304 * script/lua/loadlib.c: Likewise.
32305 * script/lua/lobject.c: Likewise.
32306 * script/lua/lobject.h: Likewise.
32307 * script/lua/lopcodes.c: Likewise.
32308 * script/lua/lopcodes.h: Likewise.
32309 * script/lua/loslib.c: Likewise.
32310 * script/lua/lparser.c: Likewise.
32311 * script/lua/lparser.h: Likewise.
32312 * script/lua/lstate.c: Likewise.
32313 * script/lua/lstate.h: Likewise.
32314 * script/lua/lstring.c: Likewise.
32315 * script/lua/lstring.h: Likewise.
32316 * script/lua/lstrlib.c: Likewise.
32317 * script/lua/ltable.c: Likewise.
32318 * script/lua/ltable.h: Likewise.
32319 * script/lua/ltablib.c: Likewise.
32320 * script/lua/ltm.c: Likewise.
32321 * script/lua/ltm.h: Likewise.
32322 * script/lua/lua.h: Likewise.
32323 * script/lua/luaconf.h: Likewise.
32324 * script/lua/lualib.h: Likewise.
32325 * script/lua/lundump.c: Likewise.
32326 * script/lua/lundump.h: Likewise.
32327 * script/lua/lvm.c: Likewise.
32328 * script/lua/lvm.h: Likewise.
32329 * script/lua/lzio.c: Likewise.
32330 * script/lua/lzio.h: Likewise.
32331
5e898c9d 323322009-05-16 Bean <bean123ch@gmail.com>
32333
32334 * include/grub/kernel.h (grub_module_header_types): Add type
32335 OBJ_TYPE_CONFIG.
32336
32337 * kern/main.c (grub_load_config): New function.
32338 (grub_main): Call grub_load_config to read boot config.
32339
32340 * grub-mkimage (generate_image): New parameter config_path.
32341 (options): New option --config.
32342 (main): Parse --config option, and pass it to generate_image.
32343
cf353a47 323442009-05-14 Christian Franke <franke@computer.org>
32345
32346 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
32347 This fixes build on Cygwin.
32348
3834887f 323492009-05-14 Pavel Roskin <proski@gnu.org>
32350
32351 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
32352 jump. This saves two bytes, so the typical case of 2 swapped
32353 drives would fit 32 bytes.
32354
8090fc01 323552009-05-13 Pavel Roskin <proski@gnu.org>
32356
ac963883 32357 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
32358 grub_uint32_t to avoid a warning.
32359
8090fc01 32360 * loader/i386/linux.c (allocate_pages): When assigning
32361 real_mode_mem, cast through grub_size_t to fix a warning. The
32362 code already makes sure that the value would fit a pointer.
32363 (grub_linux_setup_video): Cast render_target->data to
32364 grub_size_t to fix a warning.
32365
18f547ad 323662009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 32367
32368 * commands/i386/pc/drivemap.c: New file - implement drivemap
32369 command.
32370 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
32371 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
32372
6f6a8b28 323732009-05-13 Pavel Roskin <proski@gnu.org>
32374
32375 * util/i386/pc/grub-setup.c (setup): Remove unused variable
32376 embedding_area_exists.
32377
15fbf4c4 323782009-05-13 Robert Millan <rmh.grub@aybabtu.com>
32379
32380 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
32381 it easier to understand / work with.
59978c8a 32382 Improve warning messages for cases where there's no embedding area,
32383 or when it is too small (or core.img too large).
15fbf4c4 32384
238e871f 323852009-05-13 Pavel Roskin <proski@gnu.org>
32386
0ab3a9a4 32387 * loader/i386/pc/multiboot2.c: Add necessary includes for
32388 grub_multiboot2_real_boot().
32389
a2c8c5f8 32390 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
32391 PX record is always little-endian. We only need the lower 2
32392 bytes of the mode.
32393
faec96af 32394 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
32395 facilitate code reuse.
32396 (grub_cpio_mount): Use "struct head", not a char buffer. This
32397 fixes a warning reported by gcc 4.4.
32398
238e871f 32399 * kernel/disk.c (grub_disk_read): Use void pointer for the
32400 buffer.
32401 (grub_disk_write): Use const void pointer for the buffer.
32402 Adjust all callers. Remove unnecessary casts.
32403
901d2f0c 324042009-05-10 Robert Millan <rmh.grub@aybabtu.com>
32405
32406 * util/i386/pc/grub-install.in: Update copyright year.
32407
18f547ad 324082009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 32409
32410 gptsync
32411
32412 * commands/gptsync.c: new file
32413 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
32414 (gptsync_mod_SOURCES): new variable
32415 (gptsync_mod_CFLAGS): likewise
32416 (gptsync_mod_LDFLAGS): likewise
18f547ad 32417 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 32418 new definition
32419 (GRUB_PC_PARTITION_TYPE_HFS): likewise
32420 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
32421 * conf/i386-ieee1275.rmk: likewise
32422 * conf/i386-pc.rmk: likewise
32423 * conf/powerpc-ieee1275.rmk: likewise
32424
b4ba690a 324252009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
32426
32427 Fixed grub-emu
32428
32429 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
32430 (grub_dl_ref): likewise
32431
317e1a44 324322009-05-08 Robert Millan <rmh.grub@aybabtu.com>
32433
32434 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
32435 split in two functions (one for msdos and one for gpt).
32436
041b8094 324372009-05-08 Pavel Roskin <proski@gnu.org>
32438
752473c2 32439 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
32440 not modified.
32441
041b8094 32442 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
32443 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
32444 Initialize them with -1. Add sanity check for bad1. Eliminate
32445 nerr variable.
32446
172800ce 324472009-05-08 David S. Miller <davem@davemloft.net>
32448
32449 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
32450
29aa5e81 324512009-05-06 Robert Millan <rmh.grub@aybabtu.com>
32452
32453 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 32454 existence.
29aa5e81 32455
96613b62 324562009-05-05 Felix Zielcke <fzielcke@z-51.de>
32457
32458 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 32459 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 32460
eef73c8a 324612009-05-05 David S. Miller <davem@davemloft.net>
32462
32463 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
32464
119494b5 324652009-05-05 Pavel Roskin <proski@gnu.org>
32466
32467 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
32468 of grub_dl_ref() and grub_dl_unref().
32469 * commands/parttool.c: Remove preprocessor conditionals around
32470 grub_dl_ref() and grub_dl_unref().
32471 * fs/affs.c: Likewise.
32472 * fs/afs.c: Likewise.
32473 * fs/cpio.c: Likewise.
32474 * fs/ext2.c: Likewise.
32475 * fs/fat.c: Likewise.
32476 * fs/hfs.c: Likewise.
32477 * fs/hfsplus.c: Likewise.
32478 * fs/iso9660.c: Likewise.
32479 * fs/jfs.c: Likewise.
32480 * fs/minix.c: Likewise.
32481 * fs/ntfs.c: Likewise.
32482 * fs/reiserfs.c: Likewise.
32483 * fs/sfs.c: Likewise.
32484 * fs/udf.c: Likewise.
32485 * fs/ufs.c: Likewise.
32486 * fs/xfs.c: Likewise.
32487 * include/grub/dl.h: Likewise.
32488 * loader/xnu.c: Likewise.
32489
de5fd76e 324902009-05-04 Pavel Roskin <proski@gnu.org>
32491
32492 * commands/acpi.c: Remove unused variable my_mod.
32493 * partmap/amiga.c: Likewise.
32494 * partmap/apple.c: Likewise.
32495 * partmap/gpt.c: Likewise.
32496 * partmap/pc.c: Likewise.
32497 * partmap/sun.c: Likewise.
32498 * term/gfxterm.c: Likewise.
32499 * term/i386/pc/vesafb.c: Likewise.
32500 * term/i386/pc/vga.c: Likewise.
32501
983598ad 325022009-05-04 David S. Miller <davem@davemloft.net>
32503
32504 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
32505 pointer args to grub_ieee1275_get_property().
32506
8aadec43 32507 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
32508
9554b15e 32509 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
32510 devices, and do not traverse down under controller nodes.
32511
67e23c90 32512 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
32513 (grub_ofdisk_open): Use it to un-escape "," characters.
32514 * kern/disk.c (find_part_sep): New.
32515 (grub_disk_open): Use it to find the first non-escaped ','
32516 character in the disk name.
32517 * util/ieee1275/devicemap.c (escape_of_path): New.
32518 (grub_util_emit_devicemap_entry): Use it.
32519 * util/sparc64/ieee1275/grub-install.in: Update script to
32520 strip partition specifiers properly by not triggering on
32521 '\' escaped ',' characters.
32522
74bfdd2f 325232009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32524
32525 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
32526 to 0x300.
32527 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
32528 resolutions.
32529 (linux_vesafb_modes): Add a lot of additional modes to the list (based
32530 on documentation from Wikipedia).
32531
4241d2b1 325322009-05-04 Pavel Roskin <proski@gnu.org>
32533
32534 * disk/ata.c: Spelling fixes.
32535 * disk/raid.c: Likewise.
32536 * disk/usbms.c: Likewise.
32537 * disk/dmraid_nvidia.c: Likewise.
32538 * kern/ieee1275/openfw.c: Likewise.
32539 * kern/ieee1275/init.c: Likewise.
32540 * kern/ieee1275/cmain.c: Likewise.
32541 * boot/i386/pc/cdboot.S: Likewise.
32542 * video/readers/png.c: Likewise.
32543 * video/i386/pc/vbe.c: Likewise.
32544 * fs/udf.c: Likewise.
32545 * fs/hfs.c: Likewise.
32546 * fs/reiserfs.c: Likewise.
32547 * efiemu/runtime/efiemu.c: Likewise.
32548 * efiemu/main.c: Likewise.
32549 * efiemu/mm.c: Likewise.
32550 * include/grub/elf.h: Likewise.
32551 * include/grub/xnu.h: Likewise.
32552 * include/grub/usbdesc.h: Likewise.
32553 * include/grub/usb.h: Likewise.
32554 * include/grub/script_sh.h: Likewise.
32555 * include/grub/lib/LzmaEnc.h: Likewise.
32556 * include/grub/efiemu/efiemu.h: Likewise.
32557 * include/grub/command.h: Likewise.
32558 * normal/menu.c: Likewise.
32559 * normal/main.c: Likewise.
32560 * normal/datetime.c: Likewise.
32561 * bus/usb/uhci.c: Likewise.
32562 * mmap/i386/uppermem.c: Likewise.
32563 * mmap/mmap.c: Likewise.
32564 * commands/acpi.c: Likewise.
32565 * commands/test.c: Likewise.
32566 * partmap/apple.c: Likewise.
32567 * font/font.c: Likewise.
32568 * loader/sparc64/ieee1275/linux.c: Likewise.
32569 * loader/macho.c: Likewise.
32570 * loader/i386/bsd_trampoline.S: Likewise.
32571 * loader/i386/bsd.c: Likewise.
32572 * loader/xnu.c: Likewise.
32573 * term/i386/pc/vesafb.c: Likewise.
32574 * term/usb_keyboard.c: Likewise.
32575 * util/resolve.c: Likewise.
32576 * util/getroot.c: Likewise.
32577
0cfc0083 325782009-05-04 Felix Zielcke <fzielcke@z-51.de>
32579
32580 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
32581
7c1d00cd 325822009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32583
32584 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
32585 build error.
32586
b01f0548 325872009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32588
32589 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
32590 parameter only available on BIOS.
32591
ecc3eb22 325922009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32593
32594 Removed wrong semicolon in declaration
32595
32596 * grub/misc.h (grub_dprintf): remove semicolon
32597
112972a9 325982009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32599
32600 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
32601 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
32602 is done by grub_cmd_linux() now).
32603 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
32604 restore video to text mode.
32605 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
32606 indicates lack of "vga=" parameter. "vga=0" is mapped to
32607 `GRUB_LINUX_VID_MODE_NORMAL'.
32608
afd5c115 326092009-05-04 Felix Zielcke <fzielcke@z-51.de>
32610
32611 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
32612 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
32613 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 32614 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 32615 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
32616 `grub_script.tab.c'.
32617
32618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32619 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32620 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32621 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
32622 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32623
faa517ce 32624 * Makefile.in: Remove duplicated 2008 in Copyright line.
32625
ae0c0bdc 326262009-05-04 Robert Millan <rmh.grub@aybabtu.com>
32627
473d1e45 32628 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 32629 unconditionally.
32630 * include/grub/util/misc.h (grub_util_warn): New declaration.
32631
32632 * util/i386/pc/grub-install.in: Understand --force and pass it down
32633 to grub-setup.
32634
32635 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
32636 down to setup().
32637 (setup): Improve error messages and add warnings when requested to
32638 install in odd layouts. Refuse to install using blocklists unless
32639 --force was set.
32640
18f547ad 326412009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 32642
32643 * disk/raid.c (grub_raid_scan_device): Improve debug message.
32644
6d260daa 326452009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32646
32647 Updated copyright year
32648
32649 * fs/hfsplus.c: updated copyright year
18f547ad 32650
69f853f8 326512009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
32652
32653 HFS+ UUID
32654
18f547ad 32655 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 32656 in the space previously used by unused3
32657 (grub_hfsplus_uuid): new function
32658 (grub_hfsplus_fs): added uuid field
32659
4c402e73 326602009-05-03 Pavel Roskin <proski@gnu.org>
32661
32662 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
32663 suppress warnings. It's no longer needed.
32664 * disk/host.c: Likewise.
32665 * disk/ata_pthru.c: Likewise.
32666 * disk/loopback.c: Likewise.
32667 * hook/datehook.c: Likewise.
32668 * parttool/pcpart.c: Likewise.
32669 * fs/i386/pc/pxe.c: Likewise.
32670 * fs/ntfscomp.c: Likewise.
32671 * efiemu/main.c: Likewise.
32672 * mmap/mmap.c: Likewise.
32673 * commands/crc.c: Likewise.
32674 * commands/hexdump.c: Likewise.
32675 * commands/hdparm.c: Likewise.
32676 * commands/acpi.c: Likewise.
32677 * commands/echo.c: Likewise.
32678 * commands/minicmd.c: Likewise.
32679 * commands/blocklist.c: Likewise.
32680 * commands/memrw.c: Likewise.
32681 * commands/loadenv.c: Likewise.
32682 * commands/usbtest.c: Likewise.
32683 * commands/lsmmap.c: Likewise.
32684 * commands/boot.c: Likewise.
32685 * commands/parttool.c: Likewise.
32686 * commands/configfile.c: Likewise.
32687 * commands/search.c: Likewise.
32688 * commands/ieee1275/suspend.c: Likewise.
32689 * commands/cat.c: Likewise.
32690 * commands/i386/pc/pxecmd.c: Likewise.
32691 * commands/i386/pc/play.c: Likewise.
32692 * commands/i386/pc/halt.c: Likewise.
32693 * commands/i386/pc/vbeinfo.c: Likewise.
32694 * commands/i386/pc/vbetest.c: Likewise.
32695 * commands/lspci.c: Likewise.
32696 * commands/date.c: Likewise.
32697 * commands/handler.c: Likewise.
32698 * commands/ls.c: Likewise.
32699 * commands/test.c: Likewise.
32700 * commands/cmp.c: Likewise.
32701 * commands/efi/loadbios.c: Likewise.
32702 * commands/efi/fixvideo.c: Likewise.
32703 * commands/halt.c: Likewise.
32704 * commands/help.c: Likewise.
32705 * commands/reboot.c: Likewise.
32706 * hello/hello.c: Likewise.
32707 * script/sh/main.c: Likewise.
32708 * loader/xnu.c: Likewise.
32709 * term/terminfo.c: Likewise.
32710 * term/i386/pc/serial.c: Likewise.
32711 * term/usb_keyboard.c: Likewise.
32712
515b5079 327132009-05-03 David S. Miller <davem@davemloft.net>
32714
32715 * normal/menu.c: Include grub/parser.h
32716
dfc31a22 327172009-05-03 Pavel Roskin <proski@gnu.org>
32718
2fee74f1 32719 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
32720 not char*.
32721 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
32722 Suggested by Javier Martín <lordhabbit@gmail.com>
32723
dfc31a22 32724 * util/i386/pc/grub-mkrescue.in: Allow for the case when
32725 efiemu??.o doesn't exist.
32726 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
32727 copying.
32728
18f547ad 327292009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 32730
32731 FreeBSD 64-bit support
32732
18f547ad 32733 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 32734 and loader/i386/bsd_trampoline.S
32735 (bsd_mod_ASFLAGS): new variable
32736 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
32737 (FREEBSD_MODTYPE_KERNEL64): likewise
32738 (grub_bsd64_trampoline_start): likewise
32739 (grub_bsd64_trampoline_end): likewise
32740 (grub_bsd64_trampoline_selfjump): likewise
32741 (grub_bsd64_trampoline_gdt): likewise
32742 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
32743 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
32744 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
32745 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 32746 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 32747 of "attrib" member
32748 * loader/i386/bsd_pagetable.c: new file
32749 * loader/i386/bsd_trampoline.S: likewise
32750 * loader/i386/bsd.c (ALIGN_QWORD): new macro
32751 (ALIGN_VAR): likewise
32752 (entry_hi): new variable
32753 (kern_end_mdofs): likewise
32754 (is_64bit): likewise
32755 (grub_freebsd_add_meta): use ALIGN_VAR
32756 (grub_e820_mmap): new declaration
32757 (grub_freebsd_add_mmap): new function
32758 (grub_freebsd_add_meta_module): support 64 bit kernels
32759 (grub_freebsd_list_modules): use ALIGN_VAR
32760 (gdt_descriptor): new declaration
32761 (grub_freebsd_boot): support 64 bit kernels
32762 (grub_bsd_elf64_hook): new function
32763 (grub_bsd_load_elf): support elf64
32764
038c5720 327652009-05-03 Bean <bean123ch@gmail.com>
32766
32767 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
32768 after we get the result of if statement.
32769
fc45fb58 327702009-05-03 Bean <bean123ch@gmail.com>
32771
32772 * Makefile.in (enable_efiemu): New variable.
32773
32774 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
32775 set.
32776 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
32777 path.
32778 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
32779 path, add -mno-red-zone option.
32780 (efiemu64_s.o): Likewise.
32781 (efiemu64.o): Use macro $^ for source file.
32782
32783 * configure.ac (--enable-efiemu): New option.
32784
bbee0f2b 327852009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
32786
32787 xnu support
32788
32789 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
32790 (pkglib_MODULES): add xnu.mod
32791 (xnu_mod_SOURCES): new variable
32792 (xnu_mod_CFLAGS): likewise
32793 (xnu_mod_LDFLAGS): likewise
32794 (xnu_mod_ASFLAGS): likewise
32795 * conf/i386-pc.rmk: likewise
32796 * conf/x86_64-efi.rmk: likewise
7dd4a573 32797 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 32798 new declaration
32799 * include/grub/i386/macho.h: new file
32800 * include/grub/i386/xnu.h: likewise
32801 * include/grub/macho.h: likewise
32802 * include/grub/machoload.h: likewise
32803 * include/grub/x86_64/macho.h: likewise
32804 * include/grub/x86_64/xnu.h: likewise
32805 * include/grub/xnu.h: likewise
32806 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
32807 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
32808 * loader/i386/efi/xnu.c: new file
32809 * loader/i386/pc/xnu.c: likewise
32810 * loader/i386/xnu.c: likewise
32811 * loader/i386/xnu_helper.S: likewise
32812 * loader/macho.c: likewise
32813 * loader/xnu.c: likewise
32814 * loader/xnu_resume.c: likewise
32815 * util/grub-dumpdevtree: likewise
32816 * include/grub/i386/pit.h: include grub/err.h
32817 (grub_pit_wait): export
32818 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 32819
5caf964d 328202009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32821
32822 Efiemu
7dd4a573 32823
5caf964d 32824 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 32825 _linux_efi, linux_efi.
32826 new files in grub-emu
5caf964d 32827 new targets efiemu32.o and efiemu64.o
32828 * loader/linux_normal_efiemu.c: likewise
32829 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 32830 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 32831 files to copy
32832 * include/grub/autoefi.h: new file
7dd4a573 32833 * include/grub/i386/efiemu.h: likewise
5caf964d 32834 * include/grub/i386/pc/efiemu.h: likewise
32835 * include/grub/efi/api.h: add LL suffix when necessary
32836 new definitions relating to tables
32837 * include/grub/efiemu/efiemu.h: new file
32838 * include/grub/efiemu/runtime.h: likewise
32839 * efiemu/prepare.c: likewise
32840 * efiemu/loadcore_common.c: likewise
32841 * efiemu/loadcore64.c: likewise
32842 * efiemu/runtime/efiemu.sh: likewise
32843 * efiemu/runtime/efiemu.S: likewise
32844 * efiemu/runtime/efiemu.c: likewise
32845 * efiemu/runtime/config.h: likewise
32846 * efiemu/prepare32.c: likewise
32847 * efiemu/main.c: likewise
32848 * efiemu/modules/pnvram.c: likewise
32849 * efiemu/modules/i386: likewise
32850 * efiemu/modules/i386/pc: likewise
32851 * efiemu/modules/acpi.c: likewise
32852 * efiemu/i386/pc/cfgtables.c: likewise
32853 * efiemu/i386/loadcore64.c: likewise
32854 * efiemu/i386/loadcore32.c: likewise
32855 * efiemu/prepare64.c: likewise
32856 * efiemu/loadcore.c: likewise
32857 * efiemu/symbols.c: likewise
32858 * efiemu/mm.c: likewise
32859 * efiemu/loadcore32.c: likewise
7dd4a573 32860
328612009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 32862
32863 ACPI spoofing
32864
32865 * commands/acpi.c: new file
32866 * commands/i386/pc/acpi.c: likewise
32867 * commands/efi/acpi.c: likewise
32868 * include/grub/acpi.h: likewise
32869 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32870 (acpi_mod_SOURCES): new variable
32871 (acpi_mod_CFLAGS): likewise
32872 (acpi_mod_LDFLAGS): likewise
32873 * conf/i386-efi.rmk: likewise
32874 * conf/x86_64-efi.rmk: likewise
32875
7dd4a573 328762009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 32877
32878 Missing part from mmap patch
32879
32880 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32881 (grub_mmap_unregister)
32882 (grub_mmap_free_and_unregister): use grub_mmap_register
32883
7dd4a573 328842009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 32885
32886 Mmap services
32887
32888 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32889 * loader/i386/linux.c (find_mmap_size): likewise
32890 (allocate_pages): likewise
32891 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32892 (grub_fill_multiboot_mmap): likewise
32893 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32894 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32895 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32896 (OPENBSD_MMAP_RESERVED): likewise
32897 * include/grub/i386/pc/memory.h: include grub/memory.h
32898 (grub_lower_mem): removed
32899 (grub_upper_mem): likewise
32900 (GRUB_MACHINE_MEMORY_ACPI): new definition
32901 (GRUB_MACHINE_MEMORY_NVS): likewise
32902 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32903 (GRUB_MACHINE_MEMORY_HOLE): likewise
32904 (grub_machine_mmap_register): likewise
32905 (grub_machine_mmap_unregister): likewise
32906 (grub_machine_get_upper): likewise
32907 (grub_machine_get_lower): likewise
32908 (grub_machine_get_post64): likewise
32909 * include/grub/i386/efi/memory.h: new file
32910 * include/grub/x86_64/efi/memory.h: likewise
32911 * include/grub/efi/memory.h: likewise
32912 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32913 (mmap_mod_SOURCES): new variable
32914 (mmap_mod_LDFLAGS): likewise
32915 (mmap_mod_ASFLAGS): likewise
32916 * conf/i386-coreboot.rmk: likewise
32917 * conf/i386-ieee1275.rmk: likewise
32918 * conf/i386-efi.rmk: likewise
32919 * conf/x86_64-efi.rmk: likewise
32920 * include/grub/types.h (UINT_TO_PTR): new macro
32921 (PTR_TO_UINT32): likewise
32922 (PTR_TO_UINT64): likewise
32923 * include/grub/memory.h: new file
32924 * mmap/i386/pc/mmap.c: likewise
32925 * mmap/i386/pc/mmap_helper.S: likewise
32926 * mmap/i386/uppermem.c: likewise
32927 * mmap/mmap.c: likewise
32928 * mmap/efi/mmap.c: likewise
7dd4a573 32929 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 32930 grub_upper_mem
32931 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32932 (grub_upper_mem): likewise
32933 (grub_machine_init): don't use grub_upper_mem,
32934 make grub_lower_mem local
32935 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32936 grub_mmap_iterate and grub_mmap_get_upper
32937 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32938
d558e6b5 329392009-05-02 Bean <bean123ch@gmail.com>
32940
32941 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32942 script/sh/parser.y.
32943 (pkglib_MODULES): Add normal.mod and sh.mod.
32944 (normal_SOURCES): New variable.
32945 (normal_mod_CFLAGS): Likewise.
32946 (normal_mod_LDFLAGS): Likewise.
32947 (sh_mod_SOURCES): Likewise.
32948 (sh_mod_CFLAGS): Likewise.
32949 (sh_mod_LDFLAGS): Likewise.
32950
32951 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32952 script/sh/lexer.c_DEPENDENCIES.
32953 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32954 kern/rescue_reader.c and kern/rescue_parser.c.
32955 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32956 (grub_emu_SOURCES): Change source files.
32957 (pkglib_MODULES): Remove normal.mod.
32958 (normal_SOURCES): Removed.
32959 (normal_mod_CFLAGS): Likewise.
32960 (normal_mod_LDFLAGS): Likewise.
32961 * conf/i386-coreboot.rmk: Likewise.
32962 * conf/i386-efi.rmk: Likewise.
32963 * conf/i386-ieee1276.rmk: Likewise.
32964 * conf/powerpc-ieee1275.rmk: Likewise.
32965 * conf/sparc64-ieee1275.rmk: Likewise.
32966 * conf/x86_64-efi.rmk: Likewise.
32967
32968 * include/grub/command.h (grub_command_execute): New inline function.
32969
32970 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32971
32972 * include/grub/normal.h: Remove <grub/setjmp.h>.
32973 (grub_fs_module_list): Moved to normal/autofs.c.
32974 (grub_exit_env): Removed.
32975 (grub_command_execute): Likewise.
32976 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32977 parameter script.
32978 (read_command_list): New function declaration.
32979 (read_fs_list): Likewise.
32980
32981 * include/parser.h: Include <grub/reader.h>.
32982 (grub_parser_split_cmdline): Change type of getline parameter.
32983 (grub_parser): New structure.
32984 (grub_parser_class): New variable.
32985 (grub_parser_execute): New function declaration.
32986 (grub_register_rescue_parser): Likewise.
32987 (grub_parser_register): New inline function.
32988 (grub_parser_unregister): Likewise.
32989 (grub_parser_get_current): Likewise.
32990 (grub_parser_set_current): Likewise.
32991
32992 * include/grub/reader.h: New file.
32993 * kern/reader.c: Likewise.
32994 * kern/rescue_parser.c: Likewise.
32995 * kern/rescue_reader.c: Likewise.
32996 * normal/autofs.c: Likewise.
32997 * normal/dyncmd.c: Likewise.
32998
32999 * include/grub/rescue.h: Removed.
33000 * normal/command.h: Likewise.
33001
33002 * include/grub/script.h: Moved to ...
33003 * include/grub/script_sh.h: ... Moved here.
33004 * normal/execute.c: Moved to ...
33005 * script/sh/execute.c: ... Moved here.
33006 * normal/function.c: Moved to ...
33007 * script/sh/function.c: ... Moved here.
33008 * normal/lexer.c: Moved to ...
33009 * script/sh/lexer.c: ... Moved here.
33010 * normal/parser.y: Moved to ...
33011 * script/sh/parser.y: ... Moved here.
33012 * normal/script.c: Moved to ...
33013 * script/sh/script.c: ... Moved here.
33014
33015 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
33016 <grub/reader.h>.
33017 (grub_exit_env): Removed.
33018 (fs_module_list): Moved to normal/autofs.c.
33019 (grub_file_getline): Don't handle comment here.
33020 (free_menu): Skip removed field entry->commands.
33021 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
33022 script parameter.
33023 (read_config_file): Removed nested parameter, change getline function.
33024 (grub_enter_normal_mode): Removed.
33025 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
33026 (read_command_list): Likewise.
33027 (autoload_fs_module): Moved to normal/autofs.c.
33028 (read_fs_list): Likewise.
33029 (reader_nested): New variable.
33030 (grub_normal_execute): Run parser.sh to switch to sh parser.
33031 (grub_cmd_rescue): Removed.
33032 (cmd_normal): Removed.
33033 (grub_cmd_normal): Unregister itself at the beginning. Don't register
33034 rescue command.
33035 (grub_cmdline_run): New function.
33036 (grub_normal_reader_init): Likewise.
33037 (grub_normal_read_line): Likewise.
33038 (grub_env_write_pager): Likewise.
33039 (cmdline): New variable.
33040 (grub_normal_reader): Likewise.
33041 (GRUB_MOD_INIT): Register normal reader and set as current, register
33042 pager hook, register normal command with grub_register_command_prio,
33043 so that it won't show up in command.lst.
33044 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
33045 grub_fs_autoload_hook.
33046
33047 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
33048 (grub_menu_execute_entry): Replace grub_script_execute with
33049 grub_parser_execute, change parameter to grub_command_execute.
33050
33051 * normal/menu_text.c: Remove <grub/script.h>.
33052
33053 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
33054 and <grub/parser.h>.
33055 (run): Change editor_getline to use new parser interface. Change
33056 parameter to grub_command_execute.
33057
33058 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
33059 <grub/reader.h> and <grub/parser.h>.
33060 (grub_load_normal_mode): Execute normal command.
33061 (grub_main): Call grub_register_core_commands,
33062 grub_register_rescue_parser and grub_register_rescue_reader, use
33063 grub_reader_loop to enter input loop.
33064
7dd4a573 33065 * kern/parser.c (grub_parser_split_cmdline): Change type of
33066 getline parameter.
d558e6b5 33067 (grub_parser_class): New variable.
33068 (grub_parser_execute): New function.
33069
33070 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
33071 * loader/multiboot2.c: Likewise.
33072 * loader/sparc64/ieee1275/linux.c: Likewise.
33073
33074 * util/grub-emu.c (read_command_list): New dummy function.
33075
18db813d 330762009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33077
33078 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
33079 count to 16 for CCISS and IDA.
33080
6c67de15 330812009-05-02 Robert Millan <rmh.grub@aybabtu.com>
33082
33083 * normal/menu_text.c (grub_wait_after_message): Print a newline
33084 after waiting for user input.
33085
33086 * loader/i386/linux.c: Include `<grub/normal.h>'.
33087 (grub_cmd_linux): Improve the error message about `ask' mode, by
33088 waiting for user input so it's not missed (we can do this, since
33089 user requested interaction).
33090
d9dc87b0 330912009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
33092
33093 Added missing lst to grub-mkrescue
33094
33095 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
33096 and ${input_dir}/parttool.lst
33097
ac8a2baa 330982009-04-30 David S. Miller <davem@davemloft.net>
33099
ad22a610 33100 * util/hostdisk.c (device_is_wholedisk): New function.
33101 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
33102 zero only if device_is_wholedisk() returns true.
33103
6966215d 33104 * util/hostdisk.c (convert_system_partition_to_system_disk):
33105 Handle virtual disk devices named /dev/vdiskX as found on sparc
33106 and powerpc.
33107
ac8a2baa 33108 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
33109 lettered partition specifier is found, convert to numbered.
33110
979b4fb4 331112009-04-29 David S. Miller <davem@davemloft.net>
33112
e2bf39b2 33113 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
33114 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33115
3c64e104 33116 * normal/command.c: Add missing newline at end of file.
33117
979b4fb4 33118 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
33119 warnings.
33120 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
33121 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
33122 grub_ofdisk_read): Likewise, and deal similarly with the fact that
33123 ihandles have a 32-bit type but need to be stored in a "void *".
33124
136d9f82 331252009-04-28 Pavel Roskin <proski@gnu.org>
33126
9459c306 33127 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
33128 not disk. Adjust all dependencies.
2e08a26a 33129 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 33130 grub_disk_close().
33131
136d9f82 33132 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
33133 parent's partition, don't copy it by reference, as it gets freed
33134 on close.
33135
7dd4a573 331362009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 33137
33138 Preboot hooks support
33139
33140 * commands/boot.c (struct grub_preboot_t): new declaration
33141 (preboots_head): new variable
33142 (preboots_tail): likewise
33143 (grub_loader_register_preboot_hook): new function
33144 (grub_loader_unregister_preboot_hook): likewise
33145 (grub_loader_set): launch preboot hooks
33146 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
33147 (grub_loader_register_preboot_hook): new declaration
33148 (grub_loader_unregister_preboot_hook): likewise
33149
5af922b5 331502009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
33151
33152 Warning fix
33153
7dd4a573 33154 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 33155 calling grub_dprintf
33156
a5562c30 331572009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
33158
33159 Bug and warning fixes
33160
7dd4a573 33161 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 33162 declaration
33163 * commands/test.c (test_parse): fixed bug with file tests and corrected
33164 declaration of find_file
33165
4006f85c 331662009-04-26 Pavel Roskin <proski@gnu.org>
33167
33168 * Makefile.in: Don't install empty manual pages if help2man is
33169 missing. Use help2man option for output, not shell redirection.
33170
5c77c3de 331712009-04-26 David S. Miller <davem@davemloft.net>
33172
33173 * util/grub-mkdevicemap.c (make_device_map): Add missing
33174 NESTED_FUNC_ATTR to process_device().
33175
033b10a8 331762009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33177
33178 Test command
33179
33180 * commands/test.c: rewritten to use bash-like test
33181
e4343593 331822009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
33183
33184 Parttool autoloading and improvements
33185
7dd4a573 33186 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 33187 (parttool.lst): new target
33188 * genmk.rb: generate parttool-*
33189 (CLEANFILES): add #{parttool}
33190 (PARTTOOLFILES): new variable
33191 * genparttoollist.sh: new file
7dd4a573 33192 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 33193 (grub_pcpart_type): likewise
33194 * commands/parttool.c (helpmsg): new variable
33195 (grub_cmd_parttool): output help if not enough arguments are supplied
33196 autoload modules
33197 (GRUB_MOD_INIT(parttool)): use helpmsg
33198
0d312500 331992009-04-24 David S. Miller <davem@davemloft.net>
33200
7dd4a573 33201 Avoiding opening same device multiple times in device iterator.
0d312500 33202
33203 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 33204 and use it to build a list of partitions in iterate_disk() and
0d312500 33205 iterate_partition().
33206
ac20caff 33207 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
33208 on disk->data.
33209
0dcf7495 33210 * disk/ieee1275/nand.c (grub_nand_iterate): Return
33211 grub_devalias_iterate() result instead of unconditional 0.
33212 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
33213 Also, capture hook return value, either directly or via
33214 grub_children_iterate(), and propagate to caller.
33215 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
33216 grub_children_iterate): Return value is now 'int' instead of
33217 'grub_err_t'.
33218 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
33219 like a proper iterator, stopping when hooks return non-zero.
33220 (grub_devalias_iterate): Likewise.
33221
c8c08833 332222009-04-23 David S. Miller <davem@davemloft.net>
33223
33224 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
33225
f01005a8 332262009-04-22 David S. Miller <davem@davemloft.net>
33227
33228 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
33229 is larger than address_cells, use that value for address_cells too.
33230
4e8269da 33231 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
33232 IEEE1275_MAX_PATH_LEN): Define.
33233 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
33234 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
33235 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
33236 'devtype'. Explicitly NULL terminate devalias expansion.
33237
a1447506 33238 * util/sparc64/ieee1275/misc.c: New file.
33239 * util/sparc64/ieee1275/grub-setup.c: New file.
33240 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
33241 * util/sparc64/ieee1275/grub-mkimage.c: New file.
33242 * util/sparc64/ieee1275/grub-install.in: New file.
33243 * util/ieee1275/ofpath.c: New file.
33244 * util/ieee1275/devicemap.c: New file.
33245 * util/devicemap.c: New file.
33246 * util/deviceiter.c: New file.
33247 * kern/sparc64/ieee1275/init.c: New file.
33248 * include/grub/util/ofpath.h: New file.
33249 * include/grub/util/deviceiter.h: New file.
33250 * util/grub-mkdevicemap.c: Include deviceiter.h.
33251 Implement using grub_util_emit_devicemap_entry and
33252 grub_util_iterate_devices.
33253 * conf/i386-corebook.rmk: Build util/deviceiter.c and
33254 util/devicemap.c into grub-mkdevicemap
33255 * conf/i386-efi.rmk: Likewise.
33256 * conf/i386-ieee1275.rmk: Likewise.
33257 * conf/i386-pc.rmk: Likewise.
33258 * conf/powerpc-ieee1275.rmk: Likewise.
33259 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
33260 images and installation utilities. Build kernel as image
33261 instead of as elf binary. Use common rules as much as possible.
33262
7dd4a573 332632009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 33264
33265 Correct GPT definition
33266
7dd4a573 33267 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 33268 of "attrib" member
33269
c6c5219f 332702009-04-19 Felix Zielcke <fzielcke@z-51.de>
33271
33272 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
33273
0552ff9f 332742009-04-19 David S. Miller <davem@davemloft.net>
33275
33276 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
33277 (grub_rescue_cmd_linux): Rename to...
33278 (grub_cmd_linux): and fix prototype.
33279 (grub_rescue_cmd_initrd): Rename to...
33280 (grub_cmd_initrd): and fix prototype.
33281 (cmd_linux, cmd_initrd): New.
33282 (GRUB_MOD_INIT(linux)): Use grub_register_command().
33283 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
33284
d1a282fc 332852009-04-17 Pavel Roskin <proski@gnu.org>
33286
07c5039f 33287 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
33288 format.
33289 (grub_ohci_transfer): Likewise.
33290
b012002d 33291 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
33292
1bc09c35 33293 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
33294 return without a value. Fix inconsistent indentation.
33295
e0ff9126 33296 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
33297 match struct grub_fs.
33298
d1a282fc 33299 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
33300 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
33301 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
33302 * commands/lspci.c (grub_lspci_iter): Likewise.
33303
a96df3f2 333042009-04-16 Bean <bean123ch@gmail.com>
33305
33306 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
33307 value.
33308
41bb0fe9 333092009-04-15 Pavel Roskin <proski@gnu.org>
33310
33311 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
33312 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
33313 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
33314 definitions.
33315
596c6970 333162009-04-15 Felix Zielcke <fzielcke@z-51.de>
33317
33318 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 33319 that no multiple data or metadata areas are supported and `Unknown
596c6970 33320 metadata header'.
33321
7dd4a573 333222009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 33323
33324 Move loader out of the kernel
33325
33326 * kern/loader.c: moved to ...
33327 * commands/boot.c: ... moved here
33328 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
33329 * commands/boot.c (grub_cmd_boot): moved here. All users updated
33330 * include/grub/kernel.h (grub_machine_fini): export
33331 * include/grub/loader.h (grub_loader_is_loaded): update declaration
33332 (grub_loader_set): likewise
33333 (grub_loader_unset): likewise
33334 (grub_loader_boot): likewise
33335 * conf/common.rmk: new module boot.mod
33336 (pkglib_MODULES): add boot.mod
33337 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
33338 (grub_emu_SOURCES): likewise
33339 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
33340 (grub_emu_SOURCES): likewise
33341 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
33342 (grub_emu_SOURCES): likewise
33343 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
33344 (grub_emu_SOURCES): likewise
33345 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
33346 (grub_emu_SOURCES): likewise
7dd4a573 33347 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
33348 (grub_emu_SOURCES): likewise
0d5d5653 33349 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 33350 (grub_emu_SOURCES): likewise
0d5d5653 33351
7dd4a573 333522009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 33353
33354 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 33355
5999d619 33356 * kern/misc.c (grub_itoa): Removed function
33357 (grub_ltoa): likewise
33358 (grub_vsprintf): use grub_lltoa
33359
7dd4a573 333602009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 33361
33362 Restore grub-emu
33363
33364 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
33365 * conf/i386-coreboot.rmk: likewise
33366 * conf/i386-ieee1275.rmk: likewise
33367 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33368
20318222 333692009-04-15 Felix Zielcke <fzielcke@z-51.de>
33370
33371 * INSTALL: Add that `./autogen.sh' needs to be run before
33372 `./configure.'.
33373
d05f0df3 333742009-04-14 Bean <bean123ch@gmail.com>
33375
33376 * Makefile.in (pkglib_DATA): Add handler.lst.
33377 (handler.lst): New rule.
33378
33379 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
33380 * conf/i386-coreboot.rmk: Likewise.
33381 * conf/i386-ieee1275.rmk: Likewise.
33382 * conf/i386-efi.rmk: Likewise.
33383 * conf/x86_64-efi.rmk: Likewise.
33384 * conf/powerpc-ieee1275.rmk: Likewise.
33385 * conf/sparc64-ieee1275.rmk: Likewise.
33386
33387 * genhandlerlist.sh: New file.
33388
33389 * genmk.rb: Add rules to generate handler.lst.
33390
33391 * include/grub/normal.h (grub_file_getline): New function definition.
33392 (read_handler_list): Likewise.
33393 (free_handler_list): Likewise.
33394
33395 * include/grub/term.h (grub_term_register_input): Add name parameter
33396 for auto generation of handler.lst.
33397 (grub_term_register_output): Likewise.
33398
33399 * normal/handler.c: New file.
33400
33401 * normal/main.c (get_line): Renamed to grub_file_getline.
33402 (read_config_file): Use the newly renamed grub_file_getline.
33403 (read_command_list): Likewise.
33404 (read_fs_list): Likewise.
33405 (grub_normal_execute): Call read_handler_list to parse handler.lst.
33406 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
33407
33408 * term/efi/console.c (grub_console_init): Add name parameter for auto
33409 generation of handler.lst.
33410 * term/gfxterm.c: Likewise.
33411 * term/i386/pc/at_keyboard.c: Likewise.
33412 * term/i386/pc/console.c: Likewise.
33413 * term/i386/pc/serial.c: Likewise.
33414 * term/i386/pc/vesafb.c: Likewise.
33415 * term/i386/pc/vga.c: Likewise.
33416 * term/i386/pc/vga_text.c: Likewise.
33417 * term/ieee1275/ofconsole.c: Likewise.
33418 * term/usb_keyboard.c: Likewise.
33419
33c846be 334202009-04-14 Bean <bean123ch@gmail.com>
33421
33422 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
33423 properly with null character.
33424
4484e01e 334252009-04-14 Felix Zielcke <fzielcke@z-51.de>
33426
33427 * configure: Remove.
33428 * config.h.in: Likewise.
f93d668e 33429 * stamp-h.in: Likewise.
4484e01e 33430 * DISTLIST: Likewise.
33431 * conf/common.mk: Likewise.
33432 * conf/i386-coreboot.mk: Likewise.
33433 * conf/i386-efi.mk: Likewise.
33434 * conf/i386-ieee1275.mk: Likewise.
33435 * conf/i386.mk: Likewise.
33436 * conf/i386-pc.mk: Likewise.
33437 * conf/powerpc-ieee1275.mk: Likewise.
33438 * conf/sparc64-ieee1275.mk: Likewise.
33439 * conf/x86_64-efi.mk: Likewise.
33440
33441 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
33442 develop on GRUB.
33443
7dd4a573 334442009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 33445 David S. Miller <davem@davemloft.net>
33446
33447 * util/hostdisk.c (make_device_name): Fix buffer length
33448 calculations.
33449
e25b5a8c 334502009-04-14 Felix Zielcke <fzielcke@z-51.de>
33451
33452 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
33453 <sys/param.h> and <sys/sysctl.h>.
33454 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
33455 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
33456 opening the device and reset them afterwards.
33457
1f1f580c 334582009-04-13 Pavel Roskin <proski@gnu.org>
33459
33460 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
33461 Reported by John Stanley <jpsinthemix@verizon.net>
33462
7ebc2d6b 334632009-04-13 Robert Millan <rmh@aybabtu.com>
33464
33465 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 33466 that name for menuentries when appropriate.
7ebc2d6b 33467
d8ba3667 334682009-04-13 Felix Zielcke <fzielcke@z-51.de>
33469
33470 * util/grub.d/10_freebsd.in: Add a missing `fi'.
33471
cba416eb 334722009-04-13 Robert Millan <rmh@aybabtu.com>
33473
33474 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
33475 to Linux, simply abort telling the user it's no longer supported.
33476
a547a745 334772009-04-13 Felix Zielcke <fzielcke@z-51.de>
33478
33479 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 33480 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 33481 `freebsd_loadenv' only when devices.hints exist.
33482
232a769c 334832009-04-13 Pavel Roskin <proski@gnu.org>
33484
33485 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
33486
c3012039 334872009-04-13 Felix Zielcke <fzielcke@z-51.de>
33488
33489 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
33490 partition number.
33491 (grub_drive): Likewise.
33492
234022fe 334932009-04-13 David S. Miller <davem@davemloft.net>
33494
33495 * kern/sparc64/ieee1275/ieee1275.c: New file.
33496 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
33497 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
33498 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
33499 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
33500 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
33501 grub_ieee1275_alloc_physmem): Declare new exported functions.
33502
d8e1836c 33503 * include/grub/sparc64/ieee1275/loader.h: New file.
33504 * include/grub/sparc64/ieee1275/memory.h: Likewise.
33505 * include/grub/sparc64/kernel.h: Likewise.
33506 * loader/sparc64/ieee1275/linux.c: Likewise.
33507
96bd81ec 33508 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
33509 (grub_fstest_SOURCES): Likewise.
33510
6a4737e5 33511 * util/hostdisk.c (make_device_name): Do not make any assumptions
33512 about the length of drive names.
33513
1d7a72fd 33514 * kern/dl.c (grub_dl_load_file): Close file immediately when
33515 we are done using it.
33516
56bc2471 335172009-04-12 David S. Miller <davem@davemloft.net>
33518
33519 * kern/misc.c (grub_ltoa): Fix cast when handling negative
33520 values. Noticed by Pavel Roskin.
33521
df38d0bb 33522 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
33523 target compiler.
7dd4a573 33524
e382e93a 33525 * genmk.rb: Add more flexible image type specification, also
33526 pass --strip-unneeded to objcopy.
33527 * conf/i386-pc.rmk: Use *_FORMAT.
33528 * conf/i386-pc.mk: Rebuilt.
33529
f5dbbca9 33530 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
33531 (OFDISK_HASH_SZ): Define.
33532 (ofdisk_hash): New hash table.
33533 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
33534 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
33535 instead of device phandle which is not unique.
33536
91c88b12 33537 * kern/sparc64/ieee1275/init.c: Delete, replace with...
33538 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
33539 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
33540 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
33541 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
33542 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
33543 GRUB_KERNEL_MACHINE_DATA_END): Define.
33544 (grub_kernel_image_size, grub_total_module_size): Declare.
33545
5b5d4aa5 335462009-04-12 Pavel Roskin <proski@gnu.org>
33547
7dd4a573 33548 * configure.ac: Change the logic when we check for target tools.
33549 Do it when the target is specified and it's different from the
33550 specified value of the host.
5b5d4aa5 33551
c91e1793 335522009-04-11 Felix Zielcke <fzielcke@z-51.de>
33553
33554 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
33555 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
33556 GNU/kFreeBSD. Check if a device is a character device. Use
33557 DIOCGMEDIASIZE to get the size.
33558 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
33559 support for GNU/kFreeBSD.
33560 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
33561 is a character device instead of a block device. Add support for
33562 FreeBSD device names.
33563
33564 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
33565 is a character device instead of a block device.
33566
33567 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
33568 is a character device instead of a block device.
33569
b1ac8644 335702009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
33571
33572 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
33573 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
33574 FreeBSD. Check if a device is a character device. Use
33575 DIOCGMEDIASIZE to get the size.
33576 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
33577 support for FreeBSD.
33578 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
33579 is a character device instead of a block device. Add support for
33580 FreeBSD device names.
33581
33582 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
33583 a character device instead of a block device.
33584 (grub_util_check_char_device): New function.
33585
33586 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
33587 a character device instead of a block device.
33588
33589 * include/grub/util/getroot.h (grub_util_check_char_device): New
33590 prototype.
33591
a3f7515a 335922009-04-11 David S. Miller <davem@davemloft.net>
33593
33594 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
33595 static libgcc.
33596 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
33597 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
33598 function, if present.
33599 (__bswapdi2): Likewise.
33600
0d44993d 33601 * include/grub/sparc64/ieee1275/boot.h: New file.
33602 * boot/sparc64/ieee1275/boot.S: Likewise.
33603 * boot/sparc64/ieee1275/diskboot.S: Likewise.
33604
ed3d2bc2 33605 * kern/misc.c (grub_ltoa): New function.
33606 (grub_vsprintf): Use it to format 'long' integers.
33607
d3bfb59c 336082009-04-10 David S. Miller <davem@davemloft.net>
33609
33610 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
33611 slots are of type grub_ieee1275_cell_t.
33612 (grub_nand_read): Likewise.
33613 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
33614 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
33615 macros are used to compare values in arg/ret block of the call.
33616 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
33617 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
33618 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
33619 grub_ieee1275_instance_to_path, grub_ieee1275_write,
33620 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
33621 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
33622 grub_ieee1275_close, grub_ieee1275_set_property,
33623 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
33624 grub_ieee1275_cell_t.
33625 * kern/ieee1275/openfw.c (grub_map): Likewise.
33626 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
33627 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
33628
450e2238 33629 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
33630 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
33631 (grub_devalias_iterate): Likewise.
33632
7dd4a573 336332009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 33634
33635 UFS improvements
33636
33637 * fs/ufs.c (INODE_NBLOCKS): new definition
33638 (struct grub_ufs_dirent): added fields for non-BSD dirents
33639 (grub_ufs_get_file_block): fixed double indirect handling
33640 (grub_ufs_lookup_symlink): use more robust way to determine whether
33641 symlink is inline
33642 (grub_ufs_find_file): support for non-BSD dirents
33643 (grub_ufs_dir): support for non-BSD dirents
33644
e7e6862a 336452009-04-10 Bean <bean123ch@gnail.com>
33646
33647 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
33648 attribute, otherwise the size would be wrong for i386 platform.
33649
33650 * include/grub/pci.h (grub_pci_read_word): New inline function.
33651 (grub_pci_read_byte): Likewise.
33652 (grub_pci_write): Likewise.
33653 (grub_pci_write_word): Likewise.
33654 (grub_pci_write_byte): Likewise.
33655
33656 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
33657
33658 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
33659 (find_framebuf): Scan pci to locate the frame buffer address.
33660
33661 * commands/efi/fixvideo.c: New file.
33662
33663 * commands/efi/loadbios.c: Likewise.
33664
33665 * commands/memrw.c: Likewise.
33666
33667 * util/grub-dumpbios.in: Likewise.
33668
33669 * conf/common.rmk (grub-dumpbios): New utility.
33670 (pkglib_MODULES): New module memrw.mod.
33671 (memrw_mod_SOURCE): New macro.
33672 (memrw_mod_CFLAGS): Likewise.
33673 (memrw_mod_LDFLAGS): Likewise.
33674
7dd4a573 33675 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33676 fixvideo.mod.
33677 (loadbios_mod_SOURCE): New macro.
33678 (loadbios_mod_CFLAGS): Likewise.
33679 (loadbios_mod_LDFLAGS): Likewise.
33680 (fixvideo_mod_SOURCE): Likewise.
33681 (fixvideo_mod_CFLAGS): Likewise.
33682 (fixvideo_mod_LDFLAGS): Likewise.
33683
7dd4a573 33684 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 33685 fixvideo.mod.
33686 (loadbios_mod_SOURCE): New macro.
33687 (loadbios_mod_CFLAGS): Likewise.
33688 (loadbios_mod_LDFLAGS): Likewise.
33689 (fixvideo_mod_SOURCE): Likewise.
33690 (fixvideo_mod_CFLAGS): Likewise.
33691 (fixvideo_mod_LDFLAGS): Likewise.
33692
af63ada2 336932009-04-08 Felix Zielcke <fzielcke@z-51.de>
33694
33695 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
33696
c2cdde70 336972009-04-07 David S. Miller <davem@davemloft.net>
33698
33699 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
33700 support for R_SPARC_OLO10 relocations. Fix compile warning for
33701 R_SPARC_WDISP30 case.
ea3f72cf 33702 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 33703
761319cf 337042009-04-06 Pavel Roskin <proski@gnu.org>
33705
1007d1f5 33706 * include/grub/misc.h (ARRAY_SIZE): New macro.
33707 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
33708 New macro.
33709 * loader/i386/linux.c (allocate_pages): Use free_pages().
33710 (grub_linux_unload): Don't use free_pages().
33711 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
33712 wrong index. Treat all other modes as text modes.
33713 (grub_cmd_linux): Initialize vid_mode unconditionally to
33714 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
33715
761319cf 33716 * commands/help.c (print_command_help): Use cmd->prio, not
33717 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
33718
ea761d40 337192009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 33720
ea761d40 33721 Parttool
33722
33723 * parttool/pcpart.c: new file
33724 * commands/parttool.c: likewise
33725 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
33726 (parttool_mod_SOURCES): new variable
33727 (parttool_mod_CFLAGS): likewise
33728 (parttool_mod_LDFLAGS): likewise
33729 (pcpart_mod_SOURCES): likewise
33730 (pcpart_mod_CFLAGS): likewise
33731 (pcpart_mod_LDFLAGS): likewise
7dd4a573 33732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 33733 and parttool/pcpart.c
33734 * conf/i386-efi.rmk: likewise
33735 * conf/i386-ieee1275.rmk: likewise
33736 * conf/i386-pc.rmk: likewise
33737 * conf/powerpc-ieee1275.rmk: likewise
33738 * conf/sparc64-ieee1275.rmk: likewise
33739 * conf/x86_64-ieee1275.rmk: likewise
33740
05aaebfb 337412009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33742
33743 Support for mtime and further expandability of dir command
33744
33745 * include/grub/lib/datetime.h: moved to ...
7dd4a573 33746 * include/grub/datetime.h: ... moved here and added
05aaebfb 33747 declaration of grub_unixtime2datetime. All users updated
7dd4a573 33748 * include/grub/fs.h: new syntax for dir and mtime functions in
33749 struct grub_fs
05aaebfb 33750 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
33751 and GRUB_FSHELP_FLAGS_MASK
33752 * commands/ls.c (grub_ls_list_files): Write mtime in long format
33753 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
33754 (grub_ext2_mtime): new function
33755 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
33756 (grub_hfsplus_mtime): new function
33757 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
33758 (GRUB_UFS_ATTR_FILE): likewise
33759 (GRUB_UFS_ATTR_LNK): likewise
33760 (struct grub_ufs_sblock): new fields mtime
33761 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
33762 all users updated
33763 (grub_ufs_dir): mtime support
33764 (grub_ufs_mtime): new function
33765 * fs/affs.c (grub_affs_dir): use new dir syntax
33766 * fs/afs.c (grub_afs_dir): likewise
33767 * fs/cpio.c (grub_cpio_dir): likewise
33768 * fs/fat.c (grub_fat_find_dir): likewise
33769 * fs/hfs.c (grub_hfs_dir): likewise
33770 * fs/iso9660.c (grub_iso9660_dir): likewise
33771 * fs/jfs.c (grub_jfs_dir): likewise
33772 * fs/minix.c (grub_minix_dir): likewise
33773 * fs/ntfs.c (grub_ntfs_dir): likewise
33774 * fs/reiserfs.c (grub_reiserfs_dir): likewise
33775 * fs/sfs.c (grub_sfs_dir): likewise
33776 * fs/xfs.c (grub_xfs_dir): likewise
33777 * util/hostfs.c (grub_hostfs_dir): likewise
33778 * lib/datetime.c: moved to ...
33779 * normal/datetime.c: ... moved here
33780 (grub_unixtime2datetime): new function
33781 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 33782 * normal/completion.c (iterate_dir): use new dir syntax
33783 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 33784 last modification time of a volume
7dd4a573 33785 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 33786 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 33787 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 33788 (normal_mod_SOURCES): likewise
33789 (datetime_mod_SOURCES): Removed lib/datetime.c
33790 * conf/i386-efi.rmk: likewise
7dd4a573 33791 * conf/i386-ieee1275.rmk: likewise
05aaebfb 33792 * conf/i386-pc.rmk: likewise
33793 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 33794 * conf/sparc64-ieee1275.rmk: likewise
33795 * conf/x86_64-efi.rmk: likewise
05aaebfb 33796
8a7e1a14 337972009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
33798
33799 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 33800
33801 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 33802 on grub_fat_find_dir
33803 (grub_fat_find_dir): use grub_fat_iterate_dir
33804 (grub_fat_label): likewise
33805
04186a9c 338062009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
33807
7dd4a573 33808 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 33809 and command.h
33810 remove extraneous kernel_elf_HEADERS
33811
da4c0bb6 338122009-04-04 Bean <bean123ch@gnail.com>
33813
33814 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33815
33816 * util/misc.c: Likewise.
33817
54ad9555 338182009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33819
33820 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33821 instead of grub_printf.
33822
7a6bf9f2 338232009-04-03 Robert Millan <rmh@aybabtu.com>
33824
33825 * loader/i386/linux.c (grub_linux_setup_video): Fill
33826 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33827 values from `mode info' structure instead of hardcoded
33828 values.
33829
3fcc2083 338302009-04-01 Pavel Roskin <proski@gnu.org>
33831
33832 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33833 unused now.
33834 * genmk.rb: Likewise.
33835 * configure.ac: Likewise.
33836
5ec9740b 338372009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33838
33839 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33840 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33841
5270cec8 338422009-04-01 David S. Miller <davem@davemloft.net>
33843
33844 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 33845 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 33846 (grub_setjmp): Mark with 'returns_twice' attribute.
33847 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33848 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33849 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33850
9c3dd854 338512009-04-01 Robert Millan <rmh@aybabtu.com>
33852
33853 Reapply fix from 2008-07-28 which was accidentally reverted; also
33854 perform the same fix to a similar check in same function.
33855
33856 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33857 with the same number are found, just use issue a warning with
33858 grub_dprintf(), as this error has been reported to be non-fatal.
33859
0d818b7e 338602009-03-31 Pavel Roskin <proski@gnu.org>
33861
33862 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33863 for cross-compilation.
33864
95646d92 338652009-03-30 Robert Millan <rmh@aybabtu.com>
33866
33867 Fix i386-ieee1275 build.
33868
33869 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33870 Remove declaration.
33871
6a003ed1 338722009-03-30 Pavel Roskin <proski@gnu.org>
33873
33874 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33875 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33876 zero-terminated, rely only on the strlen value. Fix comparison
33877 of strings differing in length.
33878
92f33540 338792009-03-30 Robert Millan <rmh@aybabtu.com>
33880
33881 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33882 checking for abi version. Improve error messages on BIOS to notify
33883 user about `linux16' command.
33884
a8c48fd5 338852009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33886
f968172e 33887 Leak fixes
a8c48fd5 33888
f968172e 33889 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33890 in case of collision
33891 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 33892
9c323f09 338932009-03-29 Robert Millan <rmh@aybabtu.com>
33894
33895 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33896 set `vid_mode' accordingly.
33897 (grub_linux_boot): Process `vid_mode' and set video mode.
33898
ae68f423 338992009-03-29 Robert Millan <rmh@aybabtu.com>
33900
33901 * util/grub.d/10_linux.in (linux_entry): New function.
33902 Factorize generation of Linux boot entries.
33903
5709cfc4 339042009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33905
33906 Make the format of Environment Block plain text. The boot loader
33907 part is not tested well yet.
7dd4a573 33908
5709cfc4 33909 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33910 (buffer): Removed.
33911 (envblk): Likewise.
33912 (usage): Remove "info" and "clear". Add "unset". Update the
33913 description of "set", as this does not delete variables any
33914 longer.
33915 (create_envblk_file): Complete rewrite.
33916 (open_envblk_file): Likewise.
33917 (cmd_info): Removed.
33918 (cmd_list): Likewise.
33919 (cmd_set): Likewise.
33920 (cmd_clear): Likewise.
33921 (list_variables): New function.
33922 (write_envblk): Likewise.
33923 (set_variables): Likewise.
33924 (unset_variables): Likewise.
33925 (main): Complete rewrite.
33926
33927 * commands/loadenv.c (buffer): Removed.
33928 (envblk): Likewise.
33929 (open_envblk_file): New function.
33930 (read_envblk_file): Complete rewrite.
33931 (grub_cmd_load_env): Likewise.
33932 (grub_cmd_list_env): Likewise.
33933 (struct blocklist): New struct.
33934 (free_blocklists): New function.
33935 (check_blocklists): Likewise.
33936 (write_blocklists): Likewise.
33937 (grub_cmd_save_env): Complete rewrite.
33938
33939 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33940 a plain text signature.
33941 (GRUB_ENVBLK_MAXLEN): Removed.
33942 (struct grub_envblk): Complete rewrite.
33943 (grub_envblk_find): Removed.
33944 (grub_envblk_insert): Likewise.
33945 (grub_envblk_open): New prototype.
33946 (grub_envblk_set): Likewise.
33947 (grub_envblk_delete): Put const to VALUE.
33948 (grub_envblk_iterate): Put const to NAME and VALUE.
33949 (grub_envblk_close): New prototype.
33950 (grub_envblk_buffer): New inline function.
33951 (grub_envblk_size): Likewise.
33952
33953 * lib/envblk.c: Include grub/mm.h.
33954 (grub_env_find): Removed.
33955 (grub_envblk_open): New function.
33956 (grub_envblk_close): Likewise.
33957 (escaped_value_len): Likewise.
33958 (find_next_line): Likewise.
33959 (grub_envblk_insert): Removed.
33960 (grub_envblk_set): New function.
33961 (grub_envblk_delete): Complete rewrite.
33962 (grub_envblk_iterate): Likewise.
33963
a9368fd3 339642009-03-28 Robert Millan <rmh@aybabtu.com>
33965
33966 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33967 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33968 variables. Use 16-bit loader.
33969 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33970 loader.
33971 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33972 (grub_linux16_boot): ... this. Update all users.
33973 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33974 (grub_linux_boot): ... this. Update all users.
33975
33976 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33977 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33978 commands to `linux16' and `initrd16'.
33979 (GRUB_MOD_FINI(linux)): Rename to ...
33980 (GRUB_MOD_FINI(linux16)): ... this.
33981
e4dd5a7e 339822009-03-24 Pavel Roskin <proski@gnu.org>
33983
33984 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33985 not just for compilation.
33986
c04d6e05 339872009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33988
33989 Move multiboot helper out of kernel
33990
33991 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33992 `loader/i386/multiboot_helper.S'.
33993 * conf/i386-coreboot.rmk: Likewise
33994 * conf/i386-ieee1275.rmk: Likewise
33995
33996 * kern/i386/loader.S: Move multiboot helpers from here...
33997 * loader/i386/multiboot_helper.S: ...moved here
33998 * include/grub/i386/loader.h: Move declarations of multiboot
33999 helpers from here...
34000 * include/grub/i386/multiboot.h: ...moved here
34001 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
34002
42a5b3fc 340032009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34004
34005 * kern/env.c (grub_env_context_open): Added an argument to specify
34006 whether a new context inherits exported variables from current
34007 one. This is useful when making a sandbox to interpret a config
34008 file.
34009 All callers updated.
34010
34011 * include/grub/env.h (grub_env_context_open): Updated the prototype.
34012
b28bbc4e 340132009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34014
34015 * kern/env.c (grub_env_context_close): Fix memory leaks.
34016
f04f02e4 340172009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
34018
34019 * normal/main.c (grub_normal_execute): Added an argument
34020 BATCH to specify if an interactive interface should be provided
34021 after reading a config file.
34022 All callers updated.
34023 (read_command_list): Prevent being executed twice.
34024 (read_fs_list): Likewise.
34025
42a5b3fc 34026 * include/grub/normal.h (grub_normal_execute): Updated the
34027 prototype.
f04f02e4 34028
41473ac2 340292009-03-22 Pavel Roskin <proski@gno.org>
34030
fbc00b0c 34031 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
34032 _start.
34033 * kern/i386/pc/startup.S: Likewise.
34034 * kern/i386/efi/startup.S: Likewise.
34035 * kern/i386/ieee1275/startup.S: Likewise.
34036 * kern/i386/coreboot/startup.S: Likewise.
34037 * kern/x86_64/efi/startup.S: Likewise.
34038
41473ac2 34039 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
34040 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
34041 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
34042
2274cc8f 340432009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
34044
34045 Bugfixes in multiboot for bugs uncovered by solaris kernel.
34046
34047 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
34048 limit detection.
34049 Use vaddr of correct segment for entry_point.
34050
b1b797cb 340512009-03-21 Bean <bean123ch@gmail.com>
34052
34053 * commands/blocklist.c: Add include file <grub/command.h>, remove
34054 <grub/normal.h> and <grub/arg.h>.
34055 (grub_cmd_blocklist): Use the new command interface.
34056 (GRUB_MOD_INIT): Likewise.
34057 (GRUB_MOD_FINI): Likewise.
34058 * commands/boot.c: Likewise.
34059 * commands/cat.c: Likewise.
34060 * commands/cmp.c: Likewise.
34061 * commands/configfile.c: Likewise.
34062 * commands/crc.c: Likewise.
34063 * commands/echo.c: Likewise.
34064 * commands/halt.c: Likewise.
34065 * commands/handler.c: Likewise.
34066 * commands/hdparm.c: Likewise.
34067 * commands/help.c: Likewise.
34068 * commands/hexdump.c: Likewise.
34069 * commands/loadenv.c: Likewise.
34070 * commands/ls.c: Likewise.
34071 * commands/lsmmap.c: Likewise.
34072 * commands/lspci.c: Likewise.
34073 * commands/loadenv.c: Likewise.
34074 * commands/read.c: Likewise.
34075 * commands/reboot.c: Likewise.
34076 * commands/search.c: Likewise.
34077 * commands/sleep.c: Likewise.
34078 * commands/test.c: Likewise.
34079 * commands/usbtest.c: Likewise.
34080 * commands/videotest.c: Likewise.
34081 * commands/i386/cpuid.c: Likewise.
34082 * commands/i386/pc/halt.c: Likewise.
34083 * commands/i386/pc/play.c: Likewise.
34084 * commands/i386/pc/pxecmd.c: Likewise.
34085 * commands/i386/pc/vbeinfo.c: Likewise.
34086 * commands/i386/pc/vbetest.c: Likewise.
34087 * commands/ieee1275/suspend.c: Likewise.
34088 * disk/loopback.c: Likewise.
34089 * font/font_cmd.c: Likewise.
34090 * hello/hello.c: Likewise.
34091 * loader/efi/appleloader.c: Likewise.
34092 * loader/efi/chainloader.c: Likewise.
34093 * loader/i386/bsd.c: Likewise.
34094 * loader/i386/efi/linux.c: Likewise.
34095 * loader/i386/ieee1275/linux.c: Likewise.
34096 * loader/i386/linux.c: Likewise.
34097 * loader/i386/pc/chainloader.c: Likewise.
34098 * loader/i386/pc/linux.c: Likewise.
34099 * loader/powerpc/ieee1275/linux.c: Likewise.
34100 * loader/multiboot_loader.c: Likewise.
34101 * term/gfxterm.c: Likewise.
34102 * term/i386/pc/serial.c: Likewise.
34103 * term/terminfo.c: Likewise.
34104
34105 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
34106 * term/i386/pc/vga.c: Likewise.
34107 * video/readers/jpeg.c: Likewise.
34108 * video/readers/png.c: Likewise.
34109 * video/readers/tga.c: Likewise.
34110
34111 * util/grub-fstest (cmd_loopback): Removed.
34112 (cmd_blocklist): Likewise.
34113 (cmd_ls): Likewise.
34114 (grub_register_command): Likewise.
34115 (grub_unregister_command): Likewise.
34116 (execute_command): Use grub_command_find to locate command and execute
34117 it.
34118
34119 * include/grub/efi/chainloader.h: Removed.
34120 * loader/efi/chainloader_normal.c: Likewise.
34121 * loader/i386/bsd_normal.c: Likewise.
34122 * loader/i386/pc/chainloader_normal.c: Likewise.
34123 * loader/i386/pc/multiboot_normal.c: Likewise.
34124 * loader/linux_normal.c: Likewise.
34125 * loader/multiboot_loader_normal.c: Likewise.
34126 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
34127
34128 * gencmdlist.sh: Scan new registration command grub_register_extcmd
34129 and grub_register_command_p1.
34130
34131 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
34132 kern/command.c, lib/arg.c and commands/extcmd.c.
34133 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
34134 (minicmd_mod_SOURCES): New variable.
34135 (minicmd_mod_CFLAGS): Likewise.
34136 (minicmd_mod_LDFLAGS): Likewise.
34137 (extcmd_mod_SOURCES): Likewise.
34138 (extcmd_mod_CFLAGS): Likewise.
34139 (extcmd_mod_LDFLAGS): Likewise.
34140 (boot_mod_SOURCES): Removed.
34141 (boot_mod_CFLAGS): Likewise.
34142 (boot_mod_LDFLAGS): Likewise.
34143
34144 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
34145 kern/corecmd.c.
34146 (kernel_img_HEADERS): Add command.h.
34147 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
34148 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
34149 and lib/arg.c.
34150 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
34151 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
34152 remove the corresponding normal mode command.
34153 (normal_mod_SOURCES): Remove normal/arg.c.
34154 * conf/i386-coreboot.rmk: Likewise.
34155 * conf/i386-efi.rmk: Likewise.
34156 * conf/i386-ieee1275.rmk: Likewise.
34157 * conf/powerpc-ieee1275.rmk: Likewise.
34158 * conf/x86_64-efi.rmk: Likewise.
34159
34160 * include/grub/arg.h: Move from here ...
34161 * include/grub/lib/arg.h: ... to here.
34162
34163 * normal/arg.c: Move from here ...
34164 * lib/arg.c: ... to here.
34165
34166 * commands/extcmd.c: New file.
34167 * commands/minicmd.c: Likewise.
34168 * include/grub/command.h: Likewise.
34169 * include/grub/extcmd.h: Likewise.
34170 * kern/command.c: Likewise.
34171 * kern/corecmd.c: Likewise.
34172
34173 * kern/list.c (grub_list_iterate): Return int instead of void.
34174 (grub_list_insert): New function.
34175 (grub_prio_list_insert): Likewise.
34176
34177 * kern/rescue.c (grub_rescue_command): Removed.
34178 (grub_rescue_command_list): Likewise.
34179 (grub_rescue_register_command): Likewise.
34180 (grub_rescue_unregister_command): Likewise.
34181 (grub_rescue_cmd_boot): Move to minicmd.c
34182 (grub_rescue_cmd_help): Likewise.
34183 (grub_rescue_cmd_info): Likewise.
34184 (grub_rescue_cmd_boot): Likewise.
34185 (grub_rescue_cmd_testload): Likewise.
34186 (grub_rescue_cmd_dump): Likewise.
34187 (grub_rescue_cmd_rmmod): Likewise.
34188 (grub_rescue_cmd_lsmod): Likewise.
34189 (grub_rescue_cmd_exit): Likewise.
34190 (grub_rescue_print_devices): Moved to corecmd.c.
34191 (grub_rescue_print_files): Likewise.
34192 (grub_rescue_cmd_ls): Likewise.
34193 (grub_rescue_cmd_insmod): Likewise.
34194 (grub_rescue_cmd_set): Likewise.
34195 (grub_rescue_cmd_unset): Likewise.
7d074e3c 34196 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 34197 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 34198 commands, remove grub_rescue_register_command calls.
b1b797cb 34199
7d074e3c 34200 * normal/command.c (grub_register_command): Removed.
b1b797cb 34201 (grub_unregister_command): Likewise.
34202 (grub_command_find): Likewise.
34203 (grub_iterate_commands): Likewise.
34204 (rescue_command): Likewise.
34205 (export_command): Moved to corecmd.c.
34206 (set_command): Removed.
34207 (unset_command): Likewise.
34208 (insmod_command): Likewise.
34209 (rmmod_command): Likewise.
34210 (lsmod_command): Likewise.
34211 (grub_command_init): Likewise.
34212
34213 * normal/completion.c (iterate_command): Use cmd->prio to check for
34214 active command.
34215 (complete_arguments): Use grub_extcmd_t structure to find options.
34216 (grub_normal_do_completion): Change function grub_iterate_commands to
34217 grub_command_iterate.
34218
34219 * normal/execute.c (grub_script_execute_cmd): No need to parse
34220 argument here.
34221
34222 * normal/main.c (grub_dyncmd_dispatcher): New function.
34223 (read_command_list): Register unload commands as dyncmd.
34224 (grub_cmd_normal): Use new command interface, register rescue,
34225 unregister normal at entry, register normal, unregister rescue at exit.
34226
34227 * include/grub/list.h (grub_list_test_t): New type.
34228 (grub_list_iterate): Return int instead of void.
34229 (grub_list_insert): New function.
34230 (GRUB_AS_NAMED_LIST_P): New macro.
34231 (GRUB_AS_PRIO_LIST): Likewise.
34232 (GRUB_AS_PRIO_LIST_P): Likewise.
34233 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
34234 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
34235 (grub_prio_list): New structure.
34236 (grub_prio_list_insert): New function.
34237 (grub_prio_list_remove): New inline function.
34238
34239 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
34240 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
34241 (GRUB_COMMAND_FLAG_MENU): Likewise.
34242 (GRUB_COMMAND_FLAG_BOTH): Likewise.
34243 (GRUB_COMMAND_FLAG_TITLE): Likewise.
34244 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
34245 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
34246 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
34247 (grub_command): Likewise.
34248 (grub_register_command): Likewise.
34249 (grub_command_find): Likewise.
34250 (grub_iterate_commands): Likewise.
34251 (grub_command_init): Likewise.
34252 (grub_arg_parse): Likewise.
34253 (grub_arg_show_help): Likewise.
34254
34255 * include/grub/rescue.h (grub_rescue_register_command): Removed.
34256 (grub_rescue_unregister_command): Likewise.
34257
34258 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
34259 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
34260 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
34261
34262 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
34263 grub_rescue_cmd_initrd.
34264 * include/grub/i386/loader.h: Likewise.
34265 * include/grub/x86_64/loader.h: Likewise.
34266
34267 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
34268
1f4147aa 342692009-03-21 Bean <bean123ch@gmail.com>
34270
34271 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
34272 instead of stat in mingw environment.
34273
34274 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
34275
34276 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
34277
34278 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
34279 AC_CONFIG_LINKS.
34280
2156d5ba 342812009-03-21 Bean <bean123ch@gmail.com>
34282
34283 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
34284 out of range error.
34285
177b82ca 342862009-03-18 Michel Dänzer <michel@daenzer.net>
34287
34288 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
34289 checking inode flags for EXT4_EXTENTS_FLAG.
34290
14aad807 342912009-03-18 Robert Millan <rmh@aybabtu.com>
34292
34293 * loader/i386/linux.c: Include `<grub/video.h>' and
34294 `<grub/i386/pc/vbe.h>'..
34295 (grub_linux_setup_video): New function. Loosely based on the EFI one.
34296 (grub_linux32_boot): Attempt to configure video settings with
34297 grub_linux_setup_video().
34298 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
34299 to avoid grub_console_fini() which would step out of graphical mode
34300 unconditionally.
34301
8cf83a27 343022009-03-14 Robert Millan <rmh@aybabtu.com>
34303
34304 Fix build on powerpc.
34305 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
34306
40164e75 343072009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
34308
34309 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
34310 background image command.
34311
c58bc32a 343122009-03-12 Colin D Bennett <colin@gibibit.com>
34313
34314 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
34315 (grub_gfxterm_putchar): Extract pairs of identical calls to
34316 draw_cursor out of conditional blocks.
34317
5415144a 343182009-03-11 Pavel Roskin <proski@gnu.org>
34319
34320 * fs/hfs.c (grub_hfs_strncasecmp): New function.
34321 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
34322
6394042e 343232009-03-11 Robert Millan <rmh@aybabtu.com>
34324
34325 * loader/i386/multiboot_elfxx.c
34326 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
34327
b7b50e5f 343282009-03-11 Felix Zielcke <fzielcke@z-51.de>
34329
34330 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
34331 `kern/handler.c'.
34332
1ca7fc96 343332009-03-11 Robert Millan <rmh@aybabtu.com>
34334
34335 * loader/i386/multiboot.c (code_size): New variable.
34336 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 34337 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 34338 4-byte alignment to MBI and others by increasing
7d074e3c 34339 `boot_loader_name_length' appropriately.
1ca7fc96 34340
34341 * loader/i386/multiboot_elfxx.c
34342 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
34343
a83ea1d2 343442009-03-09 Felix Zielcke <fzielcke@z-51.de>
34345
34346 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
34347 `fs/ext2.c'.
34348
aa9f3bff 343492009-03-08 Robert Millan <rmh@aybabtu.com>
34350
34351 Make loader/i386/linux.c usable on i386-pc again.
34352
34353 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
34354 memory to heap.
34355 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
34356 `#error' stanza.
34357
d8b3b60e 343582009-03-07 Bean <bean123ch@gmail.com>
34359
34360 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
34361 allocation.
34362
b362c9e9 343632009-03-06 Robert Millan <rmh@aybabtu.com>
34364
34365 Fix display issue on terminals with screen size other than 80x25
34366 (e.g. gfxterm with resolution higher than 640x480).
34367
34368 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 34369 position relative to the center of the terminal instead of relying
b362c9e9 34370 on a hardcoded offset.
34371
9304eef1 343722009-03-04 Robert Millan <rmh@aybabtu.com>
34373
34374 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
34375 installed.
34376
34377 * Makefile.in (host_kernel): New variable.
34378 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
34379 scripts instead of just the windows one.
34380 * configure.ac: Initialize and AC_SUBST `host_kernel'.
34381
eabc95fb 343822009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 34383
34384 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
34385 `kern/handler.c'.
34386 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34387 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34388 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34389 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34390 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34391 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34392
ceb1223c 343932009-03-04 Felix Zielcke <fzielcke@z-51.de>
34394
34395 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
34396 or if there's no space for the disk label and print the partition number on a
34397 invalid magic.
34398
4910684a 343992009-03-04 Felix Zielcke <fzielcke@z-51.de>
34400
34401 * util/misc.c: Include <time.h>.
34402 (grub_millisleep): New function.
34403
7e9ca17a 344042009-03-04 Bean <bean123ch@gmail.com>
34405
34406 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
34407 another option -mno-red-zone.
34408
34409 * commands/handler.c: Change module description.
34410
34411 * kern/handler.c: Add missing space at the end of description line.
34412
34413 * kern/list.c: Likewise.
34414
f501677c 344152009-03-03 Robert Millan <rmh@aybabtu.com>
34416
34417 Move more components to the relocation area, and fix mbi pointer
34418 handling to use the destination rather than the origin (thanks to
34419 Vladimir Serbinenko for spotting).
34420
34421 * loader/i386/multiboot.c (mbi_dest): New variable.
34422 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
34423 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
34424 relocation area.
34425
9902d047 344262009-03-01 Bean <bean123ch@gmail.com>
34427
50fb7002 34428 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 34429 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
34430 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
34431 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
34432
34433 * loader/i386/efi/linux.c (acpi_guid): New variable.
34434 (acpi_guid): Likewise.
34435 (EBDA_SEG_ADDR): New constant.
34436 (LOW_MEM_ADDR): Likewise.
34437 (FAKE_EBDA_SEG): Likewise.
34438 (fake_bios_data): New function.
34439 (grub_linux_boot): Call fake_bios_data.
34440
71b9f361 344412009-03-01 Bean <bean123ch@gmail.com>
34442
34443 * commands/terminal.c: Removed.
34444
34445 * commands/handler.c: New file.
34446
34447 * include/grub/list.h: Likewise.
34448
34449 * include/grub/handler.h: Likewise.
34450
34451 * kern/list.c: Likewise.
34452
34453 * kern/handler.c: Likewise.
34454
34455 * kern/term.h: Include header file <grub/handler.h>.
34456 (grub_term_input): Move next field to the beginning.
34457 (grub_term_output): Likewise.
34458 (grub_term_input_class): New variable.
34459 (grub_term_output_class): Likewise.
34460 (grub_term_register_input): Changed to inline function.
34461 (grub_term_register_output): Likewise.
34462 (grub_term_unregister_input): Likewise.
34463 (grub_term_unregister_output): Likewise.
34464 (grub_term_set_current_input): Likewise.
34465 (grub_term_set_current_output): Likewise.
34466 (grub_term_get_current_input): Likewise.
34467 (grub_term_get_current_output): Likewise.
34468 (grub_term_iterate_input): Removed.
34469 (grub_term_iterate_output): Likewise.
34470
34471 * kern/term.c (grub_term_list_input): Removed.
34472 (grub_term_list_output): Likewise.
34473 (grub_term_input_class): New variable.
34474 (grub_term_output_class): Likewise.
50fb7002 34475 (grub_cur_term_input): Change variable as macro.
71b9f361 34476 (grub_cur_term_output): Likewise.
34477 (grub_term_register_input): Removed.
34478 (grub_term_register_output): Likewise.
34479 (grub_term_unregister_input): Likewise.
34480 (grub_term_unregister_output): Likewise.
34481 (grub_term_set_current_input): Likewise.
34482 (grub_term_set_current_output): Likewise.
34483 (grub_term_iterate_input): Likewise.
34484 (grub_term_iterate_output): Likewise.
34485 (grub_term_get_current_input): Likewise.
34486 (grub_term_get_current_output): Likewise.
34487
34488 * util/grub-editenv.c: Include header file <grub/handler.h>.
34489 (grub_term_get_current_input): Removed.
34490 (grub_term_get_current_output): Likewise.
34491 (grub_term_input_class): New variable.
50fb7002 34492 (grub_term_output_class): Likewise.
71b9f361 34493
34494 * util/grub-fstest.c (grub_term_get_current_input): Removed.
34495 (grub_term_get_current_output): Likewise.
34496 (grub_term_input_class): New variable.
50fb7002 34497 (grub_term_output_class): Likewise.
71b9f361 34498
34499 * util/grub-probe.c (grub_term_get_current_input): Removed.
34500 (grub_term_get_current_output): Likewise.
34501 (grub_term_input_class): New variable.
50fb7002 34502 (grub_term_output_class): Likewise.
71b9f361 34503
34504 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
34505 (grub_term_get_current_output): Likewise.
34506 (grub_term_input_class): New variable.
50fb7002 34507 (grub_term_output_class): Likewise.
71b9f361 34508
34509 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
34510 (terminal_mod_SOURCES): Likewise.
34511 (terminal_mod_CFLAGS): Likewise.
34512 (terminal_mod_LDFLAGS): Likewise.
34513
34514 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
34515 handler.c.
34516 (kernel_img_SOURCES): Add list.c and handler.c.
34517 (kernel_img_HEADERS): Add list.h and handler.h.
34518
34519 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34520 handler.c.
34521 (kernel_mod_SOURCES): Add list.c and handler.c.
34522 (kernel_mod_HEADERS): Add list.h and handler.h.
34523
34524 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
34525 handler.c.
34526 (kernel_elf_SOURCES): Add list.c and handler.c.
34527 (kernel_elf_HEADERS): Add list.h and handler.h.
34528
34529 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34530 handler.c.
34531 (kernel_elf_SOURCES): Add list.c and handler.c.
34532 (kernel_elf_HEADERS): Add list.h and handler.h.
34533
34534 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
34535 handler.c.
34536 (kernel_mod_SOURCES): Add list.c and handler.c.
34537 (kernel_mod_HEADERS): Add list.h and handler.h.
34538
34539 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
34540 handler.c.
34541 (kernel_elf_SOURCES): Add list.c and handler.c.
34542 (kernel_elf_HEADERS): Add list.h and handler.h.
34543
8a31787f 345442009-02-27 Robert Millan <rmh@aybabtu.com>
34545
34546 Factorize elf32 / elf64 code in Multiboot loader. This will
34547 prevent it from getting out of sync again.
34548
34549 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
34550 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
34551 grub_multiboot_load_elf64): Move from here ...
34552 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
34553 grub_multiboot_load_elf): ... to here (new file).
34554
51cd3dfc 345552009-02-27 Robert Millan <rmh@aybabtu.com>
34556
34557 * util/grub.d/10_linux.in: Rename "single-user mode" to
34558 "recovery mode".
34559
6e8c9c3a 345602009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
34561
34562 Don't leak in SCSI code.
34563 * disk/scsi.c (grub_scsi_close): free `scsi'.
34564
4b6bf4f9 345652009-02-27 Robert Millan <rmh@aybabtu.com>
34566
34567 * loader/i386/pc/multiboot.c: Move from here ...
34568 * loader/i386/multiboot.c: ... to here. Update all users.
34569
b9413424 345702009-02-27 Robert Millan <rmh@aybabtu.com>
34571
34572 Patch from Alexandre Bique <bique.alexandre@gmail.com>
34573 * util/i386/pc/grub-setup.c (setup): Fix directory path.
34574
50fb7002 345752009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 34576
34577 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
34578 b-tree.
34579
8cc50345 345802009-02-27 Robert Millan <rmh@aybabtu.com>
34581
34582 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
34583 `0x' qualifier as 0 when base is specified as parameter).
34584
6e09b8b7 345852009-02-24 Bean <bean123ch@gmail.com>
34586
34587 * configure.ac: Check for -mcmodel=large in x86_64 target.
34588
34589 * include/grub/efi/api.h (efi_call_10): New macro.
34590 (efi_wrap_10): New function.
34591
34592 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
34593 (GRUB_PE32_REL_BASED_HIGH): Likewise.
34594 (GRUB_PE32_REL_BASED_LOW): Likewise.
34595 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
34596 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
34597 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
34598 (GRUB_PE32_REL_BASED_SECTION): Likewise.
34599 (GRUB_PE32_REL_BASED_REL): Likewise.
34600 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
34601 (GRUB_PE32_REL_BASED_DIR64): Likewise.
34602 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
34603
34604 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
34605 issue.
34606
34607 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
34608 (efi_wrap_10): New function.
34609
34610 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
34611
34612 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
34613 MB/MBP model (NV chipset).
34614 (devdata_devs): Add devpath_5 to the list.
34615
34616 * load/i386/efi/linux.c (video_base): Remove variable.
34617 (RGB_MASK): New macro.
34618 (RGB_MAGIC): Likewise.
34619 (LINE_MIN): Likewise.
34620 (LINE_MAX): Likewise.
34621 (FBTEST_STEP): Likewise.
34622 (FBTEST_COUNT): Likewise.
34623 (fb_list): New variable.
34624 (grub_find_video_card): Remove function.
34625 (find_framebuf): New function.
34626 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
34627 line length.
34628
34629 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
34630 problem for x86_64.
34631
74b21bee 346322009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
34633
34634 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
34635
34636 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
34637 coding tool name.
34638
a455f472 346392009-02-22 Robert Millan <rmh@aybabtu.com>
34640
34641 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
34642 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
34643 in our relocation, instead of using it directly from heap. Also
34644 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
34645
6374daf3 346462009-02-21 Robert Millan <rmh@aybabtu.com>
34647
34648 Implement USB keyboard support (based on patch by Marco Gerards)
34649
34650 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
34651 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
34652 (usb_keyboard_mod_LDFLAGS): New variables.
34653
34654 * term/usb_keyboard.c: New file.
34655
8fa4ea70 346562009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
34657
34658 Corrected wrong declaration
34659
34660 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
34661
353976ac 346622009-02-14 Christian Franke <franke@computer.org>
34663
34664 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
34665 (grub_lspci_iter): Print class code and programming interface byte.
34666
6aa1169b 346672009-02-14 Christian Franke <franke@computer.org>
34668
34669 * gendistlist.sh: Ignore `.svn' directories.
34670
265372ca 346712009-02-14 Felix Zielcke <fzielcke@z-51.de>
34672
34673 * fs/fat.c: Add 2009 to Copyright line.
34674
9ff516f3 346752009-02-14 Christian Franke <franke@computer.org>
34676
34677 * commands/hdparm.c: New file. Provides `hdparm' command
34678 which sends ATA commands via grub_disk_ata_pass_through ().
34679
34680 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
34681
34682 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
34683 and <grub/cpu/io.h> to include/grub/ata.h.
34684 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
34685 (GRUB_CDROM_SECTOR_SIZE): Remove.
34686 (GRUB_ATA_*): Move to include/grub/ata.h.
34687 (GRUB_ATAPI_*): Likewise.
34688 (enum grub_ata_commands): Likewise.
34689 (enum grub_ata_timeout_milliseconds): Likewise.
34690 (struct grub_ata_device): Likewise.
34691 (grub_ata_regset): Likewise.
34692 (grub_ata_regget): Likewise.
34693 (grub_ata_regset2): Likewise.
34694 (grub_ata_regget2): Likewise.
34695 (grub_ata_check_ready): Likewise.
34696 (grub_ata_wait_not_busy): Remove static, exported in
34697 include/grub/ata.h.
34698 (grub_ata_wait_drq): Likewise.
34699 (grub_ata_pio_read): Likewise.
34700
34701 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
34702 function for hdparm.mod.
34703
34704 * include/grub/ata.h: New file, contains declarations from
34705 disk/ata.c.
34706 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
34707
34708 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
34709 (grub_disk_ata_pass_through): New exported variable.
34710
34711 * kern/disk.c (grub_disk_ata_pass_through): New variable.
34712
772e23da 347132009-02-13 Colin D Bennett <colin@gibibit.com>
34714
34715 Support multiple fallback entries, and provide an API to support
34716 executing default+fallback menu entries. Renamed the `terminal' menu
34717 viewer to `text'.
34718
34719 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
34720 variable declaration.
34721 (grub_menu_execute_callback): New structure declaration.
34722 (grub_menu_execute_callback_t): New typedef.
34723 (grub_menu_execute_with_fallback): New function declaration.
34724 (grub_menu_get_entry): Likewise.
34725 (grub_menu_get_timeout): Likewise.
34726 (grub_menu_set_timeout): Likewise.
34727
34728 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
34729
34730 * normal/menu.c (grub_wait_after_message): Moved to
34731 `normal/menu_text.c'.
34732 (draw_border): Likewise.
34733 (print_message): Likewise.
34734 (print_entry): Likewise.
34735 (print_entries): Likewise.
34736 (grub_menu_init_page): Likewise.
34737 (get_entry_number): Likewise.
34738 (print_timeout): Likewise.
34739 (run_menu): Likewise.
34740 (grub_menu_execute_entry): Likewise.
34741 (show_text_menu): Likewise.
34742 (get_and_remove_first_entry_number): New function.
34743 (grub_menu_execute_with_fallback): Likewise.
34744 (get_entry): Renamed to ...
34745 (grub_menu_get_entry): .. this and made it global.
34746 (get_timeout): Renamed to ...
34747 (grub_menu_get_timeout): ... this and made it global.
34748 (set_timeout): Renamed to ...
34749 (grub_menu_set_timeout): ... this and made it global.
34750 (grub_normal_terminal_menu_viewer): Renamed to ...
34751 (grub_normal_text_menu_viewer): ... this.
34752
34753 * normal/menu_text.c: New file. Extracted text-menu-specific code
34754 from normal/menu.c.
34755
34756 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
34757 (normal_mod_SOURCES): Likewise.
34758
34759 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34760 (normal_mod_SOURCES): Likewise.
34761
34762 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34763 (normal_mod_SOURCES): Likewise.
34764
34765 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
34766 (normal_mod_SOURCES): Likewise.
34767
34768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34769 (normal_mod_SOURCES): Likewise.
34770
34771 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34772 (normal_mod_SOURCES): Likewise.
34773
34774 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34775 (normal_mod_SOURCES): Likewise.
34776
16ac430e 347772009-02-11 Robert Millan <rmh@aybabtu.com>
34778
34779 * util/grub.d/00_header.in: Update old reference to `font' command.
34780
06ff20fc 347812009-02-10 Felix Zielcke <fzielcke@z-51.de>
34782
34783 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
34784
34785 Based on patch from Javier Martín.
34786
96da9407 347872009-02-09 Felix Zielcke <fzielcke@z-51.de>
34788
34789 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 34790 to avoid false positives with FAT.
96da9407 34791 (grub_fstest_SOURCES): Likewise.
34792 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34793 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34794 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34795 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34796 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34797 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34798
6dca6fe4 347992009-02-09 Felix Zielcke <fzielcke@z-51.de>
34800
06ff20fc 34801 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 34802 bpb.version_specific.fat12_or_fat16.fstype and
34803 bpb.version_specific.fat32.fstype.
34804
2550c62f 348052009-02-08 Robert Millan <rmh@aybabtu.com>
34806
be110b30 34807 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 34808
56978920 348092009-02-08 Robert Millan <rmh@aybabtu.com>
34810
34811 * Makefile.in (host_os, host_cpu): New variables.
34812 (target_os): Remove. Update all users.
34813
d64399b5 348142009-02-08 Marco Gerards <marco@gnu.org>
34815
34816 * Makefile.in (enable_grub_emu_usb): New variable.
34817 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34818 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34819 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34820 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34821 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34822 `usbtest.mod' and `usbms.mod'.
34823 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34824 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34825 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34826 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34827 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34828 variables.
34829
34830 * disk/usbms.c: New file.
34831
34832 * include/grub/usb.h: Likewise.
34833
34834 * include/grub/usbtrans.h: Likewise.
34835
34836 * include/grub/usbdesc.h: Likewise.
34837
34838 * bus/usb/usbtrans.c: Likewise.
34839
34840 * bus/usb/ohci.c: Likewise.
34841
34842 * bus/usb/uhci.c: Likewise.
34843
34844 * bus/usb/usbhub.c: Likewise.
34845
34846 * bus/usb/usb.c: Likewise.
34847
34848 * commands/usbtest.c: Likewise.
34849
34850 * util/usb.c: Likewise.
50fb7002 34851
d64399b5 34852 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34853
34854 * configure.ac: Test for libusb presence.
50fb7002 34855
d64399b5 34856 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34857
2b40d6bb 348582009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34859
34860 * kern/mm.c: Add more comments.
34861
73a4ce81 348622009-02-08 Robert Millan <rmh@aybabtu.com>
34863
34864 Patch from Javier Martín.
34865 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34866 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34867
f821ce59 348682009-02-08 Robert Millan <rmh@aybabtu.com>
34869
34870 * fs/cpio.c: Split tar functionality to ...
34871 * fs/tar.c: ... here (new file). Update all users.
34872
aebfc4b0 348732009-02-07 Robert Millan <rmh@aybabtu.com>
34874
34875 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34876 backward-incompatible features.
34877
34878 Based on patch from Javier Martín, with some adjustments.
34879
50fb7002 348802009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 34881
34882 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34883
0bb5115e 348842009-02-07 Robert Millan <rmh@aybabtu.com>
34885
34886 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34887 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34888 after the RAID stuff.
34889
38a0f8e7 348902009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34891
50fb7002 34892 Fixes problem when running vbetest command as reported by
38a0f8e7 34893 Vladimir Serbinenko <phcoder@gmail.com>.
34894
34895 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34896
3143cc1c 348972009-02-04 Felix Zielcke <fzielcke@z-51.de>
34898
34899 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34900 /dev/md/NpN style mdraid devices.
34901
9cba6fce 349022009-02-03 Felix Zielcke <fzielcke@z-51.de>
34903
34904 * util/unifont2pff.rb: Remove.
34905
e507a2c1 349062009-02-03 Felix Zielcke <fzielcke@z-51.de>
34907
34908 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34909 `#'.
34910
d2c2b4cd 349112009-02-03 Felix Zielcke <fzielcke@z-51.de>
34912
34913 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34914 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34915 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34916 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34917 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34918 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34919 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34920
b4315fb0 349212009-02-02 Christian Franke <franke@computer.org>
34922
34923 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34924
de3aa260 349252009-02-01 Felix Zielcke <fzielcke@z-51.de>
34926
7c3ff286 34927 * INSTALL: Note that we now require at least autoconf 2.59 and
34928 that LZO is optional.
de3aa260 34929
825a182b 349302009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34931
34932 Base on patch on bug #24154 created by Tomas Tintera
34933 <trosos@seznam.cz>.
34934
34935 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34936
a69ef770 349372009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34938
7c3ff286 34939 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 34940 <bero@arklinux.org>.
34941
34942 * normal/parser.y (script_init): Add missing semicolon.
34943
6fa42fa6 349442009-01-31 Colin D Bennett <colin@gibibit.com>
34945
7c3ff286 34946 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 34947 (free_menu_entry_classes): Added.
34948 (grub_normal_menu_addentry): Added class property handling.
34949 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34950 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34951
34952 * normal/menu_viewer.c: New file.
34953
34954 * normal/menu.c (run_menu_entry): Renamed to ...
34955 (grub_menu_execute_entry): ... this and made it as global.
34956 (grub_menu_run): Renamed to ...
34957 (show_text_menu): ... this and made it local.
34958 (show_text_menu): Adapt to new function names.
34959 (grub_normal_terminal_menu_viewer): New global variable.
34960
34961 * include/grub/menu.h: New file.
34962
34963 * include/grub/menu_viewer.h: New file.
34964
34965 * include/grub/normal.h: Added include to grub/menu.h.
34966 (grub_menu_entry): Moved to include/grub/menu.h.
34967 (grub_menu_entry_t): Likewise.
34968 (grub_menu): Likewise.
34969 (grub_menu_t): Likewise.
34970 (grub_normal_terminal_menu_viewer): Added.
34971 (grub_menu_execute_entry): Likewise.
34972 (grub_menu_run): Removed.
34973
34974 * DISTLIST: Added include/grub/menu.h.
34975 Added include/grub/menu_viewer.h.
34976 Added normal/menu_viewer.c.
34977
349782009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34979
34980 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34981 arglist for menutitle arguments.
34982
34983 * normal/main.c (grub_normal_menu_addentry): Likewise.
34984
34985 * normal/parser.y (menuentry): Likewise.
34986
34987 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34988
34989 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34990 (grub_script_create_cmdmenu): Likewise.
34991
34992 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34993
34994 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34995 changes.
34996
34997 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34998
34999 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
35000
35001 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
35002
35003 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35004
35005 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35006
35007 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
35008
56192c23 350092009-01-30 Christian Franke <franke@computer.org>
35010
35011 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
35012 in option help text.
35013
d72521b3 350142009-01-27 Pavel Roskin <proski@gnu.org>
35015
35016 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
35017
994b5e84 350182009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35019
35020 * commands/lsmmap.c: Add include to grub/machine/memory.h.
35021
35022 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
35023
35024 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
35025 unregister function.
35026
6a7eab2c 350272009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
35028
35029 * disk/scsi.c (grub_scsi_read): Fix sign problem.
35030
35031 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
35032
35033 * util/grub-mkfont.c (usage): Fix typo.
35034
35035 * util/elf/grub-mkimage.c (load_modules): Fix warning.
35036
1806b56e 350372009-01-26 Daniel Mierswa <impulze@impulze.org>
35038
3fb18f09 35039 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
35040
336e1fb9 35041 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
35042
1806b56e 35043 * kern/misc.c (grub_strcasecmp): New function.
35044 (grub_strcasecmp): Use grub_size_t instead of int for length.
35045 Fix return value.
35046 * include/grub/misc.h: Update function prototypes.
35047
580b2a0f 350482009-01-26 Robert Millan <rmh@aybabtu.com>
35049
35050 * configure.ac: Fix cross-compilation check.
ef257b36 35051
d31c24f1 350522009-01-22 Christian Franke <franke@computer.org>
35053
35054 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
35055 (precision) digit string. Allow `.format2' without `format1' (width).
35056 Limit input chars for `%s' output to `format2' if specified. This is
35057 compatible with standard printf ().
35058
3138b44c 350592009-01-22 Christian Franke <franke@computer.org>
35060
35061 * disk/ata.c (grub_ata_wait_status): Replace by ...
35062 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
35063 other status bits may be invalid while BSY is asserted.
35064 (grub_ata_check_ready): New function.
35065 (grub_ata_cmd): Removed.
35066 (grub_ata_wait_drq): New function.
35067 (grub_ata_strncpy): Remove inline.
35068 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
35069 and error check now done by grub_ata_wait_drq ().
35070 (grub_ata_pio_write): Likewise.
35071 (grub_atapi_identify): Set DEV before check for !BSY. Use
35072 grub_ata_wait_drq () to wait for data.
35073 (grub_ata_device_initialize): Add status register check to
35074 detect missing SATA slave devices. Add debug messages.
35075 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
35076 (grub_atapi_packet): Set DEV before check for !BSY. Replace
35077 transfer loop by grub_ata_pio_write ().
35078 (grub_ata_identify): Set DEV before check for !BSY. Use
35079 grub_ata_wait_drq () to wait for data.
ef257b36 35080 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 35081 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
35082 read/write in one loop. Fix invalid command on write. Fix incomplete
35083 command on (size % batch) == 0. Add missing error check after write of
35084 last block. Add debug messages.
35085 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
35086
59a64ef6 350872009-01-19 Christian Franke <franke@computer.org>
35088
35089 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
35090 (GRUB_ATAPI_IREASON_*): Likewise.
35091 (grub_ata_pio_write): Fix timeout error return.
35092 (grub_atapi_identify): Add grub_ata_wait () after cmd.
35093 (grub_atapi_wait_drq): New function.
35094 (grub_atapi_packet): New parameter `size'.
35095 Use grub_atapi_wait_drq () and direct write instead of
35096 grub_ata_pio_write ().
35097 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
35098 reads the number of bytes requested by the device for each DRQ
35099 assertion.
35100 (grub_atapi_write): Remove old implementation, return not
35101 implemented instead.
35102
1cfe20b3 351032009-01-19 Christian Franke <franke@computer.org>
35104
35105 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
35106 of 512 to calculate data size.
35107 (grub_scsi_read12): Likewise.
35108 (grub_scsi_write10): Likewise.
35109 (grub_scsi_write12): Likewise.
35110 (grub_scsi_read): Adjust size according to blocksize.
35111 Add checks for invalid blocksize and unaligned transfer.
35112
bee5fe5d 351132009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
35114
35115 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
35116
ef257b36 35117 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 35118 width glyphs.
35119
3e643f8c 351202009-01-19 Robert Millan <rmh@aybabtu.com>
35121
35122 * config.guess: Update to latest version from config git.
35123 * config.sub: Likewise.
35124
4fa80998 351252009-01-17 Felix Zielcke <fzielcke@z-51.de>
35126
35127 * Makefile.in: Change font compilation to use new grub-mkfont instead
35128 of java version.
35129
35130 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
35131 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
35132 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35133 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
35134 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
35135 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
35136 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
35137 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
35138 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35139
7086085b 351402009-01-16 Christian Franke <franke@computer.org>
35141
35142 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
35143 (enum grub_ata_timeout_milliseconds): New enum.
35144 (grub_ata_wait_status): Add parameter milliseconds.
35145 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
35146 recovery from timed-out commands.
35147 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
35148 return grub_errno instead of REG_ERROR.
35149 (grub_ata_pio_write): Add parameter milliseconds.
35150 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
35151 Pass milliseconds to grub_ata_wait_status () and
35152 grub_ata_pio_read ().
35153 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
35154 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
35155 grub_ata_wait_status (). Fix IDENTIFY timeout check.
35156 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
35157 It is not suitable for device detection, because DEV bit is ignored,
35158 the command may run too long, and not all devices set the signature
35159 properly.
35160 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
35161 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
35162 Fix device selection, DEV bit must be set first to address the registers
35163 of the correct device.
35164 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
35165 grub_ata_pio_read/write ().
35166 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
35167 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
35168
4a412913 351692009-01-13 Carles Pina i Estany <carles@pina.cat>
35170
35171 * util/grub-editenv.c (main): Use fseeko(), not fseek().
35172
7795c55e 351732009-01-13 Bean <bean123ch@gmail.com>
d913988c 35174
35175 * util/grub-mkfont.c (write_font): forget to remove some debug code.
35176
7795c55e 351772009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 35178
35179 * Makefile.in: (enable_grub_mkfont): New variable.
35180 (freetype_cflags): Likewise.
35181 (freetype_libs): Likewise.
35182
35183 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
35184 (grub_mkfont_SOURCES): New variable.
35185 (grub_mkfont_CFLAGS): Likewise.
35186 (grub_mkfont_LDFLAGS): Likewise.
35187
35188 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
35189 library if `--enable-grub-mkfont' is requested.
35190 (enable_grub_mkfont): New variable.
35191 (freetype_cflags): Likewise.
35192 (freetype_libs): Likewise.
35193
35194 * util/grub-mkfont.c: New file.
35195
093af1fe 351962009-01-12 Christian Franke <franke@computer.org>
35197
35198 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
35199 mode check. Fix setting of compat_use[].
35200
f36cc108 352012009-01-10 Robert Millan <rmh@aybabtu.com>
35202
35203 Update a few copyright years which we forgot to do in 2008 (only for
35204 files whose changes made in 2008 were copyright-significant)
35205
35206 * Makefile.in: Add 2008 to Copyright line.
35207 * disk/ieee1275/ofdisk.c: Likewise.
35208 * disk/efi/efidisk.c: Likewise.
35209 * kern/dl.c: Likewise.
35210 * kern/sparc64/ieee1275/init.c: Likewise.
35211 * kern/mm.c: Likewise.
35212 * kern/efi/mm.c: Likewise.
35213 * boot/i386/pc/boot.S: Likewise.
35214 * genfslist.sh: Likewise.
35215 * fs/iso9660.c: Likewise.
35216 * fs/hfs.c: Likewise.
35217 * fs/jfs.c: Likewise.
35218 * fs/minix.c: Likewise.
35219 * fs/ufs.c: Likewise.
35220 * gensymlist.sh.in: Likewise.
35221 * genkernsyms.sh.in: Likewise.
35222 * include/grub/misc.h: Likewise.
35223 * include/grub/types.h: Likewise.
35224 * include/grub/symbol.h: Likewise.
35225 * include/grub/elf.h: Likewise.
35226 * include/grub/kernel.h: Likewise.
35227 * include/grub/disk.h: Likewise.
35228 * include/grub/dl.h: Likewise.
35229 * include/grub/i386/linux.h: Likewise.
35230 * include/grub/i386/pc/biosdisk.h: Likewise.
35231 * include/grub/efi/api.h: Likewise.
35232 * include/grub/efi/pe32.h: Likewise.
35233 * include/grub/util/misc.h: Likewise.
35234 * normal/execute.c: Likewise.
35235 * normal/arg.c: Likewise.
35236 * normal/completion.c: Likewise.
35237 * normal/lexer.c: Likewise.
35238 * normal/parser.y: Likewise.
35239 * normal/misc.c: Likewise.
35240 * commands/i386/pc/vbeinfo.c: Likewise.
35241 * commands/hexdump.c: Likewise.
35242 * commands/terminal.c: Likewise.
35243 * commands/ls.c: Likewise.
35244 * commands/help.c: Likewise.
35245 * partmap/pc.c: Likewise.
35246 * loader/efi/chainloader.c: Likewise.
35247 * loader/multiboot_loader.c: Likewise.
35248 * loader/i386/pc/multiboot2.c: Likewise.
35249 * term/efi/console.c: Likewise.
35250 * term/i386/pc/serial.c: Likewise.
35251 * util/lvm.c: Likewise.
35252 * util/console.c: Likewise.
35253 * util/i386/efi/grub-mkimage.c: Likewise.
35254 * util/raid.c: Likewise.
35255
7f02114b 352562009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
35257
35258 * commands/videotest.c: Removed include to grub/machine/memory.h.
35259
35260 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
35261 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
35262 (video_mod_SOURCES): Removed.
35263 (video_mod_CFLAGS): Likewise.
35264 (video_mod_LDFLAGS): Likewise.
35265 (gfxterm_mod_SOURCES): Likewise.
35266 (gfxterm_mod_CFLAGS): Likewise.
35267 (gfxterm_mod_LDFLAGS): Likewise.
35268 (videotest_mod_SOURCES): Likewise.
35269 (videotest_mod_CFLAGS): Likewise.
35270 (videotest_mod_LDFLAGS): Likewise.
35271 (bitmap_mod_SOURCES): Likewise.
35272 (bitmap_mod_CFLAGS): Likewise.
35273 (bitmap_mod_LDFLAGS): Likewise.
35274 (tga_mod_SOURCES): Likewise.
35275 (tga_mod_CFLAGS): Likewise.
35276 (tga_mod_LDFLAGS): Likewise.
35277 (jpeg_mod_SOURCES): Likewise.
35278 (jpeg_mod_CFLAGS): Likewise.
35279 (jpeg_mod_LDFLAGS): Likewise.
35280 (png_mod_SOURCES): Likewise.
35281 (png_mod_CFLAGS): Likewise.
35282 (png_mod_LDFLAGS): Likewise.
35283
35284 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
35285 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
35286 (video_mod_SOURCES): Added.
35287 (video_mod_CFLAGS): Likewise.
35288 (video_mod_LDFLAGS): Likewise.
35289 (videotest_mod_SOURCES): Likewise.
35290 (videotest_mod_CFLAGS): Likewise.
35291 (videotest_mod_LDFLAGS): Likewise.
35292 (bitmap_mod_SOURCES): Likewise.
35293 (bitmap_mod_CFLAGS): Likewise.
35294 (bitmap_mod_LDFLAGS): Likewise.
35295 (tga_mod_SOURCES): Likewise.
35296 (tga_mod_CFLAGS): Likewise.
35297 (tga_mod_LDFLAGS): Likewise.
35298 (jpeg_mod_SOURCES): Likewise.
35299 (jpeg_mod_CFLAGS): Likewise.
35300 (jpeg_mod_LDFLAGS): Likewise.
35301 (png_mod_SOURCES): Likewise.
35302 (png_mod_CFLAGS): Likewise.
35303 (png_mod_LDFLAGS): Likewise.
35304 (gfxterm_mod_SOURCES): Likewise.
35305 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 35306 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 35307
35308 * term/gfxterm.c: Removed include to grub/machine/memory.h,
35309 grub/machine/console.h.
35310
644fff97 353112009-01-04 Jerone Young <jerone@gmail.com>
35312
35313 Make on screen instructions clearer
35314
35315 Based on patch created by Jidanni <jidanni@jidanni.org>
35316
35317 * normal/menu.c: print clearer instructions on the screen
35318
1e901a75 353192009-01-02 Colin D Bennett <colin@gibibit.com>
35320
35321 New font engine.
34c44600 35322
1e901a75 35323 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
35324 build system and fixed gfxterm.c to work with different sized fonts.
35325
35326 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 35327
1e901a75 35328 * configure: Re-generated.
34c44600 35329
1e901a75 35330 * DISTLIST: Removed font/manager.c.
35331 Added font/font.c.
35332 Added font/font_cmd.c.
34c44600 35333
1e901a75 35334 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
35335 compilation.
34c44600 35336
1e901a75 35337 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 35338
35339 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 35340
35341 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 35342
1e901a75 35343 * normal/menu.c: Likewise.
34c44600 35344
1e901a75 35345 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
35346 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 35347
1e901a75 35348 * include/grub/font.h: Replaced with new file.
34c44600 35349
1e901a75 35350 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
35351 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
35352 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
35353 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
35354 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 35355 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 35356 fg_red, fg_green, fg_blue, fg_alpha.
35357 (grub_video_adapter): Removed blit_glyph.
34c44600 35358 (grub_video_blit_glyph): Removed.
35359
1e901a75 35360 * font/manager.c: Removed file.
34c44600 35361
35362 * font/font.c: New file.
35363
1e901a75 35364 * font/font_cmd.c: Likewise.
34c44600 35365
1e901a75 35366 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 35367
1e901a75 35368 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
35369 (grub_video_vbe_map_rgba): Likewise.
35370 (grub_video_vbe_unmap_color_int): Likewise.
35371 (grub_video_vbe_blit_glyph): Removed.
35372 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 35373
1e901a75 35374 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
35375 (get_pixel): Likewise.
34c44600 35376 (set_pixel): Likewise.
35377
1e901a75 35378 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 35379
1e901a75 35380 * term/gfxterm.c: Adapted to new font engine.
34c44600 35381
1e901a75 35382 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 35383
1e901a75 35384 * term/i386/pc/vga.c: Likewise.
34c44600 35385
1e901a75 35386 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 35387
1e901a75 35388 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 35389
1e901a75 35390 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35391
1e901a75 35392 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 35393
1e901a75 35394 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 35395
1e901a75 35396 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 35397
1e901a75 35398 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 35399
1e901a75 35400 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 35401
1e901a75 35402 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
35403
35404 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 35405
1e901a75 35406 * util/grub-mkconfig_lib.in: Changed font extension.
35407
278922e8 354082008-12-28 Felix Zielcke <fzielcke@z-51.de>
35409
35410 * util/getroot.c (grub_util_get_grub_dev): Add support for
35411 /dev/md/dNNpNN style partitionable mdraid devices.
35412
3ced05cf 354132008-12-12 Alex Smith <alex@alex-smith.me.uk>
35414
35415 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
35416 at a time limit of the PXE TFTP API correctly.
35417 (grub_pxefs_close): Likewise.
35418
7fd0ee30 354192008-11-29 Robert Millan <rmh@aybabtu.com>
35420
34c44600 35421 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 35422 grub_ata_device_initialize() calls.
35423
34c44600 354242008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 35425
35426 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
35427 iteration failed.
35428 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
35429
89313780 354302008-11-28 Robert Millan <rmh@aybabtu.com>
35431
35432 Fix build on powerpc-ieee1275. Based on patch created by
35433 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
35434 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35435 `kern/ieee1275/mmap.c'.
35436 * include/grub/powerpc/ieee1275/memory.h: New file.
35437
15257703 35438 Provide grub-install on coreboot.
35439 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
35440 (grub_install_SOURCES): New variable.
35441 * util/i386/pc/grub-install.in: Add a few condition checks to make it
35442 usable on coreboot.
35443
9fc5388a 354442008-11-25 Felix Zielcke <fzielcke@z-51.de>
35445
35446 * util/grub-fstest.c (grub_term_get_current_input): Change return type
35447 to `grub_term_input_t'.
35448 (grub_term_get_current_output): Change return type to
35449 `grub_term_output_t'.
35450
bc3a2f31 354512008-11-22 Robert Millan <rmh@aybabtu.com>
35452
34c44600 35453 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 35454 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
35455 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
35456 grub_vga_text_cls().
35457
80fc88f2 35458 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 35459 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 35460
cbf36fd3 35461 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
35462 to 0x200000 (avoids trouble with some OFW implementations, and matches
35463 with the one in Yaboot).
35464 Reported by Manoel Abranches
35465
73e8e268 354662008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 35467
35468 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
35469 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
35470
73e8e268 35471 * util/grub-mkconfig_lib.in (grub_warn): New function.
35472 (convert_system_path_to_grub_path): Use grub_warn() when issuing
35473 warnings, to obtain consistent formatting.
35474 * util/grub.d/00_header.in: Likewise.
35475 * util/update-grub_lib.in: Likewise.
35476
e94045a1 35477 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 35478 Move comment text to `#error' stanza.
e94045a1 35479
79d29fd7 35480 Harmonize ieee1275's grub_available_iterate() with the generic
35481 grub_machine_mmap_iterate() interface (fixes a recently-introduced
35482 build problem on i386-ieee1275):
35483 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
35484 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
35485 parameter `type'. Update all users of this function.
35486 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
35487 `kern/ieee1275/mmap.c'.
35488 * kern/ieee1275/init.c
35489 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
35490 with ...
35491 (grub_machine_mmap_iterate): ... this.
35492 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
35493 return type to `grub_err_t'. Update all implementations of this
35494 function prototype.
35495 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
35496 Likewise.
35497
60d6b16e 35498 Add `lsmmap' command (lists firmware-provided memory map):
35499 * commands/lsmmap.c: New file.
35500 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
35501 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
35502 variables.
35503 * conf/powerpc-ieee1275.rmk: Likewise.
35504 * conf/i386-coreboot.rmk: Likewise.
35505 * conf/i386-ieee1275.rmk: Likewise.
35506
ebaaf49b 355072008-11-19 Robert Millan <rmh@aybabtu.com>
35508
35509 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 35510 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
35511 constraints to initrd allocation (based on code from
35512 loader/i386/pc/linux.c). Without them, initrd was allocated too high
35513 for Linux to find it.
ebaaf49b 35514
dfab719f 355152008-11-14 Robert Millan <rmh@aybabtu.com>
35516
35517 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
35518 order to cope with duplicate slashes.
35519
10fc3eb9 355202008-11-14 Robert Millan <rmh@aybabtu.com>
35521
35522 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
35523 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
35524 don't want to mess with lower memory, because it is used in the Linux
35525 loader.
35526
35527 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 35528 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 35529 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
35530 is in our heap (probably as a result of it being corrupted during
2f2a3442 35531 decompression). Add #error instance with comment to explain why this
35532 loader isn't currently usable on PC/BIOS.
10fc3eb9 35533
e2e07847 355342008-11-14 Robert Millan <rmh@aybabtu.com>
35535
35536 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 35537 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 35538
fe8e8d69 355392008-11-12 Robert Millan <rmh@aybabtu.com>
35540
35541 Make loader/i386/linux.c buildable on i386-pc (although disabled).
35542
35543 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
35544 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
35545 from here ...
35546 * include/grub/i386/pc/memory.h: ... to here.
35547
976b07d0 355482008-11-12 Robert Millan <rmh@aybabtu.com>
35549
35550 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
35551 split).
35552
35553 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
35554 (grub_console_cur_color, grub_console_real_putchar)
35555 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35556 (grub_console_setcolorstate, grub_console_setcolor)
35557 (grub_console_getcolor): Move from here ...
35558 * include/grub/i386/vga_common.h: ... to here (new file).
35559
35560 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
35561 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
35562 `<grub/i386/io.h>'.
35563 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
35564 `<grub/i386/vga_common.h>'.
35565
76679cd3 355662008-11-12 Robert Millan <rmh@aybabtu.com>
35567
35568 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
35569 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
35570 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
35571 variables.
35572 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35573 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
35574
35575 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
35576 grub_console_init() with call to grub_vga_text_init().
35577 (grub_machine_fini): Replace call to
35578 grub_console_fini() with call to grub_vga_text_fini() and
35579 grub_at_keyboard_fini().
35580
35581 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
35582 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
35583 (grub_console_setcolorstate, grub_console_setcolor)
35584 (grub_console_getcolor): New function prototypes.
35585
35586 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
35587 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
35588 (grub_vga_text_setcursor): Static-ize.
35589 (grub_vga_text_term): New structure.
35590 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
35591
35592 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
35593 (grub_console_cur_color, grub_console_standard_color)
35594 (grub_console_normal_color, grub_console_highlight_color)
35595 (map_char, grub_console_putchar, grub_console_getcharwidth)
35596 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
35597 (grub_console_getcolor): Move from here ...
35598 * term/i386/vga_common.c: ... to here (same function names).
35599
95b841d3 356002008-11-12 Robert Millan <rmh@aybabtu.com>
35601
35602 Use newly-added Multiboot support in coreboot.
35603
35604 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
35605 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
35606
35607 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
35608 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
35609 (codestart): Store the MBI in `startup_multiboot_info' when we're
35610 being loaded using Multiboot.
35611
35612 * kern/i386/coreboot/init.c (grub_machine_init): Move
35613 grub_at_keyboard_init() call to beginning of function (useful for
35614 debugging). Call grub_machine_mmap_init() before attempting to use
35615 grub_machine_mmap_iterate().
35616 (grub_lower_mem, grub_upper_mem): Move from here ...
35617 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
35618 here (new file).
35619
35620 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
35621 function prototype.
35622
761ca975 356232008-11-12 Robert Millan <rmh@aybabtu.com>
35624
35625 Fix a regression introduced by the at_keyboard.mod split. Because
35626 some terminals are default on some platforms and non-default on
35627 others, the first terminal being registered determines which is
35628 going to be default.
35629
35630 * kern/term.c (grub_term_register_input): If this is the first
35631 terminal being registered, set it as the current one.
35632 (grub_term_register_output): Likewise.
35633
35634 * term/efi/console.c (grub_console_init): Do not call
35635 grub_term_set_current_output() or grub_term_set_current_input().
35636 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
35637 * term/i386/pc/console.c (grub_console_init): Likewise.
35638 (grub_console_fini): Do not call grub_term_set_current_input()
35639 (but leave grub_term_set_current_output() to restore text mode).
35640
6c529df7 356412008-11-10 Robert Millan <rmh@aybabtu.com>
35642
35643 * util/grub.d/00_header.in: Add backward compatibility check for
35644 versions of terminal.mod that don't understand `terminal_input' or
35645 `terminal_output'.
35646
132e4113 356472008-11-09 Robert Millan <rmh@aybabtu.com>
35648
35649 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
35650 `terminal_input' / `terminal_output', not `terminal'.
35651
ac293d50 356522008-11-08 Robert Millan <rmh@aybabtu.com>
35653
35654 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 35655 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 35656
0025933a 356572008-11-08 Robert Millan <rmh@aybabtu.com>
35658
35659 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 35660 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 35661 members. Update all users.
35662 * util/console.c (grub_ncurses_term): Split in ...
35663 (grub_ncurses_term_input): ... this, and ...
35664 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 35665 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 35666
37c86336 356672008-11-08 Robert Millan <rmh@aybabtu.com>
35668
35669 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
35670 (PKGDATA): Add $(pkgdata_SRCDIR).
35671 (pkglib_BUILDDIR): New variable.
35672 (pkgdata_SRCDIR): New variable.
35673 (build_env.mk): New target.
35674 (include_DATA): New variable.
35675 (install-local): Install $(include_DATA) files in $(includedir).
35676
b6c15a2d 356772008-11-07 Pavel Roskin <proski@gnu.org>
35678
d99d46f1 35679 * gendistlist.sh: Use C locale for sorting to ensure consistent
35680 output on all systems.
35681
b6c15a2d 35682 * util/grub.d/00_header.in: Remove incorrect space before
35683 "serial".
35684
c32ee8c9 356852008-11-07 Robert Millan <rmh@aybabtu.com>
35686
35687 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
35688 per specification.
35689 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
35690 * loader/multiboot_loader.c (find_multi_boot2_header): New function
35691 (based on find_multi_boot1_header).
35692 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
35693 using find_multi_boot2_header(), and abort if neither Multiboot or
35694 Multiboot headers were found.
35695
651c29b7 356962008-11-07 Robert Millan <rmh@aybabtu.com>
35697
35698 Modularize at_keyboard.mod:
35699
35700 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
35701 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
35702 (at_keyboard_mod_LDFLAGS): New variables.
35703
35704 Actual terminal split:
35705
35706 * include/grub/term.h (struct grub_term): Split in ...
35707 (struct grub_term_input): ... this, and ...
35708 (struct grub_term_output): ... this. Update all users.
35709 (grub_term_set_current): Split in ...
35710 (grub_term_set_current_input): ... this, and ...
35711 (grub_term_set_current_output): ... this.
35712 (grub_term_get_current): Split in ...
35713 (grub_term_get_current_input): ... this, and ...
35714 (grub_term_get_current_output): ... this.
35715 (grub_term_register): Split in ...
35716 (grub_term_register_input): ... this, and ...
35717 (grub_term_register_output): ... this.
35718 (grub_term_unregister): Split in ...
35719 (grub_term_unregister_input): ... this, and ...
35720 (grub_term_unregister_output): ... this.
35721 (grub_term_iterate): Split in ...
35722 (grub_term_iterate_input): ... this, and ...
35723 (grub_term_iterate_output): ... this.
35724
35725 * kern/term.c (grub_term_list): Split in ...
35726 (grub_term_list_input): ... this, and ...
35727 (grub_term_list_output): ... this. Update all users.
35728 (grub_cur_term): Split in ...
35729 (grub_cur_term_input): ... this, and ...
35730 (grub_cur_term_output): ... this. Update all users.
35731 (grub_term_set_current): Split in ...
35732 (grub_term_set_current_input): ... this, and ...
35733 (grub_term_set_current_output): ... this.
35734 (grub_term_get_current): Split in ...
35735 (grub_term_get_current_input): ... this, and ...
35736 (grub_term_get_current_output): ... this.
35737 (grub_term_register): Split in ...
35738 (grub_term_register_input): ... this, and ...
35739 (grub_term_register_output): ... this.
35740 (grub_term_unregister): Split in ...
35741 (grub_term_unregister_input): ... this, and ...
35742 (grub_term_unregister_output): ... this.
35743 (grub_term_iterate): Split in ...
35744 (grub_term_iterate_input): ... this, and ...
35745 (grub_term_iterate_output): ... this.
35746
35747 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
35748 a check for input and one for output (and only attempt to get keys
35749 from user when input works).
35750
35751 * util/grub-probe.c (grub_term_get_current): Split in ...
35752 (grub_term_get_current_input): ... this, and ...
35753 (grub_term_get_current_output): ... this.
35754 * util/grub-fstest.c: Likewise.
35755 * util/i386/pc/grub-setup.c: Likewise.
35756 * util/grub-editenv.c: Likewise.
35757
35758 Portability adjustments:
35759
35760 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
35761 `term/i386/pc/at_keyboard.c'.
35762 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
35763 grub_keyboard_controller_init() (now handled by terminal .init).
35764 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
35765 grub_at_keyboard_init().
35766 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
35767 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
35768 at_keyboard.mod via input terminal interface).
35769 * include/grub/i386/coreboot/console.h: Convert into a stub for
35770 `<grub/i386/pc/console.h>'.
35771
35772 Migrate full terminals to new API:
35773
35774 * term/efi/console.c (grub_console_term): Split into ...
35775 (grub_console_term_input): ... this, and ...
35776 (grub_console_term_output): ... this. Update all users.
35777 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
35778 (grub_ofconsole_init): Split into ...
35779 (grub_ofconsole_init_input): ... this, and ...
35780 (grub_ofconsole_init_output): ... this.
35781 (grub_ofconsole_term): Split into ...
35782 (grub_ofconsole_term_input): ... this, and ...
35783 (grub_ofconsole_term_output): ... this. Update all users.
35784 * term/i386/pc/serial.c (grub_serial_term): Split into ...
35785 (grub_serial_term_input): ... this, and ...
35786 (grub_serial_term_output): ... this. Update all users.
35787 * term/i386/pc/console.c (grub_console_term): Split into ...
35788 (grub_console_term_input): ... this, and ...
35789 (grub_console_term_output): ... this. Update all users.
35790 (grub_console_term_input): Only enable it on PC/BIOS platform.
35791 (grub_console_init): Remove grub_keyboard_controller_init() call.
35792
35793 Migrate input terminals to new API:
35794
35795 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
35796 `i386' and `i386/pc' to enable build on x86_64 (this driver is
35797 i386-specific anyway).
35798 (grub_console_checkkey): Rename to ...
35799 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
35800 users.
35801 (grub_keyboard_controller_orig): New variable.
35802 (grub_console_getkey): Rename to ...
35803 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
35804 users.
35805 (grub_keyboard_controller_init): Static-ize. Save original
35806 controller value so that it can be restored ...
35807 (grub_keyboard_controller_fini): ... here (new function).
35808 (grub_at_keyboard_term): New structure.
35809 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
35810 functions.
35811
35812 Migrate output terminals to new API:
35813
35814 * term/i386/pc/vga.c (grub_vga_term): Change type to
35815 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35816 members. Update all users.
35817 * term/gfxterm.c (grub_video_term): Change type to
35818 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35819 members. Update all users.
35820 * include/grub/i386/pc/console.h (grub_console_checkkey)
35821 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35822 etc).
35823
35824 Migrate `terminal' command and userland tools to new API:
35825
35826 * commands/terminal.c (grub_cmd_terminal): Split into ...
35827 (grub_cmd_terminal_input): ... this, and ...
35828 (grub_cmd_terminal_output): ... this.
35829 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35830 `terminal_input' and `terminal_output'.
35831 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35832 `terminal_input' / `terminal_output' API.
35833 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35834 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35835 provided ${GRUB_TERMINAL}, convert it).
35836
96e5d876 358372008-11-04 Robert Millan <rmh@aybabtu.com>
35838
35839 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35840 for FreeBSD.
35841 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35842
556f3775 358432008-11-03 Bean <bean123ch@gmail.com>
35844
35845 * kern/elf.c (grub_elf32_load): Revert to previous code.
35846 (grub_elf64_load): Likewise.
35847
35848 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35849
926b9823 358502008-11-01 Robert Millan <rmh@aybabtu.com>
35851
35852 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35853 (TARGET_CPPFLAGS): Likewise.
35854 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35855
1432e958 358562008-11-01 Carles Pina i Estany <carles@pina.cat>
35857
35858 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35859
dba3f844 358602008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 35861
35862 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35863 addition of objects until the code is not going to be able to fail.
35864
dba3f844 358652008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 35866
35867 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35868 (add a missing NULL check, and correct them by moving the pointer
35869 operations after the actual check).
35870
7ab28c21 358712008-10-29 Robert Millan <rmh@aybabtu.com>
35872
35873 * util/i386/pc/grub-install.in: Handle empty string as output from
35874 make_system_path_relative_to_its_root().
35875
1b7748eb 358762008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35877
35878 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35879 circular metadata worst case scenario. If the metadata is circular
35880 then copy the wrap in place.
35881 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35882 project lib/format_text/layout.h
35883 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35884
c9618ab2 358852008-10-03 Felix Zielcke <fzielcke@z-51.de>
35886
7a36edca 35887 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 35888
bf981c62 358892008-10-03 Felix Zielcke <fzielcke@z-51.de>
35890
35891 * util/update-grub_lib.in: Mention filename in warning message.
35892
6d994591 358932008-09-29 Felix Zielcke <fzielcke@z-51.de>
35894
35895 * NEWS: Update for rename of update-grub to grub-mkconfig.
35896
18ade780 358972008-09-29 Felix Zielcke <fzielcke@z-51.de>
35898
35899 * util/update-grub_lib.in: Copy to ...
35900 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 35901 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 35902 * util/update-grub.in: Rename to ...
35903 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35904 option. Add `--output' option to allow users to specify the generated
35905 configuration file. Default to stdout.
35906 (update_grub_dir): Rename to ...
35907 (grub_mkconfig_dir): ... this.
35908 (grub_cfg): Default to an empty string.
35909 * conf/common.rmk (update-grub): Rename to ...
35910 (grub-mkconfig): ... this.
35911 (update-grub_lib): Copy to ...
35912 (grub-mkconfig_lib): ... this.
35913 (update-grub_SCRIPTS): Copy to ...
35914 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35915 (update-grub_DATA): Rename to ...
35916 (grub-mkconfig_DATA): ... this.
35917
556ce6ac 359182008-09-28 Robert Millan <rmh@aybabtu.com>
35919
35920 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35921 to `modified'. Add the real `created' field.
35922 (grub_iso9660_uuid): Use `modified' rather than `created' for
35923 constructing the UUID.
35924
359252008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 35926
35927 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35928 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35929
92274e85 359302008-09-28 Bean <bean123ch@gmail.com>
35931
35932 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35933 Thanks to Christian Franke for finding this bug.
35934
add6f17a 359352008-09-25 Robert Millan <rmh@aybabtu.com>
35936
35937 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35938 instances of grub_util_get_disk_name() (see previous commit).
35939
d2a367b8 359402008-09-25 Robert Millan <rmh@aybabtu.com>
35941
35942 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35943 `util/i386/get_disk_name.c'.
35944 * conf/i386-efi.rmk: Likewise.
35945 * conf/x86_64-efi.rmk: Likewise.
35946 * conf/i386-coreboot.rmk: Likewise.
35947 * conf/i386-ieee1275.rmk: Likewise.
35948 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35949 `util/ieee1275/get_disk_name.c'.
35950 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35951 * util/ieee1275/get_disk_name.c: Remove file.
35952 * util/i386/get_disk_name.c: Remove file.
35953 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35954 "hd%d" for device.map entries, rather than using
35955 grub_util_get_disk_name().
35956
81a06771 359572008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 35958
35959 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35960 warning.
35961 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35962
5a004279 359632008-09-24 Carles Pina i Estany <carles@pina.cat>
35964
35965 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35966 Changed to 0x5100.
35967 (GRUB_TERM_PPAGE): Changed to 0x4900.
35968
397093d3 359692008-09-24 Robert Millan <rmh@aybabtu.com>
35970
35971 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35972 macros (they were i386-pc specific).
35973 * include/grub/sparc64/ieee1275/console.h: Likewise.
35974 * include/grub/efi/console.h: Likewise.
35975
a91b6c7c 359762008-09-22 Bean <bean123ch@gmail.com>
35977
35978 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35979 resident and in attribute list.
35980
35981 * include/grub/ntfs.h (BMP_LEN): Removed.
35982
c40fd116 359832008-09-22 Bean <bean123ch@gmail.com>
35984
81a06771 35985 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 35986 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35987
35988 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35989 error occurs, as grub_disk_open will call grub_disk_close, which will
35990 call p->close (scsi).
35991
81a06771 359922008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 35993
35994 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35995 (AC_PREREQ): Bumped to 2.59.
35996 (AC_TRY_COMPILE): Replace obsolete macro with ...
35997 (AC_COMPILE_IFELSE): ... this.
35998 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35999 (AC_LINK_IFELSE): ... this.
36000
5dc43410 360012008-09-21 Felix Zielcke <fzielcke@z-51.de>
36002
36003 * autogen.sh: Add a call to `gendistlist.sh'.
36004
9035dce4 360052008-09-19 Christian Franke <franke@computer.org>
36006
36007 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
36008 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
36009 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
36010 Export __enable_execute_stack() to modules.
36011 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
36012 New function.
36013
7fd75377 360142008-09-09 Felix Zielcke <fzielcke@z-51.de>
36015
040030b3 36016 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
36017 Sort the list.
36018
360192008-09-09 Felix Zielcke <fzielcke@z-51.de>
36020
36021 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 36022 #include <grub/util/hostdisk.h>.
36023
89d5ffcf 360242008-09-08 Robert Millan <rmh@aybabtu.com>
36025
36026 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
36027 segments when their filesz is zero (grub_file_read() interprets
81a06771 36028 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 36029 Use `lowest_segment' rather than 0 for calculating the current
36030 segment load address.
36031
40da438f 360322008-09-08 Robert Millan <rmh@aybabtu.com>
36033
36034 * util/hostdisk.c (open_device): Replace a grub_util_info() call
36035 with grub_dprintf("hostdisk", ...), as it was so verbose that it
36036 clobbered useful information.
36037
ddbf5556 360382008-09-08 Robert Millan <rmh@aybabtu.com>
36039
36040 * include/grub/util/biosdisk.h: Move to ...
36041 * include/grub/util/hostdisk.h: ... here. Update all users.
36042 * util/biosdisk.c: Move to ...
36043 * util/hostdisk.c: ... here. Update all users.
36044
783d0f48 360452008-09-07 Robert Millan <rmh@aybabtu.com>
36046
36047 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
36048 variables.
36049 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
36050 and length can be stored directly in the `mbi->mmap_addr' and
36051 `mbi->mmap_length' struct fields.
36052
548e2ea5 360532008-09-07 Robert Millan <rmh@aybabtu.com>
36054
36055 * conf/i386.rmk: New file. Provides declaration for building
36056 `cpuid.mod'.
36057 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
36058 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
36059 variables.
36060 Include `conf/i386.mk'.
36061 * conf/i386-efi.rmk: Likewise.
36062 * conf/x86_64-efi.rmk: Likewise.
36063 * conf/i386-coreboot.rmk: Likewise.
36064 * conf/i386-ieee1275.rmk: Likewise.
36065
0ea85a37 360662008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
36067
36068 Based on patch created by Colin D Bennett <colin@gibibit.com>.
36069 Adds optimization support for BGR based modes.
36070
36071 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
36072 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36073 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36074 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36075 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36076 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36077 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36078 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36079 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36080 (grub_video_i386_vbeblit_index_index): Likewise.
36081 (grub_video_i386_vbeblit_replace_directN): Added.
36082 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36083 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36084 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36085 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36086 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36087 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 36088 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 36089 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36090 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36091 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36092 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36093 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36094 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
36095
36096 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
36097 (grub_video_i386_vbefill_R8G8B8): Likewise.
36098 (grub_video_i386_vbefill_index): Likewise.
36099 (grub_video_i386_vbefill_direct32): Added.
36100 (grub_video_i386_vbefill_direct24): Likewise.
36101 (grub_video_i386_vbefill_direct16): Likewise.
36102 (grub_video_i386_vbefill_direct8): Likewise.
36103
81a06771 36104 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 36105 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
36106 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
36107 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
36108 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
36109 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 36110
0ea85a37 36111 * video/video.c (grub_video_get_blit_format): Updated to use new
36112 blit formats. Added handling for 16 bit color modes.
81a06771 36113
36114 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 36115 fillers.
36116 (common_blitter): Updated to use new blitters.
36117
36118 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
36119 Removed.
36120 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
36121 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
36122 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
36123 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
36124 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
36125 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
36126 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
36127 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
36128 (grub_video_i386_vbeblit_index_index): Likewise.
36129 (grub_video_i386_vbeblit_replace_directN): Added.
36130 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
36131 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
36132 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
36133 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
36134 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
36135 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
36136 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
36137 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
36138 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
36139 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
36140 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
36141 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
36142 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 36143
0ea85a37 36144 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
36145 (grub_video_i386_vbefill_R8G8B8): Likewise.
36146 (grub_video_i386_vbefill_index): Likewise.
36147 (grub_video_i386_vbefill_direct32): Added.
36148 (grub_video_i386_vbefill_direct24): Likewise.
36149 (grub_video_i386_vbefill_direct16): Likewise.
36150 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 36151
0ea85a37 36152 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
36153 types.
81a06771 36154
0ea85a37 36155 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
36156 types.
81a06771 36157
0ea85a37 36158 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
36159 blitter types.
81a06771 36160
0ea85a37 36161 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
36162 types.
36163
e8a83df6 361642008-09-06 Felix Zielcke <fzielcke@z-51.de>
36165
36166 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
36167 RAID level 1.
36168
6bcd8ee5 361692008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 36170
6bcd8ee5 36171 * fs/iso9660.c (grub_iso9660_date): New structure.
36172 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
36173 (grub_iso9660_uuid): New function.
c375ae58 36174
59261157 361752008-09-05 Bean <bean123ch@gmail.com>
36176
36177 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
36178
36179 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
36180 insensitive bit for names in Win32 and Win32 & DOS namespace.
36181
36182 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
36183
36184 * include/grub/types.h (LONG_MAX): Likewise.
36185
58b6645a 361862008-09-04 Felix Zielcke <fzielcke@z-51.de>
36187
4ee55921 36188 * util/getroot.c: Include <config.h>.
36189 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
36190 add support for /dev/md/N devices and handle LVM double dash escaping.
36191
361922008-09-04 Felix Zielcke <fzielcke@z-51.de>
36193
36194 * config.guess: Update to latest version from config git.
36195 * config.sub: Likewise.
58b6645a 36196
9124f65d 361972008-09-03 Robert Millan <rmh@aybabtu.com>
36198
36199 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
36200 `disk->total_sectors'.
36201
81a06771 362022008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 36203
36204 * include/grub/normal.h: Fixed incorrect comment for
36205 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
36206
81a06771 362072008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 36208
36209 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
36210 values with defines.
36211
36212 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
36213 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
36214 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
36215 (GRUB_VBE_MODEATTR_COLOR): Likewise.
36216 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
36217 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
36218 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
36219 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
36220 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
36221 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
36222 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
36223 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
36224 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
36225 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
36226 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
36227 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
36228 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
36229 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
36230 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
36231
93d5cbf8 362322008-08-31 Robert Millan <rmh@aybabtu.com>
36233
36234 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
36235 declaration.
36236 (grub_multiboot): Fix a few warnings.
36237
21751d50 362382008-08-31 Robert Millan <rmh@aybabtu.com>
36239
36240 * loader/i386/pc/multiboot.c: Update comment not to say that
36241 boot_device support is unimplemented.
36242
e27a75c5 362432008-08-31 Robert Millan <rmh@aybabtu.com>
36244
36245 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
36246 or memory map support are unimplemented.
36247
81a06771 362482008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 36249
36250 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
36251
81a06771 362522008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 36253
36254 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
36255 total video memory in 'vbeinfo' output; show color format details for
36256 each video mode.
36257
7c5d8d95 362582008-08-30 Pavel Roskin <proski@gnu.org>
36259
36260 * util/genmoddep.c: Remove for real this time.
36261 * DISTLIST: Remove util/genmoddep.c.
36262
4cebd25a 362632008-08-30 Robert Millan <rmh@aybabtu.com>
36264
36265 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
36266 as required by Multiboot spec (it was already 4-byte aligned, but
36267 only by chance).
36268
b497a269 362692008-08-29 Pavel Roskin <proski@gnu.org>
36270
e3925185 36271 * kern/powerpc/ieee1275/crt0.S: Rename to ...
36272 * kern/powerpc/ieee1275/startup.S: ... this.
36273 * conf/powerpc-ieee1275.rmk: Adjust for the above.
36274 * DISTLIST: Likewise.
36275
b497a269 36276 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
36277 grub/cpu/kernel.h. Add start label for consistency with other
36278 platforms. Add grub_prefix immediately after start. Add jump
36279 to the code after grub_prefix.
36280 * include/grub/powerpc/kernel.h: Provide valid values for
36281 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
36282
6e5a42fe 362832008-08-29 Bean <bean123ch@gmail.com>
36284
36285 * configure.ac: Change host_os to cygwin for mingw.
36286 (asprintf): New check for function.
36287
36288 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
36289 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
36290
36291 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 36292 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 36293 sync, sleep and grub_util_get_disk_size for mingw.
36294
36295 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
36296 to get size in mingw.
36297 (open_device): Use flag O_BINARY if it's defined.
36298 (find_root_device): Add dummy code for mingw.
36299
36300 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
36301 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
36302 (get_scsi_disk_name): Return 0 for mingw.
36303
36304 * util/hostfs.c: #include <grub/util/misc.h>.
36305 (grub_hostfs_open): Use "rb" flag to open file, use
36306 grub_util_get_disk_size to get disk size for mingw.
36307
36308 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
36309 (asprintf): New function if HAVE_ASPRINTF is not set.
36310 (sync): New function for mingw.
36311 (sleep): Likewise.
36312 (grub_util_get_disk_size): Likewise.
36313
ab3f2673 363142008-08-28 Pavel Roskin <proski@gnu.org>
36315
36316 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36317 kern/time.c.
36318
1c282483 363192008-08-28 Robert Millan <rmh@aybabtu.com>
36320
36321 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
36322
678e849c 363232008-08-28 Robert Millan <rmh@aybabtu.com>
36324
36325 Change find_grub_drive() syntax so it doesn't prevent it from
36326 detecting NULL names as errors.
36327
36328 * util/biosdisk.c (find_grub_drive): Move free slot search code
36329 from here ...
36330 (find_free_slot): ... to here.
36331 (read_device_map): Use find_free_slot() to search for free slots.
36332
965c75ca 363332008-08-27 Marco Gerards <marco@gnu.org>
36334
36335 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
36336 (scsi_mod_SOURCES): New variable.
36337 (scsi_mod_CFLAGS): Likewise
36338 (scsi_mod_LDFLAGS): Likewise.
36339
36340 * disk/scsi.c: New file.
36341
36342 * include/grub/scsi.h: Likewise.
36343
36344 * include/grub/scsicmd.h: Likewise.
36345
36346 * disk/ata.c: Include <grub/scsi.h>.
36347 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
36348 instead.
36349 (grub_ata_iterate): Skip ATAPI devices.
36350 (grub_ata_open): Only handle ATAPI devices.
36351 (struct grub_atapi_read): Removed.
36352 (grub_atapi_readsector): Likewise.
36353 (grub_ata_read): No longer handle ATAPI devices.
36354 (grub_ata_write): Likewise.
36355 (grub_atapi_iterate): New function.
36356 (grub_atapi_read): Likewise.
36357 (grub_atapi_write): Likewise.
36358 (grub_atapi_open): Likewise.
36359 (grub_atapi_close): Likewise.
36360 (grub_atapi_dev): New variable.
36361 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
36362 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
36363
36364 * include/grub/disk.h (enum grub_disk_dev_id): Add
36365 `GRUB_DISK_DEVICE_SCSI_ID'.
36366
c07ae501 363672008-08-26 Robert Millan <rmh@aybabtu.com>
36368
36369 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
36370 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
36371 descriptive.
36372
5ed20adc 363732008-08-23 Bean <bean123ch@gmail.com>
36374
36375 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
36376 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36377 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
36378 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
36379 dm_nv.mod.
36380 (raid5rec_mod_SOURCES): New macro.
36381 (raid5rec_mod_CFLAGS): Likewise.
36382 (raid5rec_mod_LDFLAGS): Likewise.
36383 (raid6rec_mod_SOURCES): Likewise.
36384 (raid6rec_mod_CFLAGS): Likewise.
36385 (raid6rec_mod_LDFLAGS): Likewise.
36386 (mdraid_mod_SOURCES): Likewise.
36387 (mdraid_mod_CFLAGS): Likewise.
36388 (mdraid_mod_LDFLAGS): Likewise.
36389 (dm_nv_mod_SOURCES): Likewise.
36390 (dm_nv_mod_CFLAGS): Likewise.
36391 (dm_nv_mod_LDFLAGS): Likewise.
36392
36393 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
36394 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
36395 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36396
36397 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
36398 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
36399
36400 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36401
36402 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36403
36404 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36405
36406 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36407
36408 * disk/raid5_recover.c: New file.
36409
36410 * disk/raid6_recover.c: Likewise.
36411
36412 * disk/mdraid_linux.c: Likewise.
36413
36414 * disk/dmraid_nvidia.c: Likewise.
36415
36416 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
36417 ULONG_MAX.
36418
36419 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
36420 calculate the size of raid device.
36421 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
36422 different layout of raid5.
36423 (grub_raid_scan_device): Remove code specific to mdraid.
36424 (grub_raid_list): New variable.
36425 (free_array): New function.
36426 (grub_raid_register): Likewise.
36427 (grub_raid_unregister): Likewise.
36428 (grub_raid_rescan): Likewise.
36429 (GRUB_MOD_INIT): Don't iterate device here.
36430 (GRUB_MOD_FINI): Use free_array to release resource.
36431
36432 * include/grub/raid.h: Remove macro and structure specific to mdraid.
36433 (grub_raid5_recover_func_t): New function variable type.
36434 (grub_raid6_recover_func_t): Likewise.
36435 (grub_raid5_recover_func): New variable.
36436 (grub_raid6_recover_func): Likewise.
36437 (grub_raid_register): New function.
36438 (grub_raid_unregister): Likewise.
36439 (grub_raid_rescan): Likewise.
36440 (grub_raid_block_xor): Likewise.
36441
36442 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
36443 (CMD_CRC): New macro.
36444 (part): Removed.
36445 (read_file): Handle device as well as file.
36446 (cmd_crc): New function.
36447 (fstest): Handle multiple disks.
36448 (options): Remove part, raw and long, add root and diskcount.
36449 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 36450 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 36451 add handling for the new options, support multiple disks.
36452
36453 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
36454
29c18915 364552008-08-23 Bean <bean123ch@gmail.com>
36456
36457 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
36458
36459 * genfslist.sh: Ignore kernel.mod.
36460
36461 * genpartmaplist.sh: Likewise.
36462
8415f261 364632008-08-23 Robert Millan <rmh@aybabtu.com>
36464
36465 * util/getroot.c (find_root_device): Skip anything that starts with
36466 a dot, not just directories. This avoids things like /dev/.tmp.md0.
36467
d5a7dc5b 364682008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 36469
d5a7dc5b 36470 * util/update-grub.in (GRUB_GFXMODE): Export variable.
36471 * util/grub.d/00_header.in: Allow the administrator to change default
36472 gfxmode via ${GRUB_GFXMODE}.
36473
380cfbb4 364742008-08-21 Felix Zielcke <fzielcke@z-51.de>
36475
36476 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
36477
c9baafe7 364782008-08-21 Robert Millan <rmh@aybabtu.com>
36479
36480 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
36481 loader.
36482 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
36483 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
36484
e290bef2 364852008-08-20 Carles Pina i Estany <carles@pina.cat>
36486
36487 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
36488 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
36489
f9dbfc96 364902008-08-19 Robert Millan <rmh@aybabtu.com>
36491
36492 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
36493 (struct grub_virtual_screen): Remove `cursor_color'.
36494 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
36495 initialization.
36496 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
36497
dd6bd6ab 364982008-08-18 Robert Millan <rmh@aybabtu.com>
36499
36500 Unify (identical) linux_normal.c files.
36501 * loader/i386/efi/linux_normal.c: Move from here ...
36502 * loader/linux_normal.c: ... to here. Update all users.
36503 * loader/i386/pc/linux_normal.c: Delete. Update all users.
36504 * loader/i386/ieee1275/linux_normal.c: Likewise.
36505
7f42f83e 365062008-08-18 Robert Millan <rmh@aybabtu.com>
36507
36508 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
36509 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
36510 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
36511 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
36512 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
36513 New macros.
36514 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
36515 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
36516 (GRUB_LINUX_CL_END_OFFSET): ... to here.
36517 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
36518 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
36519 (GRUB_EFI_CL_END_OFFSET): Rename to ...
36520 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
36521 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
36522 Initialize `params->video_cursor_x' and `params->video_cursor_y'
36523 portably using grub_getxy().
36524 Replace `-EFI' with `-bzImage' in boot message.
36525
38487ddb 365262008-08-17 Robert Millan <rmh@aybabtu.com>
36527
36528 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
36529
deceb3ec 365302008-08-17 Robert Millan <rmh@aybabtu.com>
36531
36532 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
36533
36534 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
36535 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
36536 (grub_machine_mmap_iterate): New function declaration.
36537 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
36538 structure.
36539 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
36540 macros.
36541
36542 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
36543 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
36544 Move e820 parsing from here ...
36545 * kern/i386/pc/mmap.c: New file.
36546 (grub_machine_mmap_iterate): ... to here.
36547
36548 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
36549 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
36550 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
36551 (grub_available_iterate): Redeclare to return `void', and redeclare
36552 its hook to use grub_uint64_t as addr and size parameters, and rename
36553 to ...
36554 (grub_machine_mmap_iterate): ... this. Update all users.
36555
36556 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
36557 to make it more readable. Rename to ...
36558 (grub_machine_mmap_iterate): ... this.
36559
36560 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
36561 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
36562 (grub_multiboot): Allocate an extra region after the payload, and fill
36563 it with a Multiboot memory map. Adjust a.out loader to calculate size
36564 with the extra space.
36565 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
36566 with the extra space.
36567
f8aa0f43 365682008-08-17 Carles Pina i Estany <carles@pina.cat>
36569
9807deb9 36570 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 36571
605f5bb6 365722008-08-17 Felix Zielcke <fzielcke@z-51.de>
36573
36574 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
36575 mdate-sh to the list `find' searches for.
36576 * DISTLIST: Regenerated.
36577
210db6c6 365782008-08-16 Felix Zielcke <fzielcke@z-51.de>
36579
36580 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
36581 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 36582 genmoddep.awk, gensymlist.sh.in.
36583 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 36584 * DISTLIST: Regenerated.
48cdbfd4 36585 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 36586
1082b929 365872008-08-16 Robert Millan <rmh@aybabtu.com>
36588
36589 * disk/raid.c (grub_raid_init): Handle/report errors set by
36590 grub_device_iterate().
36591 * disk/lvm.c (grub_lvm_init): Likewise.
36592
42ce5170 365932008-08-15 Bean <bean123ch@gmail.com>
36594
36595 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36596 and datehook.mod.
36597 (datetime_mod_SOURCES): New macro.
36598 (datetime_mod_CFLAGS): Likewise.
36599 (datetime_mod_LDFLAGS): Likewise.
36600 (date_mod_SOURCES): Likewise.
36601 (date_mod_CFLAGS): Likewise.
36602 (date_mod_LDFLAGS): Likewise.
36603 (datehook_mod_SOURCES): Likewise.
36604 (datehook_mod_CFLAGS): Likewise.
36605 (datehook_mod_LDFLAGS): Likewise.
36606
36607 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36608 and datehook.mod.
36609 (datetime_mod_SOURCES): New macro.
36610 (datetime_mod_CFLAGS): Likewise.
36611 (datetime_mod_LDFLAGS): Likewise.
36612 (date_mod_SOURCES): Likewise.
36613 (date_mod_CFLAGS): Likewise.
36614 (date_mod_LDFLAGS): Likewise.
36615 (datehook_mod_SOURCES): Likewise.
36616 (datehook_mod_CFLAGS): Likewise.
36617 (datehook_mod_LDFLAGS): Likewise.
36618
36619 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36620 and datehook.mod.
36621 (datetime_mod_SOURCES): New macro.
36622 (datetime_mod_CFLAGS): Likewise.
36623 (datetime_mod_LDFLAGS): Likewise.
36624 (date_mod_SOURCES): Likewise.
36625 (date_mod_CFLAGS): Likewise.
36626 (date_mod_LDFLAGS): Likewise.
36627 (datehook_mod_SOURCES): Likewise.
36628 (datehook_mod_CFLAGS): Likewise.
36629 (datehook_mod_LDFLAGS): Likewise.
36630
36631 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36632 and datehook.mod.
36633 (datetime_mod_SOURCES): New macro.
36634 (datetime_mod_CFLAGS): Likewise.
36635 (datetime_mod_LDFLAGS): Likewise.
36636 (date_mod_SOURCES): Likewise.
36637 (date_mod_CFLAGS): Likewise.
36638 (date_mod_LDFLAGS): Likewise.
36639 (datehook_mod_SOURCES): Likewise.
36640 (datehook_mod_CFLAGS): Likewise.
36641 (datehook_mod_LDFLAGS): Likewise.
36642
36643 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
36644 and datehook.mod.
36645 (datetime_mod_SOURCES): New macro.
36646 (datetime_mod_CFLAGS): Likewise.
36647 (datetime_mod_LDFLAGS): Likewise.
36648 (date_mod_SOURCES): Likewise.
36649 (date_mod_CFLAGS): Likewise.
36650 (date_mod_LDFLAGS): Likewise.
36651 (datehook_mod_SOURCES): Likewise.
36652 (datehook_mod_CFLAGS): Likewise.
36653 (datehook_mod_LDFLAGS): Likewise.
36654
36655 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
36656
36657 * commands/date.c: New file.
36658
36659 * hook/datehook.c: Likewise.
36660
36661 * include/grub/lib/datetime.h: Likewise.
36662
36663 * include/grub/i386/cmos.h: Likewise.
36664
36665 * lib/datetime.c: Likewise.
36666
36667 * lib/i386/datetime.c: Likewise.
36668
36669 * lib/efi/datetime.c: Likewise.
36670
0e9242da 366712008-08-14 Robert Millan <rmh@aybabtu.com>
36672
36673 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
36674 (grub_mkelfimage_SOURCES): New variable.
36675 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
36676
36677 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
36678 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
36679 * conf/powerpc-ieee1275.rmk: Likewise.
36680 * conf/i386-ieee1275.rmk: Likewise.
36681
36682 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
36683 * kern/i386/coreboot/init.c: Likewise.
36684
36685 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
36686 with `<grub/cpu/kernel.h>'.
36687 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
36688 to ...
36689 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
36690 * kern/i386/coreboot/startup.S: Likewise.
36691
36692 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
36693 (GRUB_MOD_GAP): Remove.
36694 * include/grub/powerpc/kernel.h: New file.
36695 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
36696 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36697 * include/grub/i386/kernel.h: New file.
36698 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
36699 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
36700 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
36701
36702 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
36703 `grub-mkelfimage'.
36704 Use --directory when invoking grub_mkimage.
36705
36706 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
36707 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
36708 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
36709 and GRUB_KERNEL_CPU_PREFIX.
36710
b86408f8 367112008-08-14 Felix Zielcke <fzielcke@z-51.de>
36712
d5e619ca 36713 * include/grub/err.h (grub_err_printf): New function prototype.
36714 * util/misc.c (grub_err_printf): New function.
36715 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
36716 grub_printf.
36717 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 36718
7161f0e0 367192008-08-13 Robert Millan <rmh@aybabtu.com>
36720
36721 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
36722
a1967522 367232008-08-13 Robert Millan <rmh@aybabtu.com>
36724
36725 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
36726 boot entry.
36727
371458b5 367282008-08-12 Robert Millan <rmh@aybabtu.com>
36729
36730 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
36731 of the relocation code from here ...
36732 (grub_multiboot): ... to here.
36733 (forward_relocator, backward_relocator): Move from here ...
36734 * kern/i386/loader.S (grub_multiboot_forward_relocator)
36735 (grub_multiboot_backward_relocator): ... to here.
36736 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
36737 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
36738 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
36739 (grub_multiboot_forward_relocator_end)
36740 (grub_multiboot_backward_relocator)
36741 (grub_multiboot_backward_relocator_end): New variables.
36742
05f9452b 367432008-08-12 Bean <bean123ch@gmail.com>
36744
36745 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
36746
20024ab0 367472008-08-11 Robert Millan <rmh@aybabtu.com>
36748
36749 * kern/i386/linuxbios/startup.S: Move from here ...
36750 * kern/i386/coreboot/startup.S: ... to here.
36751
36752 * kern/i386/linuxbios/init.c: Move from here ...
36753 * kern/i386/coreboot/init.c: ... to here.
36754
36755 * kern/i386/linuxbios/table.c: Move from here ...
36756 * kern/i386/coreboot/mmap.c: ... to here.
36757
36758 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
36759
e352e9cd 367602008-08-11 Robert Millan <rmh@aybabtu.com>
36761
36762 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
36763 errors. Leave it to the upper layer to handle them.
36764
2d05bc6a 367652008-08-09 Christian Franke <franke@computer.org>
36766
36767 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
36768 * conf/common.rmk: Install `grub-pe2elf' only if requested.
36769 Install `grub.d/10_windows' only on Cygwin.
36770 * configure.ac: Add subst of `target_os'.
36771 Check `target_os' also before setting TARGET_OBJ2ELF.
36772 Add `--enable-grub-pe2elf'.
36773
042bd419 367742008-08-08 Robert Millan <rmh@aybabtu.com>
36775
36776 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36777 (grub_last_time): Change type to grub_uint64_t.
36778 (grub_disk_open): Migrate code from to using grub_get_time_ms().
36779 (grub_disk_close): Likewise.
36780
36781 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
36782 (run_menu): Migrate code from to using grub_get_time_ms().
36783
36784 * util/misc.c (grub_get_time_ms): New function.
36785
7f280db5 367862008-08-08 Marco Gerards <marco@gnu.org>
36787
36788 * disk/ata.c (grub_ata_regget): Change return type to
36789 `grub_uint8_t'.
36790 (grub_ata_regget2): Likewise.
36791 (grub_ata_wait_status): New function.
36792 (grub_ata_wait_busy): Removed function, updated all users to use
36793 `grub_ata_wait_status'.
36794 (grub_ata_wait_drq): Likewise.
36795 (grub_ata_cmd): New function.
36796 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
36797 error handling.
36798 (grub_ata_pio_write): Add error handling.
36799 (grub_atapi_identify): Likewise.
36800 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
36801 handling.
36802 (grub_ata_identify): Use `grub_ata_cmd' and improve error
36803 handling. Actually use the detected registers. Reorder the
36804 detection logic such that it is easier to read.
36805 (grub_ata_pciinit): Do not assign the same ID to each controller.
36806 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
36807 handling.
36808 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
36809
36810 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
36811
1fbc5e66 368122008-08-08 Marco Gerards <marco@gnu.org>
36813
36814 * NEWS: Update.
36815
819ce6c0 368162008-08-07 Bean <bean123ch@gmail.com>
36817
36818 * include/grub/x86_64/pci.h: New file.
36819
5c41d44d 368202008-08-07 Christian Franke <franke@computer.org>
36821
36822 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36823 (TIMER2_GATE): Likewise.
36824 (grub_pit_wait): Add enable/disable of the timer2 gate
36825 bit of port 0x61. This fixes a possible infinite loop.
36826
5ebc275d 368272008-08-07 Bean <bean123ch@gmail.com>
36828
36829 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36830 kern/i386/tsc.c and kern/i386/pit.c.
36831
36832 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36833 x86_64 platform.
36834
36835 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36836 <grub/i386/tsc.h>.
36837
36838 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36839
e383b3d0 368402008-08-07 Bean <bean123ch@gmail.com>
36841
36842 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36843
36844 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36845
36846 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36847 multiple inclusion. Add #include <grub/types.h>.
36848
1cbb58ac 368492008-08-06 Christian Franke <franke@computer.org>
36850
36851 * conf/common.rmk: Build and install `10_windows'.
36852 * util/grub.d/10_windows.in: New script.
36853
337f5a1e 368542008-08-06 Pavel Roskin <proski@gnu.org>
36855
36856 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36857
057bc4ac 368582008-08-06 Robert Millan <rmh@aybabtu.com>
36859
36860 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36861 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36862
2b99f123 368632008-08-06 Bean <bean123ch@gmail.com>
36864
36865 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36866 (grub_pxefs_fs_int): Remove dummy definition.
36867 (grub_pxefs_open): Use data->block_size to store the current block
36868 size setting.
36869 (grub_pxefs_read): Use block size stored in data->block_size. As the
36870 value of grub_pxe_blksize can be changed after the file is opened.
36871
9f0234cb 368722008-08-06 Bean <bean123ch@gmail.com>
36873
36874 * fs/i386/pc/pxe.c (curr_file): new variable.
36875 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36876 require the dummy internal file system anymore.
36877 (grub_pxefs_read): Removed.
36878 (grub_pxefs_close): Likewise.
36879 (grub_pxefs_fs_int): Likewise.
36880 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36881 connection when we switch file.
36882 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36883
a55d42e0 368842008-08-06 Robert Millan <rmh@aybabtu.com>
36885
36886 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36887 `halt.mod'.
36888 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36889 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36890
36891 * kern/i386/halt.c: New file.
36892 * kern/i386/reboot.c: Likewise.
36893 * include/grub/i386/reboot.h: Likewise.
36894 * include/grub/i386/halt.h: Likewise.
36895
36896 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36897 Include `<grub/cpu/halt.h>'.
36898 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36899 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36900
36901 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36902 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36903 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36904 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36905 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36906 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36907 from here ...
36908 * include/grub/i386/at_keyboard.h: ... to here.
36909
24371d26 369102008-08-05 Robert Millan <rmh@aybabtu.com>
36911
36912 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36913 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36914 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36915 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36916 `kern/generic/millisleep.c'.
36917
36918 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36919 instead of grub_get_rtc().
36920 (grub_tsc_init): Initialize `tsc_boot_time'.
36921
36922 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36923 (grub_machine_init): Use grub_tsc_init() rather than
36924 installing an RTC-based handler via grub_install_get_time_ms().
36925
36926 * kern/i386/pit.c: New file.
36927 * include/grub/i386/pit.h: Likewise.
36928
9e7007b3 369292008-08-05 Bean <bean123ch@gmail.com>
36930
36931 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36932
36933 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36934 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36935 (pxe_mod_SOURCES): New macro.
36936 (pxe_mod_CFLAGS): Likewise.
36937 (pxe_mod_LDFLAGS): Likewise.
36938 (pxecmd_mod_SOURCES): Likewise.
36939 (pxecmd_mod_CFLAGS): Likewise.
36940 (pxecmd_mod_LDFLAGS): Likewise.
36941
36942 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36943 (grub_pxe_call): Likewise.
36944
36945 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36946
36947 * commands/i386/pc/pxecmd.c: New file.
36948
9f0234cb 36949 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 36950
36951 * include/grub/i386/pc/pxe.h: Likewise.
36952
6977d49f 369532008-08-05 Bean <bean123ch@gmail.com>
36954
36955 * util/console.c (grub_console_cur_color): New variable.
36956 (grub_console_standard_color): Likewise.
36957 (grub_console_normal_color): Likewise.
36958 (grub_console_highlight_color): Likewise.
36959 (color_map): Likewise.
36960 (use_color): Likewise.
36961 (NUM_COLORS): New macro.
36962 (grub_ncurses_setcolorstate): Handle color properly.
36963 (grub_ncurses_setcolor): Don't change color here, just remember the
36964 settings, color will be set in grub_ncurses_setcolorstate.
36965 (grub_ncurses_getcolor): New function.
36966 (grub_ncurses_init): Initialize color pairs.
36967 (grub_ncurses_term): New member grub_ncurses_getcolor.
36968
9c2ff3ee 369692008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 36970
9c2ff3ee 36971 High resolution timer support. Implemented for x86 CPUs using TSC.
36972 Extracted generic grub_millisleep() so it's linked in only as needed.
36973 This requires a Pentium compatible CPU; if the RDTSC instruction is
36974 not supported, then it falls back on the generic grub_get_time_ms()
36975 implementation that uses the machine's RTC.
36976
36977 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36978 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36979 `kern/generic/millisleep.c'.
36980
36981 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36982 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36983
36984 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36985 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36986
36987 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36988
36989 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36990 `kern/generic/millisleep.c'.
36991
36992 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36993
36994 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36995
36996 * kern/generic/rtc_get_time_ms.c: New file.
36997
36998 * kern/generic/millisleep.c: New file.
337f5a1e 36999
9c2ff3ee 37000 * kern/misc.c: Don't include
37001 <kern/time.h> anymore.
37002 (grub_millisleep_generic): Removed.
37003
37004 * commands/sleep.c (grub_interruptible_millisleep): Uses
37005 grub_get_time_ms() instead of grub_get_rtc().
37006
37007 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
37008 function.
37009 (grub_cpu_is_cpuid_supported): New inline function.
37010 (grub_cpu_is_tsc_supported): New inline function.
37011 (grub_tsc_init): New function prototype.
37012 (grub_tsc_get_time_ms): New function prototype.
37013
37014 * kern/i386/tsc.c (grub_get_time_ms): New file.
37015
37016 * include/grub/time.h: Include <grub/types.h.
37017 (grub_millisleep_generic): Removed.
37018 (grub_get_time_ms): New prototype.
37019 (grub_install_get_time_ms): New prototype.
37020 (grub_rtc_get_time_ms): New prototype.
37021
37022 * kern/time.c (grub_get_time_ms): New function.
37023 (grub_install_get_time_ms): New function.
37024
37025 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
37026 <grub/time.h> anymore.
37027 (grub_millisleep): Removed.
37028 (grub_machine_init): Call grub_tsc_init.
37029
37030 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
37031 get_time_ms() implementation.
37032
37033 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
37034 (ieee1275_get_time_ms): New function.
37035 (grub_machine_init): Install get_time_ms() implementation.
37036
37037 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
37038 (grub_machine_init): Call grub_tsc_init().
37039 (grub_millisleep): Removed.
bf06a93f 37040
9c2ff3ee 37041 * kern/ieee1275/init.c (grub_millisleep): Removed.
37042 (grub_machine_init): Install ieee1275_get_time_ms()
37043 implementation.
37044 (ieee1275_get_time_ms): New function.
37045 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
37046 real work.
37047
9ec92aaf 370482008-08-05 Marco Gerards <marco@gnu.org>
37049
37050 * disk/ata.c: Include <grub/pci.h>.
37051 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
37052 (grub_ata_initialize): Rewritten.
37053 (grub_ata_device_initialize): New function.
37054
8d23f507 370552008-08-04 Pavel Roskin <proski@gnu.org>
37056
37057 * kern/main.c: Include grub/mm.h.
37058
5e15ee3d 370592008-08-04 Robert Millan <rmh@aybabtu.com>
37060
37061 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
37062 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
37063 corruption problem).
37064
a9053f8f 370652008-08-04 Robert Millan <rmh@aybabtu.com>
37066
37067 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
37068 warnings introduced in my last commit.
37069
dd19c7d7 370702008-08-03 Robert Millan <rmh@aybabtu.com>
37071
37072 Make PCI available on all i386 architectures.
37073
37074 * include/grub/i386/pc/pci.h: Move from here ...
37075 * include/grub/i386/pci.h: ... to here.
37076
37077 * include/grub/i386/pc/pci.h: Remove.
37078 * include/grub/i386/efi/pci.h: Remove.
37079 * include/grub/x86_64/efi/pci.h: Remove.
37080
37081 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
37082 `<grub/cpu/pci.h>'.
37083
37084 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
37085 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
37086 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
37087
37088 * conf/i386-ieee1275.rmk: Likewise.
37089
e14a6184 370902008-08-03 Robert Millan <rmh@aybabtu.com>
37091
37092 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
37093 (grub_console_setcursor): Make it possible to set cursor off.
37094
52768e37 370952008-08-03 Robert Millan <rmh@aybabtu.com>
37096
37097 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
37098 of modules instead of assuming which platform provides what.
37099 * util/update-grub.in: Likewise.
37100
2d52f57f 371012008-08-03 Robert Millan <rmh@aybabtu.com>
37102
37103 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
37104 instead of `grub_install_dos_part' to determine whether a drive needs
37105 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 37106 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 37107
2a5cd121 371082008-08-02 Robert Millan <rmh@aybabtu.com>
37109
37110 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
37111
93808428 371122008-08-02 Robert Millan <rmh@aybabtu.com>
37113
37114 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
37115 of informational grub_dprintf() calls.
37116
3bd0a12a 371172008-08-02 Robert Millan <rmh@aybabtu.com>
37118
37119 * disk/memdisk.c (memdisk_size): Don't initialize.
37120 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
37121
37122 * include/grub/i386/pc/kernel.h
37123 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
37124 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
37125 (grub_memdisk_image_size, grub_arch_memdisk_addr)
37126 (grub_arch_memdisk_size): Remove.
37127
37128 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
37129 field (was only used to transfer a constant). Add `type' field to
37130 support multiple module types.
37131 (grub_module_iterate): New function.
37132
37133 * kern/device.c (grub_device_open): Do not hide error messages
37134 when grub_disk_open() fails. Use grub_print_error() instead.
37135
37136 * kern/i386/pc/init.c (grub_arch_modules_addr)
37137 (grub_arch_memdisk_size): Remove functions.
37138 (grub_arch_modules_addr): Return the module address in high memory
37139 (now that it isn't copied anymore).
37140
37141 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
37142 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
37143 decompression routine (grub_total_module_size already includes that
37144 now). Don't copy modules back to low memory.
37145
37146 * kern/main.c: Include `<grub/mm.h>'.
37147 (grub_load_modules): Split out (and use) ...
37148 (grub_module_iterate): ... this function, which iterates through
37149 module objects and runs a hook.
37150 Comment out grub_mm_init_region() call, as it would cause non-ELF
37151 modules to be overwritten.
37152
37153 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
37154 the memdisk image in its own region, make it part of the module list.
37155 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
37156 (main): Parse --memdisk|-m option, and pass user-provided path as
37157 parameter to generate_image().
37158 (add_segments): Pass `memdisk_path' down to load_modules().
37159 (load_modules): Embed memdisk image in module section when requested.
37160 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
37161 `header.type' instead of `header.offset'.
37162
37163 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
37164 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
37165 (memdisk_mod_LDFLAGS): New variables.
37166 * conf/i386-coreboot.rmk: Likewise.
37167 * conf/i386-ieee1275.rmk: Likewise.
37168
a927cc73 371692008-08-02 Robert Millan <rmh@aybabtu.com>
37170
37171 * loader/i386/pc/multiboot.c (playground, forward_relocator)
37172 (backward_relocator): New variables. Used to allocate and relocate
37173 the payload, respectively.
37174 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 37175 address, install the appropriate relocator code in each bound of
a927cc73 37176 the payload, and set the entry point such that
37177 grub_multiboot_real_boot() will jump to one of them.
37178
37179 * kern/i386/loader.S (grub_multiboot_payload_size)
37180 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37181 (grub_multiboot_payload_entry_offset): New variables.
37182 (grub_multiboot_real_boot): Set cpu context to what the relocator
37183 expects, and jump to the relocator instead of the payload.
37184
37185 * include/grub/i386/loader.h (grub_multiboot_payload_size)
37186 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
37187 (grub_multiboot_payload_entry_offset): Export.
37188
b15d8a0c 371892008-08-01 Bean <bean123ch@gmail.com>
37190
37191 * normal/menu_entry.c (editor_getline): Don't return the original
37192 string as result, as it will be released by lexer once it has done
37193 using it.
37194
cdfb3d22 371952008-08-01 Robert Millan <rmh@aybabtu.com>
37196
37197 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
37198 within menuentries, not before them.
37199 util/grub.d/10_hurd.in: Likewise.
37200
9175e93d 372012008-08-01 Bean <bean123ch@gmail.com>
37202
37203 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
37204 (bufio_mod_SOURCES): New macro.
37205 (bufio_mod_CFLAGS): Likewise.
37206 (bufio_mod_LDFLAGS): Likewise.
37207
37208 * include/grub/bufio.h: New file.
37209
37210 * io/bufio.c: Likewise.
37211
37212 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
37213 (grub_video_reader_png): Use grub_buffile_open to open file.
37214
37215 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
37216 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
37217
37218 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
37219 (grub_video_reader_tga): Use grub_buffile_open to open file.
37220
37221 * font/manager.c: Include <grub/bufio.h>.
37222 (add_font): Use grub_buffile_open to open file.
37223
3d8383e7 372242008-07-31 Robert Millan <rmh@aybabtu.com>
37225
37226 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
37227 ELF segments, use a macro for arbitrarily accessing any of them instead
37228 of preparing a pointer that allows access to one at a time.
37229 (grub_multiboot_load_elf64): Likewise.
37230
16e641b6 372312008-07-31 Bean <bean123ch@gmail.com>
37232
37233 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
37234 GRUB_KERNEL_MACHINE_DATA_END.
37235
59198b72 372362008-07-30 Robert Millan <rmh@aybabtu.com>
37237
37238 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
37239 Increase from 0x50 to 0x60.
37240 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
37241 use UUIDs to identify the root drive for them. If that's not
37242 possible, abort.
37243 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
37244 check, for cross-disk installs.
37245
ae88bca3 372462008-07-30 Robert Millan <rmh@aybabtu.com>
37247
37248 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
37249 is non-empty, use it to set the `prefix' environment variable instead
37250 of the usual approach.
37251 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
37252 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
37253 environment variable instead of dummy make_install_device().
37254
37255 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
37256 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 37257 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 37258
37259 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
37260 New variable reference.
37261 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
37262 New macro. Defines offset of `grub_prefix' within startup.S (relative
37263 to `start').
37264 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
37265 section within startup.S (relative to `start').
37266 * include/grub/i386/coreboot/kernel.h: Likewise.
37267
37268 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
37269 Overwrite grub_prefix with its contents, at the beginning of the
37270 first segment.
37271 (main): Understand -p|--prefix.
37272
14f41dd1 372732008-07-30 Robert Millan <rmh@aybabtu.com>
37274
37275 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
37276
4ca049a3 372772008-07-30 Robert Millan <rmh@aybabtu.com>
37278
37279 * term/i386/pc/vga_text.c (grub_console_cls): Use
37280 grub_console_gotoxy() to go back to beginning of the screen.
37281 Found by Patrick Georgi <patrick.georgi@coresystems.de>
37282
2921d337 372832008-07-29 Christian Franke <franke@computer.org>
37284
37285 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37286 Add conversion of emulated mount points on Cygwin.
37287
b609876d 372882008-07-29 Christian Franke <franke@computer.org>
37289
37290 * util/update-grub.in: Add a check for admin
37291 group on Cygwin.
37292 Remove old `grub.cfg.new' before creation.
37293 Add `-f' to `mv' to handle the different filesystem
37294 semantics of Windows.
37295
e93e4679 372962008-07-29 Bean <bean123ch@gmail.com>
37297
37298 * normal/main.c (get_line): Fix buffer overflow bug.
37299
41694fd0 373002008-07-28 Robert Millan <rmh@aybabtu.com>
37301
37302 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
37303 (struct grub_apple_header): New struct. Describes the layout of
37304 the partmap header.
37305 (apple_partition_map_iterate): Check the header magic as well as the
37306 partition magic (which was already being checked).
37307
cfd0b4e6 373082008-07-28 Pavel Roskin <proski@gnu.org>
37309
37310 * genmk.rb: Add a warning to the beginning of the output that
37311 it's a generated file and should not be edited.
37312
93cce016 373132008-07-28 Robert Millan <rmh@aybabtu.com>
37314
37315 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37316 with the same number are found, just use issue a warning with
37317 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 37318
cd1df915 373192008-07-27 Robert Millan <rmh@aybabtu.com>
37320
37321 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
37322 information.
37323
b70a8427 373242008-07-27 Bean <bean123ch@gmail.com>
37325
37326 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
37327 (grub_fat_find_dir): Ignore case when comparing filename.
37328
8f5e379f 373292008-07-27 Bean <bean123ch@gmail.com>
37330
37331 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
37332 smallino, as it's more descriptive, and i8count can be confused with
37333 the other field count.
37334 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
37335 inode type.
37336
a85cd5a0 373372008-07-27 Bean <bean123ch@gmail.com>
37338
37339 * commands/crc.c: New file.
37340
37341 * lib/crc.c: Likewise.
37342
37343 * include/grub/lib/crc.h: Likewise.
37344
37345 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
37346
37347 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
37348 (hexdump): Move this function to ...
37349
37350 * lib/hexdump.c: ... here.
37351
37352 * include/grub/hexdump.h: Renamed to ...
37353
37354 * include/grub/lib/hexdump.h: ... this.
37355
37356 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
37357
37358 * util/grub-editenv.c: Likewise.
37359
37360 * include/envblk.h: Renamed to ...
37361
37362 * include/lib/envblk.h: ... this.
37363
37364 * util/envblk.c: Renamed to ...
37365
37366 * lib/envblk.c: ... this.
37367
37368 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
37369 lib/hexdump.c.
37370 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
37371 (pkglib_MODULES): Add crc.mod.
37372 (hexdump_mod_SOURCES): Add lib/hexdump.c.
37373 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
37374 (crc_mod_SOURCES): New macro.
37375 (crc_mod_CFLAGS): Likewise.
37376 (crc_mod_LDFLAGS): Likewise.
37377
37378 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
37379
37380 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37381
37382 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37383
37384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37385
37386 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37387
c298def0 373882008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 37389
37390 * commands/help.c: Include <grub/term.h>.
37391 (TERM_WIDTH): Removed. Updated all users.
37392
cc349fb3 373932008-07-27 Pavel Roskin <proski@gnu.org>
37394
37395 * util/getroot.c (find_root_device): Rephrase a comment to avoid
37396 spurious warnings about a comment within a comment.
37397
9051607e 373982008-07-25 Robert Millan <rmh@aybabtu.com>
37399
37400 * util/getroot.c (find_root_device): Skip devices that match
37401 /dev/dm-[0-9]. This lets the real device be found for any type of
37402 abstraction (LVM, EVMS, RAID..).
37403 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
37404 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
37405 device is found first, find_root_device() will now skip it.
37406
01453bfc 374072008-07-24 Pavel Roskin <proski@gnu.org>
37408
37409 * include/grub/types.h: Use __builtin_bswap32() and
37410 __builtin_bswap64() with gcc 4.3 and newer.
37411
6af9849f 374122008-07-24 Christian Franke <franke@computer.org>
37413
3a0fa256 37414 * util/i386/pc/grub-install.in: If `--debug' is specified,
37415 pass `--verbose' to grub-setup.
37416 Abort script if make_system_path_relative_to_its_root() fails.
37417
7810e747 374182008-07-24 Bean <bean123ch@gmail.com>
37419
37420 * configure.ac: Fixed a bug caused by the previous cygwin patch,
37421 variable `target_platform' should be `platform'.
37422
42290e17 374232008-07-24 Bean <bean123ch@gmail.com>
37424
51cc5193 37425 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 37426 (grub_png_init_fixed_block): New function.
37427 (grub_png_decode_image_data): Handle fixed huffman code compression.
37428
2a8a80e4 374292008-07-24 Bean <bean123ch@gmail.com>
37430
37431 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
37432 (grub_pe2elf_SOURCES): New macro.
37433 (CLEANFILES): Add grub-pe2elf.
37434
37435 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
37436 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
37437 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
37438 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
37439 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
37440 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
37441 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
37442 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
37443 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
37444 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
37445 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
37446 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
37447 (GRUB_PE32_DT_FUNCTION): Likewise.
37448 (GRUB_PE32_REL_I386_DIR32): Likewise.
37449 (GRUB_PE32_REL_I386_REL32): Likewise.
37450 (grub_pe32_symbol): New structure.
37451 (grub_pe32_reloc): Likewise.
37452
37453 * util/grub-pe2elf.c: New file.
37454
37455 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
37456 start symbol in non pc platform.
37457
37458 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
37459
37460 The following patches are from Christian Franke.
37461
37462 * include/grub/dl.h: Remove .previous, gas supports this only
37463 for ELF format.
37464
37465 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
37466 Remove .type, gas supports this only for ELF format.
37467
37468 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
37469 nullbytes in symbol table. This fixes an infinite loop if table is
37470 zero filled.
37471
37472 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
37473 TARGET_IMG_LDFLAGS and EXEEXT.
37474
37475 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
37476 TARGET_IMG_LDFLAGS_AC.
37477 (grub_CHECK_STACK_ARG_PROBE): New function.
37478
37479 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
37480
37481 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
37482
37483 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
37484 to set TARGET_IMG_LD* accordingly.
37485 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
37486 Add call to grub_CHECK_STACK_ARG_PROBE.
37487 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
37488
37489 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
37490
37491 * genmk.rb: Add EXEEXT to CLEANFILES.
37492
12ccdb75 374932008-07-23 Robert Millan <rmh@aybabtu.com>
37494
37495 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
37496 define the codes for arrows and lines used for the menu).
37497 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
37498 as well.
37499
37500 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
37501 fonts, because the latter are too slow.
37502
18eeaf04 375032008-07-21 Bean <bean123ch@gmail.com>
37504
37505 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
37506 a20. Run keyboard test last, as it will cause macbook to halt.
37507
b095e2ad 375082008-07-18 Pavel Roskin <proski@gnu.org>
37509
37510 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
37511 load foreign architecture modules correctly anyway. Keep
37512 support for loading host architecture modules, whether we
37513 compile them or not.
37514
737feb35 375152008-07-17 Pavel Roskin <proski@gnu.org>
37516
3f4ce737 37517 * configure.ac: Use -m32 or -m64 regardless of whether we had to
37518 change target_cpu. The compiler default can mismatch target_cpu
37519 in any case.
37520
4ad2d049 37521 * disk/efi/efidisk.c: Fix format warnings on x86_64.
37522 * kern/efi/efi.c: Likewise.
37523
f6130a12 37524 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
37525 target compiler is functional.
37526 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
37527 are set up.
37528
58393a2d 37529 * configure.ac: Default to efi platform for x86_64-apple. Allow
37530 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
37531 adjustments from the rest, only do them if target is not
37532 explicitly given. Merge other adjustments with the final sanity
37533 check. Remove an extraneous check for supported CPU. Be
37534 specific which CPU and which platform is not supported.
37535
737feb35 37536 * configure.ac: Default to pc platform for x86_64.
37537
546f966a 375382008-07-17 Robert Millan <rmh@aybabtu.com>
37539
37540 Partial LinuxBIOS -> Coreboot rename.
37541
37542 * conf/i386-linuxbios.rmk: Renamed to ...
37543 * conf/i386-coreboot.rmk: ... this.
37544 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
37545 * configure.ac: Accept "coreboot" as input platform (but maintain
37546 compatibility with "linuxbios").
37547 * include/grub/i386/linuxbios: Renamed to ...
37548 * include/grub/i386/coreboot: ... this.
37549
20011694 375502008-07-17 Bean <bean123ch@gmail.com>
37551
37552 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 37553 (appleldr_mod_SOURCE): New variable.
20011694 37554 (appleldr_mod_CFLAGS): Likewise.
37555 (appleldr_mod_LDFLAGS): Likewise.
37556 (pci_mod_SOURCES): Likewise.
37557 (pci_mod_CFLAGS): Likewise.
37558 (pci_mod_LDFLAGS): Likewise.
37559 (lspci_mod_SOURCES): Likewise.
37560 (lspci_mod_CFLAGS): Likewise.
37561 (lspci_mod_LDFLAGS): Likewise.
37562
37563 * conf/x86_64-efi.rmk: New file.
37564
37565 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
37566 macro.
37567 (grub_efidisk_write): Likewise.
37568
37569 * include/efi/api.h (efi_call_0): New macro.
37570 (efi_call_1): Likewise.
37571 (efi_call_2): Likewise.
37572 (efi_call_3): Likewise.
37573 (efi_call_4): Likewise.
37574 (efi_call_5): Likewise.
37575 (efi_call_6): Likewise.
37576
37577 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
37578 grub_rescue_cmd_chainloader.
37579
37580 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
37581 (grub_pe32_optional_header): Change some fields based on i386 or
37582 x86_64 platform.
37583 (GRUB_PE32_PE32_MAGIC): Likewise.
37584
37585 * include/grub/efi/uga_draw.h: New file.
37586
37587 * include/grub/elf.h (STN_ABS): New constant.
37588 (R_X86_64_NONE): Relocation constant for x86_64.
37589 (R_X86_64_64): Likewise.
37590 (R_X86_64_PC32): Likewise.
37591 (R_X86_64_GOT32): Likewise.
37592 (R_X86_64_PLT32): Likewise.
37593 (R_X86_64_COPY): Likewise.
37594 (R_X86_64_GLOB_DAT): Likewise.
37595 (R_X86_64_JUMP_SLOT): Likewise.
37596 (R_X86_64_RELATIVE): Likewise.
37597 (R_X86_64_GOTPCREL): Likewise.
37598 (R_X86_64_32): Likewise.
37599 (R_X86_64_32S): Likewise.
37600 (R_X86_64_16): Likewise.
37601 (R_X86_64_PC16): Likewise.
37602 (R_X86_64_8): Likewise.
37603 (R_X86_64_PC8): Likewise.
37604
37605 * include/grub/i386/efi/pci.h: New file.
37606
37607 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
37608 Change it value based on platform.
37609 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
37610 (GRUB_E820_RAM): Likewise.
37611 (GRUB_E820_RESERVED): Likewise.
37612 (GRUB_E820_ACPI): Likewise.
37613 (GRUB_E820_NVS): Likewise.
37614 (GRUB_E820_EXEC_CODE): Likewise.
37615 (GRUB_E820_MAX_ENTRY): Likewise.
37616 (grub_e820_mmap): New structure.
37617 (linux_kernel_header): Change the efi field according to different
37618 kernel version, also field from linux_kernel_header.
37619
37620 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
37621
37622 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
37623 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
37624 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
37625 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
37626 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
37627 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
37628 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
37629 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
37630 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
37631 (GRUB_PCI_ADDR_IO_MASK): Likewise.
37632
37633 * include/grub/x86_64/efi/kernel.h: New file.
37634
37635 * include/grub/x86_64/efi/loader.h: Likewise.
37636
37637 * include/grub/x86_64/efi/machine.h: Likewise.
37638
37639 * include/grub/x86_64/efi/pci.h: Likewise.
37640
37641 * include/grub/x86_64/efi/time.h: Likewise.
37642
37643 * include/grub/x86_64/linux.h: Likewise.
37644
37645 * include/grub/x86_64/setjmp.h: Likewise.
37646
37647 * include/grub/x86_64/time.h: Likewise.
37648
37649 * include/grub/x86_64/types.h: Likewise.
37650
37651 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
37652 GRUB_TARGET_SIZEOF_VOID_P.
37653
37654 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
37655 (grub_efi_locate_handle): Likewise.
37656 (grub_efi_open_protocol): Likewise.
37657 (grub_efi_set_text_mode): Likewise.
37658 (grub_efi_stall): Likewise.
37659 (grub_exit): Likewise.
37660 (grub_reboot): Likewise.
37661 (grub_halt): Likewise.
37662 (grub_efi_exit_boot_services): Likewise.
37663 (grub_get_rtc): Likewise.
37664
37665 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
37666 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
37667 (grub_efi_allocate_pages): Wrap efi calls.
37668 (grub_efi_free_pages): Wrap efi calls.
37669 (grub_efi_get_memory_map): Wrap efi calls.
37670
37671 * kern/x86_64/dl.c: New file.
37672
37673 * kern/x86_64/efi/callwrap.S: Likewise.
37674
37675 * kern/x86_64/efi/startup.S: Likewise.
37676
37677 * loader/efi/appleloader.c: Likewise.
37678
37679 * loader/efi/chainloader.c (cmdline): New variable.
37680 (grub_chainloader_unload): Wrap efi calls.
37681 (grub_chainloader_boot): Likewise.
37682 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
37683 command line.
37684
37685 * loader/efi/chainloader_normal.c (chainloader_command):
37686 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
37687 command line.
37688
37689 * loader/i386/efi/linux.c (allocate_pages): Change allocation
37690 method.
37691 (grub_e820_add_region): New function.
37692 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
37693 booting.
37694 (grub_find_video_card): New function.
37695 (grub_linux_setup_video): New function.
37696 (grub_rescue_cmd_linux): Probe for video information.
37697
37698 * normal/x86_64/setjmp.S: New file.
37699
37700 * term/efi/console.c (map_char): New function.
37701 (grub_console_putchar): Map unicode char.
37702 (grub_console_checkkey): Wrap efi calls.
37703 (grub_console_getkey): Likewise.
37704 (grub_console_getwh): Likewise.
37705 (grub_console_gotoxy): Likewise.
37706 (grub_console_cls): Likewise.
37707 (grub_console_setcolorstate): Likewise.
37708 (grub_console_setcursor): Likewise.
37709
37710 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
37711
59652a20 377122008-07-16 Pavel Roskin <proski@gnu.org>
37713
ef294055 37714 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
37715 format strings.
37716
59652a20 37717 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
37718 pointer, not an integer. This fixes a warning and prevents
37719 precision loss on 64-bit systems.
37720 (relocate_addresses): Remove unneeded cast.
37721
afc3b5d7 377222008-07-15 Pavel Roskin <proski@gnu.org>
37723
506b2b3e 37724 * kern/i386/ieee1275/init.c: Include grub/cache.h.
37725
62ead89c 37726 * term/ieee1275/ofconsole.c: Disable code unused on i386.
37727
c4cd51d7 37728 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
37729 Fix comparison between signed and unsigned.
37730
0d3d8f28 37731 * include/grub/i386/ieee1275/console.h: Declare
37732 grub_console_init() and grub_console_fini().
37733
8804b286 37734 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
37735 It's empty and unused.
37736
ee01cf35 37737 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
37738 beginning to avoid warnings with some compilers.
37739
afc3b5d7 37740 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
37741 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
37742
e4e8eaa5 377432008-07-14 Pavel Roskin <proski@gnu.org>
37744
407aceb4 37745 * kern/env.c (grub_register_variable_hook): Don't copy empty
37746 string, it leaks memory. Pass "" to grub_env_set(), it should
37747 handle constant strings.
37748
e4e8eaa5 37749 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
37750 * commands/cmp.c (grub_cmd_cmp): Likewise.
37751 * kern/dl.c (grub_dl_flush_cache): Likewise.
37752 (grub_dl_load_core): Likewise.
37753 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
37754 (grub_elf64_load_phdrs): Likewise.
37755
d4e2dad3 377562008-07-13 Pavel Roskin <proski@gnu.org>
37757
37758 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
37759 between signed and unsigned.
37760 (LzmaEnc_Finish): Fix warning about an unused parameter.
37761
aa24b516 377622008-07-13 Bean <bean123ch@gmail.com>
37763
37764 * Makefile.in (enable_lzo): New rule.
37765
37766 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
37767
37768 * configure.ac (ENABLE_LZO): New option --enable-lzo.
37769
37770 * boot/i386/pc/lnxboot.S: #include <config.h>.
37771
37772 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 37773 its value according to the compression algorithm used, lzo or lzma.
aa24b516 37774
37775 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
37776 compression algorithm according to configure macro.
37777
37778 * kern/i386/pc/startup.S (codestart): Likewise.
37779
37780 * kern/i386/pc/lzma_decode.S: New file.
37781
37782 * include/grub/lib/LzFind.h: Likewise.
37783
37784 * include/grub/lib/LzHash.h: Likewise.
37785
37786 * include/grub/lib/LzmaDec.h: Likewise.
37787
37788 * include/grub/lib/LzmaEnc.h: Likewise.
37789
37790 * include/grub/lib/LzmaTypes.h: Likewise.
37791
37792 * lib/LzFind.c: Likewise.
37793
37794 * lib/LzmaDec.c: Likewise.
37795
37796 * lib/LzmaEnc.c: Likewise.
37797
4ae821ac 377982008-07-13 Bean <bean123ch@gmail.com>
37799
37800 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
37801 (grub_ext4_extent_header): New structure.
37802 (grub_ext4_extent): Likewise.
37803 (grub_ext4_extent_idx): Likewise.
37804 (grub_ext4_find_leaf): New function.
37805 (grub_ext2_read_block): Handle extents.
37806
9a745147 378072008-07-12 Robert Millan <rmh@aybabtu.com>
37808
37809 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
37810
d49a4cf6 378112008-07-11 Robert Millan <rmh@aybabtu.com>
37812
37813 * util/grub.d/40_custom.in: New file. Example on how to add custom
37814 entries to /etc/grub.d.
37815 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37816 40_custom (implicitly, by merging all the grub.d rules).
37817
947414b4 378182008-07-11 Pavel Roskin <proski@gnu.org>
37819
0059cf6f 37820 * commands/read.c (grub_getline): Fix invalid memory access.
37821 Don't add newline to the variable value.
37822
947414b4 37823 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37824 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37825 (serial_hw_get_port): Check validity of the port number.
37826 (grub_cmd_serial): Check return value of serial_hw_get_port().
37827
62a02d00 378282008-07-07 Pavel Roskin <proski@gnu.org>
37829
37830 * boot/i386/pc/diskboot.S (notification_string): Replace
37831 "Loading kernel" with just "loading". This is shorter, less
37832 confusing and saves a few bytes for possible future changes.
37833
3e5581b0 378342008-07-05 Pavel Roskin <proski@gnu.org>
37835
ea387a48 37836 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37837 size for ATAPI devices, they are undefined. Output sector
37838 number in decimal form.
37839
3e5581b0 37840 * disk/ata.c: Use named constants for status bits.
37841
fdecb8fd 378422008-07-04 Pavel Roskin <proski@gnu.org>
37843
bcd35b90 37844 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37845 grub_addr_t before casting it to the void pointer to fix a
37846 warning. Non-addressable regions are discarded earlier.
37847 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37848 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37849 (check_signature): Don't shadow table_header.
37850 (grub_linuxbios_table_iterate): Cast numeric constants to
37851 grub_linuxbios_table_header_t.
37852 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37853 grub_stop().
37854
af58ab3d 37855 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37856 prevent warnings.
37857
1759aa57 37858 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37859 pointer, which can cause warnings. Support 64-bit addresses.
37860
fdecb8fd 37861 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37862 of sizeof(long). This fixes PowerPC image generation on x86_64.
37863
8516d2a8 378642008-07-04 Robert Millan <rmh@aybabtu.com>
37865
37866 This fixes a performance issue when pc & gpt partmap iterators
37867 didn't abort iteration even after our hook found what it was
fe987087 37868 looking for (often causing expensive probes of non-existent drives).
8516d2a8 37869
37870 Some callers relied on previous buggy behaviour, since they would
34c44600 37871 raise an error when their own hooks caused early abortion of its
8516d2a8 37872 iteration.
37873
37874 * kern/device.c (grub_device_open): Improve error message.
37875 * disk/lvm.c (grub_lvm_open): Likewise.
37876 * disk/raid.c (grub_raid_open): Likewise.
37877
37878 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37879 when hook requests it, independently of grub_errno.
37880 (pc_partition_map_probe): Do not fail when find_func() caused
37881 early abortion of pc_partition_map_iterate().
37882
37883 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37884 when hook requests it, independently of grub_errno.
37885 (gpt_partition_map_probe): Do not fail when find_func() caused
37886 early abortion of gpt_partition_map_iterate().
37887
37888 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37889 when hook requests it, independently of grub_errno. Do not fail when
37890 part_map_iterate_hook() caused early abortion of p->iterate().
37891
37892 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37893 when grub_partition_iterate() returned with non-zero.
37894
277d0de9 378952008-07-03 Pavel Roskin <proski@gnu.org>
37896
37897 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37898 like we do in grub_ata_pio_read().
37899 (grub_ata_readwrite): Always write individual sectors. Fix the
37900 sector count for the remainder.
37901 (grub_ata_write): Enable writing to ATA devices. Correctly
37902 report error for ATAPI devices.
37903
d4c9b428 379042008-07-02 Pavel Roskin <proski@gnu.org>
37905
e43fc690 37906 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37907 warning.
37908
f707af42 37909 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37910 for every read sector, we already increment it for the whole
37911 batch. This fixes reading more than 256 sectors at once.
37912
11e16b15 37913 * util/grub-editenv.c (cmd_info): Cast argument to long
37914 explicitly. ptrdiff_t reduces to int on i386.
37915
cbabfdd4 37916 * util/grub-editenv.c (main): Be specific which parameter is
37917 missing.
37918
b8fbce0a 37919 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37920 (memdisk): Make memdisk_orig_addr a pointer.
37921
c9c8e606 37922 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37923 for file offsets, use grub_off_t instead. Fix printf format
37924 warnings.
37925
ca62e598 37926 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37927 there. Real unexpected warnings should not drown in the noise
37928 about known problems.
37929
ce8d1766 37930 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37931 grub_disk_addr_t for memory addresses.
37932
00c7a56a 37933 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37934 explicitly to fix a warning.
37935
08d3ef09 37936 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37937
cb71ba20 37938 * Makefile.in (MODULE_LDFLAGS): New variable.
37939 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37940 the linker accepts --build-id=none.
37941 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37942 MODULE_LDFLAGS.
37943 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37944
d4c9b428 37945 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37946 those in Linux XFS code. Provide a way to access 64-bit parent
37947 inode.
37948 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37949 the end of struct grub_xfs_dir_header.
37950
d4156eee 379512008-07-02 Bean <bean123ch@gmail.com>
37952
37953 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37954 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37955 and GRUB_IEEE1275_FLAG_NO_ANSI.
37956
37957 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37958 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37959 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37960
37961 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37962 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37963
37964 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37965 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37966
37967 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37968 esc sequence on non ANSI terminal.
37969 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37970
37971 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37972 beginning of file.
37973
2270f77b 379742008-07-02 Bean <bean123ch@gmail.com>
37975
37976 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37977 (grub_editenv_SOURCES): New variable.
37978 (pkglib_MODULES): Add loadenv.mod.
37979 (loadenv_mod_SOURCES): New variable.
37980 (loadenv_mod_CFLAGS): Likewise.
37981 (loadenv_mod_LDFLAGS): Likewise.
37982
37983 * include/grub/envblk.h: New file.
37984
37985 * util/envblk.c: New file.
37986
37987 * util/grub-editenv.c: New file.
37988
37989 * commands/loadenv.c: New file.
37990
0e9e51ec 379912008-07-01 Pavel Roskin <proski@gnu.org>
37992
d89b7634 37993 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37994 not unsigned char. This fixes warnings and is consistent with
37995 other tags.
37996
bf1835b1 37997 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37998
8222a04b 37999 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
38000
6a42d99d 38001 * term/tparm.c (analyze): Always set *popcount.
38002
10b159d1 38003 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
38004 cast to fix a warning.
38005
b8789f6c 38006 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
38007 cast to suppress a warning.
38008
29d7e38a 38009 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
38010 grub_fshelp_read_file() expects.
38011
f341f669 38012 * fs/fat.c: Fix UUID calculation on big-endian systems. We
38013 write uuid as a 32-bit value in CPU byte order, so declare and
38014 use it as such.
38015
0e9e51ec 38016 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
38017 long if the format specifier expects it.
38018 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
38019 * partmap/pc.c (pc_partition_map_iterate): Likewise.
38020 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
38021 long to fix a warning.
38022 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
38023 grub_dprintf() arguments to fix warnings.
38024
3aefa857 380252008-06-30 Pavel Roskin <proski@gnu.org>
38026
56c7668b 38027 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
38028 install_bsd_part immediately before core.img is embedded or
38029 modified on disk. This fixes core.img verification if core.img
38030 cannot be embedded.
38031
3aefa857 38032 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
38033 core_path to calculate the blocklist.
38034 Patch from Javier Martín <lordhabbit@gmail.com>
38035
5444088d 380362008-06-29 Robert Millan <rmh@aybabtu.com>
38037
38038 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
38039 block to disk block.
38040 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
38041 Patch from Niels Böhm <bitbucket@arcor.de>
38042
674835c8 380432008-06-29 Robert Millan <rmh@aybabtu.com>
38044
38045 * util/update-grub_lib.in (font_path): Search for fonts in
38046 /boot/grub first, which is more likely to be readable (we aren't
38047 deciding where fonts live, just looking for them).
38048
f527dbc8 380492008-06-26 Pavel Roskin <proski@gnu.org>
38050
6c2d8df6 38051 * util/biosdisk.c (read_device_map): Don't leave dead map
38052 entries for devices failing stat() check.
38053
f527dbc8 38054 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
38055 core_path_dev for the core.img path on the target device.
38056
aebe3d13 380572008-06-26 Robert Millan <rmh@aybabtu.com>
38058
38059 * disk/fs_uuid.c: New file.
38060 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
38061 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
38062 (fs_uuid_mod_LDFLAGS): New variables.
38063 * include/grub/disk.h (grub_disk_dev_id): Add
38064 `GRUB_DISK_DEVICE_UUID_ID'.
38065 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
38066 implement iterate().
38067
37aaf354 380682008-06-26 Robert Millan <rmh@aybabtu.com>
38069
38070 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
38071 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
38072 Linux image includes no initrd.
38073
25ff262a 380742008-06-21 Javier Martín <lordhabbit@gmail.com>
38075
38076 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
38077 call to resolve the core image location that effectively appended the
38078 name twice.
38079
76a2bd44 380802008-06-21 Robert Millan <rmh@aybabtu.com>
38081
38082 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
38083 call from here ...
38084
38085 * util/grub.d/10_hurd.in: ... to here ...
38086 * util/grub.d/10_linux.in: ... and here.
38087
650e1c79 380882008-06-19 Robert Millan <rmh@aybabtu.com>
38089
fe987087 38090 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 38091 after it has been set by grub_machine_set_prefix().
38092
6ce63911 380932008-06-19 Robert Millan <rmh@aybabtu.com>
38094
38095 * commands/search.c (search_label, search_fs_uuid, search_file): Print
38096 search result when not saving to variable, not the other way around.
38097 When saving to variable, abort iteration as soon as a match is found.
38098
73940cec 380992008-06-19 Robert Millan <rmh@aybabtu.com>
38100
38101 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
38102 check for partition that provides /boot/grub. Its logic is flawed,
38103 as it prevents prepare_grub_to_access_device() from being called
38104 multiple times.
38105
3c62a39d 381062008-06-19 Robert Millan <rmh@aybabtu.com>
38107
38108 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
38109 "insmod" command directly when abstraction modules are needed,
fe987087 38110 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 38111 since it had already been processed).
38112
47395a42 381132008-06-19 Pavel Roskin <proski@gnu.org>
38114
38115 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
38116 changed. This is needed in case GRUB_LIBDIR changes.
38117 * conf/i386-ieee1275.rmk: Likewise.
38118 * conf/i386-linuxbios.rmk: Likewise.
38119 * conf/i386-pc.rmk: Likewise.
38120 * conf/powerpc-ieee1275.rmk: Likewise.
38121
a145ac2d 381222008-06-18 Pavel Roskin <proski@gnu.org>
38123
38124 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
38125 kernel_elf_symlist.c to symlist.c for consistency with other
38126 architectures. Update all users.
38127 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
38128
7847c51e 381292008-06-18 Robert Millan <rmh@aybabtu.com>
38130
38131 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
38132 it in prefix.
38133
38134 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
38135 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
38136 a RAID device, run setup() for all members independently on whether
38137 LVM abstraction is being used.
38138 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
38139 If grub-mkimage has set `*install_dos_part == -2', don't override this
38140 value.
38141 Perform *install_dos_part adjustments independently on whether
38142 we're embedding or not.
38143 Clarify error message when image is too big for embedding.
38144 Remove duplicate *install_dos_part stanza.
38145
b23e5644 381462008-06-17 Robert Millan <rmh@aybabtu.com>
38147
38148 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
38149 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
38150 variables.
38151 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
38152 values in grub_ofconsole_normal_color and
38153 grub_ofconsole_highlight_color (they're not directly related to
38154 background and foreground).
38155 (grub_ofconsole_setcolorstate): Extract background and foreground
38156 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
38157
0aac2f79 381582008-06-17 Robert Millan <rmh@aybabtu.com>
38159
38160 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
38161 /boot/grub for the check in last commit, not /boot (they could be
38162 different partitions).
38163
3cca7ef3 381642008-06-16 Robert Millan <rmh@aybabtu.com>
38165
38166 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
38167 asked to setup access for the same partition that provides /boot,
38168 don't bother using UUIDs since our root already has the value we
38169 want.
38170
347396d8 381712008-06-16 Robert Millan <rmh@aybabtu.com>
38172
38173 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
38174 I2O devices.
38175 Patch from Sven Mueller <sven@debian.org>.
38176
991477f8 381772008-06-16 Robert Millan <rmh@aybabtu.com>
38178
38179 * util/update-grub.in: Check for $EUID instead of $UID.
38180 Reported by Vincent Zweije.
38181
d31a32a1 381822008-06-16 Bean <bean123ch@gmail.com>
38183
fe987087 38184 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 38185 (grub_ext2_read_block): Likewise.
38186 (grub_ext2_read_inode): Likewise.
38187 (grub_ext2_mount): Likewise.
38188 (grub_ext2_close): Likewise.
38189 (grub_ext3_get_journal): Removed.
38190
fe987087 38191 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 38192 (grub_reiserfs_read_symlink): Likewise.
38193 (grub_reiserfs_mount): Likewise.
38194 (grub_reiserfs_open): Likewise.
38195 (grub_reiserfs_read): Likewise.
38196 (grub_reiserfs_close): Likewise.
38197 (grub_reiserfs_get_journal): Removed.
38198
38199 * fs/fshelp.c (grub_fshelp_read): Removed.
38200 (grub_fshelp_map_block): Likewise.
38201
38202 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
38203 (grub_fshelp_journal): Likewise.
38204 (grub_fshelp_read): Likewise.
38205 (grub_fshelp_map_block): Likewise.
38206
3540a760 382072008-06-16 Pavel Roskin <proski@gnu.org>
38208
38209 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
38210 floating point anymore.
38211 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
38212
95614c84 382132008-06-15 Pavel Roskin <proski@gnu.org>
38214
38215 * commands/ls.c (grub_ls_list_files): Use integer calculations
38216 for human readable format, avoid floating point use.
38217 * kern/misc.c (grub_ftoa): Remove.
38218 (grub_vsprintf): Remove floating point support.
38219
50465dd6 382202008-06-15 Robert Millan <rmh@aybabtu.com>
38221
fe6b695a 38222 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 38223 devices.
38224 Reported by Max Vozeler.
38225
a9207284 382262008-06-15 Robert Millan <rmh@aybabtu.com>
38227
38228 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
38229 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
38230 skipped later.
38231 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
38232 the beginning of the prefix.
38233
38234 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
38235 It is assumed that if we have a memdisk, grub-mkimage has set
38236 grub_prefix to include the "(memdisk)" drive in it.
38237
a7cbd45a 382382008-06-15 Robert Millan <rmh@aybabtu.com>
38239
38240 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
38241 Initialize keyboard controller after registering the terminal, so that
38242 grub_printf() can be called from grub_keyboard_controller_init().
38243
21cf716a 382442008-06-15 Robert Millan <rmh@aybabtu.com>
38245
38246 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
38247 extent-btree which is written as big endian on disk.
38248 Reported by Alain Greppin <al@chilibi.org>.
38249
23a64d8e 382502008-06-14 Robert Millan <rmh@aybabtu.com>
38251
38252 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
38253 * util/i386/pc/grub-install.in (modules): Likewise.
38254
d687651c 382552008-06-13 Pavel Roskin <proski@gnu.org>
38256
38257 * commands/ls.c (grub_ls_list_files): Fix format warnings.
38258
dfe9ddd4 382592008-06-13 Bean <bean123ch@gmail.com>
38260
38261 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
38262
38263 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
38264
38265 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
38266 to indicate sparse block.
38267
16ae7781 382682008-06-12 Pavel Roskin <proski@gnu.org>
38269
e6d1a308 38270 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
38271 number, grub_fshelp_read() does it for us.
38272
16ae7781 38273 * fs/fshelp.c (grub_fshelp_read): New function. Implement
38274 linear disk read with journal translation.
38275 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
38276 * include/grub/fshelp.h: Declare grub_fshelp_read().
38277
40fd3a2b 382782008-06-09 Pavel Roskin <proski@gnu.org>
38279
38280 * fs/minix.c (grub_minix_mount): Handle error reading
38281 superblock.
38282
f5679726 382832008-06-08 Robert Millan <rmh@aybabtu.com>
38284
38285 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
38286 don't append the RAID prefix afterwards.
38287 Reported by Clint Adams.
38288
ce525529 382892008-06-08 Robert Millan <rmh@aybabtu.com>
38290
38291 Based on description from Pavel:
38292 * kern/disk.c (grub_disk_check_range): Rename to ...
38293 (grub_disk_adjust_range): ... this. Add a comment explaining the
38294 tasks performed by this function.
38295
ad4936a0 382962008-06-08 Robert Millan <rmh@aybabtu.com>
38297
38298 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
38299 `num_serial' (for consistency with other variables).
38300 (struct grub_ntfs_data): Add `uuid' member.
38301 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
38302 (grub_ntfs_uuid): New function.
38303 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
38304
dc20b0f9 383052008-06-07 Pavel Roskin <proski@gnu.org>
38306
38307 * util/biosdisk.c (open_device): Revert last change to the
38308 function, it broke installation. The sector needs to be
38309 different dependent on which device is opened.
38310
c5e3cfba 383112008-06-06 Robert Millan <rmh@aybabtu.com>
38312
38313 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
38314 rest of GRUB, and breakage doesn't happen if its value were modified.
38315
38316 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38317 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
38318 a constant (same value).
38319 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
38320 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
38321
26a1f8c4 383222008-06-06 Robert Millan <rmh@aybabtu.com>
38323
38324 * util/biosdisk.c (open_device): Do not modify sector offset when
38325 accessing a partition. kern/disk.c already handles this for us.
38326
25d6b327 383272008-06-06 Robert Millan <rmh@aybabtu.com>
38328
38329 * util/grub-emu.c (grub_machine_init): Move code in this function from
38330 here ...
38331 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
38332 segfault in case grub_printf() is called).
38333
38334 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
38335 grub_probe. Update all users not to explicitly add it again.
38336 (grub_device): New variable; contains corresponding device for grubdir.
38337 (fs_module, partmap_module, devabstraction_module): Pass
38338 `--device ${grub_device}' to grub_probe to avoid traversing /dev
38339 every time.
38340
9ece62fb 383412008-06-05 Robert Millan <rmh@aybabtu.com>
38342
38343 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
38344 is found, print it (same layout as with labels).
38345
1ad36d37 383462008-06-04 Robert Millan <rmh@aybabtu.com>
38347
38348 * util/biosdisk.c (get_drive): Rename to ...
38349 (find_grub_drive): ... this. Update all users.
38350
38351 (get_os_disk): Rename to ...
38352 (convert_system_partition_to_system_disk): ... this. Update all users.
38353
38354 (find_drive): Rename to ...
38355 (find_system_device): ... this. Update all users.
38356
e6a30859 383572008-06-04 Robert Millan <rmh@aybabtu.com>
38358
38359 * util/biosdisk.c (get_os_disk): Handle IDA devices.
38360 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38361 (make_device_map): Likewise.
38362
00c108a4 383632008-06-01 Robert Millan <rmh@aybabtu.com>
38364
38365 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
38366 before dereferencing it.
38367
38368 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
38369 union with fat12/fat16-specific ones. Add some new fields, including
38370 `num_serial' for both versions.
38371 (struct grub_fat_data): Add `uuid' member.
38372 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
38373 names. Initialize `data->uuid' using `num_serial'.
38374 (grub_fat_uuid): New function.
38375 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
38376
38377 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
38378 (grub_reiserfs_uuid): New function.
38379 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
38380 member.
38381
38382 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
38383 (grub_xfs_uuid): New function.
38384 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
38385
1385c5bb 383862008-06-01 Robert Millan <rmh@aybabtu.com>
38387
38388 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
38389 code that is backward compatible with pre-uuid search command.
38390
c682dfd7 383912008-05-31 Robert Millan <rmh@aybabtu.com>
38392
38393 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
38394 floppies after everything else, to ensure floppy drive isn't accessed
38395 unnecessarily (patch from Bean).
38396
b7db5d47 383972008-05-31 Robert Millan <rmh@aybabtu.com>
38398
38399 * commands/search.c (search_label, search_fs_uuid, search_file): Do
38400 not print device names when we were asked to set a variable.
38401
6e037aa9 384022008-05-31 Robert Millan <rmh@aybabtu.com>
38403
38404 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
38405 using "cursor-on" and "cursor-off" commands (understood at least by
38406 the Open Firmware flavour on OLPC).
38407
41305bc8 384082008-05-31 Michael Gorven <michael@gorven.za.net>
38409
38410 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
38411 on and off sequences.
38412
69ba137e 384132008-05-31 Robert Millan <rmh@aybabtu.com>
38414
38415 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
38416 * util/update-grub.in: Likewise.
38417
520ae21b 384182008-05-30 Pavel Roskin <proski@gnu.org>
38419
38420 * util/biosdisk.c (linux_find_partition): Simplify logic and
38421 make the code more universal. Keep special processing for
38422 devfs, but use a simple rule for all other devices. If the
38423 device ends with a number, append 'p' and the partition number.
38424 Otherwise, append only the partition number.
38425
5786569b 384262008-05-30 Robert Millan <rmh@aybabtu.com>
38427
38428 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
38429 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
38430 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
38431 the `root' parameter to Linux.
38432
51500452 384332008-05-30 Robert Millan <rmh@aybabtu.com>
38434
38435 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
38436 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
38437 --fs_uuid with --fs-uuid.
38438 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
38439 all filesystems support them).
38440
811d3878 384412008-05-30 Robert Millan <rmh@aybabtu.com>
38442
38443 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 38444 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 38445
cab63c95 384462008-05-30 Robert Millan <rmh@aybabtu.com>
38447
38448 * util/grub.d/00_header.in: Remove obsolete comment referencing
38449 convert_system_path_to_grub_path().
38450 * util/update-grub.in: Likewise.
38451 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
38452 (convert_system_path_to_grub_path): Add a warning message explaining
38453 that this function is deprecated. Rely on is_path_readable_by_grub()
38454 for the readability checks.
38455 (font_path): Use is_path_readable_by_grub() for the readability
38456 check rather than convert_system_path_to_grub_path().
38457
972e2f7a 384582008-05-30 Robert Millan <rmh@aybabtu.com>
38459
38460 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
38461 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
38462 converting it first.
38463 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
38464 grub.cfg for access to font file, and afterwards call it again to set
38465 the root device.
38466
62191274 384672008-05-30 Robert Millan <rmh@aybabtu.com>
38468
38469 * commands/search.c (options): Add --fs_uuid option.
38470 (search_fs_uuid): New function.
38471 (grub_cmd_search): Fix --set argument passing.
38472 Use search_fs_uuid() when requested via --fs_uuid.
38473 (grub_search_init): Update help message.
38474 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
38475 and redeclare it as an array of 16-bit words.
38476 (grub_ext2_uuid): New function.
38477 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
38478 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
38479 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
38480 (GRUB_DEVICE_BOOT_UUID): New variables.
38481 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
38482 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
38483 whenever possible.
38484 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
38485 just assume `root' variable has the right value.
38486 * util/grub.d/10_linux.in: Likewise.
38487 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
38488 via PRINT_FS_UUID.
38489 (main): Recognise `-t fs_uuid' argument.
38490
01b73ec8 384912008-05-30 Robert Millan <rmh@aybabtu.com>
38492
38493 * util/biosdisk.c (map): Redefine structure to hold information
38494 about GRUB drive name.
fe6b695a 38495 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 38496 drive names.
38497 (call_hook): Remove.
38498 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
38499 member. Assume drive has partitions.
38500 (grub_util_biosdisk_open): Access device names via `.device' struct
38501 member.
38502 (open_device): Likewise.
38503 (find_drive): Likewise.
38504 (read_device_map): Adjust map[] usage to match the new struct
38505 definition. Don't check for duplicates (still possible, but not cheap
38506 anymore).
38507 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
38508 (make_device_name): Remove assumption of BIOS-like drive names.
38509
22f16596 385102008-05-30 Pavel Roskin <proski@gnu.org>
38511
38512 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
38513 compiling execute.c doesn't need grub_script.tab.h anymore.
38514 (normal/command.c_DEPENDENCIES): Likewise.
38515 (normal/function.c_DEPENDENCIES): Likewise.
38516 * conf/i386-ieee1275.rmk: Likewise.
38517 * conf/i386-linuxbios.rmk: Likewise.
38518 * conf/i386-pc.rmk: Likewise.
38519 * conf/powerpc-ieee1275.rmk: Likewise.
38520 * conf/sparc64-ieee1275.rmk: Likewise.
38521
528ad8f2 385222008-05-29 Pavel Roskin <proski@gnu.org>
38523
d1dff95d 38524 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
38525 when scanning metadata for volume group name.
38526
528ad8f2 38527 * include/grub/script.h: Don't include grub_script.tab.h. It's
38528 a generated file, which may only be included from the files with
38529 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
38530 use union YYSTYPE, as the later allows forward declaration.
38531 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
38532
47248e08 385332008-05-29 Robert Millan <rmh@aybabtu.com>
38534
38535 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
38536 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
38537 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
38538 (grub_console_checkkey): Add grub_dprintf() call to report unknown
38539 scan codes.
38540
ee632529 385412008-05-29 Robert Millan <rmh@aybabtu.com>
38542
38543 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
38544 control key combinations.
38545
eee96e08 385462008-05-29 Robert Millan <rmh@aybabtu.com>
38547
38548 * util/powerpc/ieee1275/grub-install.in: Move from here ...
38549 * util/ieee1275/grub-install.in: ... to here.
38550 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
38551 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
38552 (grub_install_SOURCES): Likewise.
38553
da9a6a94 385542008-05-29 Robert Millan <rmh@aybabtu.com>
38555
38556 * fs/affs.c: Update copyright year.
38557 * fs/ext2.c: Likewise.
38558 * fs/fshelp.c: Likewise.
38559 * fs/hfsplus.c: Likewise.
38560 * fs/ntfs.c: Likewise.
38561 * fs/xfs.c: Likewise.
38562 * include/grub/fshelp.h: Likewise.
38563 * util/grub-mkdevicemap.c: Likewise.
38564
12e65f3a 385652008-05-28 Robert Millan <rmh@aybabtu.com>
38566
38567 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
38568 might need to be fatfs to support some firmware implementations
38569 (e.g. OFW or EFI).
38570
23023641 385712008-05-28 Robert Millan <rmh@aybabtu.com>
38572
38573 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
38574 devices.
38575 * util/grub-mkdevicemap.c (get_mmc_disk_name)
38576 (make_device_map): Likewise.
38577
887d2619 385782008-05-20 Bean <bean123ch@gmail.com>
38579
38580 * fs/fshelp.c (grub_fshelp_map_block): New function.
38581 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
38582 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
38583
38584 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
38585 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
38586 (grub_fshelp_journal): New structure.
38587 (grub_fshelp_map_block): New function prototype.
38588 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
38589 (grub_fshelp_map_block): Likewise.
38590
38591 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
38592 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
38593 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
38594 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
38595 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
38596 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
38597 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
38598 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
38599 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
38600 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
38601 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
38602 (grub_ext2_sblock): New members for journal support.
38603 (grub_ext3_journal_header): New structure.
38604 (grub_ext3_journal_revoke_header): Likewise.
38605 (grub_ext3_journal_block_tag): Likewise.
38606 (grub_ext3_journal_sblock): Likewise.
38607 (grub_fshelp_node): New members logfile and journal.
38608 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
38609 grub_fshelp_map_block to get real block number.
38610 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
38611 number.
38612 (grub_ext2_read_inode): Likewise.
38613 (grub_ext3_get_journal): New function.
38614 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
38615 (grub_ext2_close): Release memory used by journal.
38616
38617 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
38618 (REISERFS_MAGIC_DESC_BLOCK): New macro.
38619 (grub_reiserfs_transaction_header): Renamed to
38620 grub_reiserfs_description_block, replace field data with real_blocks.
38621 (grub_reiserfs_commit_block): New structure.
38622 (grub_reiserfs_data): New member journal.
38623 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
38624 number.
38625 (grub_reiserfs_read_symlink): Likewise.
38626 (grub_reiserfs_iterate_dir): Likewise.
38627 (grub_reiserfs_open): Likewise.
38628 (grub_reiserfs_read): Likewise.
38629 (grub_reiserfs_get_journal): New function.
38630 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
38631 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
38632 using grub_reiserfs_get_journal.
38633 (grub_reiserfs_close): Release memory used by journal.
38634
38635 * fs/affs.c (grub_affs_read_block): Change block type to
38636 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
38637
38638 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
38639
38640 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
38641
38642 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
38643
38644 * fs/udf.c (grub_udf_read_block): Change block type to
38645 grub_disk_addr_t. Use type cast to avoid warning.
38646
38647 * fs/xfs.c (grub_xfs_read_block): Likewise.
38648
b7c6bed5 386492008-05-16 Christian Franke <franke@computer.org>
38650
38651 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
38652 to ensure that break with ESC will always work.
38653 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
38654 Remove ESC from keyboard queue.
38655
eedf167f 386562008-05-16 Christian Franke <franke@computer.org>
38657
38658 * util/biosdisk.c: [__CYGWIN__] Add includes.
38659 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
38660 (get_os_disk): Move variable declarations to OS specific
38661 parts to avoid warning.
38662 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
38663 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
38664 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
38665 Cygwin.
38666 * util/getroot.c: [__CYGWIN__] Add includes.
38667 (strip_extra_slashes): Fix "/" case.
38668 [__CYGWIN__] (get_win32_path): New function.
38669 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
38670 [__CYGWIN__] (find_root_device): Disable.
38671 [__CYGWIN__] (get_bootsec_serial): New function.
38672 [__CYGWIN__] (find_cygwin_root_device): Likewise.
38673 [__linux__] (grub_guess_root_device): Add early returns to simplify
38674 structure.
38675 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
38676 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
38677 check for Linux only.
38678
a079699e 386792008-05-15 Bean <bean123ch@gmail.com>
38680
38681 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
38682 keyboard hang problem in apple's intel mac.
38683
1cf4059a 386842008-05-09 Robert Millan <rmh@aybabtu.com>
38685
38686 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
38687 devices.
38688 * util/grub-mkdevicemap.c (get_virtio_disk_name)
38689 (make_device_map): Likewise.
38690 Reported by Aurelien Jarno <aurel32@debian.org>
38691
ed759390 386922008-05-07 Ian Campbell <ijc@hellion.org.uk>
38693
38694 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
38695 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
38696 (make_device_map): Output entries for xvd type disks.
38697
b56c4eaa 386982008-05-07 Robert Millan <rmh@aybabtu.com>
38699
38700 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
38701 devices.
38702 * util/grub-mkdevicemap.c (get_cciss_disk_name)
38703 (make_device_map): Likewise.
38704 Reported by Roland Dreier <rdreier@cisco.com>
38705
7f8866ed 387062008-05-07 Robert Millan <rmh@aybabtu.com>
38707
38708 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
38709 grub_strstr() call. Correct a few mistakes in failure path handling.
38710
b0346e0f 387112008-05-06 Robert Millan <rmh@aybabtu.com>
38712
38713 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
38714 Do not print a trailing slash (therefore, the root directory is an
38715 empty string).
38716 (convert_system_path_to_grub_path): Do not remove trailing slash
38717 from make_system_path_relative_to_its_root() output.
38718
38719 * util/i386/pc/grub-install.in: Add trailing slash to output from
38720 make_system_path_relative_to_its_root().
38721
6cf12cbd 387222008-05-06 Robert Millan <rmh@aybabtu.com>
38723
38724 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
38725 ensures that output lines aren't intermangled with those sent to
38726 stderr (via grub_util_info()).
38727 * util/grub-probe.c (grub_refresh): Likewise.
38728 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
38729
0fbb3117 387302008-05-05 Christian Franke <franke@computer.org>
38731
38732 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
38733 Add Cygwin device names.
38734 (get_ide_disk_name) [__CYGWIN__]: Likewise.
38735 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
38736 (check_device): Return error instead of success on empty name.
38737 (make_device_map): Move label inside linux specific code to
38738 prevent compiler warning.
38739
8124cdb7 387402008-04-30 Robert Millan <rmh@aybabtu.com>
38741
38742 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
38743 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
38744 first boot option.
38745 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
38746
094c01d0 387472008-04-29 Robert Millan <rmh@aybabtu.com>
38748
38749 * docs/grub.cfg: New file (example GRUB configuration).
38750
f4b1fc02 387512008-04-26 Robert Millan <rmh@aybabtu.com>
38752
329ce2a5 38753 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
38754 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
38755 and `disk/ieee1275/nand.c'.
f4b1fc02 38756
25f16ec1 387572008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 38758
25f16ec1 38759 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
38760 i386-linuxbios.
38761
38762 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
38763 change the buffer size to 4096 for cdrom device.
38764
38765 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
38766 and nand.mod.
38767 (_linux_mod_SOURCES): New variable.
38768 (_linux_mod_CFLAGS): Likewise.
38769 (_linux_mod_LDFLAGS): Likewise.
38770 (linux_mod_SOURCES): Likewise.
38771 (linux_mod_CFLAGS): Likewise.
38772 (linux_mod_LDFLAGS): Likewise.
38773 (nand_mod_SOURCES): Likewise.
38774 (nand_mod_CFLAGS): Likewise.
38775 (nand_mod_LDFLAGS): Likewise.
38776
38777 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
38778 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
38779 type property. (nand device in olpc don't have this property)
38780
38781 * include/grub/disk.h (grub_disk_dev_id): New macro
38782 GRUB_DISK_DEVICE_NAND_ID.
38783
38784 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
38785 function prototype.
38786 (grub_rescue_cmd_initrd): Likewise.
38787
38788 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
38789 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
38790 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 38791
25f16ec1 38792 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
38793 GRUB_MACHINE_IEEE1275 is defined.
38794
38795 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
38796 Use NESTED_FUNC_ATTR attribute on the hook parameter.
38797
38798 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
38799 on nested function heap_init.
38800 (grub_upper_mem): New variable for i386-ieee1275.
38801 (grub_get_extended_memory): New function for i386-ieee1275.
38802 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
38803
38804 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
38805 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
38806 property.
f19dbdb7 38807
25f16ec1 38808 * loader/i386/ieee1275/linux.c: New file.
38809
38810 * loader/i386/ieee1275/linux_normal.c: New file.
38811
38812 * disk/ieee1275/nand.c: New file.
38813
e89d61e9 388142008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38815
38816 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38817 value.
38818 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38819
602566f6 388202008-04-18 Robert Millan <rmh@aybabtu.com>
38821
38822 Restructures early code path on ieee1275 to unify grub_main() as
38823 the first C function that is executed in every platform.
38824
38825 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38826 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38827 cmain().
38828 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38829 * kern/ieee1275/cmain.c (cmain): Rename to ...
38830 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38831 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38832 at the beginning.
38833
57490c2b 388342008-04-18 Robert Millan <rmh@aybabtu.com>
38835
38836 * util/update-grub.in: Fix syntax error when setting
38837 `GRUB_PRELOAD_MODULES'.
38838 Reported by Stephane Chazelas <stephane@artesyncp.com>
38839
1977517d 388402008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38841
38842 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38843 section into account, newer toolchains generate unique build ids
38844 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 38845 we want build ids to be preserved
1977517d 38846 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38847 far from other sections don't cause the raw binary images grow
38848 size
38849
bfb1f1a2 388502008-04-15 Robert Millan <rmh@aybabtu.com>
38851
38852 * disk/lvm.c: Update copyright year.
38853 * kern/misc.c: Likewise.
38854
01979850 388552008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38856
38857 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 38858 there is no memory left for physical volume name.
01979850 38859
0a1150e2 388602008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38861
38862 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38863 volume name mapping to support bigger than 9 character names properly.
38864
82ead3fe 388652008-04-13 Robert Millan <rmh@aybabtu.com>
38866
38867 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38868 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38869
e54a72f5 388702008-04-13 Christian Franke <franke@computer.org>
38871
38872 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38873 to create a floppy emulation boot CD when non emulation mode
38874 does not work.
38875 Enable Joliet CD filesystem extension.
38876
9fe86034 388772008-04-13 Robert Millan <rmh@aybabtu.com>
38878
38879 * kern/misc.c (grub_strncat): Fix off-by-one error.
38880 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38881
38882 * kern/env.c (grub_env_context_close): Clear current context, not
38883 previous one.
38884 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38885
38886 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38887
7ceeee39 388882008-04-13 Robert Millan <rmh@aybabtu.com>
38889
38890 Improve robustness when handling LVM.
38891
38892 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 38893 (and leave `*p' unmodified).
7ceeee39 38894 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38895 through it.
38896 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38897 iterating through it.
38898 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38899 through it.
fe6b695a 38900 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 38901 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38902 Don't assume `vg->pvs != NULL' when iterating through it.
38903
58cd3d85 389042008-04-13 Robert Millan <rmh@aybabtu.com>
38905
38906 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38907 * genmk.rb (partmap): New variable.
38908 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38909 (#{partmap}): New target rule.
38910 * genpartmaplist.sh: New file.
38911 * Makefile.in (pkglib_DATA): Add partmap.lst.
38912 (partmap.lst): New target rule.
38913 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38914 modules (including all partition maps), instead of preloading them.
38915
78b51059 389162007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38917
38918 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38919 `linux-boot-prober' (if installed) to detect other operating
38920 systems which are installed on the computer and add them to
38921 the boot menu.
38922 * conf/common.rmk: Build and install 30_os-prober.
38923
a91627b4 389242008-04-12 Robert Millan <rmh@aybabtu.com>
38925
38926 * kern/powerpc/ieee1275/init.c: Move from here ...
38927 * kern/ieee1275/init.c: ... to here. Update all users.
38928
38929 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38930 * kern/ieee1275/cmain.c: ... to here. Update all users.
38931
38932 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38933 * kern/ieee1275/openfw.c: ... to here. Update all users.
38934
38935 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38936 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38937
322562ea 389382008-04-10 Pavel Roskin <proski@gnu.org>
38939
38940 * configure.ac: Always use "_cv_" in cache variables for
38941 compatibility with Autoconf 2.62.
38942
a02a73c5 389432008-04-07 Robert Millan <rmh@aybabtu.com>
38944
38945 Revert grub/machine/init.h addition by Pavel (since it breaks on
38946 i386-ieee1275 and others):
38947 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38948 * util/powerpc/ieee1275/misc.c: Likewise.
38949
25c024b1 389502008-04-07 Robert Millan <rmh@aybabtu.com>
38951
38952 * util/grub-probe.c (probe): Improve error message.
38953
3cbd2f98 389542008-04-07 Robert Millan <rmh@aybabtu.com>
38955
38956 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38957 (this prevents the presence of a bogus entry from ruining the whole
38958 thing).
38959
87a297bf 389602008-04-06 Pavel Roskin <proski@gnu.org>
38961
36747a62 38962 * util/biosdisk.c: Include grub/util/biosdisk.h.
38963 * util/grub-fstest.c (execute_command): Make static.
38964 * util/grub-mkdevicemap.c (check_device): Likewise.
38965 * util/i386/pc/misc.c: Include grub/machine/init.h.
38966 * util/powerpc/ieee1275/misc.c: Likewise.
38967 * util/lvm.c: Include grub/util/lvm.h.
38968 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38969 grub/cache.h.
38970 * util/raid.c: Include grub/util/raid.h.
38971 (grub_util_getdiskname): Make static.
38972
87a297bf 38973 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38974 grub_hostfs_fini(), as they are called from grub_init_all() and
38975 grub_fini_all() respectively. This fixes an infinite loop in
38976 grub-fstest due to double registration of hostfs.
38977 Reported by Christian Franke <Christian.Franke@t-online.de>
38978
f6ce7629 389792008-04-05 Pavel Roskin <proski@gnu.org>
38980
38981 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38982 all 8 functions. Otherwise, probe function 0 only.
38983
070e49e4 389842008-04-04 Pavel Roskin <proski@gnu.org>
38985
8b088a4c 38986 * commands/lspci.c (grub_lspci_iter): Print the bus number
38987 correctly.
38988
4f657021 38989 * commands/lspci.c (grub_pci_classes): Fix typos.
38990 (grub_lspci_iter): Don't print func twice. Print vendor ID
38991 before device ID, as it's normally done.
38992
070e49e4 38993 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38994 Fix signedness warnings.
38995 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38996 Likewise.
38997 * util/ieee1275/get_disk_name.c: Include config.h so that
38998 _GNU_SOURCE is defined and getline() is declared. Mark an
38999 unused argument as such. Fix a signedness warning.
39000
ba7328dc 390012008-04-02 Pavel Roskin <proski@gnu.org>
39002
26887f22 39003 * genkernsyms.sh.in: Use more robust assignments for CC and
39004 srcdir. Quote srcdir.
39005 * gensymlist.sh.in: Likewise. Assert at the compile time that
39006 the symbol table is not empty.
39007
ba7328dc 39008 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
39009 * fs/cpio.c (grub_cpio_read): Likewise.
39010
0f582c6b 390112008-04-01 Pavel Roskin <proski@gnu.org>
39012
4b6e1995 39013 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
39014 * disk/host.c (grub_host_open): Likewise.
39015 * disk/loopback.c (grub_loopback_open): Likewise.
39016 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
39017 disk->id as in disk/host.c, not a multi-character constant.
39018
828a2768 39019 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
39020 later is obsolete, potentially dangerous and sets a bad example.
39021 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
39022 * util/misc.c (grub_util_get_image_size): Likewise.
39023
2bb4fb47 39024 * disk/loopback.c (options): Improve help for "--partitions".
39025
0f582c6b 39026 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
39027 options to align them with the short options, e.g. "echo -e".
39028
a33224e0 390292008-03-31 Bean <bean123ch@gmail.com>
39030
39031 * video/reader/png.c (grub_png_data): New member is_16bit and
39032 image_data.
39033 (grub_png_decode_image_header): Detect 16 bit png image.
39034 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
39035 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
39036 (grub_video_reader_png): Release memory occupied by image_data.
39037
39038 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
39039 4096 bytes.
39040 (grub_nfs_mount): Skip the test for sector per cluster.
39041
39042 * include/grub/ntfs.h (MAX_SPC): Removed.
39043
86cb4f54 390442008-03-31 Bean <bean123ch@gmail.com>
39045
39046 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
39047 (grub_probe_SOURCES): Add fs/afs.c.
39048 (grub_fstest_SOURCES): Likewise.
39049 (afs_mod_SOURCES): New variable.
39050 (afs_mod_CFLAGS): Likewise.
39051 (afs_mod_LDFLAGS): Likewise.
39052
39053 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
39054 (grub_emu_SOURCES): Likewise.
39055
39056 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39057
39058 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39059
39060 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39061
39062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39063
39064 * fs/afs.c: New file.
39065
17c74c21 390662008-03-30 Pavel Roskin <proski@gnu.org>
39067
4cb68e89 39068 * disk/host.c: Include grub/misc.h to fix a warning.
39069 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
39070 warnings about implicit declarations.
39071
8790bb04 39072 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
39073 variable.
39074 * include/grub/i386/loader.h: Change declaration of
39075 grub_linux_boot() to match what grub_loader_set() expects.
39076 * util/getroot.c (grub_guess_root_device): Return const char* to
39077 fix a warning.
39078 * util/grub-probe.c (probe): Fix a warning about uninitialized
39079 abstraction_name variable.
39080 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
39081 second argument as unused to fix a warning.
39082
9a3f3296 39083 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
39084 missing grub_error() call.
39085
0ecef90d 39086 * util/update-grub_lib.in: Define datarootdir, since Autoconf
39087 2.60 and newer uses it to define datadir.
39088
0bf6d401 39089 * commands/sleep.c: Fix warning about implicit declaration.
39090 * disk/memdisk.c: Likewise.
39091 * loader/aout.c: Likewise.
39092 * loader/i386/bsd_normal.c: Likewise.
39093 * util/grub-probe.c: Likewise.
39094
7cdacf97 39095 * commands/i386/cpuid.c (has_longmode): Make static.
39096 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
39097 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
39098
17c74c21 39099 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
39100 GDT. This is more robust, as %ds can change.
39101 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
39102 calling real_to_prot().
39103 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
39104
80a3e68b 391052008-03-28 Pavel Roskin <proski@gnu.org>
39106
39107 * kern/i386/pc/startup.S: Assert that uncompressed functions
39108 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
39109 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
39110 code, as they push parts of the code (error handlers) beyond
39111 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
39112 code as correctness and size.
39113
77bcd272 391142008-03-28 Pavel Roskin <proski@gnu.org>
39115
39116 * kern/i386/pc/startup.S
39117 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
39118 data block address to the real mode, keep offset minimal. This
39119 works around a bug in AWARD BIOS on old Athlon systems, which
39120 makes CD detection hang.
39121
c5dfd43b 391222008-03-26 Pavel Roskin <proski@gnu.org>
39123
39124 * normal/color.c (grub_parse_color_name_pair): Make `name' a
39125 const.
39126 * include/grub/normal.h: Add grub_parse_color_name_pair()
39127 declaration.
39128
bf962df2 391292008-03-24 Bean <bean123ch@gmail.com>
39130
39131 * disk/i386/pc/biosdisk.c (cd_start): Removed.
39132 (cd_count): Removed.
39133 (cd_drive): New variable.
39134 (grub_biosdisk_get_drive): Don't check for (cdN) device.
39135 (grub_biosdisk_call_hook): Likewise.
39136 (grub_biosdisk_iterate): Change cdrom detection method.
39137 (grub_biosdisk_open): Replace cd_start with cd_drive.
39138 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
39139 detect cdrom device.
39140
39141 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
39142 Removed.
39143 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
39144 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
39145 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
39146 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
39147 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
39148 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
39149 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
39150 (grub_biosdisk_cdrp): New structure.
39151 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
39152
39153 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
39154
39155 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
39156 device.
39157
39158 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
39159 New function.
39160
68e7fc7a 391612008-03-20 Robert Millan <rmh@aybabtu.com>
39162
39163 Remove 2 TiB limit in ata.mod.
39164 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
39165 (grub_ata_dumpinfo): Print sector count with 0x%llx.
39166 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
39167 grub_uint64_t instead of grub_uint32_t.
39168
38ad2cf5 391692008-03-05 Bean <bean123ch@gmail.com>
39170
39171 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
39172 (grub_multiboot): Set boot device.
39173
39174 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
39175
2b89344e 391762008-03-02 Bean <bean123ch@gmail.com>
39177
39178 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
39179 symlink_buffer.
39180
87a95d1f 391812008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
39182
39183 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
39184 texinfo.tex.
39185
39186 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
39187 modified.
39188
39189 * docs/fdl.texi: New file.
f19dbdb7 39190
87a95d1f 39191 * docs/mdate-sh: New file. Copied from gnulib.
39192 * docs/texinfo.tex: Likewise.
39193
39194 * config.guess: Updated from gnulib.
39195 * install-sh: Likewise.
39196
7dc15d8e 391972008-02-28 Robert Millan <rmh@aybabtu.com>
39198
39199 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
39200 (aout_mod_SOURCES): New variable.
39201 (aout_mod_CFLAGS): Likewise.
39202 (aout_mod_LDFLAGS): Likewise.
39203
39204 * conf/i386-ieee1275.rmk: Likewise.
39205
b00ab696 392062008-02-28 Robert Millan <rmh@aybabtu.com>
39207
39208 * util/update-grub.in: Reorganise terminal validity check. Accept
39209 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
39210 Based on suggestion by Franklin PIAT.
39211
79ca2d78 392122008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
39213
39214 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
39215 function.
39216 * util/getroot.c (grub_util_check_block_device): New function that
39217 returns the given argument if it is a block device and returns NULL else.
39218 * util/grub-probe.c (argument_is_device): New variable.
39219 (probe): Promote device_name from a variable to an argument. Receive
39220 device_name from grub_util_check_block_device() if path is NULL and from
39221 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 39222 (options): Introduce new parameter '-d, --device'.
79ca2d78 39223 (main): Add description of the new parameter to the help screen.
39224 Rename path variable to argument. Set argument_is_device if the '-d'
39225 option is given. Pass argument to probe() depending on
39226 argument_is_device.
39227
0d16e571 392282008-02-24 Bean <bean123ch@gmail.com>
39229
39230 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
39231 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
39232 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
39233 (GRUB_ISO9660_VOLDESC_PART): Likewise.
39234 (GRUB_ISO9660_VOLDESC_END): Likewise.
39235 (grub_iso9660_primary_voldesc): New member escape.
39236 (grub_iso9660_data): New member joliet.
39237 (grub_iso9660_convert_string): New function.
39238 (grub_iso9660_mount): Detect joliet extension.
39239 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
39240 (grub_iso9660_iso9660_label): Likewise.
39241
39242 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
39243 (grub_setup_SOURCES): Add fs/udf.c.
39244 (grub_fstest_SOURCES): Likewise.
39245 (udf_mod_SOURCES): New variable.
39246 (udf_mod_CFLAGS): Likewise.
39247 (udf_mod_LDFLAGS): Likewise.
39248
39249 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
39250 (grub_emu_SOURCES): Likewise.
39251
39252 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39253
39254 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39255
39256 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39257
39258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39259
39260 * fs/udf.c: New file.
39261
8a594a17 392622008-02-24 Robert Millan <rmh@aybabtu.com>
39263
39264 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
39265 (normal/lexer.c_DEPENDENCIES): New variables.
39266 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39267 (normal/lexer.c_DEPENDENCIES): Likewise.
39268 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
39269 (normal/lexer.c_DEPENDENCIES): Likewise.
39270 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
39271 (normal/lexer.c_DEPENDENCIES): Likewise.
39272 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39273 (normal/lexer.c_DEPENDENCIES): Likewise.
39274 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
39275 (normal/lexer.c_DEPENDENCIES): Likewise.
39276
2dc33c03 392772008-02-23 Robert Millan <rmh@aybabtu.com>
39278
39279 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
39280 since they were intended to be in hex. This didn't break previously
39281 because of a bug in gpt_partition_map_iterate() (see below).
39282
39283 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
39284 when checking the validity of GPT header.
39285 Remove `partno', since it always provides the same information as `i'.
39286
f6f4cfb0 392872008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
39288
39289 * include/grub/efi/time.h: Fix a wrong comment.
39290
79ff665f 392912008-02-19 Pavel Roskin <proski@gnu.org>
39292
39293 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
39294 message.
39295
d38e24c2 392962008-02-19 Bean <bean123ch@gmail.com>
39297
39298 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
39299 (aout_mod_SOURCES): New variable.
39300 (aout_mod_CFLAGS): Likewise.
39301 (aout_mod_LDFLAGS): Likewise.
39302 (_bsd_mod_SOURCES): New variable.
39303 (_bsd_mod_CFLAGS): Likewise.
39304 (_bsd_mod_LDFLAGS): Likewise.
39305 (bsd_mod_SOURCES): New variable.
39306 (bsd_mod_CFLAGS): Likewise.
39307 (bsd_mod_LDFLAGS): Likewise.
39308
39309 * include/grub/aout.h: New file.
39310
39311 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
39312
39313 * include/grub/i386/bsd.h: New file.
39314
39315 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
39316 to make it public.
39317
39318 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
39319 function is called, so that it's possible to change it inside the hook.
39320 (grub_elf64_load): Likewise.
39321 (grub_elf_file): Don't close the file if elf header is not found.
39322 (grub_elf_close): Close the file if grub_elf_file fails (The new
39323 grub_elf_file won't close it).
39324 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
39325 (grub_elf64_size): Likewise.
39326
39327 * kern/i386/loader.S (grub_unix_real_boot): New function.
39328
39329 * loader/aout.c: New file.
39330
39331 * loader/i386/bsd.c: New file.
39332
39333 * loader/i386/bsd_normal.c: New file.
39334
39335 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
39336
39337 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 39338 can test other formats.
d38e24c2 39339
b93bdb0f 393402008-02-19 Robert Millan <rmh@aybabtu.com>
39341
39342 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
39343 (grub_gpt_partition_type_empty): Redefine with macro from
39344 `<grub/gpt_partition.h>'.
39345 (gpt_partition_map_iterate): Adjust partition type comparison.
39346
39347 Export `entry' as partmap-specific `part.data' struct.
39348 (grub_gpt_header, grub_gpt_partentry): Move from here ...
39349
39350 * include/grub/gpt_partition.h (grub_gpt_header)
39351 (grub_gpt_partentry): ... to here (new file).
39352
39353 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
39354
39355 (grub_gpt_partition_type_bios_boot): New const variable, defined
39356 with macro from `<grub/gpt_partition.h>'.
39357
39358 (setup): Replace `first_start' with `embed_region', which keeps
39359 track of the embed region (and is partmap-agnostic).
39360
39361 Replace find_first_partition_start() with find_usable_region(),
39362 which finds a usable region for embedding using partmap-specific
39363 knowledge (supports PC/MSDOS and GPT).
39364
39365 Fix all assumptions that the embed region start at sector 1, using
39366 `embed_region.start' from now on. Similarly, use `embed_region.end'
39367 rather than `first_start' to calculate available size.
39368
39369 In grub_util_info() message, replace "into after the MBR" with an
39370 indication of the specific sector our embed region starts at.
39371
66cb40f6 393722008-02-19 Robert Millan <rmh@aybabtu.com>
39373
39374 * DISTLIST: Replace `commands/ieee1275/halt.c' and
39375 `commands/ieee1275/reboot.c' with `commands/halt.c' and
39376 `commands/reboot.c'.
39377 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39378 (halt_mod_SOURCES): Likewise.
39379 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
39380 (halt_mod_SOURCES): Likewise.
39381
b7202015 393822008-02-17 Christian Franke <franke@computer.org>
39383
39384 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
39385
32b0fc49 393862008-02-17 Robert Millan <rmh@aybabtu.com>
39387
39388 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39389 set `first_start' to 0 for non-PC/MSDOS partition maps.
39390
aca63502 393912008-02-16 Robert Millan <rmh@aybabtu.com>
39392
39393 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
39394 do not assume partition map is PC/MSDOS before performing checks that
39395 are specific to that layout.
39396
0de8be86 393972008-02-13 Robert Millan <rmh@aybabtu.com>
39398
39399 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
39400 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
39401 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
39402
c3db8364 394032008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
39404
39405 * configure.ac: Only a cosmetic change on the handling of
39406 -fno-stack-protector.
39407
f714229e 394082008-02-12 Alexandre Boeglin <alex@boeglin.org>
39409
c3db8364 39410 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
39411 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
39412 reboot.c.
f714229e 39413 (grub_install_SOURCES): Add halt.mod and reboot.mod.
39414 (halt_mod_SOURCES): New variable.
39415 (halt_mod_CFLAGS): Likewise.
39416 (halt_mod_LDFLAGS): Likewise.
39417 (reboot_mod_SOURCES): Likewise.
39418 (reboot_mod_CFLAGS): Likewise.
39419 (reboot_mod_LDFLAGS): Likewise.
39420
c3db8364 39421 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
39422 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
39423 reboot.c.
f714229e 39424 (halt_mod_SOURCES): Likewise.
39425 (reboot_mod_SOURCES): Likewise.
39426
c3db8364 39427 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
39428 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 39429 (reboot_mod_SOURCES): Likewise.
39430
39431 * commands/i386/pc/reboot.c: merge this file ...
39432
39433 * commands/ieee1275/reboot.c: ... and this file ...
39434
39435 * commands/reboot.c: ... to this file.
c3db8364 39436 Add some precompiler directive to include the correct header for
39437 each machine.
f714229e 39438
39439 * commands/ieee1275/halt.c: move this file ...
39440
39441 * commands/halt.c: ... to here.
c3db8364 39442 Add some precompiler directive to include the correct header for
39443 each machine.
f714229e 39444
39445 * include/grub/efi/efi.h (grub_reboot): New function declaration.
39446 (grub_halt): Likewise.
39447
39448 * kern/efi/efi.c (grub_reboot): New function.
39449 (grub_halt): Likewise.
39450
c74493e0 394512008-02-12 Robert Millan <rmh@aybabtu.com>
39452
39453 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
39454 /dev (like it is done for /dev/mapper). This doesn't provide support
39455 for EVMS, but at least it is now easy to identify the problem when it
39456 arises.
39457
d0db4b04 394582008-02-11 Robert Millan <rmh@aybabtu.com>
39459
39460 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
39461 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
39462 comparing it with -1, not 0.
39463
bf748642 394642008-02-10 Robert Millan <rmh@aybabtu.com>
39465
39466 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
39467 `disk/lvm.c'.
39468 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39469 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
39470
39471 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
39472 `disk/lvm.c' to the end of the list.
39473 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39474 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
39475
b5db202a 394762008-02-10 Robert Millan <rmh@aybabtu.com>
39477
39478 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
39479 grub_print_error() instead. This will let user know why we're entering
39480 rescue mode.
39481 Based on suggestions from Sam Morris.
39482
83abee31 394832008-02-10 Alexandre Boeglin <alex@boeglin.org>
39484
39485 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
39486 on remaining N args, instead of "--" arg N times.
39487
78d5a08b 394882008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
39489
39490 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
39491 (fill_with_default_glyph): Changed to use unknown_glyph for fill
39492 pattern for unknown glyphs.
39493
68807e5f 394942008-02-09 Robert Millan <rmh@aybabtu.com>
39495
39496 * configure.ac: Probe for `help2man'.
39497 * Makefile.in (builddir): New variable.
39498 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
39499 or otherwise add a few flags/options to it.
39500 (install-local): For every executable utility or script that is
39501 installed, invoke $(HELP2MAN) to install a manpage based on --help
39502 output.
39503
39504 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
39505 that it doesn't prevent --help from working in build tree.
39506
39507 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
39508 with `bug-grub@gnu.org'.
39509 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
39510 * util/update-grub.in (usage): New function.
39511 Implement proper argument check, with support for --help and --version
39512 (as well as existing -y).
39513
395142008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 39515
39516 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
39517 avoid overwriting previous output.
39518 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
39519
c1962162 395202008-02-09 Robert Millan <rmh@aybabtu.com>
39521
39522 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
39523 drawing the menu.
39524
3dac2e3f 395252008-02-09 Robert Millan <rmh@aybabtu.com>
39526
39527 * commands/sleep.c: New file.
39528 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
39529 (sleep_mod_SOURCES): New variable.
39530 (sleep_mod_CFLAGS): Likewise.
39531 (sleep_mod_LDFLAGS): Likewise.
39532
7a634e08 395332008-02-09 Robert Millan <rmh@aybabtu.com>
39534
39535 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
39536 situations in which we can deduce the RAID size and the superblock
39537 doesn't match it.
39538
b92f0c18 395392008-02-09 Robert Millan <rmh@aybabtu.com>
39540
39541 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
39542 and return a grub_diskmemberlist_t composed of LVM physical volumes.
39543 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
39544
39545 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
39546 and return a grub_diskmemberlist_t composed of physical array members.
39547 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
39548
39549 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
39550 prototype.
39551 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
39552 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
39553 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
39554
39555 * util/grub-probe.c (probe): Move partmap probing code from here ...
39556 (probe_partmap): ... to here.
39557 (probe): Use probe_partmap() once for the disk we're probing, and
39558 additionally, when such disk contains a memberlist() struct member,
39559 once for each disk that is contained in the structure returned by
39560 memberlist().
39561
91a4bf68 395622008-02-09 Robert Millan <rmh@aybabtu.com>
39563
39564 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
39565 environment variable to 'all' in order to obtain debug output from
39566 non-util/ code.
39567 * util/i386/pc/grub-setup.c (main): Likewise.
39568
a96f9caa 395692008-02-08 Robert Millan <rmh@aybabtu.com>
39570
39571 * disk/raid.c (grub_raid_scan_device): Check for
39572 `array->device[sb.this_disk.number]' rather than for
39573 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 39574 guaranteed to be accessible.
a96f9caa 39575
b37a9222 395762008-02-08 Robert Millan <rmh@aybabtu.com>
39577
39578 * disk/raid.c: Update copyright.
39579 * fs/cpio.c: Likewise.
39580 * include/grub/raid.h: Likewise.
39581 * loader/i386/pc/multiboot.c: Likewise.
39582 * util/hostfs.c: Likewise.
39583
5626aee1 395842008-02-08 Robert Millan <rmh@aybabtu.com>
39585
39586 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
39587 to a grub_disk_t array.
39588 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
39589 `device[x]'.
39590 (grub_raid_scan_device): Replace `device[x].name' accesses with
39591 `device[x]->name'. Simplify initialization of `array->device[x]'.
39592
554f0187 395932008-02-08 Robert Millan <rmh@aybabtu.com>
39594
39595 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
39596 grub_dprintf() calls.
39597 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
39598 error message.
39599
1ec8425d 396002008-02-07 Christian Franke <franke@computer.org>
39601
39602 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
39603 instead of fseek and ftell to support large files.
39604 (grub_hostfs_read): Likewise.
39605
f2156fda 396062008-02-07 Robert Millan <rmh@aybabtu.com>
39607
39608 Patch from Jeroen Dekkers.
39609 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 39610 failure, since successfully reading all array members might not be
f2156fda 39611 required.
39612
9216e0e7 396132008-02-06 Robert Millan <rmh@aybabtu.com>
39614
39615 * util/grub-probe.c (probe): Simplify partmap probing (with the
39616 assumption that the first word up to the underscore equals to
39617 the module name).
39618
b0dfd29a 396192008-02-06 Christian Franke <franke@computer.org>
39620
39621 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
39622 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
39623 last block of a cpio or tar stream.
39624 Check for "TRAILER!!!" instead of any empty data
39625 block to detect last block of a cpio stream.
39626 (grub_cpio_dir): Fix constness of variable np.
39627 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
39628 cpio or tar trailer is detected. This fixes a crash
39629 on open of a non existing file.
39630
c32865bf 396312008-02-05 Bean <bean123ch@gmail.com>
39632
39633 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
39634 address of entry.
39635 (grub_multiboot_load_elf64): Likewise.
39636 (grub_multiboot): Initialize mbi structure.
39637
39638 * util/grub-fstest.c: Don't include unused header file script.h.
39639
fe6b695a 39640 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 39641 of file.
39642 (grub_fstest_SOURCES): Likewise.
39643
409480b7 396442008-02-05 Robert Millan <rmh@aybabtu.com>
39645
39646 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
39647 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
39648 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
39649 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
39650
39651 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
39652 (translation_table): Replace hardcoded values with macros
39653 provided by `<grub/term.h>'.
39654
39655 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
39656 (keyboard_map): Correct/add a few values, with macros provided
39657 by `<grub/term.h>'.
39658 (keyboard_map_shift): Zero values that don't differ from their
39659 `keyboard_map' equivalents.
39660 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
39661 Discard the second scan code that is always sent by Caps lock.
39662 Only use `keyboard_map_shift' when it provides a non-zero value,
39663 otherwise fallback to `keyboard_map'.
39664
99fadbaa 396652008-02-04 Bean <bean123ch@gmail.com>
39666
39667 * Makefile.in (enable_grub_fstest): New variable.
39668
39669 * conf/common.rmk (grub_fstest_init.lst): New rule.
39670 (grub_fstest_init.h): Likewise.
39671 (grub_fstest_init.c): Likewise.
39672 (util/grub-fstest.c_DEPENDENCIES): New variable.
39673 (grub_fstest_SOURCES): Likewise.
39674
39675 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
39676
39677 * util/grub-fstest.c: New file.
39678
bf567c50 396792008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39680
39681 Make grub-setup handle a separate root device.
f19dbdb7 39682
bf567c50 39683 * util/i386/pc/grub-setup.c (setup): Always open the root device,
39684 so that the root device can be compared with the destination
39685 device.
39686 When embedding the core image, if the root and destination devices
39687 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
39688 0xFF.
39689 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 39690
9be6b98b 396912008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39692
39693 Add support for having a grub directory in a different drive. This
39694 is still only the data handling part.
f19dbdb7 39695
9be6b98b 39696 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
39697 (codestart): Save %dh in GRUB_ROOT_DRIVE.
39698 (grub_root_drive): New variable.
39699
39700 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
39701 instead of GRUB_BOOT_DRIVE to construct a device name. Set
39702 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
39703 as it was.
39704
39705 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
39706
39707 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
39708 macro.
39709 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
39710
39711 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
39712 is bogus, because PXE booting does not specify any drive
39713 correctly.
39714
39715 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
39716 am not sure if this is really correct.
39717
39718 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
39719 is always identical to the boot drive when booting from a CD.
39720
39721 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
39722 longer.
39723 (root_drive): New variable.
39724 (real_start): Unconditionally set %dh to ROOT_DRIVE.
39725 (setup_sectors): Push %dx right after popping it, because %dh will
39726 be modified later.
39727 (copy_buffer): Restore %dx.
39728
e0ca0677 397292008-02-03 Robert Millan <rmh@aybabtu.com>
39730
39731 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
39732 use `cdboot.img' for cdrom images.
39733
3b3f6629 397342008-02-03 Robert Millan <rmh@aybabtu.com>
39735
39736 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
39737 only setup gfxterm when `font' command has succeeded.
39738
d42b3672 397392008-02-03 Robert Millan <rmh@aybabtu.com>
39740
39741 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
39742 (grub_rescue_cmd_multiboot_loader)
39743 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
39744
fa370ea6 397452008-02-03 Pavel Roskin <proski@gnu.org>
39746
e0c5dacb 39747 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 39748 %edx and %esi from stack only after grub_gate_a20() is called.
39749 grub_gate_a20() clobbers %edx.
39750
f2a76e1d 397512008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
39752
39753 * configure.ac (AC_INIT): Bumped to 1.96.
39754
39755 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
39756 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
39757 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
39758 video/readers/png.c.
39759
90fd32d1 397602008-02-03 Bean <bean123ch@gmail.com>
9be665dd 39761
39762 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
39763 (cdboot_img_SOURCES): New variable.
39764 (cdboot_img_ASFLAGS): New variable.
39765 (cdboot_img_LDFLAGS): New variable.
39766
39767 * boot/i386/pc/cdboot.S: New file.
39768
39769 * disk/i386/pc/biosdisk.c (cd_start): New variable.
39770 (cd_count): Likewise.
39771 (grub_biosdisk_get_drive): Add support for cd device.
39772 (grub_biosdisk_call_hook): Likewise.
39773 (grub_biosdisk_iterate): Likewise.
39774 (grub_biosdisk_open): Likewise.
39775 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
39776 (grub_biosdisk_rw): Support reading from cd device.
39777 (GRUB_MOD_INIT): Iterate cd devices.
39778
39779 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
39780 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
39781 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
39782
39783 * kern/i386/pc/init.c (make_install_device): Check for cd device.
39784
4020aa53 397852008-02-02 Robert Millan <rmh@aybabtu.com>
39786
39787 * commands/read.c: New file.
39788 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
39789 (read_mod_SOURCES): New variable.
39790 (read_mod_CFLAGS): Likewise.
39791 (read_mod_LDFLAGS): Likewise.
39792
e03a1132 397932008-02-02 Robert Millan <rmh@aybabtu.com>
39794
39795 * normal/main.c (grub_normal_execute): Check for `menu->size' when
39796 determining whether menu has to be displayed.
39797
58c69220 397982008-02-02 Marco Gerards <marco@gnu.org>
39799
39800 * bus/pci.c: New file.
39801
39802 * include/grub/pci.h: Likewise.
39803
39804 * include/grub/i386/pc/pci.h: Likewise.
39805
39806 * commands/lspci.c: Likewise.
39807
39808 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
39809 `lspci.mod'.
39810 (pci_mod_SOURCES): New variable.
39811 (pci_mod_CFLAGS): Likewise.
39812 (pci_mod_LDFLAGS): Likewise.
39813 (lspci_mod_SOURCES): Likewise.
39814 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 39815 (lspci_mod_LDFLAGS): Likewise.
58c69220 39816
c004e1b4 398172008-02-02 Bean <bean123ch@gmail.com>
39818
39819 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39820 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39821
39822 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39823 (grub_xfs_btree_node): New structure.
39824 (grub_xfs_btree_root): New structure.
39825 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39826 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39827 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39828 (GRUB_XFS_EXTENT_SIZE): Likewise.
39829 (grub_xfs_read_block): Support btree format type.
39830 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39831 Use directory block as basic unit.
39832
39833 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39834
39835 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39836 __attribute__ ((__regparm__ (1))).
39837
f95562bf 398382008-02-01 Robert Millan <rmh@aybabtu.com>
39839
39840 Correct a mistake in previous commit.
39841
39842 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39843 top.
39844 (normal/command.c_DEPENDENCIES): New variable.
39845
7d31f41f 398462008-02-01 Robert Millan <rmh@aybabtu.com>
39847
39848 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39849 top.
39850 (normal/command.c_DEPENDENCIES): New variable.
39851 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39852 * conf/i386-ieee1275.rmk: Likewise.
39853 * conf/i386-linuxbios.rmk: Likewise.
39854 * conf/i386-pc.rmk: Likewise.
39855 * conf/sparc64-ieee1275.rmk: Likewise.
39856 * conf/powerpc-ieee1275.rmk: Likewise.
39857 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39858
39859 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39860
60b6be74 398612008-02-01 Robert Millan <rmh@aybabtu.com>
39862
39863 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39864 call at beginning of function.
39865
078522ab 398662008-01-31 Pavel Roskin <proski@gnu.org>
39867
39868 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 39869 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39870 (grub_mkrescue_SOURCES): Likewise.
078522ab 39871 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39872
ccaa8a5f 398732008-01-30 Robert Millan <rmh@aybabtu.com>
39874
39875 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39876 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39877 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39878 (grub_probe_SOURCES): ... to here.
39879
39880 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39881 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39882 * conf/i386-ieee1275.rmk: Likewise.
39883 * conf/i386-linuxbios.rmk: Likewise.
39884 * conf/powerpc-ieee1275.rmk: Likewise.
39885
ae5a9cd7 398862008-01-30 Tristan Gingold <gingold@free.fr>
39887
39888 * kern/rescue.c: Silently accept empty lines.
39889
70bc2ef2 398902008-01-29 Bean <bean123ch@gmail.com>
39891
39892 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39893 (real_code_2): Code cleanup and change comment style.
39894 (move_memory): Avoid using 32-bit address mode.
39895
6a4d50ea 398962008-01-29 Bean <bean123ch@gmail.com>
39897
39898 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39899 (png_mod_SOURCES): New variable.
39900 (png_mod_CFLAGS): Likewise.
39901 (png_mod_LDFLAGS): Likewise.
39902
39903 * video/readers/png.c: New file.
39904
11cc30ac 399052008-01-28 Robert Millan <rmh@aybabtu.com>
39906
39907 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39908 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39909 `ifndef GRUB_MOD_GAP' hack.
39910 * util/elf/grub-mkimage.c (add_segments): Likewise.
39911
3abc589f 399122008-01-27 Robert Millan <rmh@aybabtu.com>
39913
39914 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39915 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 39916 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 39917
e1907778 399182008-01-27 Robert Millan <rmh@aybabtu.com>
39919
39920 Get grub-emu to build again (including parallel builds).
39921
39922 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39923 Split into ...
39924 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39925 (normal/execute.c_DEPENDENCIES): ... this, ...
39926 (grub-emu_DEPENDENCIES): ... and this.
39927
39928 * conf/i386-efi.rmk: Likewise.
39929 * conf/i386-linuxbios.rmk: Likewise.
39930 * conf/i386-ieee1275.rmk: Likewise.
39931 * conf/powerpc-ieee1275.rmk: Likewise.
39932 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39933
2216b101 399342008-01-27 Robert Millan <rmh@aybabtu.com>
39935
39936 * NEWS: Add a few items.
39937
f75172d9 399382008-01-27 Robert Millan <rmh@aybabtu.com>
39939
39940 Fix parallel builds with grub-emu. Based on earlier commit for
39941 grub-probe and grub-setup.
39942
39943 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39944 (util/grub-emu.c_DEPENDENCIES): ... this.
39945 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39946 (util/grub-emu.c_DEPENDENCIES): ... this.
39947 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39948 (util/grub-emu.c_DEPENDENCIES): ... this.
39949 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39950 (util/grub-emu.c_DEPENDENCIES): ... this.
39951 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39952 (util/grub-emu.c_DEPENDENCIES): ... this.
39953
3f51de77 399542008-01-27 Pavel Roskin <proski@gnu.org>
39955
39956 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39957 to create a gap between _end and the modules added to the image
39958 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39959 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39960 * util/elf/grub-mkimage.c (add_segments): Likewise.
39961
2033f53e 399622008-01-26 Pavel Roskin <proski@gnu.org>
39963
39964 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39965 just return an error.
39966
22da1f6f 399672008-01-26 Bean <bean123ch@gmail.com>
39968
39969 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39970 (grub_reiserfs_get_item): Save offset of the next item.
39971 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39972
2a9525e6 399732008-01-25 Robert Millan <rmh@aybabtu.com>
39974
39975 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39976 make all filesystem sources appear together (possibly fixing omissions
39977 while at it).
39978 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39979 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39980 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39982
39983 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39984 add `kern/file.c'.
39985 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39986 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39987 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39988 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39989
39990 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39991 (probe): Add a sanity check to make sure of our ability to read
39992 requested files when probing for filesystem type.
39993
39994 * genmk.rb: Update copyright year (2007).
39995
39996 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39997 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39998 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39999 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
40000 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
40001 : Remove function prototypes.
40002
b95f71b5 400032008-01-25 Robert Millan <rmh@aybabtu.com>
40004
40005 Revert my previous commits (based on wrong assumption of how grub_errno
40006 works).
40007
fe6b695a 40008 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 40009 * kern/file.c (grub_file_open): Likewise.
40010
d08bbb49 400112008-01-24 Pavel Roskin <proski@gnu.org>
40012
40013 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
40014 that hang if GRUB tries to setup colors.
40015 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
40016 colors for firmwares that don't support it.
40017 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
40018 Recognize Open Hack'Ware, set flags to work around its
40019 limitations.
40020
605e36ed 400212008-01-24 Robert Millan <rmh@aybabtu.com>
40022
40023 * kern/file.c (grub_file_open): Do not account previous failures of
40024 unrelated functions when grub_errno is checked for.
40025 Reported by Oleg Strikov.
40026
bac332a1 400272008-01-24 Bean <bean123ch@gmail.com>
40028
40029 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
40030 (grub_ufs_sblock): New member volume name.
40031 (grub_ufs_find_file): Fix string copy bug.
40032 (grub_ufs_label): Implement this function properly.
40033
40034 * fs/hfs.c (grub_hfs_cnid_type): New enum.
40035 (grub_hfs_iterate_records): Use the correct file number for extents
40036 and catalog file. Fix problem in next index calculation.
40037 (grub_hfs_find_node): Replace recursive function call with loop.
40038 (grub_hfs_iterate_dir): Replace recursive function call with loop.
40039
15c80c09 400402008-01-23 Robert Millan <rmh@aybabtu.com>
40041
40042 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
40043 `<grub/symbol.h>' and `<grub/multiboot.h>'.
40044 (grub_multiboot2_real_boot): New function prototype.
40045
40046 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
40047 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
40048
40049 * kern/i386/ieee1275/init.c (grub_os_area_addr)
40050 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
40051
305338fd 400522008-01-23 Robert Millan <rmh@aybabtu.com>
40053
40054 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
40055 #ifdef'ed out grub_printf().
40056
3ea52685 400572008-01-23 Robert Millan <rmh@aybabtu.com>
40058
40059 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
40060 grub_dprintf calls, since they make "debug=all" mode unusable.
40061 (grub_console_checkkey): Likewise.
40062
5882ae4b 400632008-01-23 Robert Millan <rmh@aybabtu.com>
40064
40065 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
40066 `term/i386/pc/at_keyboard.c'.
40067 (pkglib_MODULES): Add `serial.mod'.
40068 (serial_mod_SOURCES): New variable.
40069 (serial_mod_CFLAGS): Likewise.
40070 (serial_mod_LDFLAGS): Likewise.
40071
40072 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
40073 `<grub/powerpc/ieee1275/console.h>'.
40074 (grub_keyboard_controller_init): New function prototype.
40075 (grub_console_checkkey): Likewise.
40076 (grub_console_getkey): Likewise.
40077
40078 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
40079 keyboard on i386.
40080
40081 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
40082 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
40083
06ab5303 400842008-01-23 Robert Millan <rmh@aybabtu.com>
40085
40086 * kern/i386/pc/init.c (make_install_device): When memdisk image is
40087 present, "(memdisk)/boot/grub" becomes the default prefix.
40088
40089 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
40090 a memdisk tarball with all the modules. Add --overlay=DIR option that
40091 allows users to overlay additional files into the image.
40092
dbb475a4 400932008-01-23 Robert Millan <rmh@aybabtu.com>
40094
40095 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
40096 and `machine/memory.h'.
40097 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
40098 (_multiboot_mod_SOURCES): New variable.
40099 (_multiboot_mod_CFLAGS): Likewise.
40100 (_multiboot_mod_LDFLAGS): Likewise.
40101 (multiboot_mod_SOURCES): Likewise.
40102 (multiboot_mod_CFLAGS): Likewise.
40103 (multiboot_mod_LDFLAGS): Likewise.
40104
40105 * include/grub/i386/ieee1275/loader.h: New file.
40106
40107 * include/grub/i386/ieee1275/machine.h: Likewise.
40108
40109 * include/grub/i386/ieee1275/memory.h: Likewise.
40110
40111 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
40112 variable declaration.
40113 (grub_os_area_size): Likewise.
40114
40115 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
40116 (grub_lower_mem, grub_upper_mem): New variables.
40117 (grub_stop_floppy): New function (just to make
40118 grub_multiboot2_real_boot() happy).
40119
40120 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
40121 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
40122 (grub_stop): New function.
40123 Include `"../realmode.S"' and `"../loader.S"'.
40124
40125 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
40126 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
40127
40128 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
40129 rely on grub_multiboot2_real_boot() for final boot.
40130
25638629 401312008-01-22 Robert Millan <rmh@aybabtu.com>
40132
40133 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
40134 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
40135 device that doesn't look like an SD card.
40136 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40137 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
40138 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
40139 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
40140 found.
40141
9dad816d 401422008-01-22 Robert Millan <rmh@aybabtu.com>
40143
40144 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
40145 avoid claiming over our own code.
40146
34842f2d 401472008-01-22 Bean <bean123ch@gmail.com>
40148
40149 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
40150 (jpeg_mod_SOURCES): New variable.
40151 (jpeg_mod_CFLAGS): Likewise.
40152 (jpeg_mod_LDFLAGS): Likewise.
40153
40154 * video/readers/jpeg.c : New file.
40155
44023a28 401562008-01-22 Bean <bean123ch@gmail.com>
40157
40158 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
40159 there are no more items.
40160
bc2d8ac6 401612008-01-21 Robert Millan <rmh@aybabtu.com>
40162
40163 * kern/mm.c (grub_mm_init_region): Improve debug message.
40164
261bd4bc 401652008-01-21 Robert Millan <rmh@aybabtu.com>
40166
40167 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
40168 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
40169 address.
40170 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
40171 a C macro.
40172 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
40173 Indicates start of upper memory.
40174 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
40175 (generate_image): Abort when image size is big enough to corrupt
40176 upper memory.
40177
40178 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
40179 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
40180 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40181 instead of hardcoding 0xA0000.
40182 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
40183 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
40184 instead of hardcoding 0xA0000.
40185
f970b55e 401862008-01-21 Robert Millan <rmh@aybabtu.com>
40187
40188 * disk/memdisk.c (memdisk_size): New variable.
40189 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
40190 `memdisk_size'.
40191 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
40192 image to dynamic memory.
40193 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
40194 `memdisk_size'. Free memdisk block.
40195
1a8b0526 401962008-01-21 Robert Millan <rmh@aybabtu.com>
40197
40198 Fix detection of very small filesystems (like tar).
40199
40200 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
40201 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
40202 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
40203 a problem with this disk).
40204
6e9b4aab 402052008-01-21 Robert Millan <rmh@aybabtu.com>
40206
40207 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
40208 on grub_biosdisk_rw_standard() error.
40209
0d8837b2 402102008-01-21 Robert Millan <rmh@aybabtu.com>
40211
40212 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
40213 recent changes.
40214 * kern/elf.c: Likewise.
40215 * kern/ieee1275/ieee1275.c: Likewise.
40216 * kern/powerpc/ieee1275/openfw.c: Likewise.
40217 * term/ieee1275/ofconsole.c: Likewise.
40218
ffd36e34 402192008-01-21 Robert Millan <rmh@aybabtu.com>
40220
40221 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
40222
3f0093d0 40223 * include/grub/kernel.h (grub_arch_memdisk_addr)
40224 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 40225
3f0093d0 40226 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
40227 (grub_arch_memdisk_size): ... to here.
ffd36e34 40228
6c391b21 402292008-01-21 Robert Millan <rmh@aybabtu.com>
40230
40231 Mostly based on bugfix from Bean.
40232
40233 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
40234 attribute with hook() parameter.
40235 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
40236 declaration.
40237 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
40238 attribute with hook() parameter.
40239 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
40240 declaration.
40241
55a581dc 402422008-01-21 Robert Millan <rmh@aybabtu.com>
40243
40244 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
40245 (pkglib_MODULES): Add `memdisk.mod'.
40246 (memdisk_mod_SOURCES): New variable.
40247 (memdisk_mod_CFLAGS): Likewise.
40248 (memdisk_mod_LDFLAGS): Likewise.
40249
40250 * disk/memdisk.c: New file.
40251
40252 * include/grub/disk.h (grub_disk_dev_id): Add
40253 `GRUB_DISK_DEVICE_MEMDISK_ID'.
40254
40255 * include/grub/i386/pc/kernel.h
40256 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
40257 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
40258 (grub_kernel_image_size): New variable declaration.
40259 (grub_total_module_size): Likewise.
40260 (grub_memdisk_image_size): Likewise.
40261
40262 * include/grub/i386/pc/memory.h
40263 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
40264
40265 * include/grub/kernel.h: Include `<grub/symbol.h>'.
40266 (grub_arch_memdisk_addr): New variable declaration.
40267 (grub_arch_memdisk_size): Likewise.
40268
40269 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
40270 (grub_arch_memdisk_size): Likewise.
40271
40272 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
40273 (codestart): Replace hardcoded `0x100000' with
40274 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
40275
40276 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
40277 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
40278 not NULL, append the contents of the file it refers to, at the end of
40279 the compressed kernel image. Initialize `grub_memdisk_image_size'
40280 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
40281 (options): Add "memdisk"|'m' option.
40282 (main): Parse --memdisk|-m option, and pass user-provided path as
40283 parameter to generate_image().
40284
3d7f54c9 402852008-01-20 Robert Millan <rmh@aybabtu.com>
40286
40287 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
40288 grub_dprintf() calls from here ...
40289 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
40290
0bf74728 402912008-01-20 Robert Millan <rmh@aybabtu.com>
40292
40293 Fix detection of "real mode" when /options/real-mode? doesn't exist.
40294
40295 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
40296 declaration.
40297 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
40298 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
40299 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 40300 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 40301 property).
40302 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
40303 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
40304
33bf70a7 403052008-01-19 Robert Millan <rmh@aybabtu.com>
40306
fe6b695a 40307 Get rid of confusing function (superseded by
33bf70a7 40308 `grub_ieee1275_get_integer_property')
40309 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
40310 prototype.
40311 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
40312 function.
40313 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
40314 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 40315 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 40316
e2da7d26 403172008-01-19 Robert Millan <rmh@aybabtu.com>
40318
40319 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
40320 command after "shut-down", since implementations differ on which
40321 the command for halt is.
40322
59f1fd8d 403232008-01-19 Robert Millan <rmh@aybabtu.com>
40324
40325 * include/grub/i386/linuxbios/console.h: Add header protection.
40326 (grub_keyboard_controller_init): New function prototype.
40327 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
40328 (KEYBOARD_COMMAND_READ): Likewise.
40329 (KEYBOARD_COMMAND_WRITE): Likewise.
40330 (KEYBOARD_SCANCODE_SET1): Likewise.
40331 (grub_keyboard_controller_write): New function.
40332 (grub_keyboard_controller_read): Likewise.
40333 (grub_keyboard_controller_init): Likewise.
40334
40335 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
40336 (grub_console_init): On coreboot/LinuxBIOS, call
40337 grub_keyboard_controller_init().
40338
5f5a7c15 403392008-01-19 Robert Millan <rmh@aybabtu.com>
40340
40341 PowerPC changes provided by Pavel Roskin.
40342
40343 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
40344 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
40345 don't rely on cmain() doing it.
40346 * kern/i386/ieee1275/startup.S (_start): Store %eax in
40347 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
40348
1210e168 403492008-01-16 Robert Millan <rmh@aybabtu.com>
40350
40351 * include/grub/i386/linuxbios/memory.h
40352 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
40353 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
40354 receive `table_header' as argument. Instead, probe for it in the
40355 known memory ranges where it can be present.
40356 (grub_available_iterate): Do not pass a fixed `table_header' address
40357 to grub_linuxbios_table_iterate().
40358
3d04eab8 403592008-01-15 Robert Millan <rmh@aybabtu.com>
40360
40361 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
40362 * conf/i386-ieee1275.rmk: New file.
40363 * include/grub/i386/ieee1275/console.h: Likewise.
40364 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
40365 * include/grub/i386/ieee1275/kernel.h: Likewise.
40366 * include/grub/i386/ieee1275/time.h: Likewise.
40367 * kern/i386/ieee1275/init.c: Likewise.
40368 * kern/i386/ieee1275/startup.S: Likewise.
40369
d1bc1b73 403702008-01-15 Robert Millan <rmh@aybabtu.com>
40371
40372 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
40373 when pointers are 32-bit (but still do set it to one when they are
40374 64-bit).
40375
66a65807 403762008-01-15 Robert Millan <rmh@aybabtu.com>
40377
40378 * include/grub/ieee1275/ieee1275.h
40379 (grub_ieee1275_get_integer_property): New function prototype.
40380
40381 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
40382 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 40383 grub_ieee1275_get_property() to handle endianness.
66a65807 40384
40385 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
40386 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 40387 where appropriate.
66a65807 40388 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
40389 (grub_map): Likewise.
40390 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
40391
a83ccafd 403922008-01-15 Bean <bean123ch@gmail.com>
40393
40394 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
40395 (grub_script_execute_cmdline): Reset grub_errno.
40396
40397 * normal/main.c (read_config_file): Reset grub_errno.
40398
40399 * normal/parse.y (script_init): New.
40400 (script): Move function and menuentry here.
40401 (delimiter): New.
40402 (command): Add delimiter at the end of command.
40403 (commands): Adjust to match the new command.
40404 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 40405 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 40406 (if): Use the new commands.
40407
40408 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
40409
df6ecfc6 404102008-01-15 Robert Millan <rmh@aybabtu.com>
40411
40412 * normal/menu.c (run_menu): Move timeout message from here ...
40413 (print_timeout): ... to here.
40414 (run_menu): Use print_timeout() once during initial draw to print
40415 the whole message, and again in every clock tick to update only
40416 the number of seconds.
40417
87ae25eb 404182008-01-15 Robert Millan <rmh@aybabtu.com>
40419
40420 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
40421 actual size of `available' from grub_ieee1275_get_property(), and
40422 restrict parsing to that bound.
40423
47bf09a4 404242008-01-15 Christian Franke <franke@computer.org>
40425
40426 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
40427 (argp_program_version): Remove variable.
40428 (argp_program_bug_address): Likewise.
40429 (options): Convert from struct argp_option to struct option.
40430 (struct arguments): Remove.
40431 (parse_opt): Remove.
40432 (usage): New function.
40433 (main): Replace struct args members by simple variables.
40434 Replace argp_parse() by getopt_long().
40435 Add switch to evaluate options.
40436 Add missing "(...)" around root_dev in prefix string.
40437
c86f1469 404382008-01-14 Robert Millan <rmh@aybabtu.com>
40439
40440 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
40441 for grub_ieee1275_exit(), in order to improve portability.
40442
e622c559 404432008-01-14 Robert Millan <rmh@aybabtu.com>
40444
40445 * util/grub.d/10_linux.in (prefix): Define.
40446 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
40447
44cb1ec8 404482008-01-13 Pavel Roskin <proski@gnu.org>
40449
40450 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
40451 grub_errno if no errors have been detected.
40452
1eb8c802 404532008-01-12 Robert Millan <rmh@aybabtu.com>
40454
40455 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
40456 (grub_util_get_dev_abstraction): New function prototype.
40457
40458 * util/getroot.c: Include `<grub/util/getroot.h>'
40459 (grub_util_get_grub_dev): Move detection of abstraction type to ...
40460 (grub_util_get_dev_abstraction): ... here (new function).
40461
40462 * util/grub-probe.c: Convert PRINT_* to an enum. Add
40463 `PRINT_ABSTRACTION'.
40464 (probe): Probe for abstraction type when requested.
40465 (main): Understand `--target=abstraction'.
40466
40467 * util/i386/efi/grub-install.in: Add abstraction module to core
40468 image when it is found to be necessary.
40469 * util/i386/pc/grub-install.in: Likewise.
40470 * util/powerpc/ieee1275/grub-install.in: Likewise.
40471
40472 * util/update-grub_lib.in (font_path): Return system path without
40473 converting to GRUB path.
40474 * util/update-grub.in: Convert system path returned by font_path()
40475 to a GRUB path. Use `grub-probe -t abstraction' to determine what
40476 abstraction module is needed for loading fonts (if any). Export
40477 that as `GRUB_PRELOAD_MODULES'.
40478 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
40479 insmod commands).
40480
52bd3de9 404812008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
40482
40483 Remove some unused code from reiserfs.
f19dbdb7 40484
52bd3de9 40485 * fs/reiserfs.c (struct grub_reiserfs_key)
40486 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
40487 (struct grub_reiserfs_node_body): Removed.
40488 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40489 Likewise.
40490 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40491 Likewise.
40492 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40493 Likewise.
40494 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
40495 Likewise.
40496 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
40497 Likewise.
40498 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
40499 Likewise.
40500 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40501 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40502 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
40503
2f80039d 405042008-01-10 Robert Millan <rmh@aybabtu.com>
40505
40506 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
40507 Determines if a file is garbage left by packaging systems, etc.
40508 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
40509 for processing /etc/grub.d scripts.
40510 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
40511 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
40512 as a condition for processing Linux images.
40513
87888032 405142008-01-10 Pavel Roskin <proski@gnu.org>
40515
40516 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
40517 to compile reiserfs.c on PowerPC.
40518
7e54fced 405192008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 40520
40521 * kern/device.c (grub_device_iterate): Do not abort device iteration
40522 when one of the devices cannot be opened.
40523 * kern/disk.c (grub_disk_open): Do not account previous failures of
40524 unrelated functions when grub_errno is checked for.
40525
5aa541e6 405262008-01-08 Robert Millan <rmh@aybabtu.com>
40527
40528 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
40529 `! grub_linux_is_bzimage', change order of address comparison to make
40530 it more intuitive, and improve "too big zImage" error message.
40531
7076340d 405322008-01-08 Robert Millan <rmh@aybabtu.com>
40533
40534 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
40535 `$(update-grub_DATA)'.
40536 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
40537 targets.
40538
9ca70333 405392008-01-07 Robert Millan <rmh@aybabtu.com>
40540
40541 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
40542 which instruction is modified by grub-setup during installation
40543 (since it wasn't obvious by only looking at this file).
40544
38ccf575 405452008-01-07 Robert Millan <rmh@aybabtu.com>
40546
40547 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
40548 listing actual TODO items.
40549
f5db4291 405502008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40551
868967cf 40552 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
40553 correctly.
40554 (grub_reiserfs_get_key_offset): Likewise.
40555 (grub_reiserfs_set_key_offset): Likewise.
40556 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 40557 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 40558
40559 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
40560 better to remove the bitfield version completely.
f19dbdb7 40561
868967cf 405622008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 40563
f5db4291 40564 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
40565 allocated from the heap, due to the fshelp implementation.
40566 (grub_reiserfs_dir): Free NODE, due to the same reason.
40567
492e6d9d 405682008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40569
40570 Mostly from Vincent Pelletier:
f19dbdb7 40571
492e6d9d 40572 * fs/reiserfs.c: New file.
f19dbdb7 40573
492e6d9d 40574 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
40575 (reiserfs_mod_SOURCES): New variable.
40576 (reiserfs_mod_CFLAGS): Likewise.
40577 (reiserfs_mod_LDFLAGS): Likewise.
40578
40579 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
40580 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
40581 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
40582 normal/color.c.
40583
9ce3e7c1 405842008-01-06 Robert Millan <rmh@aybabtu.com>
40585
40586 * normal/color.c: Remove `<grub/env.h>'.
40587
f3b58148 405882008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
40589
40590 * include/grub/normal.h: Include <grub/env.h>.
40591
7ac3bcfa 405922008-01-05 Robert Millan <rmh@aybabtu.com>
40593
40594 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
40595 usage example with `(hd0,1)'.
fb358190 40596 Reported by Samuel Thibault.
7ac3bcfa 40597
c8ee99d7 405982008-01-05 Robert Millan <rmh@aybabtu.com>
40599
40600 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
40601 (grub_linux_boot_zimage): Rename to ...
40602 (grub_linux_boot): ... this.
40603 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
40604 (grub_linux_boot_zimage): Conditionalize zImage copy.
40605
40606 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
40607 (grub_linux_boot_bzimage): Remove prototype.
40608 (grub_linux_boot_zimage): Rename to ...
40609 (grub_linux_boot): ... this.
40610
40611 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
40612 (grub_linux_boot): Remove function.
40613
0ece25b1 406142008-01-05 Robert Millan <rmh@aybabtu.com>
40615
40616 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
40617 (grub_env_write_color_highlight): Likewise.
40618 (grub_wait_after_message): Likewise.
40619
40620 * normal/color.c: New file.
40621
40622 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40623 (normal_mod_DEPENDENCIES): Likewise.
40624
40625 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40626 (normal_mod_DEPENDENCIES): Likewise.
40627
40628 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40629 (normal_mod_DEPENDENCIES): Likewise.
40630
40631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
40632 (normal_mod_DEPENDENCIES): Likewise.
40633
40634 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
40635 for waiting after a message is printed.
40636 * normal/main.c (read_config_file): Likewise.
40637 (grub_normal_init): Register grub_env_write_color_normal() and
40638 grub_env_write_color_highlight() hooks. Mark `color_normal' and
40639 `color_highlight' variables as global.
40640
40641 * normal/menu.c (grub_wait_after_message): New function.
40642 (grub_color_menu_normal): New variable. Replaces ...
40643 (GRUB_COLOR_MENU_NORMAL): ... this macro.
40644 (grub_color_menu_highlight): New variable. Replaces ...
40645 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
40646 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
40647 `GRUB_TERM_COLOR_STANDARD'.
40648 (print_message): Use `grub_setcolorstate' to reload colors. Rename
40649 `normal_code' and `highlight_code' to `old_color_normal' and
40650 `old_color_highlight', respectively.
40651 (grub_menu_init_page): Update colors when drawing the menu, based on
40652 `menu_color_normal' and `menu_color_highlight' variables.
40653 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
40654 a message is printed.
40655
182dd4e5 406562008-01-05 Robert Millan <rmh@aybabtu.com>
40657
40658 * kern/env.c (grub_env_context_open): Propagate hooks for global
40659 variables to new context.
40660
40661 * kern/main.c (grub_set_root_dev): Export `root' variable.
40662
ddf8f6ad 406632008-01-05 Robert Millan <rmh@aybabtu.com>
40664
40665 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 40666 discs unconditionally, since udev and others have options to provide
ddf8f6ad 40667 them.
40668
d8b43d9b 406692008-01-05 Robert Millan <rmh@aybabtu.com>
40670
40671 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
40672
2bff2de3 406732008-01-04 Christian Franke <franke@computer.org>
40674
40675 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
40676 of eisa_mmap.
40677
97eab917 406782008-01-03 Pavel Roskin <proski@gnu.org>
40679
40680 * kern/i386/linuxbios/init.c: Put "void" to all function
40681 declarations with no arguments.
40682 * kern/powerpc/ieee1275/init.c: Likewise.
40683 * term/i386/pc/at_keyboard.c: Likewise.
40684 * term/i386/pc/vga_text.c: Likewise.
40685 * util/grub-mkdevicemap.c: Likewise.
40686
b9416d00 406872008-01-02 Robert Millan <rmh@aybabtu.com>
40688
40689 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
40690 message when loaded image is out of bounds.
40691 (grub_multiboot_load_elf64): Likewise.
40692
92695df9 406932008-01-02 Pavel Roskin <proski@gnu.org>
40694
40695 * util/grub.d/10_linux.in: Try version without ".old" when
40696 looking for initrd. It's better to use initrd from the newer
40697 kernel of the same version than no initrd at all.
40698
d98d9cad 406992008-01-01 Robert Millan <rmh@aybabtu.com>
40700
40701 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
40702
dbfdce36 407032008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
40704
f19dbdb7 40705 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 40706 grub_video_get_active_render_target.
40707 (grub_video_adapter): Added unmap_color and get_active_render_target.
40708
f19dbdb7 40709 * video/video.c: Added grub_video_unmap_color and
dbfdce36 40710 grub_video_get_active_render_target.
40711 (grub_video_get_info): Changed method to accept NULL pointer as an
40712 argument to allow detection of active video adapter.
40713
40714 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
40715 grub_video_vbe_unmap_color_int.
40716 Added grub_video_vbe_unmap_color and
40717 grub_video_vbe_get_active_render_target.
40718 (grub_video_vbe_adapter): Added unmap_color and
40719 get_active_render_target.
40720
f19dbdb7 40721 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 40722 with grub_video_vbe_unmap_color_int.
40723
40724 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
40725 (DEFAULT_NORMAL_COLOR): Likewise.
40726 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
40727 (DEFAULT_FG_COLOR): Removed.
40728 (DEFAULT_BG_COLOR): Likewise.
40729 (DEFAULT_CURSOR_COLOR): Changed value.
40730 (grub_virtual_screen): Added standard_color_setting,
40731 normal_color_setting, highlight_color_setting and term_color.
40732 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
40733 (bitmap_width): Added.
40734 (bitmap_height): Likewise.
40735 (bitmap): Likewise.
40736 (set_term_color): Likewise.
40737 (grub_virtual_screen_setup): Changed to use new terminal coloring
40738 settings.
40739 (grub_gfxterm_init): Added init for bitmap.
40740 (grub_gfxterm_fini): Added destroy for bitmap.
40741 (redraw_screen_rect): Updated to use background bitmap and new
40742 terminal coloring.
40743 (scroll_up): Added optimization for case when there is no bitmap.
40744 (grub_gfxterm_cls): Fixed to use correct background color.
40745 (grub_virtual_screen_setcolorstate): Changed to use new terminal
40746 coloring.
40747 (grub_virtual_screen_setcolor): Likewise.
40748 (grub_virtual_screen_getcolor): Added.
40749 (grub_gfxterm_background_image_cmd): Likewise.
40750 (grub_video_term): Added setcolor and getcolor.
40751 (MOD_INIT): Added registration of background_image command.
40752 (MOD_TERM): Added unregistration for background_image command.
40753
c3c20931 407542007-12-30 Pavel Roskin <proski@gnu.org>
40755
40756 * loader/multiboot_loader.c: Fix multiboot command
40757 unregistration. Fix all typos in the word "multiboot".
40758
df266716 407592007-12-29 Pavel Roskin <proski@gnu.org>
94239199 40760
40761 * util/grub.d/10_linux.in: Refactor search for initrd. Add
40762 support for initrd names used in Fedora.
40763
fc6e896c 407642007-12-26 Bean <bean123ch@gmail.com>
40765
40766 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
40767 (cpio_mod_SOURCES): New variable.
40768 (cpio_mod_CFLAGS): Likewise.
40769 (cpio_mod_LDFLAGS): Likewise.
40770
40771 * fs/cpio.c: New file.
40772
40773 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
40774
40775 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40776
40777 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
40778
40779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40780
533110ad 407812007-12-25 Robert Millan <rmh@aybabtu.com>
40782
40783 * include/grub/term.h (struct grub_term): Add `getcolor' function.
40784 (grub_getcolor): New function.
40785
40786 * kern/term.c (grub_getcolor): New function.
40787 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
40788 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
40789 (print_entry): Set normal and highlight colors to
40790 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
40791 respectively, before printing and restore them to old
40792 values afterwards.
40793 (grub_menu_init_page): Likewise. Fill an additional colored space
40794 that would otherwise be left blank.
40795
40796 * term/efi/console.c (grub_console_getcolor): New function.
40797 (struct grub_console_term.getcolor): New variable.
40798 * term/i386/pc/console.c (grub_console_getcolor): New function.
40799 (struct grub_console_term.getcolor): New variable.
40800 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
40801 (struct grub_console_term.getcolor): New variable.
40802
40803 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
40804 (struct grub_console_term.setcolor): Remove variable.
40805 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
40806 (struct grub_console_term.setcolor): Remove variable.
40807 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
40808 (struct grub_console_term.setcolor): Remove variable.
40809 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
40810 (struct grub_console_term.setcolor): Remove variable.
40811
4931827f 408122007-12-25 Robert Millan <rmh@aybabtu.com>
40813
40814 * configure.ac: Search for possible unifont.hex locations, and
40815 define UNIFONT_HEX if found.
40816
40817 * Makefile.in (UNIFONT_HEX): Define variable.
40818 (DATA): Rename to ...
40819 (PKGLIB): ... this. Update all users.
40820 (PKGDATA): New variable.
40821 (pkgdata_IMAGES): Rename to ...
40822 (pkglib_IMAGES): ... this. Update all users.
40823 (pkgdata_MODULES): Rename to ...
40824 (pkglib_MODULES): ... this. Update all users.
40825 (pkgdata_PROGRAMS): Rename to ...
40826 (pkglib_PROGRAMS): ... this. Update all users.
40827 (pkgdata_DATA): Rename to ...
40828 (pkglib_DATA): ... this. Update all users.
40829 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40830 (unicode.pff, ascii.pff): New rules.
40831 (all-local): Add `$(PKGDATA)' dependency.
40832 (install-local): Process `$(PKGDATA)'.
40833
40834 * util/update-grub_lib.in (font_path): Search for *.pff files in
40835 a few more locations, including `${pkgdata}'.
40836
57e57e31 408372007-12-23 Robert Millan <rmh@aybabtu.com>
40838
40839 Patch from Bean <bean123ch@gmail.com>:
40840 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40841 `size'.
40842
4bc72aa9 408432007-12-21 Bean <bean123ch@gmail.com>
40844
40845 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40846 (ntfscomp_mod_SOURCES): New variable.
40847 (ntfscomp_mod_CFLAGS): Likewise.
40848 (ntfscomp_mod_LDFLAGS): Likewise.
40849
40850 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40851 (grub_probe_SOURCES): Likewise.
40852 (grub_emu_SOURCES): Likewise.
40853
40854 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40855 (grub_emu_SOURCES): Likewise.
40856
40857 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40858 (grub_emu_SOURCES): Likewise.
40859
40860 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40861 (grub_emu_SOURCES): Likewise.
40862
40863 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40864 (read_run_list): Renamed to grub_ntfs_read_run_list.
40865 (decomp_nextvcn): Moved to ntfscomp.c.
40866 (decomp_getch): Likewise.
40867 (decomp_get16): Likewise.
40868 (decomp_block): Likewise.
40869 (read_block): Likewise.
40870 (read_data): Partially moved to ntfscomp.c.
40871 (fixup): Change unsigned to grub_uint16_t.
40872 (read_mft): Change unsigned long to grub_uint32_t.
40873 (read_attr): Likewise.
40874 (read_data): Likewise.
40875 (read_run_data): Likewise.
40876 (read_run_list): Likewise.
40877 (read_mft): Likewise.
40878
40879 * fs/ntfscomp.c: New file.
40880
40881 * include/grub/ntfs.h: New file.
40882
af680a87 408832007-12-16 Robert Millan <rmh@aybabtu.com>
40884
40885 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40886 IDE disk check, since Linux is known to support 20 IDE disks.
40887 Reported by Colin Watson.
40888
84be7599 408892007-12-15 Bean <bean123ch@gmail.com>
40890
40891 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40892 (lnxboot_img_SOURCES): New variable.
40893 (lnxboot_img_ASFLAGS): Likewise.
40894 (lnxboot_img_LDFLAGS): Likewise.
40895
40896 * boot/i386/pc/lnxboot.S: New file.
40897
6af9db01 408982007-11-24 Pavel Roskin <proski@gnu.org>
40899
40900 * configure.ac: Test if '--build-id=none' is supported by the
40901 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40902 objcopy to generate incorrect binary files (binutils
40903 2.17.50.0.18-1 as shipped by Fedora 8).
40904 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40905 linking, so that build ID doesn't break the test.
40906
7361cfe6 409072007-11-24 Pavel Roskin <proski@gnu.org>
40908
40909 * include/grub/i386/time.h: use "void" in the argument list
40910 of grub_cpu_idle().
40911 * include/grub/powerpc/time.h: Likewise.
40912 * include/grub/sparc64/time.h: Likewise.
40913
1593e10c 409142007-11-18 Christian Franke <franke@computer.org>
40915
40916 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40917 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40918 This fixes the problem that function keys did not work in grub-emu.
40919
3b8db1a8 409202007-11-18 Christian Franke <franke@computer.org>
40921
40922 * disk/host.c (grub_host_open): Remove attribute unused from
40923 name parameter. Add check for "host". This fixes the problem
40924 that grub-emu does not find partitions.
40925
2e29408d 409262007-11-18 Christian Franke <franke@computer.org>
40927
40928 * util/hostfs.c (is_dir): New function.
40929 (grub_hostfs_dir): Handle missing dirent.d_type case.
40930 (grub_hostfs_read): Add missing fseek().
40931 (grub_hostfs_label): Clear label pointer. This fixes a crash
40932 of grub-emu on "ls (host)".
40933
398cd047 409342007-11-18 Christian Franke <franke@computer.org>
40935
40936 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40937 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40938 to 64 bit boundary by default.
40939
c405c391 409402007-11-18 Bean <bean123ch@gmail.com>
40941
40942 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40943 (hexdump_mod_SOURCES): New variable.
40944 (hexdump_mod_CFLAGS): Likewise.
40945 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 40946
c405c391 40947 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40948
40949 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40950
40951 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40952
40953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40954
40955 * include/grub/hexdump.h: New file.
40956
40957 * commands/hexdump.c: New file.
40958
5cced7fd 409592007-11-10 Robert Millan <rmh@aybabtu.com>
40960
40961 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40962 in grub_outb() calls.
40963 (beep_on): Likewise.
40964
8b714eb0 409652007-11-10 Christian Franke <franke@computer.org>
40966
40967 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40968 (grub_menu_run): Likewise.
40969
ce0f1839 409702007-11-10 Robert Millan <rmh@aybabtu.com>
40971
40972 * include/grub/i386/efi/machine.h: New file.
40973 * include/grub/i386/linuxbios/machine.h: Likewise.
40974 * include/grub/i386/pc/machine.h: Likewise.
40975 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40976 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40977
40978 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40979 (serial_hw_io_addr): New variable.
40980 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40981 instead of `(unsigned short *) 0x400'.
40982
270c237d 409832007-11-10 Bean <bean123ch@gmail.com>
40984
40985 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40986
a87783bf 409872007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40988
40989 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40990 (vga_mod_SOURCES): Added.
40991 (vga_mod_CFLAGS): Likewise.
40992 (vga_mod_LDFLAGS): Likewise.
40993
40994 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40995 grub_outb() calls.
40996 (set_map_mask): Likewise.
40997 (set_read_map): Likewise.
40998 (set_read_address): Likewise.
40999 (vga_font): Removed variable.
41000 (get_vga_glyph): Removed function.
41001 (invalidate_char): Likewise.
41002 (write_char): Changed to use grub_font_get_glyph() for font
41003 information.
41004 (grub_vga_putchar): Likewise.
41005 (grub_vga_getcharwidth): Likewise.
41006
6433b448 410072007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
41008
41009 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
41010 flags.
41011 (pxeboot_img_LDFLAGS): Likewise.
41012 (diskboot_img_LDFLAGS): Likewise.
41013 (kernel_img_LDFLAGS): Likewise.
41014
49178511 410152007-11-06 Robert Millan <rmh@aybabtu.com>
41016
41017 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
41018 in grub_outb() calls.
41019 (serial_hw_init): Likewise.
41020
53b052de 410212007-11-05 Robert Millan <rmh@aybabtu.com>
41022
41023 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
41024 spaces. Skip non-regular files.
41025
5ab33bba 410262007-11-05 Robert Millan <rmh@aybabtu.com>
41027
41028 * kern/disk.c (grub_disk_firmware_fini)
41029 (grub_disk_firmware_is_tainted): New variables.
41030
41031 * include/grub/disk.h (grub_disk_firmware_fini)
41032 (grub_disk_firmware_is_tainted): Likewise.
41033
41034 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
41035 (grub_disk_biosdisk_fini): ... to here.
41036 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
41037 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
41038 is set. Register grub_disk_biosdisk_fini() in
41039 `grub_disk_firmware_fini'.
41040
41041 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
41042 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
41043 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
41044 to finish existing firmware disk interface.
41045
41046 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
41047 (ata_mod_SOURCES): New variable.
41048 (ata_mod_CFLAGS): Likewise.
41049 (ata_mod_LDFLAGS): Likewise.
41050
0149ab7c 410512007-11-05 Robert Millan <rmh@aybabtu.com>
41052
41053 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
41054 (grub_ata_wait): Reimplement using grub_millisleep().
41055
41056 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
41057 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
41058
be7ac41e 410592007-11-03 Marco Gerards <marco@gnu.org>
41060
41061 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
41062 (CRTC_ADDR_PORT): New macro.
41063 (CRTC_DATA_PORT): Likewise.
41064 (CRTC_CURSOR): Likewise.
41065 (CRTC_CURSOR_ADDR_HIGH): Likewise.
41066 (CRTC_CURSOR_ADDR_LOW): Likewise.
41067 (update_cursor): New function.
41068 (grub_console_real_putchar): Call `update_cursor'.
41069 (grub_console_gotoxy): Likewise.
41070 (grub_console_cls): Set the default color when clearing the
41071 screen.
41072 (grub_console_setcursor): Implemented.
41073
bb06ab2e 410742007-11-03 Marco Gerards <marco@gnu.org>
41075
41076 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
41077 become activate.
41078 (grub_ata_pio_write): Likewise.
41079
41080 (grub_atapi_identify): Wait after issuing an ATA command.
41081 (grub_atapi_packet): Likewise.
41082 (grub_ata_identify): Likewise.
41083 (grub_ata_readwrite): Likewise.
41084
cf8f780b 410852007-11-03 Marco Gerards <marco@gnu.org>
41086
41087 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
41088 (grub_ata_pio_write): Likewise.
41089 (grub_ata_readwrite): Use `grub_error', instead of
41090 returning `grub_errno'.
41091
ed649e54 410922007-11-03 Marco Gerards <marco@gnu.org>
41093
41094 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
41095 grub_ata_pio_write once for every single sector, instead of for
41096 multiple sectors.
41097
ca25d8f0 410982007-10-31 Robert Millan <rmh@aybabtu.com>
41099
41100 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
41101
41102 * conf/i386-linuxbios.rmk: New file.
41103
41104 * kern/i386/pc/hardware.c: Likewise.
41105 * term/i386/pc/at_keyboard.c: Likewise.
41106 * term/i386/pc/vga_text.c: Likewise.
41107
41108 * include/grub/i386/linuxbios/boot.h: Likewise.
41109 * include/grub/i386/linuxbios/console.h: Likewise.
41110 * include/grub/i386/linuxbios/init.h: Likewise.
41111 * include/grub/i386/linuxbios/kernel.h: Likewise.
41112 * include/grub/i386/linuxbios/loader.h: Likewise.
41113 * include/grub/i386/linuxbios/memory.h: Likewise.
41114 * include/grub/i386/linuxbios/serial.h: Likewise.
41115 * include/grub/i386/linuxbios/time.h: Likewise.
41116
41117 * kern/i386/linuxbios/init.c: Likewise.
41118 * kern/i386/linuxbios/startup.S: Likewise.
41119 * kern/i386/linuxbios/table.c: Likewise.
41120
e911ecc1 411212007-10-31 Marco Gerards <marco@gnu.org>
41122
41123 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
41124 (ata_mod_SOURCES): New variable.
41125 (ata_mod_CFLAGS): Likewise.
41126 (ata_mod_LDFLAGS): Likewise.
41127
41128 * disk/ata.c: New file.
41129
41130 * include/grub/disk.h (grub_disk_dev_id): Add
41131 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 41132
7f66d0e0 411332007-10-31 Robert Millan <rmh@aybabtu.com>
41134
41135 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
41136 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
41137
41138 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
41139 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
41140
41141 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
41142 `<grub/types.h>'.
41143
41144 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
41145
5cd7dd46 411462007-10-27 Robert Millan <rmh@aybabtu.com>
41147
3236ca65 41148 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 41149
2ebfc90f 411502007-10-22 Robert Millan <rmh@aybabtu.com>
41151
41152 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
41153 `"../realmode.S"'.
41154 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
41155
73fcb0f3 411562007-10-22 Robert Millan <rmh@aybabtu.com>
41157
41158 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
41159 (pkgdata_MODULES): Add `biosdisk.mod'.
41160 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
41161 variables.
41162
41163 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
41164 (grub_biosdisk_init): Replace with ...
41165 (GRUB_MOD_INIT(biosdisk)): ... this.
41166 (grub_biosdisk_fini): Replace with ...
41167 (GRUB_MOD_FINI(biosdisk)): ... this.
41168
41169 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
41170 (grub_machine_init): Remove call to grub_biosdisk_init().
41171 (grub_machine_fini): Remove call to grub_machine_fini().
41172
41173 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
41174
3381d274 411752007-10-22 Robert Millan <rmh@aybabtu.com>
41176
41177 * include/grub/time.h: New file.
41178 * include/grub/i386/time.h: Likewise.
41179 * include/grub/powerpc/time.h: Likewise.
41180 * include/grub/sparc64/time.h: Likewise.
41181
41182 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
41183 instances to ...
41184 (KERNEL_MACHINE_TIME_HEADER): ... this.
41185 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41186 instances to ...
41187 (KERNEL_MACHINE_TIME_HEADER): ... this.
41188 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
41189 instances to ...
41190 (KERNEL_MACHINE_TIME_HEADER): ... this.
41191
41192 * kern/i386/efi/init.c: Include `<grub/time.h>'.
41193 (grub_millisleep): New function.
41194 * kern/i386/pc/init.c: Include `<grub/time.h>'.
41195 (grub_millisleep): New function.
41196 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
41197 Remove `grub/machine/time.h' include.
41198 (grub_millisleep): New function.
41199 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
41200 Remove `grub/machine/time.h' include.
41201 (grub_millisleep): New function.
41202
41203 * include/grub/misc.h (grub_div_roundup): New function.
41204
41205 * kern/misc.c: Include `<grub/time.h>'.
41206 (grub_millisleep_generic): New function.
41207
41208 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
41209 Add `time.h'.
41210 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
41211 Add `time.h'.
41212 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
41213 `machine/time.h'. Add `time.h'.
41214 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41215
a39a0312 412162007-10-21 Robert Millan <rmh@aybabtu.com>
41217
41218 * include/grub/misc.h (grub_max): New function.
41219
2aad70e2 412202007-10-21 Robert Millan <rmh@aybabtu.com>
41221
41222 * util/misc.c (grub_util_info): Call fflush() before returning.
41223
54b71c4b 412242007-10-20 Robert Millan <rmh@aybabtu.com>
41225
41226 * genmk.rb (Image): Copy `extra_flags' from here ...
41227 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
41228
41229 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
41230 to `argc' and `args' arguments.
41231
a979f513 412322007-10-17 Robert Millan <rmh@aybabtu.com>
41233
41234 * kern/i386/loader.S: New file.
41235
41236 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
41237 * kern/i386/loader.S (grub_linux_prot_size)... to here.
41238 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
41239 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
41240 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
41241 * kern/i386/loader.S (grub_linux_real_addr)... to here.
41242 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
41243 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
41244 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
41245 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
41246 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
41247 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
41248 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
41249 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
41250
41251 * kern/i386/realmode.S: New file.
41252
41253 * kern/i386/pc/startup.S (protstack): Moved from here ...
41254 * kern/i386/realmode.S (protstack)... to here.
41255 * kern/i386/pc/startup.S (gdt): Moved from here ...
41256 * kern/i386/realmode.S (gdt)... to here.
41257 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
41258 * kern/i386/realmode.S (prot_to_real)... to here.
41259
41260 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
41261 `kern/i386/realmode.S'.
41262
825fc8fd 412632007-10-17 Robert Millan <rmh@aybabtu.com>
41264
41265 * include/grub/i386/loader.h: New file.
41266
41267 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
41268 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41269 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41270 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41271 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
41272 * include/grub/i386/loader.h (grub_linux_prot_size)
41273 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
41274 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
41275 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
41276 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
41277
41278 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
41279
e179b2f4 412802007-10-15 Robert Millan <rmh@aybabtu.com>
41281
41282 * normal/misc.c (grub_normal_print_device_info): Do not probe for
41283 filesystem when dev->disk is unset.
41284 Do probe for filesystem even when dev->disk->has_partitions is set.
41285 In case a filesystem is found, always report it.
41286 In case it isn't, if dev->disk->has_partitions is set, report that
41287 a partition table was found instead of reporting that no filesystem
41288 could be identified.
41289
5db82af6 412902007-10-12 Robert Millan <rmh@aybabtu.com>
41291
41292 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
41293 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
41294
68f6ac74 41295 * include/grub/types.h (grub_host_to_target16): New macro.
41296 (grub_host_to_target32): Likewise.
41297 (grub_host_to_target64): Likewise.
41298 (grub_target_to_host16): Likewise.
41299 (grub_target_to_host32): Likewise.
41300 (grub_target_to_host64): Likewise.
5db82af6 41301
41302 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41303 Renamed from to ...
41304 (GRUB_MOD_ALIGN): ...this. Update all users.
41305
68f6ac74 41306 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
41307 grub_host_to_target32.
41308 Replace grub_be_to_cpu32 with grub_target_to_host32.
41309 (load_modules): Likewise.
41310 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
41311 Replace grub_be_to_cpu32 with grub_target_to_host32.
41312 Replace grub_cpu_to_be16 with grub_host_to_target16.
41313 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 41314
3cf497cc 413152007-10-12 Robert Millan <rmh@aybabtu.com>
41316
41317 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
41318 * util/elf/grub-mkimage.c: ... here.
41319
41320 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
41321 `util/powerpc/ieee1275/grub-mkimage.c'.
41322
c8cc3692 413232007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 41324
c8cc3692 41325 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
41326 and make it easier to figure out.
41327 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
41328 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
41329 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
41330 leave us with less than HEAP_MIN_SIZE total heap.
41331 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 41332
5c58b791 413332007-10-03 Robert Millan <rmh@aybabtu.com>
41334
41335 * include/grub/i386/io.h: New file.
41336 * commands/i386/pc/play.c (inb): Removed.
41337 (outb): Removed.
41338 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41339 with grub_outb().
afcd2ef8 41340 * term/i386/pc/serial.c (inb): Removed.
41341 (outb): Removed.
41342 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41343 with grub_outb().
41344 * term/i386/pc/vga.c (inb): Removed.
41345 (outb): Removed.
41346 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
41347 with grub_outb().
5c58b791 41348
1a477ed6 413492007-10-02 Robert Millan <rmh@aybabtu.com>
41350
41351 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
41352 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41353 Reported by Marcin Kurek.
41354
6b5d80fa 413552007-09-07 Robert Millan <rmh@aybabtu.com>
41356
41357 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
41358 SmartFirmware version updates (as released by Sven Luther), and avoid
41359 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
41360 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
41361 known broken.
41362
5618afbf 413632007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41364
41365 From Hitoshi Ozeki:
41366 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
41367 when merging two regions.
41368
6139dcd9 413692007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
41370
508e39ee 41371 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
41372 * normal/completion.c (grub_normal_do_completion): Likewise.
41373 Reported by Hitoshi Ozeki.
41374
413752007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 41376
6139dcd9 41377 Do not use devices at boot in chainloading.
f19dbdb7 41378
6139dcd9 41379 * loader/i386/pc/chainloader.c (boot_drive): New variable.
41380 (boot_part_addr): Likewise.
41381 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
41382 with BOOT_DRIVE and BOOT_PART_ADDR.
41383 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
41384 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
41385
38da6516 413862007-08-29 Robert Millan <rmh@aybabtu.com>
41387
41388 Patch from Simon Peter <dn.tlp@gmx.net>:
41389 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
41390 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
41391 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
41392 util/i386/pc/grub-setup.c_DEPENDENCIES.
41393 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
41394 util/grub-probe.c_DEPENDENCIES.
41395 * conf/powerpc-ieee1275.rmk: Likewise.
41396
29d0928c 413972007-08-28 Robert Millan <rmh@aybabtu.com>
41398
41399 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
41400 to tell grub-mkdevicemap how to name devices.
41401 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
41402 feature).
41403
41404 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
41405 util/i386/get_disk_name.c.
41406 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
41407 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
41408 util/ieee1275/get_disk_name.c.
41409
41410 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
41411
41412 * DISTLIST: Add util/i386/get_disk_name.c and
41413 util/ieee1275/get_disk_name.c.
41414
41415 * util/grub-mkdevicemap.c: Replace device naming logic with
41416 grub_util_get_disk_name() calls.
41417
5a0d3cca 414182007-08-20 Robert Millan <rmh@aybabtu.com>
41419
41420 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
41421 (so that it works for both plural and singular quantities).
41422
8b72db2f 414232007-08-05 Robert Millan <rmh@aybabtu.com>
41424
41425 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
41426 so that [xz] isn't taken into account when determining order.
41427
352466bf 414282007-08-02 Marco Gerards <marco@gnu.org>
41429
41430 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
41431 `include/multiboot2.h', `include/grub/elfload.h',
41432 `include/multiboot.h', `include/grub/multiboot.h',
41433 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
41434 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
41435 `kern/elf.c', `loader/multiboot_loader.c',
41436 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
41437 `loader/i386/pc/multiboot2.c',
41438 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
41439 `util/i386/pc/grub-mkrescue.in'. Remove
41440 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
41441 `include/grub/i386/pc/util/biosdisk.h' and
41442 `include/grub/powerpc/ieee1275/multiboot.h'.
41443
8f096014 414442007-08-02 Bean <bean123ch@gmail.com>
41445
41446 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
41447 (ntfs_mod_SOURCES): New variable.
41448 (ntfs_mod_CFLAGS): Likewise.
41449 (ntfs_mod_LDFLAGS): Likewise.
41450
41451 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
41452 (grub_probe_SOURCES): Likewise.
41453 (grub_emu_SOURCES): Likewise.
41454
41455 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41456 (grub_emu_SOURCES): Likewise.
41457
41458 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
41459 (grub_emu_SOURCES): Likewise.
f19dbdb7 41460
8f096014 41461 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
41462
41463 * fs/ntfs.c: New file.
41464
9959f7db 414652007-08-02 Bean <bean123ch@gmail.com>
41466
41467 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
41468
41469 * file.h (grub_file): Likewise.
41470
41471 * fshelp.h (grub_fshelp_read_file): Likewise.
41472
41473 * util/i386/pc/grub-setup.c (setup): Likewise.
41474 (save_first_sector): Likewise.
41475 (save_blocklists): Likewise.
f19dbdb7 41476
9959f7db 41477 * fs/affs.c (grub_affs_read_file): Likewise.
41478
41479 * fs/ext2.c (grub_ext2_read_file): Likewise.
41480
41481 * fs/fat.c (grub_fat_read_data): Likewise.
41482
41483 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
41484
41485 * fs/hfs.c (grub_hfs_read_file): Likewise.
41486
41487 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
41488
41489 * fs/jfs.c (grub_jfs_read_file): Likewise.
41490
41491 * fs/minix.c (grub_minix_read_file): Likewise.
41492
41493 * fs/sfs.c (grub_sfs_read_file): Likewise.
41494
41495 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 41496
9959f7db 41497 * fs/xfs.c (grub_xfs_read_file): Likewise.
41498
41499 * command/blocklist.c (read_blocklist): Likewise.
41500 (print_blocklist): Likewise.
41501
0a203f83 415022007-08-02 Marco Gerards <marco@gnu.org>
41503
41504 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
41505 `util/hostfs.c'.
41506
41507 * disk/host.c: New file.
41508
41509 * util/hostfs.c: Likewise.
41510
41511 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
41512 return `GRUB_ERR_BAD_FS'.
41513 * fs/sfs.c (grub_sfs_mount): Likewise.
41514 * fs/xfs.c (grub_xfs_mount): Likewise.
41515
41516 * include/grub/disk.h (enum grub_disk_dev_id): Add
41517 `GRUB_DISK_DEVICE_HOST_ID'.
41518
41519 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
41520
e5dfe777 415212007-07-24 Jerone Young <jerone@gmail.com>
41522
f19dbdb7 41523 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 41524 modules for compilation.
41525 * conf/powerpc-ieee1275.rmk: Likewise.
41526
41527 * include/multiboot.h: Move multiboot definitions to one file. Rename
41528 many definitions to not get grub specific.
41529 * include/multiboot2.h: Create header with multiboot 2 definitions.
41530 * include/grub/multiboot.h: Header for grub specific function
41531 prototypes and definitions.
41532 * include/grub/multiboot2.h: Likewise.
41533 * include/grub/multiboot_loader.h: Likewise.
41534 * include/grub/i386/pc/multiboot.h: Removed.
41535 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
41536
41537 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
41538 and 2 to allow for one multiboot and module commands.
41539 * loader/multiboot2.c: Add multiboot2 functionality.
41540 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
41541 and definition names.
41542 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
41543 2 functions.
41544 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
41545 ieee1275 specific multiboot2 code.
41546
41547 * kern/i386/pc/startup.S: Change headers and definition names for
41548 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
41549
daf0f0ba 415502007-07-22 Robert Millan <rmh@aybabtu.com>
41551
41552 * geninitheader.sh: Process file specified in first parameter rather
41553 than hardcoding grub_modules_init.lst.
fe6b695a 41554 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 41555 than hardcoding grub_modules_init.h.
41556
41557 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
41558 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
41559 grub_probe_init.[ch] and grub_setup_init.[ch].
41560
41561 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
41562 grub_modules_init.h with grub_emu_init.h.
41563 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
41564 grub_probe_init.[ch] files.
41565 * conf/i386-efi.rmk: Likewise.
41566 * conf/i386-pc.rmk: Likewise.
41567 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
41568 grub_setup_init.[ch] files.
41569
41570 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
41571 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
41572 to initialize modules rather than a list of hardcoded functions.
41573 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
41574 grub_init_all() to initialize modules rather than a list of hardcoded
41575 functions.
41576
54cdc1cc 415772007-07-22 Robert Millan <rmh@aybabtu.com>
41578
41579 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
41580 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
41581
ad0686cc 415822007-07-22 Robert Millan <rmh@aybabtu.com>
41583
41584 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
41585 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
41586 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
41587 flag when running on SmartFirmware.
41588 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
41589 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
41590 was set.
41591
41592 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41593 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
41594 rather than decreasing it.
41595
41596 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
41597 there's not enough space to do it, fail in the same way as when it
41598 can't be done because there are no partitions.
41599
41600 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
41601 when nvsetenv failed.
41602
969c02ec 416032007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41604
41605 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
41606 because this rule is automatically generated.
41607 (grub-mkrescue): Removed for the same reason as above.
41608
5a79f472 416092007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
41610
41611 Migrate to GNU General Public License Version 3.
f19dbdb7 41612
5a79f472 41613 * COPYING: Replaced with the plain text version of GPLv3.
41614
41615 * config.guess: Updated from gnulib.
41616 * config.sub: Likewise.
41617
41618 * geninit.sh: Output a GPLv3 copyright notice.
41619 * geninitheader.sh: Likewise.
41620 * genmodsrc.sh: Likewise.
41621 * gensymlist.sh.in: Likewise.
41622
41623 * boot/i386/pc/boot.S: Upgraded to GPLv3.
41624 * boot/i386/pc/diskboot.S: Likewise.
41625 * boot/i386/pc/pxeboot.S: Likewise.
41626 * commands/blocklist.c: Likewise.
41627 * commands/boot.c: Likewise.
41628 * commands/cat.c: Likewise.
41629 * commands/cmp.c: Likewise.
41630 * commands/configfile.c: Likewise.
41631 * commands/echo.c: Likewise.
41632 * commands/help.c: Likewise.
41633 * commands/ls.c: Likewise.
41634 * commands/search.c: Likewise.
41635 * commands/terminal.c: Likewise.
41636 * commands/test.c: Likewise.
41637 * commands/videotest.c: Likewise.
41638 * commands/i386/cpuid.c: Likewise.
41639 * commands/i386/pc/halt.c: Likewise.
41640 * commands/i386/pc/play.c: Likewise.
41641 * commands/i386/pc/reboot.c: Likewise.
41642 * commands/i386/pc/vbeinfo.c: Likewise.
41643 * commands/i386/pc/vbetest.c: Likewise.
41644 * commands/ieee1275/halt.c: Likewise.
41645 * commands/ieee1275/reboot.c: Likewise.
41646 * commands/ieee1275/suspend.c: Likewise.
41647 * disk/loopback.c: Likewise.
41648 * disk/lvm.c: Likewise.
41649 * disk/raid.c: Likewise.
41650 * disk/efi/efidisk.c: Likewise.
41651 * disk/i386/pc/biosdisk.c: Likewise.
41652 * disk/ieee1275/ofdisk.c: Likewise.
41653 * font/manager.c: Likewise.
41654 * fs/affs.c: Likewise.
41655 * fs/ext2.c: Likewise.
41656 * fs/fat.c: Likewise.
41657 * fs/fshelp.c: Likewise.
41658 * fs/hfs.c: Likewise.
41659 * fs/hfsplus.c: Likewise.
41660 * fs/iso9660.c: Likewise.
41661 * fs/jfs.c: Likewise.
41662 * fs/minix.c: Likewise.
41663 * fs/sfs.c: Likewise.
41664 * fs/ufs.c: Likewise.
41665 * fs/xfs.c: Likewise.
41666 * hello/hello.c: Likewise.
41667 * include/grub/acorn_filecore.h: Likewise.
41668 * include/grub/arg.h: Likewise.
41669 * include/grub/bitmap.h: Likewise.
41670 * include/grub/boot.h: Likewise.
41671 * include/grub/cache.h: Likewise.
41672 * include/grub/device.h: Likewise.
41673 * include/grub/disk.h: Likewise.
41674 * include/grub/dl.h: Likewise.
41675 * include/grub/elfload.h: Likewise.
41676 * include/grub/env.h: Likewise.
41677 * include/grub/err.h: Likewise.
41678 * include/grub/file.h: Likewise.
41679 * include/grub/font.h: Likewise.
41680 * include/grub/fs.h: Likewise.
41681 * include/grub/fshelp.h: Likewise.
41682 * include/grub/gzio.h: Likewise.
41683 * include/grub/hfs.h: Likewise.
41684 * include/grub/kernel.h: Likewise.
41685 * include/grub/loader.h: Likewise.
41686 * include/grub/lvm.h: Likewise.
41687 * include/grub/misc.h: Likewise.
41688 * include/grub/mm.h: Likewise.
41689 * include/grub/net.h: Likewise.
41690 * include/grub/normal.h: Likewise.
41691 * include/grub/parser.h: Likewise.
41692 * include/grub/partition.h: Likewise.
41693 * include/grub/pc_partition.h: Likewise.
41694 * include/grub/raid.h: Likewise.
41695 * include/grub/rescue.h: Likewise.
41696 * include/grub/script.h: Likewise.
41697 * include/grub/setjmp.h: Likewise.
41698 * include/grub/symbol.h: Likewise.
41699 * include/grub/term.h: Likewise.
41700 * include/grub/terminfo.h: Likewise.
41701 * include/grub/tparm.h: Likewise.
41702 * include/grub/types.h: Likewise.
41703 * include/grub/video.h: Likewise.
41704 * include/grub/efi/api.h: Likewise.
41705 * include/grub/efi/chainloader.h: Likewise.
41706 * include/grub/efi/console.h: Likewise.
41707 * include/grub/efi/console_control.h: Likewise.
41708 * include/grub/efi/disk.h: Likewise.
41709 * include/grub/efi/efi.h: Likewise.
41710 * include/grub/efi/pe32.h: Likewise.
41711 * include/grub/efi/time.h: Likewise.
41712 * include/grub/i386/linux.h: Likewise.
41713 * include/grub/i386/setjmp.h: Likewise.
41714 * include/grub/i386/types.h: Likewise.
41715 * include/grub/i386/efi/kernel.h: Likewise.
41716 * include/grub/i386/efi/loader.h: Likewise.
41717 * include/grub/i386/efi/time.h: Likewise.
41718 * include/grub/i386/pc/biosdisk.h: Likewise.
41719 * include/grub/i386/pc/boot.h: Likewise.
41720 * include/grub/i386/pc/chainloader.h: Likewise.
41721 * include/grub/i386/pc/console.h: Likewise.
41722 * include/grub/i386/pc/init.h: Likewise.
41723 * include/grub/i386/pc/kernel.h: Likewise.
41724 * include/grub/i386/pc/loader.h: Likewise.
41725 * include/grub/i386/pc/memory.h: Likewise.
41726 * include/grub/i386/pc/multiboot.h: Likewise.
41727 * include/grub/i386/pc/serial.h: Likewise.
41728 * include/grub/i386/pc/time.h: Likewise.
41729 * include/grub/i386/pc/vbe.h: Likewise.
41730 * include/grub/i386/pc/vbeblit.h: Likewise.
41731 * include/grub/i386/pc/vbefill.h: Likewise.
41732 * include/grub/i386/pc/vbeutil.h: Likewise.
41733 * include/grub/i386/pc/vga.h: Likewise.
41734 * include/grub/ieee1275/ieee1275.h: Likewise.
41735 * include/grub/ieee1275/ofdisk.h: Likewise.
41736 * include/grub/powerpc/libgcc.h: Likewise.
41737 * include/grub/powerpc/setjmp.h: Likewise.
41738 * include/grub/powerpc/types.h: Likewise.
41739 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
41740 * include/grub/powerpc/ieee1275/console.h: Likewise.
41741 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
41742 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
41743 * include/grub/powerpc/ieee1275/loader.h: Likewise.
41744 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
41745 * include/grub/powerpc/ieee1275/time.h: Likewise.
41746 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
41747 * include/grub/sparc64/libgcc.h: Likewise.
41748 * include/grub/sparc64/setjmp.h: Likewise.
41749 * include/grub/sparc64/types.h: Likewise.
41750 * include/grub/sparc64/ieee1275/console.h: Likewise.
41751 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
41752 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
41753 * include/grub/sparc64/ieee1275/time.h: Likewise.
41754 * include/grub/util/biosdisk.h: Likewise.
41755 * include/grub/util/getroot.h: Likewise.
41756 * include/grub/util/lvm.h: Likewise.
41757 * include/grub/util/misc.h: Likewise.
41758 * include/grub/util/raid.h: Likewise.
41759 * include/grub/util/resolve.h: Likewise.
41760 * io/gzio.c: Likewise.
41761 * kern/device.c: Likewise.
41762 * kern/disk.c: Likewise.
41763 * kern/dl.c: Likewise.
41764 * kern/elf.c: Likewise.
41765 * kern/env.c: Likewise.
41766 * kern/err.c: Likewise.
41767 * kern/file.c: Likewise.
41768 * kern/fs.c: Likewise.
41769 * kern/loader.c: Likewise.
41770 * kern/main.c: Likewise.
41771 * kern/misc.c: Likewise.
41772 * kern/mm.c: Likewise.
41773 * kern/parser.c: Likewise.
41774 * kern/partition.c: Likewise.
41775 * kern/rescue.c: Likewise.
41776 * kern/term.c: Likewise.
41777 * kern/efi/efi.c: Likewise.
41778 * kern/efi/init.c: Likewise.
41779 * kern/efi/mm.c: Likewise.
41780 * kern/i386/dl.c: Likewise.
41781 * kern/i386/efi/init.c: Likewise.
41782 * kern/i386/efi/startup.S: Likewise.
41783 * kern/i386/pc/init.c: Likewise.
41784 * kern/i386/pc/lzo1x.S: Likewise.
41785 * kern/i386/pc/startup.S: Likewise.
41786 * kern/ieee1275/ieee1275.c: Likewise.
41787 * kern/powerpc/cache.S: Likewise.
41788 * kern/powerpc/dl.c: Likewise.
41789 * kern/powerpc/ieee1275/cmain.c: Likewise.
41790 * kern/powerpc/ieee1275/crt0.S: Likewise.
41791 * kern/powerpc/ieee1275/init.c: Likewise.
41792 * kern/powerpc/ieee1275/openfw.c: Likewise.
41793 * kern/sparc64/cache.S: Likewise.
41794 * kern/sparc64/dl.c: Likewise.
41795 * kern/sparc64/ieee1275/init.c: Likewise.
41796 * kern/sparc64/ieee1275/openfw.c: Likewise.
41797 * loader/efi/chainloader.c: Likewise.
41798 * loader/efi/chainloader_normal.c: Likewise.
41799 * loader/i386/efi/linux.c: Likewise.
41800 * loader/i386/efi/linux_normal.c: Likewise.
41801 * loader/i386/pc/chainloader.c: Likewise.
41802 * loader/i386/pc/chainloader_normal.c: Likewise.
41803 * loader/i386/pc/linux.c: Likewise.
41804 * loader/i386/pc/linux_normal.c: Likewise.
41805 * loader/i386/pc/multiboot.c: Likewise.
41806 * loader/i386/pc/multiboot_normal.c: Likewise.
41807 * loader/powerpc/ieee1275/linux.c: Likewise.
41808 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
41809 * normal/arg.c: Likewise.
41810 * normal/cmdline.c: Likewise.
41811 * normal/command.c: Likewise.
41812 * normal/completion.c: Likewise.
41813 * normal/execute.c: Likewise.
41814 * normal/function.c: Likewise.
41815 * normal/lexer.c: Likewise.
41816 * normal/main.c: Likewise.
41817 * normal/menu.c: Likewise.
41818 * normal/menu_entry.c: Likewise.
41819 * normal/misc.c: Likewise.
41820 * normal/parser.y: Likewise.
41821 * normal/script.c: Likewise.
41822 * normal/i386/setjmp.S: Likewise.
41823 * normal/powerpc/setjmp.S: Likewise.
41824 * normal/sparc64/setjmp.S: Likewise.
41825 * partmap/acorn.c: Likewise.
41826 * partmap/amiga.c: Likewise.
41827 * partmap/apple.c: Likewise.
41828 * partmap/gpt.c: Likewise.
41829 * partmap/pc.c: Likewise.
41830 * partmap/sun.c: Likewise.
41831 * term/gfxterm.c: Likewise.
41832 * term/terminfo.c: Likewise.
41833 * term/efi/console.c: Likewise.
41834 * term/i386/pc/console.c: Likewise.
41835 * term/i386/pc/serial.c: Likewise.
41836 * term/i386/pc/vesafb.c: Likewise.
41837 * term/i386/pc/vga.c: Likewise.
41838 * term/ieee1275/ofconsole.c: Likewise.
41839 * util/biosdisk.c: Likewise.
41840 * util/console.c: Likewise.
41841 * util/genmoddep.c: Likewise.
41842 * util/getroot.c: Likewise.
41843 * util/grub-emu.c: Likewise.
41844 * util/grub-mkdevicemap.c: Likewise.
41845 * util/grub-probe.c: Likewise.
41846 * util/lvm.c: Likewise.
41847 * util/misc.c: Likewise.
41848 * util/raid.c: Likewise.
41849 * util/resolve.c: Likewise.
41850 * util/update-grub.in: Likewise.
41851 * util/update-grub_lib.in: Likewise.
41852 * util/grub.d/00_header.in: Likewise.
41853 * util/grub.d/10_hurd.in: Likewise.
41854 * util/grub.d/10_linux.in: Likewise.
41855 * util/i386/efi/grub-install.in: Likewise.
41856 * util/i386/efi/grub-mkimage.c: Likewise.
41857 * util/i386/pc/grub-install.in: Likewise.
41858 * util/i386/pc/grub-mkimage.c: Likewise.
41859 * util/i386/pc/grub-mkrescue.in: Likewise.
41860 * util/i386/pc/grub-setup.c: Likewise.
41861 * util/i386/pc/misc.c: Likewise.
41862 * util/powerpc/ieee1275/grub-install.in: Likewise.
41863 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41864 * util/powerpc/ieee1275/misc.c: Likewise.
41865 * video/bitmap.c: Likewise.
41866 * video/video.c: Likewise.
41867 * video/i386/pc/vbe.c: Likewise.
41868 * video/i386/pc/vbeblit.c: Likewise.
41869 * video/i386/pc/vbefill.c: Likewise.
41870 * video/i386/pc/vbeutil.c: Likewise.
41871 * video/readers/tga.c: Likewise.
41872
3572d015 418732007-07-02 Robert Millan <rmh@aybabtu.com>
41874
41875 * conf/i386-efi.rmk: Replace obsolete reference to
41876 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41877 with util/getroot.c.
41878 * conf/powerpc-ieee1275.rmk: Likewise.
41879 * conf/sparc64-ieee1275.rmk: Likewise.
41880
41881 * util/grub-emu.c (main): Fix unchecked pointer handling.
41882
2c2a681b 418832007-07-02 Robert Millan <rmh@aybabtu.com>
41884
41885 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41886 invocation to fail, in order to support partition-less media.
41887
41888 * util/i386/pc/grub-install.in: Likewise.
41889
41890 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41891 which fs or partmap modules are needed (akin to its sister scripts).
41892
41893 Also use grub-probe to get rid of unportable /proc/mounts check.
41894
41895 Print the same informational message that the other scripts do, before
fe6b695a 41896 exiting.
2c2a681b 41897
6193defe 418982007-06-23 Robert Millan <rmh@aybabtu.com>
41899
fe6b695a 41900 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 41901 a font file can be found and, if so, echo the GRUB path to it.
41902
41903 * util/update-grub.in: Handle multiple terminals depending on user
41904 input, platform availability and font file presence. Propagate
41905 variables of our findings to /etc/grub.d/ children.
41906
41907 * util/grub.d/00_header.in: Handle multiple terminals, based on
41908 environment setup by update-grub.
41909
eface1dc 419102007-06-23 Robert Millan <rmh@aybabtu.com>
41911
ba50d28f 41912 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 41913
bf697e28 419142007-06-21 Robert Millan <rmh@aybabtu.com>
41915
41916 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41917 indicate end of data section in kernel image.
41918 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41919 GRUB_KERNEL_MACHINE_DATA_END.
41920
41921 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41922 space for it.
41923 * kern/i386/efi/startup.S: Likewise.
41924
41925 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41926 during image generation. Implement --prefix option to override this
41927 patch.
41928 * util/i386/efi/grub-mkimage.c: Likewise.
41929
41930 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41931 code to make path relative to its root into a separate function.
41932
41933 * util/i386/pc/grub-install.in: Use newly provided
41934 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41935 pass the result to grub-install --prefix.
41936
baa574b4 419372007-06-13 Robert Millan <rmh@aybabtu.com>
41938
41939 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41940 DEFAULT_DEVICE_MAP.
41941 * util/grub-emu.c: Use above definitions from misc.h instead of
41942 defining them.
41943 * util/grub-mkdevicemap.c: Likewise.
41944 * util/i386/pc/grub-setup.c: Likewise.
41945 * util/grub-probe.c: Likewise.
41946 (probe): Abort with grub_util_error() when either
41947 grub_guess_root_device or grub_util_get_grub_dev fails.
41948
0215dcbf 419492007-06-12 Robert Millan <rmh@aybabtu.com>
41950
41951 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41952 "pager" assignment.
41953 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41954 "pcdata".
41955 * util/grub-probe.c (probe): Likewise for "drive_name".
41956
8af2ab7b 419572007-06-11 Robert Millan <rmh@aybabtu.com>
41958
41959 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41960 not just the cdrom one.
41961
59d31694 419622007-06-11 Robert Millan <rmh@aybabtu.com>
41963
41964 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41965 Add --pkglibdir=DIR option to override pkglibdir.
41966 Mention --image-type=TYPE in help output.
41967 Fix --grub-mkimage (it was a no-op).
fe6b695a 41968 Abort gracefully when no parameter is given.
59d31694 41969
7ee367e4 419702007-06-11 Robert Millan <rmh@aybabtu.com>
41971
41972 * util/i386/pc/grub-mkrescue.in: New file.
41973 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41974 * Makefile.in: Handle bin_SCRIPTS.
41975
29b0ed46 419762007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41977
41978 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41979 list of video modes.
41980
c0f90770 419812007-06-06 Robert Millan <rmh@aybabtu.com>
41982
41983 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41984 file doesn't exist, or if it is in a filesystem grub can't read.
41985
41986 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41987 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41988 header comment to fit in 80 columns when the variables are resolved.
41989
41990 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41991 could be identified by update-grub. Remove redundant check for
fe6b695a 41992 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 41993 handles that).
41994
fb36dc26 419952007-06-04 Robert Millan <rmh@aybabtu.com>
41996
41997 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41998
41999 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
42000
42001 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
42002
0c68c93e 420032007-06-04 Robert Millan <rmh@aybabtu.com>
42004
42005 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
42006
42007 * include/grub/partition.h: Declare grub_apple_partition_map_init and
42008 grub_apple_partition_map_fini.
42009
42010 * util/biosdisk.c
42011 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
42012 to access >2 TiB disks).
42013
42014 Print disk->total_sectors with %llu instead of %lu, since this
42015 variable is always 64-bit (prevents wrong disk size from being displayed
42016 on either >2 TiB disk or big-endian CPU).
42017
42018 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
42019 into a generic case that supports all (sane) partition maps.
42020
42021 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
42022 breaks big-endian.
42023
42024 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
42025 and grub_apple_partition_map_fini() after that.
42026
0f23eb74 420272007-06-01 Robert Millan <rmh@aybabtu.com>
42028
42029 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
42030
42031 * util/grub.d/00_header.in: Only enable gfxterm when
42032 convert_system_path_to_grub_path() succeeds.
42033
42c71976 420342007-05-20 Robert Millan <rmh@aybabtu.com>
42035
42036 * util/update-grub_lib.in: New file.
42037 * DISTLIST: Add update-grub_lib.in.
42038 * conf/common.rmk: Generate update-grub_lib and install it in
42039 $(lib_DATA).
42040 * Makefile.in: Add install routine for $(lib_DATA).
42041
42042 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
42043 function provided by update-grub_lib to support arbitrary paths of
42044 unifont.pff.
42045 * util/update-grub.in: Use convert_system_path_to_grub_path() to
42046 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
42047
5beb2291 420482007-05-19 Robert Millan <rmh@aybabtu.com>
42049
42050 * commands/i386/cpuid.c: New module.
42051 * DISTLIST: Add it.
42052 * conf/i386-efi.rmk: Enable cpuid.mod.
42053 * conf/i386-pc.rmk: Likewise.
42054
7262eca1 420552007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42056
42057 * kern/disk.c (grub_disk_read): Check return value of
42058 grub_realloc().
42059
260ba823 420602007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
42061
42062 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
42063 arrays.
42064 * disk/raid.c (grub_raid_open): Likewise.
42065
1ecb6cf2 420662007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42067
42068 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
42069 stack instead of on the heap.
42070
42071 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
42072 before doing a read on it.
42073
42074 * configure.ac: Only use -fno-stack-protector for the target
42075 environment.
f19dbdb7 42076
21c8cbb1 420772007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
42078
42079 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
42080 __attribute_ ((unused)) to mode_type argument.
42081
42082 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 42083
21c8cbb1 42084 * kern/misc.c (memcmp): Fix prototype.
42085
42086 * include/grub/partition.h [GRUB_UTIL]
42087 (grub_gpt_partition_map_init): Add prototype.
42088 (grub_gpt_partition_map_fini): Likewise.
42089
42090 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
42091 at the right place.
42092
42093 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
42094 (grub_fat_read_data): Likewise.
42095 (grub_fat_find_dir): Likewise.
42096
42097 * font/manager.c (find_glyph): Make table a const.
42098 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 42099
849d55d3 421002007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
42101
42102 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
42103 code, first search for device in /dev/mapper, then in /dev.
42104 (grub_util_get_grub_dev): New function.
42105 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
42106 prototype.
42107 * util/grub-probe.c (probe): Remove check for RAID, call
42108 grub_util_get_grub_dev() instead of
42109 grub_util_biosdisk_get_grub_dev().
42110 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
42111 grub_util_biosdisk_get_grub_dev().
42112 * util/i386/pc/grub-setup.c (main): Likewise.
42113
8fff7c2f 421142007-05-16 Robert Millan <rmh@aybabtu.com>
42115
42116 * DISTLIST: Update for the latest changes.
42117 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
42118 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
42119 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
42120 grub/util/biosdisk.h.
42121 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
42122 grub/util/biosdisk.h.
42123
48e12b52 421242007-05-16 Robert Millan <rmh@aybabtu.com>
42125
42126 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
42127
46b9d128 421282007-05-16 Robert Millan <rmh@aybabtu.com>
42129
42130 * util/i386/efi/grub-install.in: New.
42131 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
42132 newly added grub-install.
42133 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
42134 include.
42135 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
42136 grub/util/biosdisk.h.
42137 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
42138 grub/util/biosdisk.h.
42139
2d1a40a9 421402007-05-16 Robert Millan <rmh@aybabtu.com>
42141
42142 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
42143 * include/grub/util/biosdisk.h: ... here.
42144 * util/i386/pc/biosdisk.c: Moved to ...
42145 * util/biosdisk.c: ... here.
42146 * util/i386/pc/getroot.c: Moved to ...
42147 * util/getroot.c: ... here.
42148 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
42149 * util/grub-mkdevicemap.c: ... here.
42150 * util/i386/pc/grub-probe.c: Moved to ...
42151 * util/grub-probe.c: ... here.
42152
9e26e3bc 421532007-05-15 Robert Millan <rmh@aybabtu.com>
42154
42155 * util/update-grub.in: Remove duplicated line in grub.cfg header
42156 message.
42157
57f96397 421582007-05-13 Robert Millan <rmh@aybabtu.com>
42159
42160 * util/update-grub.in: Fix a few assumptions about the devices holding
42161 /, /boot and /boot/grub being the same.
42162 * util/grub.d/00_header.in: Likewise.
42163 * util/grub.d/10_hurd.in: Likewise.
42164 * util/grub.d/10_linux.in: Likewise.
42165
42166 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
42167 patterns. Use that to define the `.old' suffix as older than `'.
42168
42169 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
42170
42171 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
42172 the grub.cfg header message.
42173
2e610d62 421742007-05-11 Robert Millan <rmh@aybabtu.com>
42175
42176 * util/update-grub.in: Create device.map if it doesn't already exist,
42177 before attempting to run grub-probe.
42178 Check for grub-probe and grub-mkdevicemap with the same code
42179 grub-install is using.
42180 Remove test mode.
42181
3f6a10ef 421822007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
42183
42184 * Makefile.in: Add the datarootdir autoconf variable.
42185
02e7b75e 421862007-05-09 Robert Millan <rmh@aybabtu.com>
42187
42188 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 42189 fail gracefully if dev->disk->partition == NULL.
02e7b75e 42190
75f396cc 421912007-05-07 Robert Millan <rmh@aybabtu.com>
42192
42193 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
42194 determine partition map module.
42195 * util/i386/pc/grub-install.in: Use this feature to decide which
42196 partition module to load, instead of hardcoding pc and gpt.
42197
da65cb36 421982007-05-07 Robert Millan <rmh@aybabtu.com>
42199
42200 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
42201 source directory differs from build directory.
42202
b57d6a91 422032007-05-05 Robert Millan <rmh@aybabtu.com>
42204
42205 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
42206 initialisation.
42207
509d00f1 422082007-05-05 Robert Millan <rmh@aybabtu.com>
42209
42210 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
42211
c48f23ef 422122007-05-05 Robert Millan <rmh@aybabtu.com>
42213
42214 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
42215 command-line arguments via ${GRUB_CMDLINE_LINUX}.
42216
20b97658 422172007-05-05 Robert Millan <rmh@aybabtu.com>
42218
42219 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
42220 (grub_probe_SOURCES): Likewise.
42221 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
42222 GPT and initialize dos_part and bsd_part accordingly.
42223 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
42224 install_bsd_part.
42225 (main): Activate gpt module for use during partition identification,
42226 and deactivate it afterwards.
42227 * util/i386/pc/grub-install.in: Add gpt module to core.img.
42228 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
42229 partition identification, and deactivate it afterwards.
42230
99123174 422312007-05-05 Robert Millan <rmh@aybabtu.com>
42232
42233 * term/i386/pc/console.c (grub_console_fini): Call
42234 grub_term_set_current() before grub_term_unregister().
42235
ebd97f6e 422362007-05-04 Robert Millan <rmh@aybabtu.com>
42237
42238 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
42239 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
42240 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
42241 and update-grub_DATA.
42242 * conf/common.rmk: Build and install update-grub components.
42243 * conf/common.mk: Regenerate.
42244 * util/update-grub.in: New. Core of update-grub.
42245 * util/grub.d/00_header.in: New. Generates grub.cfg header.
42246 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
42247 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
42248 * util/grub.d/README: New. Document grub.d directory layout.
42249
b06a264d 422502007-05-01 Robert Millan <rmh@aybabtu.com>
42251
42252 * util/grub-emu.c: Move initialization functions
42253 grub_util_biosdisk_init() and grub_init_all() before
42254 grub_util_biosdisk_get_grub_dev(), which relies on them.
42255
41f0050e 422562007-04-19 Robert Millan <rmh@aybabtu.com>
42257
42258 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
42259 it is used later.
42260
04582bb3 422612007-04-18 Jerone Young <jerone@gmail.com>
42262
f19dbdb7 42263 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 42264 stanza.
42265
08db4632 422662007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 42267
08db4632 42268 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
42269 continue on and look for device node with real device name.
42270
801b76be 422712007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 42272
fe6b695a 42273 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 42274 ability.
42275 * Makefile.in: Add autoconf package transformation code.
42276 * util/i386/pc/grub-install.in: Likewise.
42277 * util/powerpc/ieee1275/grub-install.in: Likewise.
42278
6795c4e1 422792007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
42280
42281 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
42282 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
42283 (EXT2_REVISION): Likewise.
42284 (EXT2_INODE_SIZE): Likewise.
42285 (struct grub_ext2_block_group): Added a missing member
42286 "used_dirs".
42287 (grub_ext2_read_inode): Divide by the inode size in a superblock
42288 instead of 128 to obtain INODES_PER_BLOCK.
42289 Use the macro EXT2_INODE_SIZE instead of directly using
42290 SBLOCK->INODE_SIZE.
42291
d70af616 422922007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
42293
42294 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
42295 superblock instead of the structure size to compute an
42296 offset. This fixes the problem that GRUB could not read a
42297 filesystem when inode size is different from 128-byte.
42298
3b801603 422992007-03-05 Marco Gerards <marco@gnu.org>
42300
42301 * normal/main.c (read_config_file): When "menu" is not set, create
42302 an initial context.
42303
4785bfe4 423042007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42305
42306 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
42307 (HEAP_LIMIT): New macro.
42308 (grub_claim_heap): Claim memory up to `heaplimit'.
42309
a0cbb023 423102007-02-21 Hollis Blanchard <hollis@penguinppc.org>
42311
42312 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
42313 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
42314 (_start): Likewise.
42315 (grub_arch_modules_addr): Return address after `_end'.
42316 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
42317 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
42318 (add_segments): Calculate `_end' from phdr size and location.
42319 (ALIGN_UP): Moved to ...
42320 * include/grub/misc.h: here.
42321 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
42322 New macro.
42323 (GRUB_IEEE1275_MODULE_BASE): Removed.
42324
fd7d8eba 423252007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42326
42327 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
42328 loop boundary.
42329
9b09e6fc 423302007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42331
42332 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
42333 All users updated.
42334 (grub_elf64_load_hook_t): Likewise.
42335 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
42336 debug output.
42337
3ce27299 423382007-02-20 Hollis Blanchard <hollis@penguinppc.org>
42339
42340 * kern/mm.c: Update copyright.
42341 (grub_mm_debug): Correct syntax error.
42342 (grub_mm_dump_free): New function.
42343 (grub_debug_free): Call `grub_free'.
42344 * include/grub/mm.h: Update copyright.
42345 (grub_mm_dump_free): Add declaration.
42346
077d5fee 423472007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42348
42349 * include/grub/ieee1275/ieee1275.h: Update copyright.
42350 * kern/powerpc/ieee1275/init.c: Likewise.
42351 * kern/powerpc/ieee1275/openfw.c: Likewise.
42352
42353 * loader/powerpc/ieee1275/linux.c: Likewise.
42354 * include/grub/elfload.h: Likewise.
42355 * kern/elf.c: Likewise.
42356 (grub_elf32_load): Pass `base' and `size' parameters. Update all
42357 callers.
42358 (grub_elf64_load): Likewise.
42359 (grub_elf32_load_segment): Move to a nested function.
42360 (grub_elf64_load_segment): Likewise.
42361
dc946850 423622007-02-12 Hollis Blanchard <hollis@penguinppc.org>
42363
42364 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
42365 prototype.
42366 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
42367 (grub_heap_len): Likewise.
42368 (HEAP_SIZE): New macro.
42369 (grub_claim_heap): New function.
42370 (grub_machine_init): Don't claim heap directly. Call
42371 `grub_claim_heap'.
42372 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
42373 (grub_available_iterate): New function.
42374
baa2a121 423752007-02-03 Thomas Schwinge <tschwinge@gnu.org>
42376
42377 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
42378 * configure.ac: Use it for testing the HOST and TARGET compilers.
42379
4fe9862e 423802006-12-13 Thomas Schwinge <tschwinge@gnu.org>
42381
42382 * Makefile.in (enable_grub_emu): New variable.
42383 * configure.ac (--enable-grub-emu): New option.
42384 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
42385 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
42386 * conf/i386-pc.rmk: Likewise.
42387 * conf/powerpc-ieee1275.rmk: Likewise.
42388 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
42389
a8aa5762 423902006-12-12 Marco Gerards <marco@gnu.org>
42391
42392 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
42393
42394 * kern/env.c (grub_env_unset): Don't free the member `value' when
42395 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
42396 pointer.
42397
42398 * normal/main.c (current_menu): Removed.
42399 (free_menu): Unset the `menu' environment variable.
42400 (grub_normal_menu_addentry): Make use of the environment variable
42401 `menu', instead of using the global `current_menu'. Allocate
42402 memory for the sourcecode of this entry.
42403 (read_config_file): New argument `nested', changed all callers.
42404 Only in the case of a new context, initialize a new menu. Set the
42405 `menu' environment variable.
42406 (grub_normal_execute): Don't set and unset the environment
42407 variable `menu' here anymore. Only free the menu when leaving the
42408 context.
42409
42410 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
42411 leak.
42412
957b3a3e 424132006-12-11 Marco Gerards <marco@gnu.org>
42414
42415 * normal/menu_entry.c (run): Fix off by one bug so the last line
42416 is executed. Move the loader check to outside the loop.
42417
ef875714 424182006-12-08 Hollis Blanchard <hollis@penguinppc.org>
42419
42420 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
42421
4e739985 424222006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
42423
42424 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
42425 the number of sectors. Reported by Andrey Shuvikov
42426 <mr_hyro@yahoo.com>.
f19dbdb7 42427
790707f2 424282006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
42429
42430 * kern/disk.c (grub_disk_read): When there is a read error, always
42431 try to read only the necessary data.
f19dbdb7 42432
790707f2 42433 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
42434 disk/raid.c.
42435 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
42436 prototype.
42437 [GRUB_UTIL] (grub_raid_fini): Likewise.
42438 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 42439 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 42440 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
42441 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
42442 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
42443 and grub_raid_fini().
f19dbdb7 42444
03e58196 424452006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
42446
42447 * include/grub/types.h (__unused): Rename to UNUSED.
42448 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
42449 (grub_elf64_size): Likewise.
f19dbdb7 42450
ae4f23bf 424512006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42452
42453 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
42454 grub_error_push and grub_error_pop in the error-handling path.
42455 (grub_elf32_load_segment): Only call grub_file_read with non-zero
42456 length.
42457
2166cc83 424582006-11-03 Hollis Blanchard <hollis@penguinppc.org>
42459
42460 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
42461 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42462 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42463 (kernel_elf_SOURCES): Likewise.
42464 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
42465 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
42466 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42467 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
42468 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
42469 (elf_mod_SOURCES): New variable.
42470 (elf_mod_CFLAGS): Likewise.
42471 (elf_mod_LDFLAGS): Likewise.
42472 * include/grub/types.h (__unused): New macro.
42473 * include/grub/elfload.h: New file.
42474 * kern/elf.c: Likewise.
42475 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
42476 (ELF32_LOADMASK): New macro.
42477 (ELF64_LOADMASK): Likewise.
42478 (vmlinux): Removed.
42479 (grub_linux_load32): New function.
42480 (grub_linux_load64): Likewise.
42481 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
42482 Use grub_elf_t instead of grub_file_t.
42483
a09d5aa5 424842006-11-02 Hollis Blanchard <hollis@penguinppc.org>
42485
42486 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
42487 `catch_result' to struct set_color_args.
42488
d976fc51 424892006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
42490
42491 * normal/menu.c: Include grub/script.h.
42492 * normal/menu_entry.c: Likewise.
42493 * include/grub/normal.h: Do not include grub/script.h.
42494
67507549 424952006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42496
42497 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
42498
69203a99 424992006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42500
42501 * kern/disk.c (grub_disk_open): Print debug messages when opening a
42502 disk.
42503 (grub_disk_close): Print debug messages when closing a disk.
42504 (grub_disk_read): Print debug messages when disk read fails.
42505 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
42506 filesystem type.
42507 * kern/partition.c: Include misc.h.
42508 (grub_partition_iterate): Print debug messages when detecting
42509 partition type.
42510
e2b8278c 425112006-10-27 Hollis Blanchard <hollis@penguinppc.org>
42512
42513 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
42514 is negative.
42515 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
42516
97b2f2ff 425172006-10-26 Hollis Blanchard <hollis@penguinppc.org>
42518
42519 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
42520 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
42521
6555d655 425222006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
42523
42524 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
42525 instead of sizeof(lv). Patch by Michael Guntsche.
42526
4d42b77f 425272006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
42528
42529 * disk/lvm.c: Rename VGS to VG_LIST.
42530 (grub_lvm_iterate): Change VGS->LV to VG-LV.
42531 (grub_lvm_open): Likewise.
42532 Thanks to Michael Guntsche for finding this bug.
42533
5d74d927 425342006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
42535
42536 * configure.ac (AC_INIT): Bumped to 1.95.
42537
a1bb27e4 425382006-10-14 Robert Millan <rmh@aybabtu.com>
42539
42540 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
42541 with "/dev/.static/dev/md".
42542
e0994b8b 425432006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42544
42545 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
42546 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
42547 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
42548 DRIVE_NAME are always freed.
42549
42550 * util/i386/pc/biosdisk.c (make_device_name): Add one into
42551 DOS_PART, as a DOS partition is counted from one instead of zero
42552 now. Reported by Robert Millan.
42553
ddd5cee9 425542006-10-14 Robert Millan <rmh@aybabtu.com>
42555
42556 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
42557 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
42558 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
42559 string returned by grub_guess_root_device.
42560 * util/i386/pc/grub-setup.c: Likewise.
42561 * util/i386/pc/grub-probefs.c: Likewise.
42562
42563 * util/i386/pc/grub-probefs.c: Rename to ...
42564 * util/i386/pc/grub-probe.c: ... this.
42565 * DISTLIST: Remove grub-probefs, add grub-probe.
42566 * conf/i386-efi.rmk: Likewise.
42567 * conf/i386-pc.rmk: Likewise.
42568 * util/i386/pc/grub-install.in: Likewise.
42569
42570 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
42571 choose which information we want to print.
42572
2b002173 425732006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
42574
42575 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
42576 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
42577 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
42578 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
42579 video/readers/tga.c and video/i386/pc/vbeutil.c.
42580
425812006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
42582
42583 Added support for RAID and LVM.
f19dbdb7 42584
2b002173 42585 * disk/lvm.c: New file.
42586 * disk/raid.c: Likewise.
42587 * include/grub/lvm.h: Likewise.
f19dbdb7 42588 * include/grub/raid.h: Likewise.
2b002173 42589 * include/grub/util/lvm.h: Likewise.
42590 * include/grub/util/raid.h: Likewise.
42591 * util/lvm.c: Likewise.
42592 * util/raid.c: Likewise.
42593
42594 * include/grub/disk.h (grub_disk_dev_id): Add
42595 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
42596 (grub_disk_get_size): New prototype.
42597 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
42598 returns a partition.
42599 (grub_disk_get_size): New function.
f19dbdb7 42600
2b002173 42601 * kern/i386/pc/init.c (make_install_device): Copy the prefix
42602 verbatim if grub_install_dos_part is -2.
42603
42604 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
42605 and LVM devices.
42606
42607 * util/i386/pc/grub-setup.c (setup): New argument
42608 MUST_EMBED. Force embedding of GRUB when the argument is
42609 true. Close FILE before returning.
42610 (main): Add support for RAID and LVM.
f19dbdb7 42611
2b002173 42612 * conf/common.rmk: Add RAID and LVM modules.
42613 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
42614 util/lvm.c.
42615 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
42616
42617 * kern/misc.c (grub_strstr): New function.
42618 * include/grub/misc.h (grub_strstr): New prototype.
42619
050548d0 426202006-10-10 Tristan Gingold <tristan.gingold@bull.net>
42621
42622 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
42623
da849d2d 426242006-10-05 Tristan Gingold <tristan.gingold@bull.net>
42625
42626 * kern/misc.c (grub_strtoull): Guess the base only if not
42627 specified.
42628
97b2f2ff 426292006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 42630
42631 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
42632 PowerMac support.
42633
97b2f2ff 426342006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 42635
42636 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
42637
42638 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
42639 Remove `flags' argument. All callers changed.
42640 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
42641 (IEEE1275_IHANDLE_INVALID): New variable.
42642 (IEEE1275_CELL_INVALID): New variable.
42643 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
42644 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
42645 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
42646 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
42647 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
42648 codes from Open Firmware. All callers updated.
42649 (grub_ieee1275_next_property): Directly return Open Firmware return
42650 code.
42651 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42652 Standardize error checking from `grub_ieee1275_get_property'.
42653 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
42654 `devalias' to `aliases'. Correct comments. Consolidate error paths.
42655
97b2f2ff 426562006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 42657
42658 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
42659 `instance_to_package_args' to `instance_to_path_args'.
42660
42661 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
42662 `grub_ieee1275_chosen'.
42663
42664 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
42665 `grub_ieee1275_interpret'.
42666
97b2f2ff 426672006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 42668
42669 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
42670
97b2f2ff 426712006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 42672
42673 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
42674 (__cmpdi): Likewise.
42675
42676 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
42677 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
42678 `grub_ssize_t'.
42679
02bb8acc 42680 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 42681
42682 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
42683 to type `grub_ssize_t'.
42684 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
42685
7f9a8531 426862006-09-22 Marco Gerards <marco@gnu.org>
42687
42688 * normal/script.c (grub_script_create_cmdmenu): Skip leading
42689 newlines.
42690
b5ef1102 426912006-09-22 Marco Gerards <marco@gnu.org>
42692
42693 * commands/echo.c: New file.
42694
42695 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
42696
42697 * conf/common.rmk (echo_mod_SOURCES): New variable.
42698 (echo_mod_CFLAGS): Likewise.
42699 (echo_mod_LDFLAGS): Likewise.
42700
2cff3677 427012006-09-22 Marco Gerards <marco@gnu.org>
42702
42703 * normal/main.c (get_line): Malloc memory instead of using
42704 preallocated memory. Removed the arguments `cmdline' and
42705 `max_len'. Updated all callers.
42706
6ba4688b 427072006-09-22 Marco Gerards <marco@gnu.org>
42708
42709 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
42710 (normal_mod_DEPENDENCIES): Likewise.
42711
42712 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
42713 (normal_mod_DEPENDENCIES): Likewise.
42714
42715 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
42716
e02ac02c 427172006-09-22 Johan Rydberg <jrydberg@gnu.org>
42718
42719 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
42720 programs.
42721 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
42722 (normal_mod_DEPENDENCIES): Likewise.
42723 * conf/i386-pc.mk: Regenerate.
42724 * conf/i386-efi.mk: Likewise
42725 * conf/common.mk: Likewise.
42726 * conf/powerpc-ieee1275.mk: Likewise.
42727 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42728
8d252e44 427292006-09-22 Robert Millan <rmh@aybabtu.com>
42730
42731 Sync with i386 version.
42732 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
42733 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
42734
209bf7ac 427352006-09-21 Robert Millan <rmh@aybabtu.com>
42736
42737 Import from GRUB Legacy (lib/device.c):
42738 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
42739 (init_device_map) [__linux__]: Add support for I2O devices.
42740
6b146090 427412006-09-14 Marco Gerards <marco@gnu.org>
42742
42743 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
42744 `-melf_i386'.
42745
e38600a8 427462006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 42747
42748 * util/i386/pc/grub-install.in: Skip menu.lst when removing
42749 /boot/grub/*.lst.
78fa1790 42750
2952da5d 42751 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 42752
2952da5d 42753 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
42754 before adding it to device.map.
42755
01b82a64 427562006-08-15 Johan Rydberg <jrydberg@gnu.org>
42757
fe6b695a 42758 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 42759 compiles a file; using the -MD option.
42760 * conf/common.mk: Regenerate.
42761 * conf/i386-pc.mk: Likewise.
42762 * conf/i386-efi.mk: Likewise.
42763 * conf/powerpc-ieee1275.mk: Likewise.
42764 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 42765
1064790d 427662006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
42767
42768 Move the prototypes of grub_setjmp and grub_longjmp to
42769 cpu/setjmp.h, so that each architecture may specify different
42770 attributes.
f19dbdb7 42771
1064790d 42772 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
42773 (grub_longjmp): Likewise.
42774 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
42775 (grub_longjmp): Likewise.
42776 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
42777 (grub_longjmp): Likewise.
42778
42779 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
42780 [!GRUB_UTIL] (grub_longjmp): Removed.
42781
29dda3ed 427822006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
42783
42784 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
42785 "color!" method does not return any value.
42786
ad2a06ed 427872006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42788
42789 * include/grub/bitmap.h: New file.
42790
42791 * include/grub/i386/pc/vbeutil.h: Likewise.
42792
42793 * video/bitmap.c: Likewise.
42794
42795 * video/readers/tga.c: Likewise.
42796
42797 * video/i386/pc/vbeutil.c: Likewise.
42798
42799 * commands/videotest.c: Code cleanup and updated to reflect to new
42800 video API.
42801
42802 * term/gfxterm.c: Likewise.
42803
42804 * video/video.c: Likewise.
42805
42806 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
42807 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
42808 (bitmap_mod_SOURCES): New entry.
42809 (bitmap_mod_CFLAGS): Likewise.
42810 (bitmap_mod_LDFLAGS): Likewise.
42811 (tga_mod_SOURCES): Likewise.
42812 (tga_mod_CFLAGS): Likewise.
42813 (tga_mod_LDFLAGS): Likewise.
42814
42815 * include/grub/video.h (grub_video_blit_operators): New enum type.
42816 (grub_video_render_target): Changed as forward declaration and moved
42817 actual definition to be video driver specific.
42818 (grub_video_adapter.blit_bitmap): Added blitting operator.
42819 (grub_video_adapter.blit_render_target): Likewise.
42820 (grub_video_blit_bitmap): Likewise.
42821 (grub_video_blit_render_target): Likewise.
42822
42823 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42824 driver specific render target definition.
42825 (grub_video_vbe_map_rgba): Added driver internal helper.
42826 (grub_video_vbe_unmap_color): Updated to use
42827 grub_video_i386_vbeblit_info.
42828 (grub_video_vbe_get_video_ptr): Likewise.
42829
42830 * include/grub/i386/pc/vbeblit.h
42831 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42832 grub_video_i386_vbeblit_info.
42833 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42834 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42835 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42836 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42837 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42838 (grub_video_i386_vbeblit_index_index): Likewise.
42839 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42840 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42841 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42842 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42843 operator.
42844 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42845 operator.
42846
42847 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42848 include/grub/i386/pc/vbeblit.h.
42849
42850 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42851 Updated to use grub_video_i386_vbeblit_info.
42852 (grub_video_i386_vbefill_R8G8B8): Likewise.
42853 (grub_video_i386_vbefill_index): Likewise.
42854 (grub_video_i386_vbefill): Added generic filler.
42855
42856 * video/i386/pc/vbefill.c: Updated to reflect changes on
42857 include/grub/i386/pc/vbefill.h.
42858
42859 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42860 grub_video_i386_vbeblit_info.
42861 (grub_video_vbe_unmap_color): Likewise.
42862 (grub_video_vbe_blit_glyph): Likewise.
42863 (grub_video_vbe_scroll): Likewise.
42864 (grub_video_vbe_draw_pixel): Removed function.
42865 (grub_video_vbe_get_pixel): Likewise.
42866 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42867 updated code to use it.
42868 (common_blitter): Added common blitter for render target and bitmap.
42869 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42870 (grub_video_vbe_blit_render_target): Likewise.
42871
bc8c036d 428722006-07-30 Johan Rydberg <jrydberg@gnu.org>
42873
42874 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42875 is in text mode if there is no console control protocol instance
42876 available.
42877
684a8eff 428782006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42879
42880 * include/grub/video.h: Code cleanup.
42881
42882 * include/grub/i386/pc/vbe.h: Likewise.
42883
42884 * video/i386/pc/vbe.c: Likewise.
42885
42886 * video/i386/pc/vbeblit.c: Likewise.
42887
42888 * video/i386/pc/vbefill.c: Likewise.
42889
42890 * video/video.c: Likewise. Also added more comments.
42891
5915059b 428922006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42893
42894 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42895 (struct grub_biosdisk_dap): Likewise.
42896
42897 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42898 linkage settings for all functions.
42899
90ce5d56 429002006-07-12 Marco Gerards <marco@gnu.org>
42901
42902 * configure.ac (--enable-mm-debug): Fix typo.
42903
42904 * genkernsyms.sh.in: Use proper quoting for `CC'.
42905
43e7f879 429062006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42907
42908 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42909 (normal_mod_ASFLAGS): Remove "-m32".
42910
4889bdec 429112006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42912
42913 * util/misc.c: Include config.h.
42914 [!HAVE_MEMALIGN]: Do not include malloc.h.
42915 (grub_memalign): Use posix_memalign, if present. Then, use
42916 memalign, if present. Otherwise, emit an error.
42917
42918 * util/grub-emu.c: Do not include malloc.h.
42919
42920 * include/grub/util/misc.h: Include unistd.h. This is required for
42921 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42922 D. Eades III <hde@foobar-qux.org>.
42923
42924 * configure.ac (AC_GNU_SOURCE): Added.
42925 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42926 type.
42927
fd39d4da 429282006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42929
42930 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42931 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42932
b786f3b5 429332006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42934
42935 * include/grub/types.h (grub_host_addr_t): Rename to
42936 grub_target_addr_t.
42937 (grub_host_off_t): Rename to grub_target_off_t.
42938 (grub_host_size_t): Rename to grub_target_size_t.
42939 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42940 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42941
42942 * include/grub/kernel.h (struct grub_module_header): Change type
42943 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42944 (grub_module_info): Likewise.
f19dbdb7 42945
051988bb 429462006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42947
42948 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42949 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42950 Velazquez <jesus.velazquez@gmail.com>.
42951
deae281b 429522006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42953
42954 Count partitions from 1 instead of 0 in the string representation
42955 of partitions. Still use 0-based internally.
f19dbdb7 42956
deae281b 42957 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42958 (sun_partition_map_iterate): Use grub_partition_t instead of
42959 struct grub_partition *. Cast DESC->START_CYLINDER to
42960 grub_uint64_t after converting the endian.
42961 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42962 (sun_partition_map_get_name): Add 1 to P->INDEX.
42963
42964 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42965 PCDATA->DOS_PART.
42966 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42967
42968 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42969 zero instead of one.
42970 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42971 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42972
42973 * partmap/apple.c (apple_partition_map_iterate): Change the type
42974 of POS to unsigned.
42975 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42976 (apple_partition_map_get_name): Add 1 into P->INDEX.
42977
42978 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42979 of POS to unsigned.
42980 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42981 calculate the offset of a partition.
42982 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42983 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42984
42985 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42986 SECTOR to grub_disk_addr_t.
42987 (acorn_partition_map_iterate): Likewise.
42988 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42989 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42990 top.
42991 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42992
42993 * kern/i386/pc/init.c (make_install_device): Add 1 into
42994 GRUB_INSTALL_DOS_PART.
42995
42996 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42997 conditional.
42998
524a1e6a 429992006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43000
43001 Clean up the code to support 64-bit addressing in disks and
43002 files. This change is not enough for filesystems yet.
f19dbdb7 43003
524a1e6a 43004 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
43005 type of "start" to grub_uint64_t.
43006 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
43007 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
43008 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
43009 convert addresses.
43010
43011 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
43012 to grub_disk_addr_t.
43013
43014 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
43015 string.
43016
43017 * partmap/pc.c (pc_partition_map_iterate): Likewise.
43018
43019 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
43020 to char *.
43021
43022 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
43023
43024 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
43025
43026 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
43027
43028 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
43029 to grub_off_t, to detect an error from grub_file_seek.
43030 (grub_multiboot_load_elf32): Likewise.
43031
43032 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
43033 maximum unsigned long value when an overflow is detected.
43034 (grub_strtoull): New function.
43035 (grub_divmod64): Likewise.
43036 (grub_lltoa): use grub_divmod64.
43037
43038 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
43039 grub_disk_addr_t.
43040 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
43041 the pointer to next character. Use grub_strtoull instead of
43042 grub_strtoul.
43043 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
43044 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
43045 respectively.
43046
fe6b695a 43047 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 43048 return value is signed.
43049 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
43050 test if OFFSET is less than zero, as OFFSET is unsigned now.
43051
43052 * kern/disk.c (struct grub_disk_cache): Change the type of
43053 "sector" to grub_disk_addr_t.
43054 (grub_disk_cache_get_index): Change the type of SECTOR to
43055 grub_disk_addr_t. Calculate the hash with SECTOR casted to
43056 unsigned after shifting.
43057 (grub_disk_cache_invalidate): Change the type of SECTOR to
43058 grub_disk_addr_t.
43059 (grub_disk_cache_unlock): Likewise.
43060 (grub_disk_cache_store): Likewise.
43061 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
43062 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
43063 grub_disk_addr_t and grub_uint64_t, respectively.
43064 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
43065 body, as the value of OFFSET is tweaked by
43066 grub_disk_check_range. Change the types of START_SECTOR, LEN and
43067 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
43068 respectively.
43069 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
43070 body, as the value of OFFSET is tweaked by
43071 grub_disk_check_range. Change the types of LEN and N to
43072 grub_size_t.
43073
43074 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
43075 and "saved_offset" to grub_off_t.
43076 (test_header): Cast BUF to char *.
43077 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
43078 to char *.
43079 (grub_gzio_read): Change the types of OFFSET and SIZE to
43080 grub_off_t and grub_size_t, respectively.
43081
43082 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
43083 Removed.
43084 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
43085 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
43086 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
43087 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
43088 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
43089
43090 * include/grub/types.h (grub_off_t): Unconditionally set to
43091 grub_uint64_t.
43092 (grub_disk_addr_t): Changed to grub_uint64_t.
43093
43094 * include/grub/partition.h (struct grub_partition): Change the
43095 types of "start", "len" and "offset" to grub_disk_addr_t,
43096 grub_uint64_t and grub_disk_addr_t, respectively.
43097 (grub_partition_get_start): Return grub_disk_addr_t.
43098 (grub_partition_get_len): Return grub_uint64_t.
43099
43100 * include/grub/misc.h (grub_strtoull): New prototype.
43101 (grub_divmod64): Likewise.
43102
43103 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
43104 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
43105 grub_off_t, respectively.
43106 All callers and references changed.
43107
43108 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
43109 grub_size_t in "read".
43110 All callers and references changed.
43111
43112 * include/grub/file.h (struct grub_file): Change the types of
43113 "offset" and "size" to grub_off_t and grub_off_t,
43114 respectively. Change the type of SECTOR to grub_disk_addr_t in
43115 "read_hook".
43116 (grub_file_read): Change the type of LEN to grub_size_t.
43117 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
43118 grub_off_t.
43119 (grub_file_size): Return grub_off_t.
43120 (grub_file_tell): Likewise.
43121 All callers and references changed.
43122
43123 * include/grub/disk.h (struct grub_disk_dev): Change the types of
43124 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
43125 "write".
43126 (struct grub_disk): Change the type of "total_sectors" to
43127 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 43128 "read_hook".
524a1e6a 43129 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
43130 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
43131 (grub_disk_write): Likewise.
43132 All callers and references changed.
43133
43134 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
43135 char * for grub_strncmp to silence gcc.
43136 (grub_iso9660_mount): Likewise.
43137 (grub_iso9660_mount): Likewise.
43138 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
43139 return statement.
43140 (grub_iso9660_iterate_dir): Likewise.
43141 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
43142
43143 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
43144 LEN to grub_disk_addr_t and grub_size_t, respectively.
43145
43146 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
43147
43148 * fs/jfs.c (grub_jfs_read_file): Likewise.
43149
43150 * fs/minix.c (grub_jfs_read_file): Likewise.
43151
43152 * fs/sfs.c (grub_jfs_read_file): Likewise.
43153
43154 * fs/ufs.c (grub_jfs_read_file): Likewise.
43155
43156 * fs/xfs.c (grub_jfs_read_file): Likewise.
43157
43158 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
43159 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
43160 respectively.
43161
43162 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
43163 BLKNR to -1 instead of returning GRUB_ERRNO.
43164 (grub_ext2_read_file): Change the types of SECTOR and
43165 LEN to grub_disk_addr_t and grub_size_t, respectively.
43166
43167 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
43168 LEN to grub_disk_addr_t and grub_size_t, respectively.
43169
43170 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
43171 grub_file_read.
43172
43173 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
43174 string. Do not cast SECTOR explicitly.
43175
43176 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
43177 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
43178 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
43179 grub_disk_addr_t and grub_size_t, respectively. If the sector is
43180 over 2TB and LBA mode is not supported, raise an error.
43181 (get_safe_sectors): New function.
43182 (grub_biosdisk_read): Use get_safe_sectors.
43183 (grub_biosdisk_write): Likewise.
43184
43185 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
43186 (grub_efidisk_write): Likewise.
43187
43188 * disk/loopback.c (delete_loopback): Cosmetic changes.
43189 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
43190 correctly.
43191 (grub_loopback_open): Likewise.
43192 (grub_loopback_read): Likewise. Also, change the type of POS to
43193 grub_off_t, and fix the usage of grub_memset.
43194
43195 * commands/i386/pc/play.c: Include grub/machine/time.h.
43196
43197 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
43198 print FILE->SIZE.
43199
43200 * commands/configfile.c: Include grub/env.h.
43201
43202 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
43203 GRUB_ERRNO directly instead. Change the type of POS to
43204 grub_off_t. Follow the coding standard.
43205
43206 * commands/blocklist.c: Include grub/partition.h.
43207 (grub_cmd_blocklist): Return an error if the underlying device is
43208 not a disk. Take the starting sector of a partition into account,
43209 if a partition is used.
43210
43211 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
43212 a length field.
43213 (lba_mode): Support 64-bit addresses.
43214 (chs_mode): Likewise.
43215 (copy_buffer): Adapted to the new offsets of a length field and a
43216 segment field.
43217 (blocklist_default_start): Allocate 64-bit space.
43218
43219 * boot/i386/pc/boot.S (force_lba): Removed.
43220 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 43221 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 43222 space.
43223 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
43224 is useless.
43225 (lba_mode): Refactored to support a 64-bit address. More size
43226 optimization.
43227 (setup_sectors): Likewise.
43228
53af98ad 432292006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
43230
43231 * DISTLIST: Added include/grub/i386/linux.h. Removed
43232 include/grub/i386/pc/linux.h
43233
43234 * configure.ac (AC_INIT): Bumped to 1.94.
43235
43236 * config.guess: Updated from gnulib.
43237 * config.sub: Likewise.
43238 * install-sh: Likewise.
43239 * mkinstalldirs: Likewise.
43240
b4c1940a 432412006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43242
43243 * conf/common.rmk (grub_modules_init.lst): Depended on
43244 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
43245 MODSRCFILES.
43246
43247 * genmk.rb (PModule::rule): Reverted the previous change.
43248
cfca1cfd 432492006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
43250
43251 * conf/common.rmk (grub_modules_init.lst): Depends on
43252 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
43253 that the target does not exist before producing.
43254 (grub_modules_init.h): Remove the target before generating.
43255 (grub_emu_init.c): Likewise.
43256
43257 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
43258
aa6d7826 432592006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
43260
43261 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
43262 for the target-specific tests. Make sure that we also have the
43263 up-to-date target variables for those tests.
43264
26c607b9 432652006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43266
43267 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
43268 (PModule::rule): Likewise.
43269
0162321a 432702006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
43271
43272 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
43273 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
43274 target-specific flags should be prefixed.
43275 (PModule::rule): Likewise.
43276
6c826348 432772006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
43278
43279 * configure.ac (CMP): Check if cmp is available explicitly.
43280
b977bf01 432812006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
43282
43283 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
43284 (target_cpu): New variable.
43285 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 43286
b977bf01 43287 * util/i386/pc/grub-install.in (host_cpu): Removed.
43288 (target_cpu): New variable.
43289 (pkglibdir): Use target_cpu instead of host_cpu.
43290
43291 * util/genmoddep.c: Removed.
f19dbdb7 43292
b977bf01 43293 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
43294 instead of GRUB_HOST_SIZEOF_VOID_P.
43295 * kern/dl.c: Likewise.
43296
43297 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
43298 ...
43299 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43300 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43301 (GRUB_TARGET_SIZEOF_LONG): ... this.
43302 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43303 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43304 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43305 to ...
43306 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43307 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43308 (GRUB_TARGET_SIZEOF_LONG): ... this.
43309 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43310 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43311 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
43312 to ...
43313 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
43314 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
43315 (GRUB_TARGET_SIZEOF_LONG): ... this.
43316 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
43317 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
43318
43319 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
43320 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
43321 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
43322 instead of GRUB_HOST_SIZEOF_LONG.
43323 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
43324 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
43325 GRUB_CPU_WORDS_BIGENDIAN.
43326 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
43327 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
43328 grub_host_ssize_t.
43329
43330 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
43331 (genmoddep_SOURCES): Likewise.
43332 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
43333 (genmoddep_SOURCES): Likewise.
43334 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
43335 (genmoddep_SOURCES): Likewise.
43336 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
43337 Likewise.
43338 (genmoddep_SOURCES): Likewise.
43339
43340 * genmoddep.awk: New file.
43341
43342 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
43343 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
43344 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
43345 (PModule::rule): Likewise.
43346 (Program::rule): Likewise.
43347 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
43348 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
43349 respectively.
43350
43351 * configure.ac: Rewritten intensively to use host and target
43352 instead of build and host, respectively.
43353
43354 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
43355 (host_cpu): Removed.
43356 (target_cpu): New variable.
43357 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
43358 (BUILD_CC): Removed.
43359 (BUILD_CFLAGS): Likewise.
43360 (BUILD_CPPFLAGS): Likewise.
43361 (TARGET_CC): New variable.
43362 (TARGET_CFLAGS): Likewise.
43363 (TARGET_CPPFLAGS): Likewise.
43364 (TARGET_LDFLAGS): Likewise.
43365 (AWK): Likewise.
43366 (include): Use target_cpu instead of host_cpu.
43367 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 43368
b977bf01 43369 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
43370
f09771a1 433712006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
43372
43373 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
43374 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
43375 field 'false' to 'exec_on_false'.
43376 (grub_script_create_cmdif): Renamed argument names to reflect above
43377 changes.
43378
43379 * normal/execute.c (grub_script_execute_cmdif): Likewise.
43380
43381 * normal/script.c (grub_script_create_cmdif): Likewise.
43382
118f4fb3 433832006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
43384
43385 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
43386 top.
43387 (grub_hfsplus_btree_recptr): Likewise.
43388 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
43389 FILEBLOCK both to pass a block number and store next block
43390 number.
43391 (grub_hfsplus_read_block): Rewritten heavily to support an extent
43392 overflow file correctly. Specify errors appropriately, because
43393 fshelp expects that GRUB_ERRNO is set when fails. Reuse
43394 grub_hfsplus_btree_recptr to get the pointer to a found key.
43395 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
43396 is found.
43397
43398 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
43399 linux.mod.
43400 (_linux_mod_SOURCES): New variable.
43401 (_linux_mod_CFLAGS): Likewise.
43402 (_linux_mod_LDFLAGS): Likewise.
43403 (linux_mod_SOURCES): Likewise.
43404 (linux_mod_CFLAGS): Likewise.
43405 (linux_mod_LDFLAGS): Likewise.
43406
43407 * DISTLIST: Added loader/i386/efi/linux.c,
43408 loader/i386/efi/linux_normal.c and
43409 include/grub/i386/efi/loader.h.
43410
43411 * loader/i386/efi/linux.c: New file.
43412 * loader/i386/efi/linux_normal.c: Likewise.
43413 * include/grub/i386/efi/loader.h: Likewise.
43414
89a7d726 434152006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
43416
43417 * commands/blocklist.c: New file.
43418
43419 * DISTLIST: Added commands/blocklist.c.
43420
43421 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 43422 color for the background, and a darker color for the foreground.
89a7d726 43423 (grub_console_checkkey): Return READ_KEY.
43424 (grub_console_cls): Set the background to
43425 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
43426
43427 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
43428
43429 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
43430 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
43431
43432 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
43433 prototype.
43434
43435 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
43436 BG. The spec is wrong again.
43437
43438 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
43439 prototype.
43440 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
43441
43442 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
43443 commands/blocklist.c.
43444 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 43445
89a7d726 43446 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
43447 (blocklist_mod_SOURCES): New variable.
43448 (blocklist_mod_CFLAGS): Likewise.
43449 (blocklist_mod_LDFLAGS): Likewise.
43450
75c8f258 434512006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
43452
43453 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
43454 duplication.
43455 (lba_mode): Use %eax more intensively to reduce the code size.
43456
da2eb181 434572006-05-20 Marco Gerards <marco@gnu.org>
43458
43459 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
43460
43461 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
43462 for `menuentry'.
43463 (script): Accept leading newlines.
43464 (newlines): New rule to describe 0 or more newlines.
43465 (commands): Accept `command' with trailing newline. Fixed the
43466 order in which arguments were passed to `grub_script_add_cmd'.
43467 Accept commands separated by newlines.
43468 (function): Changed to accept newlines.
43469 (menuentry) Rewritten.
43470
43471 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
43472 front of the list, instead of to the end.
43473
577b4050 434742006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
43475
43476 * util/i386/pc/grub-install.in (bindir): New variable.
43477 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
43478 Shaver <lbgwjl@gmail.com>.
43479
0d6e1189 434802006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
43481
43482 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
43483 grub/machine/linux.h
43484 * loader/i386/pc/linux.c: Likewise.
43485
43486 * include/grub/i386/pc/linux.h: Moved to ...
43487 * include/grub/i386/linux.h: ... here.
43488
43489 * include/grub/i386/linux.h (struct linux_kernel_params): New
43490 struct.
f19dbdb7 43491
31b86e9f 434922006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
43493
43494 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
43495 checking.
43496 (grub_video_vbe_blit_glyph): Likewise.
43497 (grub_video_vbe_blit_bitmap): Likewise.
43498 (grub_video_vbe_blit_render_target): Likewise.
43499
83b984de 435002006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
43501
43502 * configure.ac (--with-platform): Properly quote the square
43503 brackets.
43504
5f0413bd 435052006-05-08 Marco Gerards <marco@gnu.org>
43506
43507 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
43508 this...
43509 (kernel_elf_HEADERS): ...to this. Updated all users.
43510 (grubof_symlist.c): Renamed from this...
43511 (kernel_elf_symlist.c): ...to this. Updated all users.
43512 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43513 (grubof_SOURCES): Renamed from this...
43514 (kernel_elf_SOURCES): ...to this.
43515 (grubof_HEADERS): Renamed from this...
43516 (kernel_elf_HEADERS): ...to this.
43517 (grubof_CFLAGS): Renamed from this...
43518 (kernel_elf_CFLAGS): ...to this.
43519 (grubof_ASFLAGS): Renamed from this...
43520 (kernel_elf_ASFLAGS): ...to this.
43521 (grubof_LDFLAGS): Renamed from this...
43522 (kernel_elf_LDFLAGS): ...to this.
43523
43524 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
43525 this...
43526 (kernel_elf_HEADERS): ...to this. Updated all users.
43527 (grubof_symlist.c): Renamed from this...
43528 (kernel_elf_symlist.c): ...to this. Updated all users.
43529 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
43530 (grubof_SOURCES): Renamed from this...
43531 (kernel_elf_SOURCES): ...to this.
43532 (grubof_HEADERS): Renamed from this...
43533 (kernel_elf_HEADERS): ...to this.
43534 (grubof_CFLAGS): Renamed from this...
43535 (kernel_elf_CFLAGS): ...to this.
43536 (grubof_ASFLAGS): Renamed from this...
43537 (kernel_elf_ASFLAGS): ...to this.
43538 (grubof_LDFLAGS): Renamed from this...
43539 (kernel_elf_LDFLAGS): ...to this.
43540
43541 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
43542 `kernel.elf' instead of `grubof'.
43543
05568c2e 435442006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
43545
43546 Add --with-platform to configure. Use pkglibdir instead of
43547 pkgdatadir. This is reported by Roger Leigh.
43548
43549 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
43550 (host_vendor): Likewise.
43551 (host_os): Likewise.
43552 (pkgdatadir): Likewise.
43553 (platform): New variable.
43554 (pkglibdir): Likewise.
43555 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 43556
05568c2e 43557 * util/i386/pc/grub-install.in (datadir): Removed.
43558 (host_vendor): Likewise.
43559 (host_os): Likewise.
43560 (pkgdatadir): Likewise.
43561 (platform): New variable.
43562 (pkglibdir): Likewise.
43563 Use PKGLIBDIR instead of PKGDATADIR.
43564
43565 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
43566 instead of GRUB_DATADIR.
43567 (main): Likewise.
43568 * util/i386/pc/grub-mkimage.c (usage): Likewise.
43569 (main): Likewise.
43570 * util/i386/efi/grub-mkimage.c (usage): Likewise.
43571 (main): Likewise.
43572
43573 * configure.ac (--with-platform): New option.
43574 Use PLATFORM instead of HOST_VENDOR to specify a platform.
43575
43576 * Makefile.in: Include a makefile based on PLATFORM instead of
43577 HOST_VENDOR.
43578 (pkgdatadir): Not appended by the machine type.
43579 (pkglibdir): Appended by the machine type.
43580 (host_vendor): Removed.
43581 (platform): New variable.
43582 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
43583 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
43584 (uninstall): Likewise.
43585
4e93851c 435862006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
43587
43588 Use the environment context in the menu. Remove the commands
43589 "default" and "timeout", and use variables instead.
f19dbdb7 43590
4e93851c 43591 * normal/menu.c: Include grub/env.h.
43592 (print_entry): Cast TITLE to silence gcc.
43593 (get_timeout): New function.
43594 (set_timeout): Likewise.
43595 (get_entry_number): Likewise.
43596 (run_menu): Use a default entry, a fallback entry and a timeout
43597 in the environment variables "default", "fallback" and
43598 "timeout". Also, tweak the default entry if it is not within the
43599 current menu entries.
43600 (grub_menu_run): Use a fallback entry in the environment variable
43601 "fallback".
43602
43603 * normal/main.c (read_config_file): Do not initialize
43604 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
43605 NEWMENU->TIMEOUT.
43606 (grub_normal_execute): Use a data slot to store the menu.
43607
43608 * include/grub/normal.h (struct grub_menu): Removed default_entry,
43609 fallback_entry and timeout.
43610 (struct grub_menu_list): Removed.
43611 (grub_menu_list_t): Likewise.
43612 (struct grub_context): Likewise.
43613 (grub_context_t): Likewise.
43614 (grub_context_get): Likewise.
43615 (grub_context_get_current_menu): Likewise.
43616 (grub_context_push_menu): Likewise.
43617 (grub_context_pop_menu): Likewise.
43618 (grub_default_init): Likewise.
43619 (grub_default_fini): Likewise.
43620 (grub_timeout_init): Likewise.
43621 (grub_timeout_fini): Likewise.
43622
43623 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
43624 and timeout.mod.
43625 (normal_mod_SOURCES): Removed normal/context.c.
43626
43627 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
43628 commands/default.c, commands/timeout.c and normal/context.c.
43629 (normal_mod_SOURCES): Removed normal/context.c.
43630
43631 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
43632 commands/timeout.c and normal/context.c.
43633 (normal_mod_SOURCES): Removed normal/context.c.
43634
43635 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
43636 commands/default.c, commands/timeout.c and normal/context.c.
43637 (normal_mod_SOURCES): Removed normal/context.c.
43638
43639 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
43640 timeout.mod.
43641 (default_mod_SOURCES): Removed.
43642 (default_mod_CFLAGS): Likewise.
43643 (default_mod_LDFLAGS): Likewise.
43644 (timeout_mod_SOURCES): Removed.
43645 (timeout_mod_CFLAGS): Likewise.
43646 (timeout_mod_LDFLAGS): Likewise.
43647
43648 * DISTLIST: Removed commands/default.c, commands/timeout.c and
43649 normal/context.c.
43650
43651 * commands/default.c: Removed.
43652 * commands/timeout.c: Likewise.
43653 * normal/context.c: Likewise.
43654
1eb9cc1d 436552006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
43656
43657 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
43658
385bd9c1 436592006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
43660
43661 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
43662 "next" to "prev" for readability.
43663 (struct grub_env_sorted_var): New struct.
43664 (grub_env_context): Renamed to ...
43665 (initial_context): ... this.
43666 (grub_env_var_context): Renamed to ...
43667 (current_context): ... this.
43668 (grub_env_find): Look only at CURRENT_CONTEXT.
43669 (grub_env_context_open): Rewritten to copy exported variables from
43670 previous context.
43671 (grub_env_context_close): Rewritten according to the new
43672 scheme. Also, add an assertion to prevent the initial context from
43673 removed.
43674 (grub_env_insert): Removed the code for the sorted list.
43675 (grub_env_remove): Likewise.
43676 (grub_env_export): Simply mark the variable with
43677 GRUB_ENV_VAR_GLOBAL.
43678 (grub_env_set): A cosmetic change for naming consistency.
43679 (grub_env_get): Likewise.
43680 (grub_env_unset): Likewise.
43681 (grub_env_iterate): Rewritten to sort variables within this
43682 function.
43683 (grub_register_variable_hook): Fixed for naming consistency. Call
43684 grub_env_find again, only if NAME is not found at the first time.
43685 (mangle_data_slot_name): New function.
43686 (grub_env_set_data_slot): Likewise.
43687 (grub_env_get_data_slot): Likewise.
43688 (grub_env_unset_data_slot): Likewise.
43689
43690 * include/grub/env.h (grub_env_var_type): New enum.
43691 (GRUB_ENV_VAR_LOCAL): New constant.
43692 (GRUB_ENV_VAR_GLOBAL): Likewise.
43693 (GRUB_ENV_VAR_DATA): Likewise.
43694 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
43695 "type".
43696 (grub_env_set): Replace VAR with NAME for consistency.
43697 (grub_register_variable_hook): Likewise.
43698 (grub_env_export): Specify the name of the argument.
43699 (grub_env_set_data_slot): New prototype.
43700 (grub_env_get_data_slot): Likewise.
43701 (grub_env_unset_data_slot): Likewise.
43702
7f362539 437032006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43704
43705 Extend the loader so that GRUB can accept a loader which comes
43706 back to GRUB when a loaded image exits. Also, this change adds
43707 support for a chainloader on EFI.
f19dbdb7 43708
7f362539 43709 * term/efi/console.c: Include grub/misc.h.
43710 (grub_console_checkkey): Display a scan code on the top for
43711 debugging. This will be removed once the EFI port gets stable.
43712 Correct the scan code mapping.
43713
43714 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
43715 allocate memory from larger regions, in order to reduce the number
43716 of allocated regions. Otherwise, the MacOSX loader panics.
43717 (filter_memory_map): Avoid less than 1MB for compatibility with
43718 other loaders.
43719 (add_memory_regions): Allocate from the tail of a region, if
43720 possible, to avoid allocating a region near to 1MB, for the MacOSX
43721 loader.
43722
43723 * kern/efi/init.c (grub_efi_set_prefix): Specify
43724 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
43725
43726 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
43727 argument IMAGE_HANDLE and specify it to get a loaded image.
43728 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
43729 grub_efi_get_loaded_image.
fe6b695a 43730 (grub_efi_get_filename): Divide the length by the size of
7f362539 43731 grub_efi_char16_t.
43732 (grub_efi_get_device_path): New function.
43733 (grub_efi_print_device_path): Print End Device Path nodes. Divide
43734 the length by the size of grub_efi_char16_t for a file path device
43735 path node.
43736
43737 * kern/loader.c (grub_loader_noreturn): New variable.
43738 (grub_loader_set): Accept a new argument NORETURN. Set
43739 GRUB_LOADER_NORETURN to NORETURN.
43740 All callers changed.
43741 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
43742 grub_machine_fini.
43743
43744 * include/grub/efi/efi.h (grub_efi_get_device_path): New
43745 prototype.
43746 (grub_efi_get_loaded_image): Take an argument to specify an image
43747 handle.
43748
43749 * include/grub/loader.h (grub_loader_set): Added one more argument
43750 NORETURN.
43751
43752 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
43753 instead of grub_efi_open_protocol.
43754 (grub_efidisk_get_device_name): Likewise.
43755 (grub_efidisk_close): Print a newline.
43756 (grub_efidisk_get_device_handle): Fixed to use
43757 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
43758 GRUB_EFI_DEVICE_PATH_TYPE.
43759
43760 * disk/efi/efidisk.c (device_path_guid): Moved to ...
43761 * kern/efi/efi.c (device_path_guid): ... here.
43762
43763 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
43764 chain.mod.
43765 (kernel_mod_HEADERS): Added efi/disk.h.
43766 (_chain_mod_SOURCES): New variable.
43767 (_chain_mod_CFLAGS): Likewise.
43768 (_chain_mod_LDFLAGS): Likewise.
43769 (chain_mod_SOURCES): Likewise.
43770 (chain_mod_CFLAGS): Likewise.
43771 (chain_mod_LDFLAGS): Likewise.
43772
43773 * DISTLIST: Added include/grub/efi/chainloader.h,
43774 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
43775
43776 * include/grub/efi/chainloader.h: New file.
43777 * loader/efi/chainloader.c: Likewise.
43778 * loader/efi/chainloader_normal.c: Likewise.
43779
c0111d6e 437802006-04-30 Marco Gerards <marco@gnu.org>
43781
43782 * commands/configfile.c (grub_cmd_source): New function.
43783 (GRUB_MOD_INIT): Register the commands `source' and `.'.
43784 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
43785
df5341da 437862006-04-30 Marco Gerards <marco@gnu.org>
43787
43788 * normal/execute.c (grub_script_execute_cmd): Change the return
43789 type to `grub_err_t'. Correctly return the error.
43790 (grub_script_execute_cmdline): In case a command line is not a
43791 command or a function, try to interpret it as an assignment.
43792
f85934bd 437932006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
43794
43795 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
43796 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
43797 skip a node whose name is obviously invalid as UTF-16,
43798 i.e. contains a NUL character. Stop the iteration when the last
43799 directory entry is found. Instead of using the return value of
43800 grub_hfsplus_btree_iterate_node, store the value in RET and use
43801 it, because the iterator can be stopped by the last directory
43802 entry.
43803
8f8a2cf8 438042006-04-30 Marco Gerards <marco@gnu.org>
43805
43806 * include/grub/env.h (grub_env_export): New prototype. Reported
43807 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
43808
a27e84ce 438092006-04-30 Marco Gerards <marco@gnu.org>
43810
43811 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
43812 size of the extents in a catalog file record.
43813
eaef0553 438142006-04-29 Marco Gerards <marco@gnu.org>
43815
43816 * commands/configfile.c (grub_cmd_configfile): Execute the
43817 configfile within its own context.
43818
43819 * include/grub/env.h (grub_env_context_open): New prototype.
43820 (grub_env_context_close): Likewise.
43821
43822 * kern/env.c (grub_env): Removed.
43823 (grub_env_sorted): Likewise.
43824 (grub_env_context): New variable.
43825 (grub_env_var_context): Likewise.
43826 (grub_env_find): Search both the active context and the global
43827 context.
43828 (grub_env_context_open): New function.
43829 (grub_env_context_close): Likewise.
43830 (grub_env_insert): Likewise.
43831 (grub_env_remove): Likewise.
43832 (grub_env_export): Likewise.
43833 (grub_env_set): Changed to use helper functions to avoid code
43834 duplication.
43835 (grub_env_iterate): Rewritten so both the current context and the
43836 global context are being used.
43837
43838 * normal/command.c (export_command): New function.
43839 (grub_command_init): Register the `export' function.
43840
7b455f4d 438412006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43842
43843 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43844 explicitly to suppress gcc's warnings.
43845 * fs/fat.c (grub_fat_find_dir): Likewise.
43846 (grub_fat_label): Likewise.
43847 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43848 (grub_xfs_mount): Likewise.
43849 (grub_xfs_label): Likewise.
43850 * fs/affs.c (grub_affs_mount): Likewise.
43851 (grub_affs_label): Likewise.
43852 (grub_affs_iterate_dir): Likewise.
43853 * fs/sfs.c (grub_sfs_mount): Likewise.
43854 (grub_sfs_iterate_dir): Likewise.
43855 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43856 * fs/hfs.c (grub_hfs_mount): Likewise.
43857 (grub_hfs_cmp_catkeys): Likewise.
43858 (grub_hfs_find_dir): Likewise.
43859 (grub_hfs_dir): Likewise.
43860 (grub_hfs_label): Likewise.
43861 * fs/jfs.c (grub_jfs_mount): Likewise.
43862 (grub_jfs_opendir): Likewise.
43863 (grub_jfs_getent): Likewise.
43864 (grub_jfs_lookup_symlink): Likewise.
43865 (grub_jfs_label): Likewise.
43866 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43867 (grub_hfsplus_iterate_dir): Likewise.
43868 (grub_hfsplus_btree_iterate_node): Made static.
43869
43870 * util/grub-emu.c (prefix): New variable.
43871 (grub_machine_set_prefix): New function.
43872 (main): Do not set the environment variable "prefix" here. Only
43873 set PREFIX, which is used later by grub_machine_set_prefix.
43874
43875 * include/grub/video.h: Do not include grub/symbol.h.
43876 (grub_video_register): Not exported. This symbol is not defined in
43877 the kernel.
43878 (grub_video_unregister): Likewise.
43879 (grub_video_iterate): Likewise.
43880 (grub_video_setup): Likewise.
43881 (grub_video_restore): Likewise.
43882 (grub_video_get_info): Likewise.
43883 (grub_video_get_blit_format): Likewise.
43884 (grub_video_set_palette): Likewise.
43885 (grub_video_get_palette): Likewise.
43886 (grub_video_set_viewport): Likewise.
43887 (grub_video_get_viewport): Likewise.
43888 (grub_video_map_color): Likewise.
43889 (grub_video_map_rgb): Likewise.
43890 (grub_video_map_rgba): Likewise.
43891 (grub_video_fill_rect): Likewise.
43892 (grub_video_blit_glyph): Likewise.
43893 (grub_video_blit_bitmap): Likewise.
43894 (grub_video_blit_render_target): Likewise.
43895 (grub_video_scroll): Likewise.
43896 (grub_video_swap_buffers): Likewise.
43897 (grub_video_create_render_target): Likewise.
43898 (grub_video_delete_render_target): Likewise.
43899 (grub_video_set_active_render_target): Likewise.
43900
43901 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43902 Undefined.
43903 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43904
43905 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43906 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43907 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43908 instead of $(srcdir)/genkernsyms.sh.
43909
43910 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43911 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43912 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43913 instead of $(srcdir)/genkernsyms.sh.
43914
43915 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43916 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43917 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43918 instead of $(srcdir)/genkernsyms.sh.
43919
43920 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43921 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43922 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43923 instead of $(srcdir)/genkernsyms.sh.
43924
43925 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43926 genkernsyms.sh.
43927
43928 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43929 genkernsyms.sh.
43930 (gensymlist.sh): New target.
43931 (genkernsyms.sh): Likewise.
43932
43933 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43934 genkernsyms.sh.in and gensymlist.sh.in.
43935
43936 * genkernsyms.sh: Removed.
43937 * gensymlist.sh: Likewise.
f19dbdb7 43938
7b455f4d 43939 * genkernsyms.sh.in: New file.
43940 * gensymlist.sh.in: Likewise.
43941
1885bb27 439422006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43943
43944 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43945 clobber "prefix", since we may have already set it manually.
43946
71538dff 439472006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43948
43949 * kern/misc.c (abort): New alias for grub_abort.
43950
2965c7cc 439512006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43952
43953 A new machine-specific function "grub_machine_set_prefix" is
43954 defined. This is called after loading modules, so that a prefix
43955 initialization can use modules. Also, this change adds an
43956 intensive debugging feature for the memory manager via the
43957 configure option "--enable-mm-debug".
f19dbdb7 43958
2965c7cc 43959 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43960 PART.LEN.
43961
43962 * kern/sparc64/ieee1275/init.c (abort): Removed.
43963 (grub_stop): Likewise.
43964 (grub_exit): New function.
43965 (grub_set_prefix): Renamed to ...
43966 (grub_machine_set_prefix): ... this.
43967 (grub_machine_init): Do not call grub_set_prefix.
43968
43969 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43970 (grub_machine_set_prefix): ... this.
43971 (grub_machine_init): Do not call grub_set_prefix.
43972
43973 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43974 (grub_machine_init): Do not set the prefix here.
43975
43976 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43977
43978 * kern/efi/init.c: Include grub/mm.h.
43979 (grub_efi_set_prefix): New function.
43980
43981 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43982 (grub_efi_get_filename): New function.
43983 (grub_print_device_path): Renamed to ...
43984 (grub_efi_print_device_path): ... this.
43985
43986 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43987 [MM_DEBUG] (grub_realloc): Likewise.
43988 [MM_DEBUG] (grub_free): Likewise.
43989 [MM_DEBUG] (grub_memalign): Likewise.
43990 [MM_DEBUG] (grub_mm_debug): New variable.
43991 [MM_DEBUG] (grub_debug_malloc): New function.
43992 [MM_DEBUG] (grub_debug_free): New function.
43993 [MM_DEBUG] (grub_debug_realloc): New function.
43994 [MM_DEBUG] (grub_debug_memalign): New function.
43995
43996 * kern/misc.c (grub_abort): Print a newline to distinguish
43997 the message.
43998
43999 * kern/main.c (grub_main): Call grub_machine_set_prefix and
44000 grub_set_root_dev after loading modules. This is necessary when
44001 setting a prefix depends on modules.
44002
44003 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
44004 (grub_efi_print_device_path): ... this.
44005 (grub_efi_get_filename): New prototype.
44006 (grub_efi_set_prefix): Likewise.
44007
44008 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
44009 and grub/disk.h.
44010 (grub_efidisk_get_device_handle): New prototype.
44011 (grub_efidisk_get_device_name): Likewise.
44012
44013 * include/grub/mm.h: Include config.h.
44014 (MM_DEBUG): Removed.
44015 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
44016 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
44017 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
44018 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
44019 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
44020 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
44021 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
44022 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
44023 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
44024
44025 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
44026
44027 * disk/efi/efidisk.c: Include grub/partition.h.
44028 (iterate_child_devices): New function.
44029 (add_device): First, compare only last device path nodes, so that
44030 devices are sorted by the types.
44031 (grub_efidisk_get_device_handle): New function.
44032 (grub_efidisk_get_device_name): Likewise.
44033
44034 * configure.ac (--enable-mm-debug): New option to enable the
44035 memory manager debugging feature. This makes the binary much
44036 bigger, so is disabled by default.
44037
9cacaa17 440382006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
44039
44040 Use grub_abort instead of grub_stop, and grub_exit must be
44041 define in each architecture now. Also, this change adds support
44042 for EFI disks.
f19dbdb7 44043
9cacaa17 44044 * util/i386/pc/grub-probefs.c: Include grub/term.h.
44045 (grub_getkey): New function.
44046 (grub_term_get_current): Likewise.
44047
44048 * util/i386/pc/grub-setup.c: Include grub/term.h.
44049 (grub_getkey): New function.
44050 (grub_term_get_current): Likewise.
44051
44052 * util/misc.c (grub_stop): Renamed to ...
44053 (grub_exit): ... this.
44054
44055 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
44056 (grub_exit): ... this.
44057 (grub_machine_init): Use grub_abort instead of abort.
44058 (grub_stop): Removed.
44059
44060 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
44061 abort.
44062
44063 * kern/i386/pc/startup.S (grub_exit): New function.
44064 (cold_reboot): New label.
44065
44066 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
44067 (grub_efi_init): Call grub_efidisk_init.
44068 (grub_efi_fini): Call grub_efidisk_fini.
44069
44070 * kern/efi/efi.c: Include grub/mm.h.
44071 (grub_efi_console_control_guid): Renamed to ...
44072 (console_control_guid): ... this.
44073 (grub_efi_loaded_image_guid): Renamed to ...
44074 (loaded_image_guid): ... this.
44075 (grub_efi_locate_handle): New function.
44076 (grub_efi_open_protocol): Likewise.
44077 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
44078 GRUB_EFI_CONSOLE_CONTROL_GUID.
44079 (grub_efi_exit): Removed.
44080 (grub_stop): Likewise.
44081 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
44082 (grub_exit): New function.
44083 (grub_print_device_path): Likewise.
44084
44085 * kern/rescue.c (grub_rescue_cmd_exit): New function.
44086 (grub_enter_rescue_mode): Register "exit".
44087
44088 * kern/misc.c (grub_real_dprintf): A cosmetic change.
44089 (grub_abort): New function.
44090
44091 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
44092
44093 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
44094
44095 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
44096
44097 * include/grub/efi/efi.h (grub_efi_exit): Removed.
44098 (grub_print_device_path): New prototype.
44099 (grub_efi_locate_handle): Likewise.
44100 (grub_efi_open_protocol): Likewise.
44101
44102 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
44103 * disk/efi/efidisk.c: Likewise.
44104
44105 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
44106
44107 * include/grub/efi/console_control.h
44108 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
44109
44110 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
44111 last 8 bytes as an array.
44112 (GRUB_EFI_DISK_IO_GUID): New macro.
44113 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
44114 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
44115 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
44116 grub_uint8_t.
44117 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
44118 (struct grub_efi_device_path): Rename the member "sub_type" to
44119 "subtype".
44120 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
44121 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
44122 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
44123 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
44124 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
44125 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
44126 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
44127 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
44128 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
44129 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
44130 (struct grub_efi_pci_device_path): New structure.
44131 (grub_efi_pci_device_path_t): New type.
44132 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
44133 (struct grub_efi_pccard_device_path): New structure.
44134 (grub_efi_pccard_device_path_t): New type.
44135 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
44136 (struct grub_efi_memory_mapped_device_path): New structure.
44137 (grub_efi_memory_mapped_device_path_t): New type.
44138 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
44139 (struct grub_efi_vendor_device_path): New structure.
44140 (grub_efi_vendor_device_path_t): New type.
44141 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
44142 (struct grub_efi_controller_device_path): New structure.
44143 (grub_efi_controller_device_path_t): New type.
44144 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
44145 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
44146 (struct grub_efi_acpi_device_path): New structure.
44147 (grub_efi_acpi_device_path_t): New type.
44148 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
44149 (struct grub_efi_expanded_acpi_device_path): New structure.
44150 (grub_efi_expanded_acpi_device_path_t): New type.
44151 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
44152 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
44153 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
44154 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
44155 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
44156 (struct grub_efi_atapi_device_path): New structure.
44157 (grub_efi_atapi_device_path_t): New type.
44158 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
44159 (struct grub_efi_fibre_channel_device_path): New structure.
44160 (grub_efi_fibre_channel_device_path_t): New type.
44161 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
44162 (struct grub_efi_1394_device_path): New structure.
44163 (grub_efi_1394_device_path_t): New type.
44164 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
44165 (struct grub_efi_usb_device_path): New structure.
44166 (grub_efi_usb_device_path_t): New type.
44167 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
44168 (struct grub_efi_usb_class_device_path): New structure.
44169 (grub_efi_usb_class_device_path_t): New type.
44170 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
44171 (struct grub_efi_i2o_device_path): New structure.
44172 (grub_efi_i2o_device_path_t): New type.
44173 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
44174 (struct grub_efi_mac_address_device_path): New structure.
44175 (grub_efi_mac_address_device_path_t): New type.
44176 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
44177 (struct grub_efi_ipv4_device_path): New structure.
44178 (grub_efi_ipv4_device_path_t): New type.
44179 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
44180 (struct grub_efi_ipv6_device_path): New structure.
44181 (grub_efi_ipv6_device_path_t): New type.
44182 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
44183 (struct grub_efi_infiniband_device_path): New structure.
44184 (grub_efi_infiniband_device_path_t): New type.
44185 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
44186 (struct grub_efi_uart_device_path): New structure.
44187 (grub_efi_uart_device_path_t): New type.
44188 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
44189 (struct grub_efi_vendor_messaging_device_path): New structure.
44190 (grub_efi_vendor_messaging_device_path_t): New type.
44191 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
44192 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
44193 (struct grub_efi_hard_drive_device_path): New structure.
44194 (grub_efi_hard_drive_device_path_t): New type.
44195 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
44196 (struct grub_efi_cdrom_device_path): New structure.
44197 (grub_efi_cdrom_device_path_t): New type.
44198 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
44199 (struct grub_efi_vendor_media_device_path): New structure.
44200 (grub_efi_vendor_media_device_path_t): New type.
44201 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
44202 (struct grub_efi_file_path_device_path): New structure.
44203 (grub_efi_file_path_device_path_t): New type.
44204 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
44205 (struct grub_efi_protocol_device_path): New structure.
44206 (grub_efi_protocol_device_path_t): New type.
44207 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
44208 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
44209 (struct grub_efi_bios_device_path): New structure.
44210 (grub_efi_bios_device_path_t): New type.
44211 (struct grub_efi_disk_io): New structure.
44212 (grub_efi_disk_io_t): New type.
44213 (struct grub_efi_block_io_media): New structure.
44214 (grub_efi_block_io_media_t): New type.
44215 (struct grub_efi_block_io): New structure.
44216 (grub_efi_block_io_t): New type.
44217
44218 * include/grub/misc.h (grub_stop): Removed.
44219 (grub_exit): New prototype.
44220 (grub_abort): Likewise.
44221
44222 * include/grub/disk.h (enum grub_disk_dev_id): Added
44223 GRUB_DISK_DEVICE_EFIDISK_ID.
44224
44225 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
44226 disk/efi/efidisk.c.
44227 (kernel_syms.lst): Remove the target if an error occurs.
44228
49986a9f 442292006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
44230
44231 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
44232 as it was simply too buggy.
44233
970d3b8a 442342006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
44235
44236 * kern/misc.c (grub_lltoa): New function.
44237 (grub_vsprintf): Added support for the long long suffix,
44238 i.e. "ll".
44239
ff04ec24 442402006-04-20 Hollis Blanchard <hollis@penguinppc.org>
44241
44242 * Makefile.in (LDFLAGS): Add variable.
44243 (LD): Remove variable.
44244 * configure.ac: Add -m32 to LDFLAGS.
44245 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
44246 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
44247 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
44248 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
44249 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
44250 variables.
44251 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
44252 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
44253 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
44254
37e5e1a4 442552006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
44256
44257 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
44258 length for unknown glyph.
44259
c352d8dd 442602006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
44261
2eab1c0d 44262 Add support for pre-loaded modules into the EFI port.
f19dbdb7 44263
2eab1c0d 44264 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
44265 completely. Accept one more argument DIR. The caller has changed.
44266
44267 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
44268
44269 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
44270 (grub_efi_loaded_image_guid): New variable.
44271 (grub_efi_get_loaded_image): New function.
44272 (grub_arch_modules_addr): Likewise.
44273
44274 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
44275 prototype.
44276
44277 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
44278 (struct grub_efi_loaded_image): New structure.
44279 (grub_efi_loaded_image_t): New type.
44280
442812006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44282
c352d8dd 44283 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
44284 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
44285 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
44286
6d01d6b4 442872006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
44288
44289 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
44290
976a4ea0 442912006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
44292
44293 * DISTLIST: Added include/grub/efi/console.h,
44294 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
44295 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44296
44297 * include/grub/efi/console.h: New file.
44298 * include/grub/efi/time.h: Likewise.
44299 * include/grub/i386/efi/kernel.h: Likewise.
44300 * kern/efi/init.c: Likewise.
44301 * kern/efi/mm.c: Likewise.
44302 * term/efi/console.c: Likewise.
f19dbdb7 44303
976a4ea0 44304 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
44305 (grub_stop): Removed.
44306 (grub_get_rtc): Likewise.
44307 (grub_machine_init): Simply call grub_efi_init.
44308 (grub_machine_fini): Call grub_efi_fini.
44309
44310 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
44311 (grub_efi_output_string): Removed.
44312 (grub_efi_stall): New function.
44313 (grub_stop): Likewise.
44314 (grub_get_rtc): Likewise.
44315
44316 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
44317 (grub_efi_stall): New prototype.
44318 (grub_efi_allocate_pages): Likewise.
44319 (grub_efi_free_pages): Likewise.
44320 (grub_efi_get_memory_map): Likewise.
44321 (grub_efi_mm_init): Likewise.
44322 (grub_efi_mm_fini): Likewise.
44323 (grub_efi_init): Likewise.
44324 (grub_efi_fini): Likewise.
44325
44326 * include/grub/i386/efi/time.h: Do not include
44327 grub/symbol.h. Include grub/efi/time.h.
44328 (GRUB_TICKS_PER_SECOND): Removed.
44329 (grub_get_rtc): Likewise.
44330
44331 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
44332 Added padding. The EFI spec is buggy.
44333 (GRUB_EFI_BLACK): New macro.
44334 (GRUB_EFI_BLUE): Likewise.
44335 (GRUB_EFI_GREEN): Likewise.
44336 (GRUB_EFI_CYAN): Likewise.
44337 (GRUB_EFI_RED): Likewise.
44338 (GRUB_EFI_MAGENTA): Likewise.
44339 (GRUB_EFI_BROWN): Likewise.
44340 (GRUB_EFI_LIGHTGRAY): Likewise.
44341 (GRUB_EFI_BRIGHT): Likewise.
44342 (GRUB_EFI_DARKGRAY): Likewise.
44343 (GRUB_EFI_LIGHTBLUE): Likewise.
44344 (GRUB_EFI_LIGHTGREEN): Likewise.
44345 (GRUB_EFI_LIGHTCYAN): Likewise.
44346 (GRUB_EFI_LIGHTRED): Likewise.
44347 (GRUB_EFI_LIGHTMAGENTA): Likewise.
44348 (GRUB_EFI_YELLOW): Likewise.
44349 (GRUB_EFI_WHITE): Likewise.
44350 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
44351 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
44352 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
44353 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
44354 (GRUB_EFI_BACKGROUND_RED): Likewise.
44355 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
44356 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
44357 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
44358 (GRUB_EFI_TEXT_ATTR): Likewise.
44359
44360 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
44361 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
44362 (kernel_mod_HEADERS): Added efi/time.h.
44363
83709125 443642006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
44365
44366 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
44367 include/grub/efi/api.h, include/grub/efi/console_control.h,
44368 include/grub/efi/efi.h, include/grub/efi/pe32.h,
44369 include/grub/i386/efi/time.h, kern/efi/efi.c,
44370 kern/i386/efi/init.c, kern/i386/efi/startup.S,
44371 and util/i386/efi/grub-mkimage.c.
44372
44373 * Makefile.in (RMKFILES): Added i386-efi.rmk.
44374
44375 * genmk.rb (PModule#rule): Do not export symbols if
44376 #{prefix}_EXPORTS is set to "no".
44377
44378 * conf/i386-efi.mk: New file.
44379 * conf/i386-efi.rmk: Likewise.
44380 * include/grub/efi/api.h: Likewise.
44381 * include/grub/efi/console_control.h: Likewise.
44382 * include/grub/efi/efi.h: Likewise.
44383 * include/grub/efi/pe32.h: Likewise.
44384 * include/grub/i386/efi/time.h: Likewise.
44385 * kern/efi/efi.c: Likewise.
44386 * kern/i386/efi/init.c: Likewise.
44387 * kern/i386/efi/startup.S: Likewise.
44388 * util/i386/efi/grub-mkimage.c: Likewise.
44389
443902006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 44391
44392 * include/grub/script.h: Include <grub/parser.h> and
44393 "grub_script.tab.h".
44394 (struct grub_lexer_param): New struct.
44395 (struct grub_parser_param): Likewise.
44396 (grub_script_create_arglist): Pass the state in an argument.
44397 (grub_script_add_arglist): Likewise.
44398 (grub_script_create_cmdline): Likewise.
44399 (grub_script_create_cmdblock): Likewise.
44400 (grub_script_create_cmdif): Likewise.
44401 (grub_script_create_cmdmenu): Likewise.
44402 (grub_script_add_cmd): Likewise.
44403 (grub_script_arg_add): Likewise.
44404 (grub_script_lexer_ref): Likewise.
44405 (grub_script_lexer_deref): Likewise.
44406 (grub_script_lexer_record_start): Likewise.
44407 (grub_script_lexer_record_stop): Likewise.
44408 (grub_script_mem_record): Likewise.
44409 (grub_script_mem_record_stop): Likewise.
44410 (grub_script_malloc): Likewise.
44411 (grub_script_yylex): Likewise.
44412 (grub_script_yyparse): Likewise.
44413 (grub_script_yyerror): Likewise.
44414 (grub_script_yylex): Likewise.
44415 (grub_script_lexer_init): Return the state.
44416
44417 * normal/lexer.c (grub_script_lexer_state): Removed variable.
44418 (grub_script_lexer_done): Likewise.
44419 (grub_script_lexer_getline): Likewise.
44420 (grub_script_lexer_refs): Likewise.
44421 (script): Likewise.
44422 (newscript): Likewise.
44423 (record): Likewise.
44424 (recording): Likewise.
44425 (recordpos): Likewise.
44426 (recordlen): Likewise.
44427 (grub_script_lexer_init): Return the state instead of setting
44428 global variables.
44429 (grub_script_lexer_ref): Use the newly added argument for state
44430 instead of globals.
44431 (grub_script_lexer_deref): Likewise.
44432 (grub_script_lexer_record_start): Likewise.
44433 (grub_script_lexer_record_stop): Likewise.
44434 (recordchar): Likewise.
44435 (nextchar): Likewise.
44436 (grub_script_yylex2): Likewise.
44437 (grub_script_yylex): Likewise.
44438 (grub_script_yyerror): Likewise.
44439
44440 * normal/parser.y (func_mem): Removed variable.
44441 (menu_entry): Likewise.
44442 (err): Likewise.
44443 (%lex-param): New parser option.
44444 (%parse-param): Likewise.
44445 (script): Always return the AST.
44446 (argument): Pass the state around.
44447 (arguments): Likewise.
44448 (grubcmd): Likewise.
44449 (commands): Likewise.
44450 (function): Likewise.
44451 (menuentry): Likewise.
44452 (if_statement): Likewise.
44453 (if): Likewise.
44454
44455 * normal/script.c (grub_script_memused): Removed variable.
44456 (grub_script_parsed): Likewise.
44457 (grub_script_malloc): Added a state argument. Use that instead of
44458 global variables.
44459 (grub_script_mem_record): Likewise.
44460 (grub_script_mem_record_stop): Likewise.
44461 (grub_script_arg_add): Likewise.
44462 (grub_script_add_arglist): Likewise.
44463 (grub_script_create_cmdline): Likewise.
44464 (grub_script_create_cmdif): Likewise.
44465 (grub_script_create_cmdmenu): Likewise.
44466 (grub_script_add_cmd): Likewise.
44467 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 44468
e2a8c904 444692006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 44470
44471 * normal/command.c (grub_command_init): Remove the title command.
44472
44473 * normal/lexer.c (grub_script_yylex): Renamed from this...
44474 (grub_script_yylex2): ... to this.
44475 (grub_script_yylex): New function. Temporary
44476 introduced to filter some tokens.
44477 (grub_script_yyerror): Print a newline.
44478
44479 * normal/main.c (read_config_file): Output information about the
44480 lines that contain errors. Wait for a key after all lines have
44481 been processed. Don't return an empty menu.
44482
44483 * normal/parser.y (func_mem): Don't initialize.
44484 (menu_entry): Likewise.
44485 (err): New variable.
44486 (script): Don't return anything when an error was encountered.
44487 (ws, returns): Removed rules.
44488 (argument): Disabled concatenated variable support.
44489 (arguments): Remove explicit separators.
44490 (grubcmd): Likewise.
44491 (function): Likewise.
44492 (menuentry): Likewise.
44493 (if): Likewise.
44494 (commands): Likewise. Add error handling.
44495
44496 * normal/script.c (grub_script_create_cmdline): If
44497 `grub_script_parsed' is 0, assume the parser encountered an error.
44498
c9a86192 444992006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
44500
44501 * configure.ac: Add support for EFI. Fix the typo
44502 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
44503
70f3b243 445042006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44505
44506 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
44507 foreign multibyte characters should be shown correctly.
44508
65f201ad 445092006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
44510
44511 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
44512 calculation.
44513 (read_config_file): Made it to close file before returning.
44514
b4b93674 445152006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
44516
44517 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
44518 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
44519 video/i386/pc/vbefill.c.
44520
44521 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
44522 video/i386/pc/vbefill.c.
44523
44524 * include/grub/video.h (grub_video_blit_format): New enum.
44525 (grub_video_mode_info): Added new member blit_format.
44526 (grub_video_get_blit_format): New function prototype.
44527
44528 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
44529 function prototype.
44530 (grub_video_vbe_map_rgb): Likewise.
44531 (grub_video_vbe_unmap_color): Likewise.
44532
44533 * include/grub/i386/pc/vbeblit.h: New file.
44534
44535 * include/grub/i386/pc/vbefill.h: New file.
44536
44537 * video/video.c (grub_video_get_blit_format): New function.
44538 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
44539 (grub_video_vbe_map_rgb): Likewise.
44540 (grub_video_vbe_unmap_color): Likewise.
44541
44542 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
44543 optimized fills.
44544 (grub_video_vbe_blit_render_target): Changed to use more optimized
44545 blits.
44546 (grub_video_vbe_setup): Added detection for optimized settings.
44547 (grub_video_vbe_create_render_target): Likewise.
44548
44549 * video/i386/pc/vbeblit.c: New file.
44550
44551 * video/i386/pc/vbefill.c: New file.
44552
c2379b9c 445532006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
44554
44555 * font/manager.c (grub_font_get_glyph): Removed font fixup from
44556 here...
44557
44558 * util/unifont2pff.rb: ... and moved it to here. Improved argument
44559 parsing to support both hex and dec ranges. If filename was missing
44560 show usage information.
44561
bd0d7896 445622006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
44563
44564 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
44565 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
44566
44567 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
44568 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
44569 (video_mod_SOURCES): Added.
44570 (video_mod_CFLAGS): Likewise.
44571 (video_mod_LDFLAGS): Likewise.
44572 (gfxterm_mod_SOURCES): Likewise.
44573 (gfxterm_mod_CFLAGS): Likewise.
44574 (gfxterm_mod_LDFLAGS): Likewise.
44575 (videotest_mod_SOURCES): Likewise.
44576 (videotest_mod_CFLAGS): Likewise.
44577 (videotest_mod_LDFLAGS): Likewise.
44578 (vesafb_mod_SOURCES): Removed.
44579 (vesafb_mod_CFLAGS): Likewise.
44580 (vesafb_mod_LDFLAGS): Likewise.
44581 (vga_mod_SOURCES): Likewise.
44582 (vga_mod_CFLAGS): Likewise.
44583 (vga_mod_LDFLAGS): Likewise.
44584
44585 * commands/videotest.c: New file.
44586
44587 * font/manager.c (fill_with_default_glyph): Modified to use
44588 grub_font_glyph.
44589 (grub_font_get_glyph): Likewise.
44590 (fontmanager): Renamed from this...
44591 (font_manager): ... to this.
44592
44593 * include/grub/font.h (grub_font_glyph): Added new structure.
44594 (grub_font_get_glyph): Modified to use grub_font_glyph.
44595
44596 * include/grub/misc.h (grub_abs): Added as inline function.
44597
44598 * include/grub/video.h: New file.
44599
44600 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
44601 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
44602 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
44603 (grub_vbe_get_controller_info): Renamed from this...
44604 (grub_vbe_bios_get_controller_info): ... to this.
44605 (grub_vbe_get_mode_info): Renamed from this...
44606 (grub_vbe_bios_get_mode_info): ... to this.
44607 (grub_vbe_set_mode): Renamed from this...
44608 (grub_vbe_bios_set_mode): ... to this.
44609 (grub_vbe_get_mode): Renamed from this...
44610 (grub_vbe_bios_get_mode): ... to this.
44611 (grub_vbe_set_memory_window): Renamed from this...
44612 (grub_vbe_bios_set_memory_window): ... to this.
44613 (grub_vbe_get_memory_window): Renamed from this...
44614 (grub_vbe_bios_get_memory_window): ... to this.
44615 (grub_vbe_set_scanline_length): Renamed from this...
44616 (grub_vbe_set_scanline_length): ... to this.
44617 (grub_vbe_get_scanline_length): Renamed from this...
44618 (grub_vbe_bios_get_scanline_length): ... to this.
44619 (grub_vbe_set_display_start): Renamed from this...
44620 (grub_vbe_bios_set_display_start): ... to this.
44621 (grub_vbe_get_display_start): Renamed from this...
44622 (grub_vbe_bios_get_display_start): ... to this.
44623 (grub_vbe_set_palette_data): Renamed from this...
44624 (grub_vbe_bios_set_palette_data): ... to this.
44625 (grub_vbe_set_pixel_rgb): Removed.
44626 (grub_vbe_set_pixel_index): Likewise.
44627
44628 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
44629 from this...
44630 (grub_vbe_bios_get_controller_info): ... to this.
44631 (grub_vbe_get_mode_info): Renamed from this...
44632 (grub_vbe_bios_get_mode_info): ... to this.
44633 (grub_vbe_set_mode): Renamed from this...
44634 (grub_vbe_bios_set_mode): ... to this.
44635 (grub_vbe_get_mode): Renamed from this...
44636 (grub_vbe_bios_get_mode): ... to this.
44637 (grub_vbe_set_memory_window): Renamed from this...
44638 (grub_vbe_bios_set_memory_window): ... to this.
44639 (grub_vbe_get_memory_window): Renamed from this...
44640 (grub_vbe_bios_get_memory_window): ... to this.
44641 (grub_vbe_set_scanline_length): Renamed from this...
44642 (grub_vbe_set_scanline_length): ... to this.
44643 (grub_vbe_get_scanline_length): Renamed from this...
44644 (grub_vbe_bios_get_scanline_length): ... to this.
44645 (grub_vbe_set_display_start): Renamed from this...
44646 (grub_vbe_bios_set_display_start): ... to this.
44647 (grub_vbe_get_display_start): Renamed from this...
44648 (grub_vbe_bios_get_display_start): ... to this.
44649 (grub_vbe_set_palette_data): Renamed from this...
44650 (grub_vbe_bios_set_palette_data): ... to this.
44651 (grub_vbe_bios_get_controller_info): Fixed problem with registers
44652 getting corrupted after calling it. Added more pushes and pops.
44653 (grub_vbe_bios_set_mode): Likewise.
44654 (grub_vbe_bios_get_mode): Likewise.
44655 (grub_vbe_bios_get_memory_window): Likewise.
44656 (grub_vbe_bios_set_scanline_length): Likewise.
44657 (grub_vbe_bios_get_scanline_length): Likewise.
44658 (grub_vbe_bios_get_display_start): Likewise.
44659 (grub_vbe_bios_set_palette_data): Likewise.
44660
44661 * normal/cmdline.c (cl_set_pos): Refresh the screen.
44662 (cl_insert): Likewise.
44663 (cl_delete): Likewise.
44664
44665 * term/gfxterm.c: New file.
44666
44667 * term/i386/pc/vesafb.c: Removed file.
44668
44669 * video/video.c: New file.
44670
44671 * video/i386/pc/vbe.c (real2pm): Added new function.
44672 (grub_video_vbe_draw_pixel): Likewise.
44673 (grub_video_vbe_get_video_ptr): Likewise.
44674 (grub_video_vbe_get_pixel): Likewise
44675 (grub_video_vbe_init): Likewise.
44676 (grub_video_vbe_fini): Likewise.
44677 (grub_video_vbe_setup): Likewise.
44678 (grub_video_vbe_get_info): Likewise.
44679 (grub_video_vbe_set_palette): Likewise.
44680 (grub_video_vbe_get_palette): Likewise.
44681 (grub_video_vbe_set_viewport): Likewise.
44682 (grub_video_vbe_get_viewport): Likewise.
44683 (grub_video_vbe_map_color): Likewise.
44684 (grub_video_vbe_map_rgb): Likewise.
44685 (grub_video_vbe_map_rgba): Likewise.
44686 (grub_video_vbe_unmap_color): Likewise.
44687 (grub_video_vbe_fill_rect): Likewise.
44688 (grub_video_vbe_blit_glyph): Likewise.
44689 (grub_video_vbe_blit_bitmap): Likewise.
44690 (grub_video_vbe_blit_render_target): Likewise.
44691 (grub_video_vbe_scroll): Likewise.
44692 (grub_video_vbe_swap_buffers): Likewise.
44693 (grub_video_vbe_create_render_target): Likewise.
44694 (grub_video_vbe_delete_render_target): Likewise.
44695 (grub_video_vbe_set_active_render_target): Likewise.
44696 (grub_vbe_set_pixel_rgb): Remove function.
44697 (grub_vbe_set_pixel_index): Likewise.
44698 (index_color_mode): Remove static variable.
44699 (active_mode): Likewise.
44700 (framebuffer): Likewise.
44701 (bytes_per_scan_line): Likewise.
44702 (grub_video_vbe_adapter): Added new static variable.
44703 (framebuffer): Likewise.
44704 (render_target): Likewise.
44705 (initial_mode): Likewise.
44706 (mode_in_use): Likewise.
44707 (mode_list): Likewise.
44708
5f97350b 447092006-03-10 Marco Gerards <marco@gnu.org>
44710
44711 * configure.ac (AC_INIT): Bumped to 1.93.
44712
44713 * DISTLIST: Added `include/grub/hfs.h'.
44714
a3c5c6f8 447152006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
44716
44717 * boot/i386/pc/boot.S (general_error): Before looping, try INT
44718 18H, which might help the BIOS falling back to next boot media.
44719
6de53d26 447202006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
44721
44722 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
44723 Poe Chen <poe.poechen@gmail.com>.
44724
77c4a393 447252006-01-17 Marco Gerards <marco@gnu.org>
44726
44727 * include/grub/normal.h: Include <grub/script.h>.
44728 (grub_command_list): Removed struct.
44729 (grub_command_list_t): Removed type.
44730 (grub_menu_entry): Remove members `num' and `command_list'. Add
44731 members `commands' and `sourcecode'.
44732 * include/grub/script.h: Add inclusion guards.
44733 (grub_script_cmd_menuentry): New struct.
44734 (grub_script_execute_menuentry): New prototype.
44735 (grub_script_lexer_record_start): Likewise.
44736 (grub_script_lexer_record_stop): Likewise.
44737 * normal/execute.c (grub_script_execute_menuentry): New function.
44738 * normal/lexer.c (record, recording, recordpos, recordlen): New
44739 variables.
44740 (grub_script_lexer_record_start): New function.
44741 (grub_script_lexer_record_stop): Likewise.
44742 (recordchar): Likewise.
44743 (nextchar): Likewise.
44744 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
44745 2048 as the buffer size. Add the tokens `menuentry' and `@'.
44746 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
44747 (current_menu): New variable.
44748 (free_menu): Mainly rewritten.
44749 (grub_normal_menu_addentry): New function.
44750 (read_config_file): Rewritten.
44751 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 44752 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 44753 the menu entry.
44754 (run): Mainly rewritten.
44755 * normal/parser.y (menu_entry): New variable.
44756 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
44757 (menuentry): New rule.
44758 (command): Add `menuentry'.
44759 (if_statement): Allow additional returns before `fi'.
44760 * normal/script.c (grub_script_create_cmdmenu): New function.
44761
144f1f98 447622006-01-03 Marco Gerards <marco@gnu.org>
44763
44764 * INSTALL: GNU Bison is required.
44765 * configure.ac: Rewritten the test to detect Bison.
44766 * Makefile.in (YACC): New variable. Reported by Xun Sun
44767 <xun.sun.cn@gmail.com>.
44768
af4b2d89 447692006-01-03 Marco Gerards <marco@gnu.org>
44770
44771 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
44772 the HFS+ filesystem to filesystem blocks.
44773 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
44774 GCC warning is silenced.
44775
15643b71 447762006-01-03 Marco Gerards <marco@gnu.org>
44777
44778 * partmap/apple.c (apple_partition_map_iterate): Convert the data
44779 read from disk from big endian to host byte order.
44780
00905879 447812006-01-03 Hollis Blanchard <hollis@penguinppc.org>
44782
44783 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
44784 documentation.
44785 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
44786 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
44787 embedded HFS+ filesystem.
44788 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
44789 (grub_hfs_sblock): Move from here...
44790 * include/grub/hfs.h: To here... New file.
44791 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
44792 documentation.
44793 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
44794 New macros.
44795 (grub_hfsplus_volheader): Change type of member `magic' to
44796 `grub_uint16_t'.
44797 (grub_hfsplus_data): Add new member `embedded_offset'.
44798 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
44799 returned block.
44800 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
44801 Calculate the offset.
44802
8899bc3e 448032005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44804
44805 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
44806 Removed.
44807 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
44808
ae8c0277 448092005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44810
44811 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
44812 ENV->NAME is NULL after allocating ENV->VALUE.
44813
07084456 448142005-12-25 Marco Gerards <marco@gnu.org>
44815
44816 * kern/env.c (grub_env_set): Rewritten the error handling code.
44817
4750f5f1 448182005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44819
44820 * geninit.sh: Made more robust, and more portable.
44821
50214199 448222005-12-25 Marco Gerards <marco@gnu.org>
44823
44824 Add support for Apple HFS+ filesystems.
f19dbdb7 44825
50214199 44826 * fs/hfsplus.c: New file.
44827
44828 * DISTLIST: Added `fs/hfsplus.c'.
44829
44830 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44831 (hfsplus_mod_SOURCES): New variable.
44832 (hfsplus_mod_CFLAGS): Likewise.
44833 (hfsplus_mod_LDFLAGS): Likewise.
44834 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44835 (grub_setup_SOURCES): Likewise.
44836 (grub_mkdevicemap_SOURCES): Likewise.
44837 (grub_emu_SOURCES): Likewise.
44838 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44839
44840 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44841
44842 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44843
befaed6c 448442005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44845
44846 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44847 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44848 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44849 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44850 normal/lexer.c, normal/parser.y, normal/script.c, and
44851 partmap/gpt.c.
44852 Removed kern/sparc64/cache.c.
44853
44854 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44855 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44856 grub_emu_init.c.
44857
44858 * configure.ac (AC_INIT): Bumped to 1.92.
44859
6a124103 448602005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44861
44862 * kern/err.c (grub_error_push): Added new function to support error
44863 stacks.
44864 (grub_error_pop): Likewise.
44865 (grub_error_stack_items): New local variable to support error stacks.
44866 (grub_error_stack_pos): Likewise.
44867 (grub_error_stack_assert): Likewise.
44868 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44869 stack depth.
44870 (grub_print_error): Added support to print errors from error stack.
44871
44872 * include/grub/err.h (grub_error_push): Added function prototype.
44873 (grub_error_pop): Likewise.
44874
be973c1b 448752005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44876
44877 * configure.ac: Accept `powerpc64' as host_cpu.
44878 (amd64): Rename to `biarch32'.
44879
44880 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44881 non-cacheline-aligned addresses.
44882
44883 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44884 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44885 if `size' is non-zero.
44886
b04216ab 448872005-12-03 Marco Gerards <mgerards@xs4all.nl>
44888
44889 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44890 and `cd' to make sure the filename is not prefixed with a
44891 directory name.
44892 (pkgdata_MODULES): Add `gpt.mod'.
44893 (gpt_mod_SOURCES): New variable.
44894 (gpt_mod_CFLAGS): Likewise.
44895 (gpt_mod_LDFLAGS): Likewise.
44896
44897 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44898
44899 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44900 New macro.
44901
44902 * partmap/gpt.c: New file.
44903
44904 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44905 GPT partition map is detected.
44906
41730ed9 449072005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44908
44909 * commands/i386/pc/play.c: New file.
44910 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44911 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44912 macros.
f19dbdb7 44913
95dc3643 449142005-11-27 Marco Gerards <mgerards@xs4all.nl>
44915
44916 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44917 ((unused))' to silence gcc warning.
44918
1569ec51 449192005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44920
44921 * configure.ac: Correct `AC_PROG_YACC' test.
44922
9abde152 449232005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44924
44925 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44926 check before installing files.
44927
44b83271 449282005-11-22 Mike Small <smallm@panix.com>
44929
44930 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44931 number regex so multidigit numbers are recognized correctly.
44932
449332005-11-22 Mike Small <smallm@panix.com>
44934
44935 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44936 debugging message before attempting to claim memory.
44937 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44938 multiple addresses in case of failure.
44939
9c12956b 449402005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44941
44942 * term/tparm.c (get_space): Remove empty `if' statement.
44943
44944 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44945
44946 * kern/parser.c (check_varstate): Rename `state' to 's'.
44947
aeaf81d9 449482005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44949
44950 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44951 variable definitions to the beginning of each function. Sort stack
44952 variables by size.
44953 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44954 `buf' argument to `char *'.
44955
79bbb63f 449562005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44957
44958 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44959 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 44960 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 44961 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44962 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44963 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44964 configfile.mod, search.mod, gzio.mod and test.mod.
44965 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44966 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44967 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44968 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44969 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44970 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44971 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44972 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44973 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44974 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44975 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44976 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44977 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44978 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44979 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44980 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44981 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44982 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44983 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44984 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44985 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44986 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44987 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44988
44989 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44990 `grep --include'.
44991 (pkgdata_MODULES): Add test.mod.
44992
233b1628 449932005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44994
44995 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44996 appending to variables with "+=".
44997 (PModule): Use full pathname to generate *.lst filenames.
44998
44999 * Makefile.in: Fixed list rules moved from genmk.rb.
45000 (.DELETE_ON_ERROR): New special target.
45001 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
45002
45003 * conf/i386-pc.rmk: Include conf/common.mk.
45004 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 45005 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 45006 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
45007 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
45008 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
45009 configfile.mod, search.mod, gzio.mod and test.mod.
45010 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
45011 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
45012 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
45013 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
45014 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
45015 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
45016 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
45017 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
45018 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
45019 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
45020 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45021 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45022 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
45023 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
45024 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
45025 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
45026 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
45027 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
45028 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
45029 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
45030 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
45031 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
45032 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
45033 here...
45034 * conf/common.rmk: ... to here. New file.
45035
45036 * conf/common.mk: New file.
45037
16f820c8 450382005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
45039
45040 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
45041 (grub_script.tab.c): ... here.
45042
45043 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
45044 (grub_script.tab.c): ... here.
45045
45046 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
45047 (grub_script.tab.c): ... here.
45048
45049 * normal/command.c (grub_command_find): Fixed a memory leak of
45050 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
45051
63ba1554 450522005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45053
45054 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
45055 "@" which marks the start of a comment on ARM.
45056 (VARIABLE): Likewise.
45057
7f67dc13 450582005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45059
79bbb63f 45060 Add support for Linux/ADFS partition tables.
7f67dc13 45061
45062 * partmap/acorn.c: New file.
45063
45064 * include/grub/acorn_filecore.h: Likewise.
45065
45066 * DISTLIST: Added `partmap/acorn.c' and
45067 `include/grub/acorn_filecore.h'.
f19dbdb7 45068
7f67dc13 45069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45070 `partmap/acorn.c'.
45071 (pkgdata_MODULES): Add `acorn.mod'.
45072 (acorn_mod_SOURCES): New variable.
45073 (acorn_mod_CFLAGS): Likewise.
45074
45075 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45076 `partmap/acorn.c'.
45077 (pkgdata_MODULES): Add `acorn.mod'.
45078 (acorn_mod_SOURCES): New variable.
45079 (acorn_mod_CFLAGS): Likewise.
45080
45081 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
45082 (pkgdata_MODULES): Add `acorn.mod'.
45083 (acorn_mod_SOURCES): New variable.
45084 (acorn_mod_CFLAGS): Likewise.
45085 (acorn_mod_LDFLAGS): Likewise.
45086
45087 * include/types.h (grub_disk_addr_t): New typedef.
45088
6d099807 450892005-11-13 Marco Gerards <mgerards@xs4all.nl>
45090
45091 * geninit.sh: New file.
45092
45093 * geninitheader.sh: Likewise.
45094
45095 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
45096 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
45097 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
45098 * commands/configfile.c (grub_configfile_init)
45099 (grub_configfile_fini): Likewise.
45100 * commands/default.c (grub_default_init, grub_default_fini):
45101 Likewise.
45102 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
45103 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
45104 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
45105 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
45106 Likewise.
45107 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
45108 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
45109 Likewise.
45110 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 45111 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 45112 Likewise.
45113 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
45114 Likewise.
fe6b695a 45115 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 45116 Likewise.
45117 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
45118 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
45119 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
45120 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
45121 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
45122 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
45123 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
45124 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
45125 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
45126 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
45127 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
45128 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
45129 * partmap/amiga.c (grub_amiga_partition_map_init)
45130 (grub_amiga_partition_map_fini): Likewise.
45131 * partmap/apple.c (grub_apple_partition_map_init)
45132 (grub_apple_partition_map_fini): Likewise.
45133 * partmap/pc.c (grub_pc_partition_map_init)
45134 (grub_pc_partition_map_fini): Likewise.
45135 * partmap/sun.c (grub_sun_partition_map_init,
45136 grub_sun_partition_map_fini): Likewise.
45137 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
45138 Likewise.
45139
45140 * util/grub-emu.c: Include <grub_modules_init.h>.
45141 (main): Don't initialize and de-initialize any modules directly,
45142 use `grub_init_all' and `grub_fini_all' instead.
45143
45144 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
45145 `grub_vesafb_mod_init'.
45146 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
45147 all users.
45148 * term/i386/pc/vga.c (grub_vga_init): Renamed to
45149 `grub_vga_mod_init'. Updated all users.
45150 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 45151
6d099807 45152 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
45153 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
45154 rules.
45155
45156 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
45157 Generate a function to initialize the module in utilities.
45158 Updated all callers.
45159 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
45160 initialize the module in utilities. Updated all callers.
45161
9046bcf0 451622005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45163
45164 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
45165 escape sequence and a literal ^L to clear the screen.
45166
45167 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
45168 when returning from Open Firmware.
45169
d13ea639 451702005-11-09 Hollis Blanchard <hollis@penguinppc.org>
45171
45172 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
45173 (grub_ofconsole_height): Likewise.
45174 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
45175 manually insert a '\n'.
45176 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
45177 `grub_ofconsole_height'. Return early if these are already set.
45178
a8fcf206 451792005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
45180
45181 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
45182 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
45183 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
45184 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
45185 and `normal/script.c'.
45186 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45187 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45188 (test_mod_SOURCES): New variable.
45189 (test_mod_CFLAGS): Likewise.
45190 (test_mod_LDFLAGS): Likewise.
45191 (pkgdata_MODULES): Add `test.mod'.
45192 (grub_script.tab.c): New rule.
45193 (grub_script.tab.h): Likewise.
45194
b6b32745 451952005-11-07 Marco Gerards <mgerards@xs4all.nl>
45196
45197 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
45198 `commands/test.c', `normal/execute.c', `normal/lexer.c',
45199 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45200 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45201 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
45202 (test_mod_SOURCES): New variable.
45203 (test_mod_CFLAGS): Likewise.
45204 (pkgdata_MODULES): Add `test.mod'.
45205 (grub_script.tab.c): New rule.
45206 (grub_script.tab.h): Likewise.
45207
daac212a 452082005-11-06 Marco Gerards <mgerards@xs4all.nl>
45209
45210 Add initial scripting support.
45211
45212 * commands/test.c: New file.
45213 * include/grub/script.h: Likewise.
45214 * normal/execute.c: Likewise.
45215 * normal/function.c: Likewise.
45216 * normal/lexer.c: Likewise.
45217 * normal/parser.y: Likewise.
45218 * normal/script.c: Likewise.
45219
45220 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 45221
daac212a 45222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
45223 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
45224 `normal/function.c' and `normal/script.c'.
45225 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
45226 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 45227 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
45228 variables.
daac212a 45229 (pkgdata_MODULES): Add `test.mod'.
45230 (grub_script.tab.c): New rule.
45231 (grub_script.tab.h): Likewise.
45232
45233 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
45234
45235 * include/grub/normal.h (grub_test_init): New prototype.
45236 (grub_test_fini): Likewise.
f19dbdb7 45237
daac212a 45238 * normal/command.c: Include <grub/script.h>.
45239 (grub_command_execute): Rewritten.
f19dbdb7 45240
daac212a 45241 * util/grub-emu.c (main): Call `grub_test_init' and
45242 `grub_test_fini'.
45243
77500b2b 452442005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45245
45246 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
45247 to 0.
45248 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
45249 there are no pending characters.
45250
e45deb9e 452512005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45252
45253 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
45254 `grub_strndup' to drop device arguments. Replace unnecessary
45255 `grub_strndup' with `grub_strdup'.
45256
4ce32619 452572005-11-03 Hollis Blanchard <hollis@penguinppc.org>
45258
45259 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
45260 `debug' environment variable has been set.
45261
452622005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 45263
4ce32619 45264 * Makefile.in (install-local): Use $(DATA).
45265 (uninstall): Likewise.
45266 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
45267 (sbin_UTILITIES): ... to here.
45268 (sbin_SCRIPTS): New variable.
45269 (grub_install_SOURCES): New variable.
45270 * util/powerpc/ieee1275/grub-install.in: New file.
45271 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
45272 variable.
45273 (add_segments): Call `grub_util_get_path'.
45274
25fe6f03 452752005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45276
45277 From Timothy Baldwin:
45278 * commands/ls.c (grub_ls_list_files): Close FILE with
45279 grub_file_close.
45280 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
45281
04ccf3ec 452822005-10-24 Marco Gerards <mgerards@xs4all.nl>
45283
45284 * include/grub/parser.h: New file.
45285
45286 * kern/parser.c: Likewise.
45287
45288 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
45289 (grub_setup_SOURCES): Likewise.
45290 (grub_probefs_SOURCES): Likewise.
45291 (grub_emu_SOURCES): Likewise.
45292 (kernel_img_HEADERS): Add `parser.h'.
45293
45294 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45295 (grub_emu_SOURCES): Add `kern/parser.c'.
45296 (grubof_SOURCES): Likewise.
45297
45298 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
45299 (grubof_SOURCES): Add `kern/parser.c'.
45300
45301 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
45302
45303 * kern/misc.c (grub_split_cmdline): Removed function.
45304
45305 * kern/rescue.c: Include <grub/parser.h>.
45306 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
45307 of `grub_split_cmdline'.
45308
45309 * normal/command.c: Include <grub/parser.h>.
45310 (grub_command_execute): Use `grub_parser_split_cmdline' instead
45311 of `grub_split_cmdline'.
45312
45313 * normal/completion.c: Include <grub/parser.h>.
45314 (cmdline_state): New variable.
45315 (iterate_dir): End the filename with a quote depending on the
45316 command line state.
45317 (get_state): new function.
45318 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
45319 split the arguments and determine the current argument. When the
45320 argument string is not quoted, escape all spaces.
45321
6d8f4b0e 453222005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45323
45324 * normal/sparc64/setjmp.S: New file.
45325
15cf03ed 453262005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45327
45328 * include/grub/sparc64/libgcc.h: New file.
45329 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
45330 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
45331 normal/sparc64/setjmp.c.
45332
03e8661a 453332005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
45334
45335 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
45336 * kern/sparc64/cache.S: New file.
45337 * kern/sparc64/cache.c: Removed.
45338 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
45339 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
45340 -mtune=ultrasparc.
45341 (COMMON_LDFLAGS): Add -melf64_sparc.
45342 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
45343 (grubof_SOURCES): Use cache.S instead of cache.c.
45344 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
45345 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
45346 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
45347 commented though.
45348 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
45349 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
45350 (linux_mod_CFLAGS): Commented out.
45351 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
45352 out because module isn't built.
45353 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
45354 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
45355 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
45356 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
45357 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
45358 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45359 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45360 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
45361 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
45362 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
45363 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
45364 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
45365 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
45366 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
45367
34eeec8a 453682005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
45369
45370 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
45371 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
45372 longer, because HFS should not be used on PC.
45373
708367a3 453742005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
45375
45376 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
45377 consistently within the loop.
45378
6fa1251a 453792005-10-15 Marco Gerards <mgerards@xs4all.nl>
45380
45381 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
45382 directory can not be read.
45383
4801580b 453842005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45385
45386 * configure.ac (AC_INIT): Increase the version number to 1.91.
45387
45388 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
45389 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
45390 term/i386/pc/serial.c.
45391
219ad426 453922005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45393
45394 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
45395 file size must be permitted.
45396
45397 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
45398 between %ah and %al.
45399
688e5699 454002005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45401
45402 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
45403 grub_uint64_t.
45404 Call the hook with a NUL-terminated filename.
45405 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
45406 grub_cpu_to_be32.
45407
45408 * kern/term.c (cursor_state): New variable.
45409 (grub_term_set_current): Reset the cursor state on a new
45410 terminal.
45411 (grub_setcursor): Rewritten to use CURSOR_STATE.
45412 (grub_getcursor): New function.
45413
45414 * include/grub/term.h (grub_getcursor): New prototype.
45415
45416 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
45417 integers on ARM. Reported by Timothy Baldwin
45418 <T.E.Baldwin99@members.leeds.ac.uk>.
45419
bb34586c 454202005-10-11 Marco Gerards <mgerards@xs4all.nl>
45421
45422 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
45423 allocated.
45424 (grub_sfs_dir): Likewise.
45425
9a909877 454262005-10-09 Marco Gerards <mgerards@xs4all.nl>
45427
45428 Add support for the SFS filesystem.
45429
45430 * fs/sfs.c: New file.
45431
45432 * DISTLIST: Added `fs/sfs.c'.
45433
45434 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
45435 (grub_probefs_SOURCES): Likewise.
45436 (grub_emu_SOURCES): Likewise.
45437 (pkgdata_MODULES): Add `sfs.mod'.
45438 (sfs_mod_SOURCES): New variable.
45439 (sfs_mod_CFLAGS): Likewise.
45440 (sfs_mod_LDFLAGS): Likewise.
45441
45442 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
45443 (pkgdata_MODULES): Add `sfs.mod'.
45444 (sfs_mod_SOURCES): New variable.
45445 (sfs_mod_CFLAGS): Likewise.
45446
45447 * util/grub-emu.c (main): Call `grub_sfs_init' and
45448 `grub_sfs_fini'.
45449
45450 * include/grub/fs.h (grub_sfs_init): New prototype.
45451 (grub_sfs_fini): Likewise.
45452
57bdbde3 454532005-10-07 Marco Gerards <mgerards@xs4all.nl>
45454
45455 Add support for the AFFS filesystem.
45456
45457 * fs/affs.c: New file.
45458
45459 * DISTLIST: Added `fs/affs.c'.
45460
45461 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
45462 (grub_probefs_SOURCES): Likewise.
45463 (grub_emu_SOURCES): Likewise.
45464 (pkgdata_MODULES): Add `affs.mod'.
45465 (affs_mod_SOURCES): New variable.
45466 (affs_mod_CFLAGS): Likewise.
45467 (affs_mod_LDFLAGS): Likewise.
45468
45469 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
45470 (pkgdata_MODULES): Add `affs.mod'.
45471 (affs_mod_SOURCES): New variable.
45472 (affs_mod_CFLAGS): Likewise.
45473
45474 * util/grub-emu.c (main): Call `grub_affs_init' and
45475 `grub_affs_fini'.
45476
45477 * include/grub/fs.h (grub_affs_init): New prototype.
45478 (grub_affs_fini): Likewise.
45479
047b67e0 454802005-10-01 Marco Gerards <mgerards@xs4all.nl>
45481
45482 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
45483
59b8208a 454842005-10-01 Marco Gerards <mgerards@xs4all.nl>
45485
45486 * configure.ac: Accept `x86_64' as host_cpu. In that case add
45487 `-m32' to CFLAGS.
45488
45489 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
45490 linking.
f19dbdb7 45491
59b8208a 45492 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
45493 (COMMON_LDFLAGS): New variable.
45494 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
45495 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
45496 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
45497 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
45498 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
45499 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
45500 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
45501 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
45502 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
45503 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
45504 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
45505 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
45506 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
45507 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
45508 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
45509 variables.
45510 (normal_mod_ASFLAGS): Add `-m32'.
45511
45512 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
45513 (grub_host_size_t, grub_host_ssize_t): New types.
45514 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 45515 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 45516 `GRUB_HOST_SIZEOF_VOID_P'.
45517
45518 * include/grub/kernel.h (struct grub_module_header): Type of
45519 member offset changed to `grub_host_off_t'. Type of member size
45520 changed to `grub_host_size_t'.
45521 (struct grub_module_info): Type of member offset changed to
45522 `grub_host_off_t'. Type of member size changed to
45523 `grub_host_size_t'.
45524
b4093103 455252005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
45526
45527 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 45528
b4093103 45529 * kern/i386/pc/startup.S (multiboot_header): New label.
45530 (multiboot_entry): Likewise.
45531 (multiboot_trampoline): Likewise.
45532
45533 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45534 Increased to 0x4A0.
45535
45536 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
45537 put parentheses after a question mark.
45538 [!GRUB_UTIL] (my_mod): New variable.
45539
45540 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
45541
b2499b29 455422005-09-28 Marco Gerards <mgerards@xs4all.nl>
45543
45544 Adds support for the XFS filesystem. Btrees are not supported
45545 yet.
45546
45547 * fs/xfs.c: New file.
45548
45549 * DISTLIST: Added `fs/xfs.c'.
45550
45551 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
45552 (grub_probefs_SOURCES): Likewise.
45553 (grub_emu_SOURCES): Likewise.
45554 (pkgdata_MODULES): Add `xfs.mod'.
45555 (xfs_mod_SOURCES): New variable.
45556 (xfs_mod_CFLAGS): Likewise.
45557
45558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
45559 (pkgdata_MODULES): Add `xfs.mod'.
45560 (xfs_mod_SOURCES): New variable.
45561 (xfs_mod_CFLAGS): Likewise.
45562
45563 * util/grub-emu.c (main): Call `grub_xfs_init' and
45564 `grub_xfs_fini'.
45565
45566 * include/grub/fs.h (grub_xfs_init): New prototype.
45567 (grub_xfs_fini): Likewise.
45568
f19dbdb7 45569
83d37a62 455702005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
45571
45572 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
45573 color modes, allow greater than 16 colors to be configured as
45574 a default palette.
45575
47d2d65e 455762005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
45577
45578 * normal/completion.c (complete_arguments): Add the qualifier
45579 const into OPTIONS.
45580
45581 From Omniflux <omniflux+lists@omniflux.com>:
45582 * include/grub/terminfo.h: New file.
45583 * include/grub/tparm.h: Likewise.
45584 * include/grub/i386/pc/serial.h: Likewise.
45585 * term/terminfo.c: Likewise.
45586 * term/tparm.c: Likewise.
45587 * term/i386/pc/serial.c: Likewise.
45588 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
45589 serial.mod.
45590 (terminfo_mod_SOURCES): New variable.
45591 (terminfo_mod_CFLAGS): Likewise.
45592 (serial_mod_SOURCES): Likewise.
45593 (serial_mod_CFLAGS): Likewise.
45594
48b671ff 455952005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
45596
45597 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
45598 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
45599 and kern/powerpc/ieee1275/cmain.c, respectively.
45600
45601 * boot/powerpc/ieee1275/crt0.S: Moved to ...
45602 * kern/powerpc/ieee1275/crt0.S: ... here.
45603
45604 * boot/powerpc/ieee1275/cmain.c: Moved to ...
45605 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 45606
48b671ff 45607 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
45608 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
45609 instead of boot/powerpc/ieee1275/crt0.S and
45610 boot/powerpc/ieee1275/cmain.c, respectively.
45611
45612 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
45613 sectors. It was not used anyway.
45614
09fc77a7 456152005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45616
45617 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
45618 `unused parameter' warning.
45619
003789c7 456202005-08-30 Hollis Blanchard <hollis@penguinppc.org>
45621
45622 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
45623 function.
45624 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
45625 getcharwidth.
45626
67f44c86 456272005-08-28 Marco Gerards <metgerards@student.han.nl>
45628
45629 * include/grub/normal.h (enum grub_completion_type): Added
45630 `GRUB_COMPLETION_TYPE_ARGUMENT'.
45631
45632 * normal/cmdline.c (print_completion): Handle
45633 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
45634 * normal/menu_entry.c (store_completion): Likewise.
45635
45636 * normal/completion.c (complete_arguments): New function.
45637 (grub_normal_do_completion): Call `complete_arguments' when the
45638 current words start with a dash.
45639
0b5abe02 456402005-08-27 Marco Gerards <metgerards@student.han.nl>
45641
45642 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
45643 `gzio.mod' instead of `io.mod').
45644
d9864ee1 456452005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
45646
45647 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
45648 (DISTDIRS): Added io and video.
45649 Rewrite the search routine to make an output consistently.
45650
45651 * DISTLIST: Added conf/sparc64-ieee1275.mk,
45652 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
45653 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
45654 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
45655 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
45656 util/powerpc/ieee1275/misc.c.
f19dbdb7 45657
d9864ee1 45658 * include/grub/gzio.h: New file.
45659 * io/gzio.c: Likewise.
f19dbdb7 45660
d9864ee1 45661 * kern/file.c (grub_file_close): Call grub_device_close only if
45662 FILE->DEVICE is not NULL.
45663
45664 * include/grub/mm.h [!NULL] (NULL): New macro.
45665
45666 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
45667
45668 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
45669 (pkgdata_MODULES): Added gzio.mod.
45670 (gzio_mod_SOURCES): New variable.
45671 (gzio_mod_CFLAGS): Likewise.
45672
45673 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
45674 (pkgdata_MODULES): Added gzio.mod.
45675 (gzio_mod_SOURCES): New variable.
45676 (gzio_mod_CFLAGS): Likewise.
45677
45678 * commands/cat.c: Include grub/gzio.h.
45679 (grub_cmd_cat): Use grub_gzfile_open instead of
45680 grub_file_open.
f19dbdb7 45681
d9864ee1 45682 * commands/cmp.c: Include grub/gzio.h.
45683 (grub_cmd_cmp): Use grub_gzfile_open instead of
45684 grub_file_open.
45685
45686 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
45687 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
45688 grub_file_open.
45689 (grub_rescue_cmd_module): Likewise.
45690
fa46f4b5 456912005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45692
45693 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
45694 kern/sparc64/ieee1275/init.c because it contains _start.
45695 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
45696
e9211b5d 456972005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
45698
45699 * configure.ac: Add support for sparc64 host with ieee1275
45700 firmware.
45701 * configure: Generated from configure.ac.
45702 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
45703 instead of int.
45704 (grub_ofdisk_read): Likewise.
45705 (grub_ofdisk_open): Use %p to print pointer values, and cast the
45706 pointers as (void *) to remove a warning.
45707 (grub_ofdisk_close): Likewise.
45708 (grub_ofdisk_read): Likewise.
45709 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
45710 returns, so make it return void to remove a warning.
45711 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
45712 Corresponding prototype change.
45713 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
45714 values, and cast the pointers as (void *) to remove a warning.
45715 (grub_mm_dump): Likewise.
45716 * conf/sparc64-ieee1275.mk: New file.
45717 * conf/sparc64-ieee1275.rmk: Likewise.
45718 * include/grub/sparc64/setjmp.h: Likewise.
45719 * include/grub/sparc64/types.h: Likewise.
45720 * include/grub/sparc64/ieee1275/console.h: Likewise.
45721 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45722 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45723 * include/grub/sparc64/ieee1275/time.h: Likewise.
45724 * kern/sparc64/cache.c: Likewise.
45725 * kern/sparc64/dl.c: Likewise.
45726 * kern/sparc64/ieee1275/init.c: Likewise.
45727 * kern/sparc64/ieee1275/openfw.c: Likewise.
45728
385c6a92 457292005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
45730
45731 * util/console.c (grub_ncurses_putchar): If C is greater than
45732 0x7f, set C to a question mark.
45733 (grub_ncurses_getcharwidth): New function.
45734 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
45735 getcharwidth.
45736
45737 * normal/menu.c (print_entry): Made aware of Unicode. First,
45738 convert TITLE to UCS-4, and predict the cursor position by
45739 grub_getcharwidth.
45740
45741 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
45742 const to SRC.
45743 * kern/misc.c (grub_utf16_to_utf8): Likewise.
45744
16ccb8b1 457452005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45746
45747 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
45748 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45749 grub_strcat.
45750
45751 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
45752 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
45753 grub_strcpy and grub_strlen. Take it into account that a space
45754 character is inserted as a delimiter.
45755
6a85ce79 457562005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45757
45758 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 45759 invalid magic in the error.
6a85ce79 45760
45761 * commands/search.c: New file.
f19dbdb7 45762
6a85ce79 45763 * util/grub-emu.c (main): Call grub_search_init and
45764 grub_search_fini.
45765
45766 * kern/rescue.c (grub_rescue_print_disks): Removed.
45767 (grub_rescue_print_devices): New function.
45768 (grub_rescue_cmd_ls): Use grub_device_iterate with
45769 grub_rescue_print_devices instead of grub_disk_dev_iterate with
45770 grub_rescue_print_disks.
45771
45772 * kern/partition.c (grub_partition_iterate): Return the result of
45773 PARTMAP->ITERATE instead of GRUB_ERRNO.
45774
45775 * kern/device.c: Include grub/partition.h.
45776 (grub_device_iterate): New function.
45777
45778 * include/grub/partition.h (grub_partition_iterate): Return int
45779 instead of grub_err_t.
45780
45781 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
45782 prototype.
45783 [GRUB_UTIL] (grub_search_fini): Likewise.
45784
45785 * include/grub/device.h (grub_device_iterate): New prototype.
45786
45787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45788 commands/search.c.
45789 (pkgdata_MODULES): Added search.mod.
45790 (search_mod_SOURCES): New variable.
45791 (search_mod_CFLAGS): Likewise.
45792
45793 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
45794 (pkgdata_MODULES): Added search.mod.
45795 (search_mod_SOURCES): New variable.
45796 (search_mod_CFLAGS): Likewise.
45797
45798 * commands/ls.c (grub_ls_list_disks): Renamed to ...
45799 (grub_ls_list_devices): ... this, and use grub_device_iterate.
45800 All callers changed.
45801
45802 * DISTLIST: Added commands/search.c.
45803
ef095434 458042005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
45805
45806 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
45807 conversion.
45808 (grub_getcharwidth): New function.
45809
45810 * kern/misc.c (grub_utf8_to_ucs4): New function.
45811
45812 * include/grub/term.h (struct grub_term): Added a new member
45813 "getcharwidth".
45814 (grub_getcharwidth): New prototype.
45815
45816 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45817
45818 * term/i386/pc/console.c (map_char): New function. Segregated from
45819 grub_console_putchar.
45820 (grub_console_putchar): Use map_char.
45821 (grub_console_getcharwidth): New function.
45822 (grub_console_term): Specified grub_console_getcharwidth as
45823 getcharwidth.
45824
45825 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45826 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45827
45828 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45829 GRUB_ERRNO.
45830 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45831 on grub_strtoul completely.
45832 (write_char): Declare local variables in the beginning of the
45833 function.
45834 (grub_vesafb_getcharwidth): New function.
45835 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45836 getcharwidth.
45837
1f0a95e4 458382005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45839
45840 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45841 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45842 commands/i386/pc/vbetest.c.
45843
45844 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45845 call grub_vbe_get_controller_info again, because the returned
45846 information is volatile.
45847 (grub_vbe_set_video_mode): Mostly rewritten.
45848 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45849 grub_vbe_status_t correctly.
45850 (grub_vbe_get_video_mode_info): Likewise.
45851 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45852 several if statements.
45853
45854 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45855 * commands/i386/pc/vbeinfo.c: ... this.
45856
45857 * commands/i386/pc/vbe_test.c: Renamed to ...
45858 * commands/i386/pc/vbetest.c: ... this.
45859
45860 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45861 ...
45862 (grub_cmd_vbeinfo): ... this. Save video modes before
45863 iterating. Skip a video mode, if it is not available, not enough
45864 information is given or it is monochrome. Show the memory
45865 model. Leave the interpretation of MODEVAR to grub_strtoul
45866 completely.
45867 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45868 (GRUB_MOD_FINI): Likewise.
45869
45870 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45871 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45872 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45873 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45874 grub_strtoul completely.
45875 (real2pm): Removed.
45876 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45877 (GRUB_MOD_FINI): Likewise.
45878
45879 * normal/misc.c: Include grub/mm.h.
45880
45881 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45882 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45883 (vbe_list_modes_mod_SOURCES): Removed.
45884 (vbe_list_modes_mod_CFLAGS): Likewise.
45885 (vbe_test_mod_SOURCES): Likewise.
45886 (vbe_test_mod_CFLAGS): Likewise.
45887 (vbeinfo_mod_SOURCES): New variable.
45888 (vbeinfo_mod_CFLAGS): Likewise.
45889 (vbetest_mod_SOURCES): Likewise.
45890 (vbetest_mod_CFLAGS): Likewise.
45891
992ffbbe 458922005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45893
45894 * normal/misc.c: New file.
45895
45896 * DISTLIST: Added normal/misc.c.
f19dbdb7 45897
992ffbbe 45898 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45899 DISK to HOOK. Call HOOK with DISK.
45900 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45901 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45902 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45903
45904 * normal/menu_entry.c (struct screen): Added a new member
45905 "completion_shown".
45906 (completion_buffer): New global variable.
45907 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45908 (store_completion): New function.
45909 (complete): Likewise.
45910 (clear_completions): Likewise.
45911 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45912 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45913 a tab, call complete.
45914
45915 * normal/completion.c (disk_dev): Removed.
45916 (print_simple_completion): Likewise.
45917 (print_partition_completion): Likewise.
45918 (print_func): New global variable.
45919 (add_completion): Do not take the arguments WHAT or PRINT any
45920 longer. Added a new argument TYPE. Instead of printing directly,
45921 call PRINT_FUNC if not NULL.
45922 All callers changed.
45923 (complete_device): Use a local variable DEV instead of
45924 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45925 (grub_normal_do_completion): Take a new argument HOOK. Do not
45926 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45927 empty string, return NULL instead.
45928 All callers changed.
45929
45930 * normal/cmdline.c (print_completion): New function.
45931
45932 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45933 to HOOK.
45934 All callers changed.
45935
45936 * kern/disk.c (grub_print_partinfo): Removed.
45937
45938 * include/grub/partition.h (struct grub_partition_map): Add a new
45939 argument DISK into HOOK of ITERATE.
45940 (grub_partition_iterate): Add a new argument DISK to HOOK.
45941
45942 * include/grub/normal.h (enum grub_completion_type): New enum.
45943 (grub_completion_type_t): New type.
45944 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45945 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45946 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45947 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45948 (grub_normal_do_completion): Added a new argument HOOK.
45949 (grub_normal_print_device_info): New prototype.
45950
45951 * include/grub/disk.h (grub_print_partinfo): Removed.
45952
45953 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45954 (normal_mod_SOURCES): Likewise.
45955 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45956 (normal_mod_SOURCES): Likewise.
45957
45958 * commands/ls.c (grub_ls_list_disks): Use
45959 grub_normal_print_device_info instead of grub_print_partinfo. Free
45960 PNAME.
45961 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45962 duplicating the code.
45963
0bd41162 459642005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45965
45966 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 45967 follow GCS more precisely.
45968 * commands/i386/pc/vbe_test.c: Likewise.
45969 * include/grub/i386/pc/vbe.h: Likewise.
45970 * term/i386/pc/vesafb.c: Likewise.
45971 * video/i386/pc/vbe.c: Likewise.
0bd41162 45972
6323696a 459732005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45974
45975 * DISTLIST: Added term/i386/pc/vesafb.c
45976 DISTLIST: Added video/i386/pc/vbe.c
45977 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45978 DISTLIST: Added commands/i386/pc/vbe_test.c.
45979 * commands/i386/pc/vbe_list_modes.c: New file.
45980 * commands/i386/pc/vbe_test.c: Likewise.
45981 * term/i386/pc/vesafb.c: Likewise.
45982 * video/i386/pc/vbe.c: Likewise.
45983 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45984 (grub_vbe_probe) Added prototype.
45985 (grub_vbe_set_video_mode) Likewise.
45986 (grub_vbe_get_video_mode) Likewise.
45987 (grub_vbe_get_video_mode_info) Likewise.
45988 (grub_vbe_set_pixel_rgb) Likewise.
45989 (grub_vbe_set_pixel_index) Likewise.
45990 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45991 (pkgdata_MODULES): Added vesafb.mod.
45992 (pkgdata_MODULES): Added vbe_list_modes.mod.
45993 (pkgdata_MODULES): Added vbe_test.mod.
45994 (vbe_mod_SOURCES): Added.
45995 (vbe_mod_CFLAGS): Likewise.
45996 (vesafb_mod_SOURCES): Likewise.
45997 (vesafb_mod_CFLAGS): Likewise.
45998 (vbe_list_modes_mod_SOURCES): Likewise.
45999 (vbe_list_modes_mod_CFLAGS): Likewise.
46000 (vbe_test_mod_SOURCES): Likewise.
46001 (vbe_test_mod_CFLAGS): Likewise.
46002
0a74e62f 460032005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
46004
0a74e62f 46005 * normal/command.c (grub_command_execute): If INTERACTIVE is
46006 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
46007 CMDLINE. Disable the pager if INTERACTIVE is true.
46008 All callers are changed.
46009
46010 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
46011 before reading a config file.
46012 * normal/main.c (read_config_file): Even if a command is not
46013 found, register it if it is within an entry.
46014
46015 * util/grub-emu.c: Include sys/types.h and unistd.h.
46016 (options): Added --hold.
46017 (struct arguments): Added a new member "hold".
46018 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
46019 missing.
46020 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
46021 cleared by a debugger, if it is not zero.
46022
46023 * include/grub/normal.h (grub_command_execute): Add an argument
46024 INTERACTIVE.
46025
e51f85ae 460262005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
46027
46028 * DISTLIST: Added include/grub/i386/pc/vbe.h.
46029
e9c6f39b 460302005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
46031
46032 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
46033 program with another one, because the old one didn't detect a bug
46034 in gcc-3.4. Always use regparm 2, because the new test is still
46035 not enough for gcc-4.0. Someone must investigate a simple test
46036 case which detects a bug in gcc-4.0.
46037
8de3495c 460382005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
46039
46040 * DISTLIST: Added normal/completion.c.
46041
46042 * normal/completion.c: New file.
f19dbdb7 46043
8de3495c 46044 * term/i386/pc/console.c (grub_console_getwh): New function.
46045 (grub_console_term): Assign grub_console_getwh to getwh.
46046
46047 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
46048 function is defined in normal/completion.c as
46049 grub_normal_do_completion.
46050 (grub_cmdline_get): Use grub_normal_do_completion instead of
46051 grub_tab_complete.
46052
46053 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
46054 returns non-zero, otherwise return 0.
46055 (grub_partition_iterate): First, probe the partition map. Then,
46056 call ITERATE only for this partition map.
46057
46058 * kern/misc.c (grub_strncmp): Rewritten.
46059
46060 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
46061 returns non-zero. Otherwise return 0.
46062
46063 * include/grub/partition.h (grub_partition_map_iterate): Return
46064 int instead of void.
46065
46066 * include/grub/normal.h (grub_normal_do_completion): New prototype.
46067
46068 * include/grub/misc.h (grub_strncmp): Change the type of N to
46069 grub_size_t.
46070
46071 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
46072 of void.
46073
46074 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 46075 unsigned explicitly before comparing it with I.
8de3495c 46076
46077 * kern/main.c (grub_env_write_root): Add the attribute unused into
46078 VAR.
46079
46080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46081 normal/completion.c.
46082 (normal_mod_SOURCES): Likewise.
46083 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
46084 (normal_mod_SOURCES): Likewise.
46085
46086 * normal/command.c (grub_iterate_commands): If ITERATE returns
46087 non-zero, return one immediately.
46088
e85e144b 460892005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
46090
46091 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
46092 * kern/i386/pc/startup.S: Updated Global Descriptor table's
46093 descriptions.
46094 (grub_vbe_get_controller_info): New function.
46095 (grub_vbe_get_mode_info): Likewise.
46096 (grub_vbe_set_mode): Likewise.
46097 (grub_vbe_get_mode): Likewise.
46098 (grub_vbe_set_memory_window): Likewise.
46099 (grub_vbe_get_memory_window): Likewise.
46100 (grub_vbe_set_scanline_length): Likewise.
46101 (grub_vbe_get_scanline_length): Likewise.
46102 (grub_vbe_set_display_start): Likewise.
46103 (grub_vbe_get_display_start): Likewise.
46104 (grub_vbe_set_palette_data): Likewise.
46105 * include/grub/i386/pc/vbe.h: New file.
46106
c46153d2 461072005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46108
46109 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46110 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
46111 * DISTLIST: Likewise.
46112 * kern/ieee1275/of.c: Moved to ...
46113 * kern/ieee1275/ieee1275.c: ... here.
46114
0cb90c45 461152005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46116
46117 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
46118 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
46119 Pass 0 as `end' parameter to grub_strtoul().
46120
a19fb360 461212005-08-08 Hollis Blanchard <hollis@penguinppc.org>
46122
46123 * include/grub/powerpc/ieee1275/console.h: Do not include
46124 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
46125 ifdef.
46126 (grub_console_cur_color): Remove i386-specific prototype.
46127 (grub_console_real_putchar): Likewise.
46128 (grub_console_checkkey): Likewise.
46129 (grub_console_getkey): Likewise.
46130 (grub_console_getxy): Likewise.
46131 (grub_console_gotoxy): Likewise.
46132 (grub_console_cls): Likewise.
46133 (grub_console_setcursor): Likewise.
46134 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
46135 Include <grub/machine/console.h>.
46136 * term/ieee1275/ofconsole.c: Likewise.
46137
4ac9bd04 461382005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
46139
46140 * Makefile.in (LIBLZO): New variable.
46141
46142 * configure.ac: Check for LZO version 2.
46143
46144 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
46145 lzo/lzo1x.h instead of lzo1x.h.
46146
46147 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
46148 of -llzo.
46149
46150 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
46151 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
46152
46153 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
46154 copying the data from PARTITION to P.
46155
f4917dfd 461562005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46157
46158 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
46159 negative, unload the module.
46160
46161 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
46162 map is "pc_partition_map" but not "pc".
46163 (usage): Fix the description. The options are --boot-image and
46164 --core-image but not --boot-file or --core-file.
46165 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
46166 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
46167 DEFAULT_DIRECTORY.
46168
46169 * util/i386/pc/grub-install.in: Do not specify --boot-file or
46170 --core-file. Specify INSTALL_DEVICE as an argument.
46171
46172 * util/console.c: Include config.h.
46173 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
46174 [HAVE_NCURSES_H]: Include ncurses.h.
46175 [HAVE_CURSES_H]: Include curses.h.
46176 [!A_NORMAL] (A_NORMAL): Defined as zero.
46177 [!A_STANDOUT] (A_STANDOUT): Likewise.
46178
46179 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
46180 -lncurses.
46181 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
46182
46183 * configure.ac: Check for curses libraries and headers.
46184
46185 * Makefile.in (LIBCURSES): New variable.
46186
46187 * genmk.rb (Script::rule): Set the executable bits.
46188
46189 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
46190 name of the PC partition map is "pc_partition_map" but not "pc".
46191
0e143073 461922005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46193
46194 * util/i386/pc/grub-install.in (grub_probefs): New variable.
46195 (modules): Likewise.
46196 (usage): Added descriptions for --modules and --grub-probefs.
46197 Handle --modules and --grub-probefs. Save the arguments in MODULES
46198 and GRUB_PROBEFS, respectively.
46199 Auto-detect a filesystem module against GRUBDIR. If the result is
46200 empty and modules are not specified explicitly, abort the
46201 installation. Add the result to MODULES.
46202
46203 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
46204 disk/powerpc/ieee1275/ofdisk.c,
46205 include/grub/powerpc/ieee1275/init.h and
46206 term/powerpc/ieee1275/ofconsole.c.
46207 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
46208 term/ieee1275/ofconsole.c.
46209
46210 * include/grub/powerpc/ieee1275/console.h: Resurrected.
46211
46212 * COPYING: Upgraded to the latest version. Only the address of the
46213 FSF office has changed.
f19dbdb7 46214
efd6e6d5 462152005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
46216
46217 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
46218 kern/ieee1275.c with kern/ieee1275/of.c.
46219
46220 * kern/ieee1275.c: Moved to ...
46221 * kern/ieee1275/of.c: ... here.
46222
8ceafda2 462232005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
46224
46225 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 46226 readability.
8ceafda2 46227
46228 * config.guess: Updated to the latest version from gnulib.
46229 * config.sub: Likewise.
46230 * install.sh: Likewise.
46231 * mkinstalldirs: Likewise.
46232
46233 * include/grub/console.h: Removed. This file is arch-specific. Do
46234 not put this in include/grub.
46235
46236 * include/grub/i386/pc/console.h: Resurrected.
46237
46238 * util/console.c: Include grub/machine/console.h instead of
46239 grub/console.h.
46240 * util/grub-emu.c: Likewise.
46241
267f6cd9 462422005-08-04 Marco Gerards <metgerards@student.han.nl>
46243
46244 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
46245 hardcoded value.
f19dbdb7 46246
267f6cd9 46247 From Vincent Pelletier <subdino2004@yahoo.fr>
46248 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
46249 Redefined to use grub_getwh.
46250 (grub_term): New member named getwh.
46251 (grub_getwh): New prototype.
46252 * kern/term.c (grub_getwh): New function.
46253 * term/i386/pc/console.c (grub_console_getwh): New function.
46254 (grub_console_term): New member `getwh'.
46255 * term/i386/pc/vga.c (grub_vga_getwh): New function.
46256 (grub_vga_term): New member `getwh'.
0b5abe02 46257 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 46258 grub_ssize_t.
46259 (grub_ofconsole_getw): New function.
46260 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
46261 (grub_ofconsole_term): New field named getwh and new initial
46262 value.
46263
3be7266d 462642005-08-03 Hollis Blanchard <hollis@penguinppc.org>
46265
46266 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
46267 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
46268 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
46269 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
46270 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
46271 of <grub/machine/ieee1275.h>.
46272 * commands/ieee1275/reboot.c: Likewise.
46273 * boot/powerpc/ieee1275/ieee1275.c: Move ...
46274 * kern/ieee1275.c: ... to here. All users updated. Change all
46275 parameter structs to use new type `grub_ieee1275_cell_t'.
46276 * term/powerpc/ieee1275/ofconsole.c: Move ...
46277 * term/ieee1275/ofconsole.c: ... to here. All users updated.
46278 * disk/powerpc/ieee1275/ofdisk.c: Move ...
46279 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
46280 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
46281 to return int.
46282 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
46283 Remove unused prototypes. All users updated.
46284 * include/grub/powerpc/ieee1275/console.h: Removed.
46285 * include/grub/powerpc/ieee1275/ieee1275.h: Define
46286 `grub_ieee1275_cell_t'.
46287 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
46288 Cast comparisons with -1 to the correct type.
46289 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
46290 type to match `grub_ieee1275_entry_fn'.
46291
8b5f3938 462922005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
46293
46294 * DISTLIST: Added util/i386/pc/grub-probefs.c.
46295
46296 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
46297 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
46298 partmap/sun.c.
46299 (grub_probefs_SOURCES): New variable.
46300
46301 * util/i386/pc/grub-probefs.c: New file.
46302
46303 * util/i386/pc/grub-setup.c (main): Call
46304 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
46305 grub_hfs_init and grub_jfs_init to initialize the system. Call
46306 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
46307 grub_pc_partition_map_fini to finish the system.
46308
ea409713 463092005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
46310
46311 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
46312 function.
46313 (grub_multiboot_load_elf32): Likewise.
46314 (grub_multiboot_is_elf64): Likewise.
46315 (grub_multiboot_load_elf64): Likewise.
46316 (grub_multiboot_load_elf): Likewise.
46317 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
46318 an ELF32 or ELF64 file.
46319 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
46320
46321 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
46322 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
46323 NULL before calling FS->LABEL.
46324 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
46325 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
46326 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
46327 before calling FS->LABEL.
46328
141a288b 463292005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
46330
46331 * util/i386/pc/grub-install.in (datadir): New variable.
46332 (libdir): Removed.
46333 (pkgdatadir): New variable.
46334 (pkglibdir): Removed.
46335
0d5f8a54 463362005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
46337
46338 * DISTLIST: Added util/i386/pc/grub-install.in.
46339
46340 * util/i386/pc/grub-install.in: New file.
46341
46342 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
46343 (grub_install_SOURCES): Likewise.
46344
46345 * genmk.rb: Added support for scripts.
46346 (Script): New class.
46347 (scripts): New variable.
46348
46349 * Makefile.in (install-local): Install sbin_SCRIPTS by
46350 INSTALL_SCRIPT.
46351 (uninstall): Remove sbin_SCRIPTS.
46352
46353 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
46354 device, try to get a GRUB device by
46355 grub_util_biosdisk_get_grub_dev.
46356 Free DEST_DEV.
46357
46358 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
46359 description for --device-map.
46360
5f968e1e 463612005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46362
46363 Change the semantics of variable hooks. They now return strings
46364 instead of error values.
f19dbdb7 46365
5f968e1e 46366 * util/i386/pc/grub-setup.c: Include grub/env.h.
46367 (setup): Use grub_device_set_root instead of grub_env_set.
46368
46369 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
46370 grub_env_get instead of grub_device_set_root and
46371 grub_device_get_root, respectively.
46372
46373 * kern/main.c (grub_env_write_root): New function.
46374 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
46375 grub_env_set instead of grub_device_set_root.
46376
46377 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
46378 many variables.
46379 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
46380 rather than calling ENV->WRITE_HOOK afterwards.
46381 (grub_env_get): Return the result of ENV->READ_HOOK rather than
46382 passing a pointer of a pointer.
46383 (grub_register_variable_hook): Change the types of "read_hook" and
46384 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
46385 respectively.
46386 Allocate the default empty string on the heap, because this string
46387 may be freed later.
46388
46389 * kern/device.c: Include grub/env.h.
46390 (grub_device_set_root): Removed.
46391 (grub_device_get_root): Likewise.
46392 (grub_device_open): Use grub_env_get instead of
46393 grub_device_get_root.
46394
46395 * include/grub/env.h (grub_env_read_hook_t): New type.
46396 (grub_env_write_hook_t): Likewise.
46397 (grub_env_var): Change the types of "read_hook" and "write_hook"
46398 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
46399 (grub_register_variable_hook): Likewise.
46400
46401 * include/grub/device.h (grub_device_set_root): Removed.
46402 (grub_device_set_root): Likewise.
46403
46404 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
46405 make sure that DIRNAME terminates with '/', so that
46406 grub_fat_find_dir will fail if PATH is not a directory.
46407
46408 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
46409 from DIRNAME.
46410 Use the qualifier auto for print_files and print_files_long.
46411 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
46412 as a regular file.
46413 Put a newline only if there is no error.
46414 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
46415 used.
46416
896f0afd 464172005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
46418
46419 * kern/partition.c (grub_partition_probe): Initialize PART to
46420 NULL. Otherwise, when no partition map is registered, this returns
46421 a garbage.
46422
b28b81b2 464232005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
46424
46425 * partmap/apple.c (apple_partition_map_iterate): Check if POS
46426 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
46427 valid.
46428
5f3607e0 464292005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
46430
46431 * commands/ls.c (grub_ls_list_disks): Print the filesystem
46432 information on each device, if it does not have partitions. Print
46433 "Device" instead of "Disk", because this function is not specific
46434 to disk devices.
46435
46436 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
46437 static to ensure that it is put on the memory rather than a
46438 register.
46439
502c87e8 464402005-07-17 Yoshinori Okuji <okuji@enbug.org>
46441
46442 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
46443 (grub_cat_init): Likewise.
46444 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
46445 (options): Likewise.
46446 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
46447 (grub_configfile_init): Likewise.
46448 * font/manager.c (GRUB_MOD_INIT): Likewise.
46449 * commands/help.c (GRUB_MOD_INIT): Likewise.
46450 (grub_help_init): Likewise.
46451 * normal/command.c (grub_command_init): Likewise.
46452 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
46453 * disk/loopback.c (grub_loop_init): Likewise.
46454 (GRUB_MOD_INIT): Likewise.
46455 * commands/ls.c (grub_ls_init): Likewise.
46456 (GRUB_MOD_INIT): Likewise.
46457 (options): Likewise.
46458 * commands/boot.c (grub_boot_init): Likewise.
46459 (GRUB_MOD_INIT): Likewise.
46460 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
46461 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
46462 (GRUB_MOD_INIT): Likewise.
46463 * commands/cmp.c (grub_cmp_init): Likewise.
46464 (GRUB_MOD_INIT): Likewise.
46465
46466 * normal/arg.c: Use <> instead of "" to include header files.
46467 (SHORT_ARG_HELP): New macro.
46468 (SHORT_ARG_USAGE): Likewise.
46469 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
46470 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
46471 descriptions.
46472 (find_short): Check if C is 'h' or 'u' explicitly.
46473 (grub_arg_show_help): Use space characters instead of tabs. Treat
46474 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
46475 are shown with --help and --usage only if they are not used for
46476 the command itself.
46477 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
46478 'h' and 'u'.
46479
46480 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
46481 const into "longarg". Change the type of "shortarg" to int.
46482
f806d18e 464832005-07-17 Yoshinori Okuji <okuji@enbug.org>
46484
46485 * boot/i386/pc/boot.S (boot_drive_check): New label.
46486
46487 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
46488 macro.
46489
46490 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
46491 which do not pass a boot drive correctly. Copied from GRUB Legacy.
46492
e293232b 464932005-07-17 Yoshinori Okuji <okuji@enbug.org>
46494
46495 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
46496 When turning off Gate A20, skip the check and return immediately,
46497 because this is not fatal usually.
46498
ebedfd00 464992005-07-17 Yoshinori Okuji <okuji@enbug.org>
46500
46501 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
46502 be 0x7C00 instead of 0x8000.
46503
46504 * boot/i386/pc/pxeboot.S: Rewritten.
46505
46506 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
46507 EXT_C.
46508 (gate_a20_check_state): Read a byte from 0x108000. Invert the
46509 result.
46510
654fc59f 465112005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
46512
46513 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
46514 robustness. This routine now supports a BIOS call and System
46515 Control Port A to modify the gate A20.
46516
46517 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
46518 Increased to 0x440.
46519
09f9923f 465202005-07-12 Hollis Blanchard <hollis@penguinppc.org>
46521
46522 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
46523 device path and resulting ihandle.
46524 (grub_ofdisk_close): dprintf the ihandle being closed.
46525 (grub_ofdisk_read): dprintf function parameters.
46526 * kern/mm.c (grub_mm_init_region): Likewise.
46527 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
46528 (grub_linux_boot): dprintf the Linux entry point, initrd address and
46529 size, and boot arguments.
46530 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
46531 before loading into memory.
46532 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
46533 before loading into memory.
46534
7ef504d8 465352005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
46536
46537 * kern/mm.c: Added much documentation.
46538 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
46539 8, set to 5 instead of 8.
46540
e0f050c2 465412005-07-10 Yoshinori Okuji <okuji@enbug.org>
46542
46543 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
46544
46545 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
46546 (grub_mkdevicemap_SOURCES): New variable.
46547
46548 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
46549 lib/device.c of GRUB Legacy.
46550
7224189a 465512005-07-10 Yoshinori Okuji <okuji@enbug.org>
46552
46553 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
46554 instead of PATH is NULL.
46555
68c864eb 465562005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
46557
46558 * commands/cmp.c (BUFFER_SIZE): New macro.
46559 (grub_cmd_cmp): Close the right file at the right time. Compare
46560 only data just read. Don't report files of different size as
46561 identical. Dynamically allocate buffers. Move variable
46562 declarations at the beginning of function.
46563
e6f3e614 465642005-07-09 Yoshinori Okuji <okuji@enbug.org>
46565
46566 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
46567 reverse.
46568
f8f1559a 465692004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
46570
46571 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
46572 when backspace is pressed at beginning of line.
46573
39c9d41d 465742005-07-03 Yoshinori Okuji <okuji@enbug.org>
46575
46576 * DISTLIST: Added genfslist.sh.
46577
46578 * normal/main.c (fs_module_list): New variable.
46579 (autoload_fs_module): New function.
46580 (read_fs_list): Likewise.
46581 (grub_normal_execute): Call read_fs_list.
46582
46583 * kern/fs.c (grub_fs_autoload_hook): New variable.
46584 (grub_fs_probe): Added support for auto-loading.
46585
46586 * include/grub/normal.h (struct grub_fs_module_list): New struct.
46587 (grub_fs_module_list_t): New type.
46588
46589 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
46590 (grub_fs_autoload_hook): New prototype.
46591
46592 * genfslist.sh: New file.
f19dbdb7 46593
39c9d41d 46594 * genmk.rb: Added a rule to generate a filesystem list.
46595
121c1d83 465962005-06-30 Marco Gerards <metgerards@student.han.nl>
46597
46598 * configure.ac: Fix the test for cross-compiling.
46599
46600 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
46601 define GRUB_UTIL anymore.
46602
46603 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
46604 so this function works on other systems than just big endian.
46605 (load_modules): Likewise.
46606 (add_segments): Likewise.
46607
e75d76e1 466082005-06-23 Hollis Blanchard <hollis@penguinppc.org>
46609
46610 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
46611 contains `l' modifier, get a long from va_arg().
46612
50b5a0a7 466132005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
46614
46615 * kern/mm.c (grub_free): If the next free block which is being
46616 merged is the first free block, set the first block to the block
46617 being freed.
46618 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
46619
89371b20 466202005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46621
46622 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
46623 `grub_ieee1275_chosen'.
46624
168d6e58 466252005-05-08 Hollis Blanchard <hollis@penguinppc.org>
46626
46627 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
46628 (grub_ieee1275_chosen): New variable.
46629 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
46630 `chosen'.
46631 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
46632 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46633 Rename first argument to `phandle' for consistency.
46634 (grub_ieee1275_get_property_length): Likewise.
46635 (grub_ieee1275_next_property): Likewise. Change type of first argument
46636 to grub_ieee1275_phandle_t.
46637 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
46638 Move export next to declaration.
46639 (grub_ieee1275_chosen): New variable.
46640 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
46641 Correct cosmetic typo.
46642 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
46643 `grub_ieee1275_chosen'.
46644 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
46645 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
46646 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
46647 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
46648 `grub_ieee1275_chosen'.
46649
ca5baa3f 466502005-05-10 Hollis Blanchard <hollis@penguinppc.org>
46651
46652 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
46653 /chosen/bootargs.
46654 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
46655 /chosen/bootargs as "variable=value" pairs.
46656
708b345f 466572005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
46658
46659 * include/grub/misc.h (grub_dprintf): New macro.
46660 (grub_real_dprintf): New prototype.
46661 (grub_strword): Likewise.
46662 (grub_iswordseparator): Likewise.
46663 * kern/misc.c (grub_real_dprintf): New function.
46664 (grub_strword): Likewise.
46665 (grub_iswordseparator): Likewise.
46666
f4c5e67c 466672005-04-30 Hollis Blanchard <hollis@penguinppc.org>
46668
46669 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
46670 (roundup): Remove macro.
46671 (grub_ieee1275_flags): Make static.
46672 (grub_ieee1275_realmode): Remove.
46673 (grub_ieee1275_test_flag): New function.
46674 (grub_ieee1275_set_flag): Likewise.
46675 (find_options): Rename to `grub_ieee1275_find_options'; update
46676 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
46677 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
46678 (cmain): New prototype.
46679 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
46680 `grub_ieee1275_flags' directly.
46681 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
46682 machine/biosdisk.h.
46683 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
46684 Don't include grub/machine/init.h.
46685 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
46686 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46687 Remove prototype.
46688 (grub_ieee1275_realmode): Likewise.
46689 (grub_ieee1275_flag): New enum.
46690 (grub_ieee1275_test_flag): New prototype.
46691 (grub_ieee1275_set_flag): New prototype.
46692 * include/grub/powerpc/ieee1275/init.h: Remove file.
46693 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
46694 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
46695 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
46696 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
46697 comment.
46698 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
46699 `grub_ieee1275_test_flag'.
46700 (grub_ieee1275_encode_devname): Likewise.
46701
ed16607e 467022005-04-21 Hollis Blanchard <hollis@penguinppc.org>
46703
46704 * include/grub/powerpc/ieee1275/ieee1275.h
46705 (grub_ieee1275_encode_devname): New prototype.
46706 (grub_ieee1275_get_filename): Likewise.
46707 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
46708 function.
46709 (grub_set_prefix): Likewise.
46710 (grub_machine_init): Call grub_set_prefix.
46711 * kern/powerpc/ieee1275/openfw.c: Fix typos.
46712 (grub_parse_type): New enum.
46713 (grub_ieee1275_get_devargs): New function.
46714 (grub_ieee1275_get_devname): Likewise.
46715 (grub_ieee1275_parse_args): Likewise.
46716 (grub_ieee1275_get_filename): Likewise.
46717 (grub_ieee1275_encode_devname): Likewise.
46718
be369920 467192005-03-30 Marco Gerards <metgerards@student.han.nl>
46720
46721 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
46722 `grub_loader_unset'.
46723
a5ce3a4a 467242005-03-26 Hollis Blanchard <hollis@penguinppc.org>
46725
46726 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
46727 instead of grub_ieee1275_interpret.
46728 (grub_halt_init): New function.
46729 (grub_halt_fini): Likewise.
46730 (GRUB_MOD_INIT): Correct message grammar.
46731 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
46732 instead of grub_ieee1275_interpret.
46733 (grub_reboot_init): New function.
46734 (grub_reboot_fini): Likewise.
46735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
46736 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
46737 util/i386/pc/misc.c with commands/ieee1275/halt.c,
46738 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
46739 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
46740 function.
46741 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
46742 Add prototype.
46743 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
46744 prototype.
46745 (grub_halt): Likewise.
46746 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
46747 (cmain): Remove __attribute__((unused)).
46748 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
46749 (grub_heap_len): Likewise.
46750 (grub_machine_fini): New function.
46751 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
46752 (grub_halt): Likewise.
46753 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
46754 function.
46755 * util/powerpc/ieee1275/misc.c: New file.
46756
0058f771 467572005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
46758
46759 * DISTLIST: New file.
46760 * gendistlist.sh: Likewise.
f19dbdb7 46761
0058f771 46762 * Makefile.in (COMMON_DISTFILES): Removed.
46763 (BOOT_DISTFILES): Likewise.
46764 (CONF_DISTFILES): Likewise.
46765 (DISK_DISTFILES): Likewise.
46766 (FS_DISTFILES): Likewise.
46767 (INCLUDE_DISTFILES): Likewise.
46768 (KERN_DISTFILES): Likewise.
46769 (LOADER_DISTFILES): Likewise.
46770 (TERM_DISTFILES): Likewise.
46771 (UTIL_DISTFILES): Likewise.
46772 (DISTFILES): Likewise.
46773 (uninstall): Uninstall files in $(pkgdata_DATA).
46774 (DISTLIST): New target.
46775 (distdir): Use the contents of the file DISTLIST to get a list of
46776 distributed files.
46777
46b3b8a5 467782005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
46779
46780 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
46781 descriptor. This is ported from GRUB Legacy.
46782
46783 * gencmdlist.sh: Added an extra semicolon to make it work with
46784 old sed versions. Reported by Robert Bihlmeyer
46785 <robbe@orcus.priv.at>.
46786
5822ff87 467872005-03-08 Yoshinori Okuji <okuji@enbug.org>
46788
46789 Automatic loading of commands is supported.
f19dbdb7 46790
5822ff87 46791 * normal/main.c (read_command_list): New function.
46792 (grub_normal_execute): Call read_command_list.
46793
46794 * normal/command.c (grub_register_command): Return zero or CMD.
46795 Allocate CMD->NAME from the heap.
46796 Initialize CMD->MODULE_NAME to zero.
46797 Find the same name as well. If the same command is found and it is
46798 a dummy command, overwrite members. If it is not a dummy command,
46799 return zero.
46800 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
46801 (grub_command_find): If a dummy command is found, load a module
46802 and retry to find a command only once.
46803
46804 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
46805 make sure that each command is loaded.
46806
46807 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
46808 macro.
46809 (struct grub_command): Remove const from the member `name'.
46810 Add a new member `module_name'.
46811 (grub_register_command): Return grub_command_t.
46812
46813 * commands/help.c (grub_cmd_help): Call grub_command_find to make
46814 sure that each command is loaded.
46815
46816 * genmk.rb (PModule::rule): Specify a module name without the
46817 suffix ".mod" to gencmdlist.sh.
46818
7b1f4b57 468192005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46820
46821 * gencmdlist.sh: New file.
f19dbdb7 46822
7b1f4b57 46823 * genmk.rb (PModule::rule): Generate a rule for a command list.
46824 Clean command.lst.
46825 Generate command.lst from $(COMMANDFILES).
46826
46827 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46828 (DATA): Added $(pkgdata_DATA).
46829 (install-local): Install files in $(pkgdata_DATA).
46830
062aaf39 468312005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46832
46833 * term/i386/pc/vga.c (debug_command): Removed.
46834 (GRUB_MOD_INIT): Do not register the command "debug".
46835
46836 From Hollis Blanchard:
46837 * commands/configfile.c: New file.
46838 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46839 commands/configfile.c.
46840 (pkgdata_MODULES): Added configfile.mod.
46841 (configfile_mod_SOURCES): New variable.
46842 (configfile_mod_CFLAGS): Likewise.
46843 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46844 commands/configfile.c.
46845 (pkgdata_MODULES): Added configfile.mod.
46846 (configfile_mod_SOURCES): New variable.
46847 (configfile_mod_CFLAGS): Likewise.
46848 * util/grub-emu.c (main): Call grub_configfile_init and
46849 grub_configfile_fini.
46850 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46851 prototype.
46852 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 46853
cee01aa6 468542005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46855
46856 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46857 address.
46858
46859 * commands/help.c (grub_cmd_help): Do not print newlines after
46860 the last command in print_command_help.
46861
93f3a1d8 468622005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46863
46864 * commands/default.h: New file.
46865 * commands/timeout.h: Likewise.
46866 * normal/context.c: Likewise.
f19dbdb7 46867
93f3a1d8 46868 * util/misc.c: Do not include sys/times.h.
46869 Include sys/time.h and grub/machine/time.h.
46870 (grub_get_rtc): Rewritten with gettimeofday.
46871
46872 * util/grub-emu.c (main): Call grub_default_init and
46873 grub_timeout_init before grub_normal_init, and call
46874 grub_timeout_fini and grub_default_fini after grub_main.
46875
46876 * util/console.c (grub_ncurses_checkkey): Return the read
46877 character or -1.
46878
46879 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46880 timeouts.
46881
46882 * normal/main.c (read_config_file): Push MENU. If this fails,
46883 print an error and wait for a user input.
46884 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46885 If a menu is empty or an error occurs, pop MENU.
46886 (grub_normal_execute): Pop and free MENU after grub_menu_run
46887 returns.
46888
46889 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46890
46891 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46892 include time.h.
46893 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46894 without GRUB_UTIL.
46895 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46896 time.h.
46897 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46898 without GRUB_UTIL.
46899
46900 * include/grub/normal.h (struct grub_menu_list): New struct.
46901 (grub_menu_list_t): New type.
46902 (struct grub_context): New struct.
46903 (grub_context_t): New type.
46904 (grub_register_command): Got rid of EXPORT_FUNC.
46905 (grub_unregister_command): Likewise.
46906 (grub_context_get): New prototype.
46907 (grub_context_get_current_menu): Likewise.
46908 (grub_context_push_menu): Likewise.
46909 (grub_context_pop_menu): Likewise.
46910 [GRUB_UTIL] (grub_default_init): Likewise.
46911 [GRUB_UTIL] (grub_default_fini): Likewise.
46912 [GRUB_UTIL] (grub_timeout_init): Likewise.
46913 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46914
46915 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46916 commands/timeout.c and normal/context.c.
46917 (pkgdata_MODULES): Added default.mod and timeout.mod.
46918 (normal_mod_SOURCES): Added normal/context.c.
46919 (default_mod_SOURCES): New variable.
46920 (default_mod_CFLAGS): Likewise.
46921 (timeout_mod_SOURCES): Likewise.
46922 (timeout_mod_CFLAGS): Likewise.
46923 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46924 conf/i386-pc.rmk.
46925 (pkgdata_MODULES): Added default.mod and timeout.mod.
46926 (normal_mod_SOURCES): Added normal/context.c.
46927 (default_mod_SOURCES): New variable.
46928 (default_mod_CFLAGS): Likewise.
46929 (timeout_mod_SOURCES): Likewise.
46930 (timeout_mod_CFLAGS): Likewise.
46931
46932 * Makefile.in (all-local): Added $(MKFILES).
46933
4ed2e1dd 469342005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46935
46936 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46937 (grub_emu_SOURCES): Likewise.
46938 (pkgdata_MODULES): Add `sun.mod'.
46939 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46940 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46941 `partmap/sun.c'.
46942 (pkgdata_MODULES): Add `sun.mod'.
46943 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46944 * include/grub/partition.h (grub_sun_partition_map_init): New
46945 prototype.
46946 (grub_sun_partition_map_fini): Likewise.
46947 * partmap/sun.c: New file.
46948 * util/grub-emu.c (main): Initialize and de-initialize the sun
46949 partitionmap support.
46950
4d4e372e 469512005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46952
46953 This implements an Emacs-like menu entry editor.
f19dbdb7 46954
4d4e372e 46955 * normal/menu_entry.c: New file.
f19dbdb7 46956
4d4e372e 46957 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46958 characters to ASCII.
46959 (saved_char): New variable.
46960 (grub_ncurses_checkkey): Rewritten completely.
46961 (grub_ncurses_getkey): Likewise.
46962 (grub_ncurses_init): Call raw instead of cbreak.
46963
46964 * normal/menu.c (print_entry): Do not put a space.
46965 (init_page): Renamed to ...
46966 (grub_menu_init_page): ... this. All callers changed.
46967 (edit_menu_entry): Removed.
46968 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46969
46970 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46971
46972 * kern/misc.c (grub_vprintf): Call grub_refresh.
46973
46974 * normal/menu.c (DISP_LEFT): Renamed to ...
46975 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46976 * normal/menu.c (DISP_UP): Renamed to ...
46977 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46978 * normal/menu.c (DISP_RIGHT): Renamed to ...
46979 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46980 * normal/menu.c (DISP_DOWN): Renamed to ...
46981 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46982 * normal/menu.c (DISP_HLINE): Renamed to ...
46983 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46984 * normal/menu.c (DISP_VLINE): Renamed to ...
46985 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46986 * normal/menu.c (DISP_UL): Renamed to ...
46987 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46988 * normal/menu.c (DISP_UR): Renamed to ...
46989 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46990 * normal/menu.c (DISP_LL): Renamed to ...
46991 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46992 * normal/menu.c (DISP_LR): Renamed to ...
46993 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46994 * normal/menu.c (TERM_WIDTH): Renamed to ...
46995 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46996 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46997 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46998 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46999 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
47000 * normal/menu.c (TERM_MARGIN): Renamed to ...
47001 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
47002 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
47003 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
47004 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
47005 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
47006 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
47007 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
47008 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
47009 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
47010 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
47011 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
47012 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
47013 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
47014 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
47015 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
47016 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
47017 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
47018 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
47019 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
47020 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
47021 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
47022 All callers changed.
47023
47024 * include/grub/normal.h: New prototype.
47025
47026 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47027 normal/menu_entry.c.
47028 (normal_mod_SOURCES): Likewise.
47029 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47030 (normal_mod_SOURCES): Likewise.
47031
e6b92c8a 470322005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
47033
47034 * include/grub/normal.h (grub_halt_init): New prototype.
47035 (grub_halt_fini): Likewise.
47036 (grub_reboot_init): Likewise.
47037 (grub_reboot_fini): Likewise.
47038
47039 * util/grub-emu.c: Include signal.h.
47040 (main_env): New global variable.
47041 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
47042 catch C-c.
47043 (grub_machine_fini): New function.
47044 (main): Call grub_halt_init and grub_reboot_init before
47045 grub_main, and grub_reboot_fini and grub_halt_fini after it.
47046 Call setjmp with MAIN_ENV to go back afterwards.
47047 Call grub_machine_fini right before return.
47048
47049 * include/grub/util/misc.h: Include setjmp.h.
47050 (main_env): New prototype.
47051
47052 * include/grub/kernel.h (grub_machine_fini): New prototype.
47053 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
47054 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
47055
47056 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
47057 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
47058 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 47059
e6b92c8a 47060 * util/i386/pc/misc.c: New file.
f19dbdb7 47061
e6b92c8a 47062 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
47063 util/i386/pc/misc.c, commands/i386/pc/halt.c and
47064 commands/i386/pc/reboot.c.
47065
c642636f 470662005-02-14 Guillem Jover <guillem@hadrons.org>
47067
47068 * include/grub/dl.h (grub_dl_check_header): New prototype.
47069 (grub_arch_dl_check_header): Change return type to grub_err_t,
47070 remove size parameter and export function. Update all callers.
47071 * kern/dl.c (grub_dl_check_header): New function.
47072 (grub_dl_load_core): Use `grub_dl_check_header' instead of
47073 `grub_arch_dl_check_header'. Check ELF type. Check if sections
47074 are inside the core.
47075 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
47076 independent ELF header checks.
47077 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47078 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
47079 `grub_dl_check_header' instead of explicit checks. Check for the
47080 ELF type.
47081 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
47082 `grub_dl_check_header' instead of explicit checks. Remove arch
47083 specific ELF header checks.
47084
e6b92c8a 47085 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
47086 argument SIZE.
47087
5eabe94b 470882005-02-13 Hollis Blanchard <hollis@penguinppc.org>
47089
47090 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
47091 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
47092
1b14a681 470932005-02-12 Hollis Blanchard <hollis@penguinppc.org>
47094
47095 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 47096 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 47097 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 47098 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 47099 * partmap/amiga.c (amiga_partition_map_iterate): Return
47100 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
47101 * partmap/apple.c (apple_partition_map_iterate): Likewise.
47102
aca108aa 471032005-02-01 Guillem Jover <guillem@hadrons.org>
47104
47105 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
47106 help info.
47107
c9f9c556 471082005-01-31 Marco Gerards <metgerards@student.han.nl>
47109
47110 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
47111 Removed prototype.
47112 (grub_rescue_cmd_linux): New prototype.
47113 (grub_rescue_cmd_initrd): Likewise.
47114 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
47115 `bi_rec'.
47116 (grub_linux_release_mem): Release the memory for the initrd.
47117 (grub_load_linux): Renamed from this...
47118 (grub_rescue_cmd_linux): ...To this. Changed all callers.
47119 Changed `entry' not to be static. Loop over memory regions to
47120 find another one when the default fails.
47121 (grub_rescue_cmd_initrd): New function.
47122 (grub_linux_init): Remove function.
47123 (grub_linux_fini): Likewise.
47124 (GRUB_MOD_INIT): Register `initrd'.
47125 (GRUB_MOD_FINI): Unregister `initrd'.
47126 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
47127 Function removed.
47128 (grub_linux_normal_fini): Likewise.
47129 (GRUB_MOD_INIT): Register `initrd'.
47130 (GRUB_MOD_FINI): Unregister `initrd'.
47131
990cf3aa 471322005-01-31 Marco Gerards <metgerards@student.han.nl>
47133
47134 * commands/help.c: New file.
47135 * normal/arg.c (show_help): Renamed to...
47136 (grub_arg_show_help): ... this.
47137 * commands/i386/pc/halt.c: New file.
47138 * commands/i386/pc/reboot.c: Likewise.
47139 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
47140 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
47141 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
47142 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
47143 variables.
47144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47145 `commands/help.c'.
47146 (pkgdata_MODULES): Add `help.mod'.
47147 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
47148 * grub/i386/pc/init.h (grub_reboot): New prototype.
47149 (grub_halt): Likewise.
47150 * include/grub/normal.h (grub_arg_show_help): New prototype.
47151 (grub_help_init): Likewise.
47152 (grub_help_fini): Likewise.
47153 * util/grub-emu.c (main): Initialize and deinitialize the help
47154 command.
47155
47156 * normal/cmdline.c (grub_cmdline_get): Doc fix.
47157
47158 * normal/command.c (grub_command_init): Fixed the description of
47159 the `set' and `unset' commands.
47160
471612005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 47162
47163 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
47164 function.
47165 * commands/ieee1275/halt.c: New file.
47166 * commands/ieee1275/reboot.c: Likewise.
47167 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
47168 `__attribute__ ((unused))'. Some GCS related fixed.
47169 (grub_suspend_init) [GRUB_UTIL]: Function removed.
47170 (grub_suspend_fini): Likewise.
47171 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
47172 and `halt.mod'.
47173 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
47174 (halt_mod_CFLAGS): New variables.
47175 * include/grub/powerpc/ieee1275/ieee1275.h
47176 (grub_ieee1275_interpret): New prototype.
47177
1ab09cc7 471782005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
47179
47180 * include/grub/misc.h (memmove): New prototype.
47181 (memcpy): Likewise.
47182
8b8cbdb2 471832005-01-22 Hollis Blanchard <hollis@penguinppc.org>
47184
47185 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
47186 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
47187
e3741a27 471882005-01-22 Marco Gerards <metgerards@student.han.nl>
47189
47190 * kern/misc.c (grub_strndup): Function rewritten.
47191
776bd780 471922005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
47193
47194 * normal/menu.c (TERM_WIDTH): Macro redefined.
47195 (TERM_TOP_BORDER_Y): Likewise.
47196 (draw_border): Replaced while-loop by a for-loop. Make the number
47197 of lines consistent with the number of lines displayed in
47198 print_entries. Added a margin below the rectangle.
47199 (print_entry): Make the entry fit in the rectangle.
47200 (print_entries): Display the scroll arrows next to the right
47201 border.
47202
78026bce 472032005-01-21 Marco Gerards <metgerards@student.han.nl>
47204
47205 * fs/minix.c (grub_minix_find_file): Reserve more space for
47206 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
47207 `grub_strncpy' to copy `path' into it.
47208
67bbaf0f 472092005-01-21 Marco Gerards <metgerards@student.han.nl>
47210
47211 Add the loopback device, a device via which files can be accessed
47212 as devices.
f19dbdb7 47213
67bbaf0f 47214 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
47215 (pkgdata_MODULES): Add loopback.mod.
47216 (loopback_mod_SOURCES): New variable.
47217 (loopback_mod_CFLAGS): Likewise.
47218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
47219 `disk/loopback.c'.
47220 (pkgdata_MODULES): Add loopback.mod.
47221 (loopback_mod_SOURCES): New variable.
47222 (loopback_mod_CFLAGS): Likewise.
47223 * disk/loopback.c: new file.
47224 * include/grub/normal.h (grub_loop_init): New prototype.
47225 (grub_loop_fini): New prototype.
47226 * util/grub-emu.c (main): Initialize and de-initialize loopback
47227 support.
47228 * include/grub/disk.h (grub_disk_dev_id): Add
47229 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
47230
6f1c18bd 472312005-01-20 Hollis Blanchard <hollis@penguinppc.org>
47232
47233 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
47234 function.
47235 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
47236 (suspend_mod_SOURCES): New variable.
47237 (suspend_mod_CFLAGS): Likewise.
47238 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
47239 New prototype.
47240 * commands/ieee1275/suspend.c: New file.
47241
b38551da 472422005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
47243
47244 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 47245 ((unused))' to `__attribute__ ((used))'.
b38551da 47246 (GRUB_MOD_FINI): Likewise.
47247 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
47248 * genmk.rb (PModule): Assign space to common symbols when linking
47249 modules.
47250
777aff39 472512005-01-20 Marco Gerards <metgerards@student.han.nl>
47252
47253 * include/grub/mm.h (grub_mm_init_region): Change the type of the
47254 `unsigned' arguments to `grub_size_t'.
47255 (grub_malloc): Likewise.
47256 (grub_realloc): Likewise.
47257 (grub_memalign): Likewise.
47258 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
47259 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
47260 * util/misc.c (grub_malloc): Likewise.
47261 (grub_realloc): Likewise.
47262 * kern/mm.c (get_header_from_pointer): Change the casts to
47263 `unsigned' into a cast to `grub_size_t'.
47264
47265 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
47266 point to `currnode' when `currnode' is changed.
47267
47268 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
47269 Schottelius <nico-linux@schottelius.org>.
47270
d0ff18e1 472712005-01-09 Hollis Blanchard <hollis@penguinppc.org>
47272
47273 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
47274 (note_path): Remove variable.
47275 (GRUB_IEEE1275_NOTE_NAME): New macro.
47276 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
47277 (grub_ieee1275_note_hdr): New structure.
47278 (grub_ieee1275_note_desc): Likewise.
47279 (grub_ieee1275_note): Likewise.
47280 (load_note): Remove `dir' argument. All callers updated. Remove
47281 `note_img' and `path'. Do not load a file from `note_path'.
47282 Initialize a struct grub_ieee1275_note and write that to `out'.
47283 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
47284
4ca7004c 472852005-01-05 Marco Gerards <metgerards@student.han.nl>
47286
47287 * util/misc.c (grub_util_read_image): Revert last change. It
47288 called `grub_util_read_at', which seeks from the beginning of the
47289 file.
47290
0b412211 472912005-01-04 Hollis Blanchard <hollis@penguinppc.org>
47292
47293 * TODO: Add note about endianness in grub-mkimage.
47294 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
47295 section.
47296 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
47297 (grub_mkimage_SOURCES): New target.
47298 * include/grub/kernel.h (grub_start_addr): Remove variable.
47299 (grub_end_addr): Likewise.
47300 (grub_total_module_size): Likewise.
47301 (grub_kernel_image_size): Likewise.
47302 (GRUB_MODULE_MAGIC): New constant.
47303 (grub_module_info): New structure.
47304 (grub_arch_modules_addr): New prototype.
47305 (grub_get_end_addr): Remove prototype.
47306 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
47307 * include/grub/powerpc/ieee1275/kernel.h: New file.
47308 * include/grub/util/misc.h (grub_util_get_fp_size): New
47309 prototype.
47310 (grub_util_read_at): Likewise.
47311 (grub_util_write_image_at): Likewise.
47312 * kern/main.c (grub_get_end_addr): Remove function.
47313 (grub_load_modules): Call grub_arch_modules_addr instead of using
47314 grub_end_addr. Look for a grub_module_info struct in memory. Use
47315 the grub_module_info fields instead of calling grub_get_end_addr
47316 as loop conditions. Move grub_add_unused_region code here.
47317 (grub_add_unused_region): Remove function.
47318 * kern/i386/pc/init.c: Include grub/cache.h.
47319 (grub_machine_init): Remove call to grub_get_end_addr. Remove
47320 one call to add_mem_region.
47321 (grub_arch_modules_addr): New function.
47322 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
47323 (grub_total_module_size): Likewise.
47324 Include grub/machine/kernel.h.
47325 (grub_arch_modules_addr): New function.
47326 * util/grub-emu.c (grub_end_addr): Remove variable.
47327 (grub_total_module_size): Likewise.
47328 (grub_arch_modules_addr): New function.
47329 * util/misc.c: Include unistd.h.
47330 (grub_util_get_fp_size): New function.
47331 (grub_util_read_at): Likewise.
47332 (grub_util_write_image_at): Likewise.
47333 (grub_util_read_image): Call grub_util_read_at.
47334 (grub_util_write_image): Call grub_util_write_image_at.
47335 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
47336 additional memory in kernel_img for a struct grub_module_info.
47337 Fill in that grub_module_info.
47338 * util/powerpc/ieee1275/grub-mkimage.c: New file.
47339
458786f8 473402005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47341
47342 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
47343 New function.
47344 * include/grub/powerpc/ieee1275/ieee1275.h
47345 (grub_ieee1275_milliseconds): New prototype.
47346 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
47347 Change to 1000.
47348 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
47349 grub_ieee1275_milliseconds.
47350
ac507d1b 473512005-01-03 Hollis Blanchard <hollis@penguinppc.org>
47352
47353 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
47354 variable.
47355 (find_options): New function.
47356 (cmain): Call find_options.
47357 * include/grub/powerpc/ieee1275/ieee1275.h
47358 (grub_ieee1275_realmode): New extern variable.
47359 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
47360 grub_map if grub_ieee1275_realmode is false.
47361
6b8fd1c4 473622004-12-29 Marco Gerards <metgerards@student.han.nl>
47363
47364 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
47365 lines are inserted and make it work like readline. Reported by
47366 Vincent Pelletier <subdino2004@yahoo.fr>.
47367
8514a1e0 473682004-12-28 Marco Gerards <metgerards@student.han.nl>
47369
47370 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
47371
47372 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
47373 `kern/powerpc/cache.S'.
47374
924b6140 473752004-12-27 Marco Gerards <metgerards@student.han.nl>
47376
47377 * genmk.rb: Handle the `Program' class in the main loop. Written
47378 by Johan Rydberg <jrydberg@gnu.org>.
47379 (Program): New class.
47380 (programs): New variable.
47381 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
47382 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
47383 instead of "grub/kernel.h". Include <grub/machine/init.h>.
47384 (help_arch): Function removed.
47385 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
47386 `powerpc/libgcc.h' and `loader.h'.
47387 (pkgdata_PROGRAMS): New variable.
47388 (sbin_UTILITIES): Variable removed.
47389 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
47390 (grubof_SOURCES): Variable re-defined so it only includes the
47391 core functionality.
47392 (grubof_CFLAGS): Remove `-DGRUBOF'.
47393 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
47394 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
47395 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
47396 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
47397 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
47398 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
47399 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
47400 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
47401 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
47402 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
47403 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
47404 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
47405 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
47406 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
47407 (pc_mod_CFLAGS): New variables.
47408 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
47409 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
47410 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
47411 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
47412 Moved from here...
47413 * include/grub/i386/pc/init.h (grub_os_area_addr)
47414 (rub_os_area_size): ... to here.
47415 * include/grub/powerpc/ieee1275/ieee1275.h
47416 (grub_ieee1275_entry_fn): Export symbol.
47417 * include/grub/powerpc/ieee1275/init.h: New file.
47418 * include/grub/powerpc/libgcc.h: Likewise.
47419 * include/grub/cache.h: Likewise.
47420 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
47421 <hollis@penguinppc.org>.
47422 * kern/dl.c: Include <grub/cache.h>.
47423 (grub_dl_flush_cache): New function.
47424 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
47425 for this module.
47426 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
47427 (grub_console_init): Removed prototypes.
47428 (grub_machine_init): Don't initialize the modules anymore.
47429 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
47430 static.
47431 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
47432 Macro undef removed.
47433 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
47434 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
47435 relocation `R_PPC_REL32'. Return an error when the relocation is
47436 unknown.
47437 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
47438 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
47439 * util/misc.c (grub_arch_sync_caches): Likewise.
47440
e4b47e0c 474412004-12-19 Marco Gerards <metgerards@student.han.nl>
47442
47443 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
47444 `symlist.c', add `grubof_symlist.c'.
47445 (symlist.c): Variable removed.
47446 (grubof_HEADERS): Variable added.
47447 (grubof_symlist.c): New target.
47448 (kernel_syms.lst): Use `grubof_HEADERS' instead of
47449 `kernel_img_HEADERS'.
47450 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
47451 * kern/powerpc/dl.c: New file.
47452 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
47453 Function removed.
47454 (grub_arch_dl_relocate_symbols): Likewise.
47455 (grub_register_exported_symbols): Likewise.
47456
4ceb3636 474572004-12-13 Marco Gerards <metgerards@student.han.nl>
47458
47459 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
47460 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
47461 to fail instead. Reported by Vincent Pelletier
47462 <subdino2004@yahoo.fr>.
47463
47464 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
47465 it is not allocated. Reported by Vincent Pelletier
47466 <subdino2004@yahoo.fr>.
47467
47468 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
47469 output so the output looks better.
f19dbdb7 47470
3f1578fe 474712004-12-04 Marco Gerards <metgerards@student.han.nl>
47472
47473 Modulize the partition map support and add support for the amiga
47474 partition map.
f19dbdb7 47475
3f1578fe 47476 * commands/ls.c: Include <grub/partition.h> instead of
47477 <grub/machine/partition.h>.
47478 * kern/disk.c: Likewise.
47479 * kern/rescue.c: Likewise.
47480 * loader/i386/pc/chainloader.c: Likewise.
47481 * normal/cmdline.c: Likewise.
47482 * kern/powerpc/ieee1275/init.c: Likewise.
47483 (grub_machine_init): Call `grub_pc_partition_map_init',
47484 `grub_amiga_partition_map_init' and
47485 `grub_apple_partition_map_init'.
47486 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
47487 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
47488 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
47489 `partition.h' and `pc_partition.h'.
47490 (grub_setup_SOURCES): Remove
47491 `disk/i386/pc/partition.c'. Add `kern/partition.c',
47492 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47493 (grub_emu_SOURCES): Likewise.
47494 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
47495 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
47496 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
47497 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47498 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
47499 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
47500 (grubof_SOURCES): Likewise.
47501 * disk/i386/pc/partition.c: File removed.
47502 * disk/powerpc/ieee1275/partition.c: Likewise.
47503 * include/grub/powerpc/ieee1275/partition.h: Likewise.
47504 * include/grub/i386/pc/partition.h: Likewise.
47505 * kern/partition.c: New file.
47506 * partmap/amiga.c: Likewise.
47507 * partmap/apple.c: Likewise.
47508 * partmap/pc.c: Likewise.
47509 * include/grub/partition.h: Likewise..
47510 * include/grub/pc_partition.h: Likewise.
47511 * util/grub-emu.c: Include <grub/partition.h> instead of
47512 <grub/machine/partition.h>.
47513 (main): Call `grub_pc_partition_map_init',
47514 `grub_amiga_partition_map_init' and
47515 `grub_apple_partition_map_init' and deinitialize afterwards.
47516 * util/i386/pc/biosdisk.c: Include `#include
47517 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47518 `<grub/machine/partition.h>'.
47519 * util/i386/pc/grub-setup.c: Likewise.
47520 * util/i386/pc/biosdisk.c: Likewise.
47521 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
47522 partition information in case of a PC partition.
47523 * util/i386/pc/grub-setup.c: Include `#include
47524 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
47525 `<grub/machine/partition.h>'.
47526 (setup): Only access the PC specific partition information in case
47527 of a PC partition.
47528
0ef4ced9 475292004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 47530
0ef4ced9 47531 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
47532 (grub_longjmp): Likewise.
47533 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
47534 20.
47535 * normal/powerpc/setjmp.S: New file.
47536 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47537 `normal/powerpc/setjmp.S'.
47538 (grubof_CFLAGS): Add `-DGRUBOF'.
47539 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
47540 [GRUB_UTIL && !GRUBOF].
f19dbdb7 47541
19950e29 475422004-11-16 Marco Gerards <metgerards@student.han.nl>
47543
47544 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
47545 property named `name'. Correctly handle the error returned by
47546 `grub_ieee1275_finddevice' if a device can not be opened.
47547
a2fea427 475482004-11-02 Hollis Blanchard <hollis@penguinppc.org>
47549
47550 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
47551 `actual' for negativity.
47552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
47553 kern/fshelp.c.
47554
41ea0ea3 475552004-11-01 Marco Gerards <metgerards@student.han.nl>
47556
47557 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
47558 (PAGE_OFFSET): New macro.
47559 (CRTC_ADDR_PORT): Likewise.
47560 (CRTC_DATA_PORT): Likewise.
47561 (START_ADDR_HIGH_REGISTER): Likewise.
47562 (START_ADDR_LOW_REGISTER): Likewise.
47563 (GRAPHICS_ADDR_PORT): Likewise.
47564 (GRAPHICS_DATA_PORT): Likewise.
47565 (READ_MAP_REGISTER): Likewise.
47566 (INPUT_STATUS1_REGISTER): Likewise.
47567 (INPUT_STATUS1_VERTR_BIT): Likewise.
47568 (page): New variable.
47569 (wait_vretrace): New function.
47570 (set_read_map): Likewise.
47571 (set_start_address): Likewise.
47572 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
47573 the right page.
47574 (check_vga_mem): Take the page into account.
47575 (write_char): Likewise.
47576 (write_cursor): Likewise.
47577 (scroll_up): Likewise. Copy the page to the page that is not
47578 shown and switch between both pages.
47579 (grub_vga_putchar): Fix off by one error.
47580 (grub_vga_cls): Wait for the vertical retrace. Take the page into
47581 account.
47582
ad0bd20b 475832004-11-01 Marco Gerards <metgerards@student.han.nl>
47584
47585 Add support for iso9660 (including rockridge).
f19dbdb7 47586
ad0bd20b 47587 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47588 (iso9660_mod_SOURCES): New variable.
47589 (iso9660_mod_CFLAGS): Likewise.
47590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
47591 * include/grub/fs.h (grub_iso9660_init): New prototype.
47592 * util/grub-emu.c (main): Call `grub_iso9660_init'.
47593 * fs/iso9660.c: New file.
47594
47595 * include/grub/misc.h (grub_strncat): New prototype.
47596 * kern/misc.c (grub_strncat): New function.
f19dbdb7 47597
ad0bd20b 47598 * fs/hfs.c (grub_hfs_mount): Translate the error
47599 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
47600 * fs/jfs.c (grub_jfs_mount): Likewise.
47601 * fs/ufs.c (grub_ufs_mount): Likewise.
47602
a5477a59 476032004-10-28 Hollis Blanchard <hollis@penguinppc.org>
47604
47605 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
47606 which initialized BAT registers.
47607 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
47608 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47609 Move from here...
47610 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
47611 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
47612 ... to here.
47613 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
47614 (grub_mapclaim): Likewise.
47615 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
47616 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
47617 hand.
47618
9304c1f8 476192004-10-19 Hollis Blanchard <hollis@penguinppc.org>
47620
47621 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
47622 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
47623 -ffreestanding and -msoft-float.
47624
86f4ae25 476252004-10-15 Hollis Blanchard <hollis@penguinppc.org>
47626
47627 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
47628 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
47629 set in grub_ieee1275_flags.
47630
38912228 476312004-10-14 Hollis Blanchard <hollis@penguinppc.org>
47632
47633 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
47634 prototype.
47635 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
47636 grub_console_init first.
47637 Change the memory range used for grub_ieee1275_claim and
47638 grub_mm_init_region.
47639 Print an error message if the claim fails.
47640 Include <grub/misc.h>.
47641
d1923dc8 476422004-10-13 Hollis Blanchard <hollis@penguinppc.org>
47643
47644 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
47645 Call grub_children_iterate for device nodes of type `scsi',
47646 `ide', or `ata'.
47647 (grub_ofdisk_open): Remove manual device alias resolution.
47648 Fix memory leak when device cannot be opened.
f19dbdb7 47649 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 47650 (grub_children_iterate): New prototype.
47651 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
47652 New function.
47653 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
47654 Return -1 if args.size was -1.
47655
4512e4f3 476562004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47657
47658 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
47659 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
47660 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
47661 Open Firmware's memory for it; claim memory from _start to _end.
47662 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
47663 (_end): New extern.
47664 (_start): Zero BSS from __bss_start to _end.
47665 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
47666 New extern.
47667 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
47668
4d61feb0 476692004-10-11 Hollis Blanchard <hollis@penguinppc.org>
47670
ad0bd20b 47671 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
47672 -1 if args.base was -1.
4d61feb0 47673
026fa2f9 476742004-10-08 Hollis Blanchard <hollis@penguinppc.org>
47675
47676 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
47677 escape sequence instead of a literal ^L. Also call
47678 grub_ofconsole_gotoxy.
47679
9f2220ef 476802004-10-03 Hollis Blanchard <hollis@penguinppc.org>
47681
47682 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
47683 void * arguments to grub_addr_t. All callers updated. Also make
47684 the `result' argument optional.
47685 (grub_ieee1275_release): change void * arguments to grub_addr_t.
47686 All callers updated.
47687
8a572cd7 476882004-09-22 Hollis Blanchard <hollis@penguinppc.org>
47689
47690 * commands/ls.c (grub_ls_list_files): Use the string following the
47691 initial ')', if present, as the filesystem path.
47692 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
47693
47694 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
47695
18aa81f2 476962004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
47697
47698 Make the source code of the menu interface more readable.
f19dbdb7 47699
18aa81f2 47700 * normal/menu.c: Include grub/mm.h.
47701 (TERM_WIDTH): New macro.
47702 (TERM_HEIGHT): Likewise.
47703 (TERM_INFO_HEIGHT): Likewise.
47704 (TERM_MARGIN): Likewise.
47705 (TERM_SCROLL_WIDTH): Likewise.
47706 (TERM_TOP_BORDER_Y): Likewise.
47707 (TERM_LEFT_BORDER_X): Likewise.
47708 (TERM_BORDER_WIDTH): Likewise.
47709 (TERM_MESSAGE_HEIGHT): Likewise.
47710 (TERM_BORDER_HEIGHT): Likewise.
47711 (TERM_NUM_ENTRIES): Likewise.
47712 (TERM_FIRST_ENTRY_Y): Likewise.
47713 (TERM_ENTRY_WIDTH): Likewise.
47714 (TERM_CURSOR_X): Likewise.
47715 (draw_border): Use macros instead of magic numbers.
47716 (print_entry): Likewise.
47717 (print_entries): Likewise.
47718 (run_menu): Likewise. Also, handle the key 'e'.
47719 (run_menu_entry): Ignore empty command lines.
47720 (print_message): Added a new argument EDIT. If EDIT is true,
47721 print a different message.
47722 (init_page): Likewise.
47723 (edit_menu_entry): New function. Not implemented yet.
47724
b47efe30 477252004-09-17 Marco Gerards <metgerards@student.han.nl>
47726
47727 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
47728 can be loaded from normal mode.
f19dbdb7 47729
b47efe30 47730 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
47731 `multiboot.mod'.
47732 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
47733 (multiboot_mod_CFLAGS): New variables.
47734 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 47735 * loader/i386/pc/multiboot_normal.c: Likewise.
47736
b47efe30 47737 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
47738 attribute `unused'.
f19dbdb7 47739
b47efe30 47740 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
47741 `fdiro' to read the mode information from instead of `diro'.
47742
47743 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
47744 looking up a symlink.
47745
47746 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
47747 macro.
47748 * normal/command.c (grub_command_execute): Don't parse the
47749 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
47750 flags of the command.
47751
47752 * normal/menu.c (grub_menu_run): Fix typo.
47753
da75ac71 477542004-09-14 Hollis Blanchard <hollis@penguinppc.org>
47755
47756 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
47757
47758 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
47759 `y + 1' instead of `y - 1'.
47760
47761 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 47762
062b24c2 477632004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
47764
47765 From Hollis Blanchard <hollis@penguinppc.org>:
47766 * kern/misc.c (memmove): New alias for grub_memmove.
47767 (memcmp): New alias for grub_memcmp.
47768 (memset): New alias for grub_memset.
f19dbdb7 47769 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 47770 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 47771 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 47772 (grub_ieee1275_get_property): Likewise.
f19dbdb7 47773
8ddad845 477742004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
47775
47776 Added normal mode command `chainloader' as module chain.mod, which
47777 depends on normal.mod and _chain.mod.
f19dbdb7 47778
8ddad845 47779 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
47780 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
47781 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
47782 Deleted prototype.
47783 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
47784 but arguments parsing moved to ...
47785 (grub_chainloader_cmd): ... here. New function.
47786 * include/grub/i386/pc/chainloader.h: New file.
47787 * loader/i386/pc/chainloader_normal.c: Likewise.
47788
2c1f4ce3 477892004-09-11 Marco Gerards <metgerards@student.han.nl>
47790
47791 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
47792 (grub_mkimage_LDFLAGS): Likewise.
47793 (grub_emu_SOURCES): Likewise.
47794 (kernel_img_HEADERS): Added fshelp.h.
47795 * fs/ext2.c: Include <grub/fshelp.h>.
47796 (FILETYPE_REG): New macro.
47797 (FILETYPE_INO_REG): Likewise.
47798 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
47799 Changed all users.
47800 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
47801 all users.
47802 (grub_fshelp_node): New struct.
47803 (grub_ext2_data): Added member `diropen'. Changed member `inode'
47804 to a pointer.
47805 (grub_ext2_get_file_block): Removed function.
47806 (grub_ext2_read_block): New function.
47807 (grub_ext2_read_file): Replaced parameter `data' by `node'.
47808 This function was written.
47809 (grub_ext2_mount): Read the root inode. Create a diropen struct.
47810 (grub_ext2_find_file): Removed function.
47811 (grub_ext2_read_symlink): New function.
47812 (grub_ext2_iterate_dir): Likewise.
47813 (grub_ext2_open): Rewritten.
47814 (grub_ext2_dir): Rewritten.
47815 * include/grub/fshelp.h: New file.
47816 * fs/fshelp.c: Likewise.
47817
3c52136a 478182004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47819
47820 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47821 (print_message): Add a missing newline.
47822 (run_menu): Added timeout support.
47823 (run_menu_entry): New local function.
47824 (grub_menu_run): Added support for booting.
47825
47826 * kern/loader.c (grub_loader_is_loaded): New function.
47827
47828 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47829 (grub_get_rtc): Exported.
47830
47831 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47832 (grub_get_rtc): Exported.
47833
47834 * include/grub/normal.h (struct grub_command_list): Remove
47835 constant from the member `command'.
47836
47837 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47838
47839 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47840
47841 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47842
aa033560 478432004-08-28 Marco Gerards <metgerards@student.han.nl>
47844
47845 Add support for the JFS filesystem.
47846
47847 * fs/jfs.c: New file.
47848 * include/grub/fs.h (grub_jfs_init): New prototype.
47849 (grub_jfs_fini): New prototype.
47850 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47851 (grub_emu_SOURCES): Likewise.
47852 (pkgdata_MODULES): Add jfs.mod.
47853 (jfs_mod_SOURCES): New variable.
47854 (jfs_mod_CFLAGS): Likewise.
47855 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47856 (grubof_SOURCES): Likewise.
47857 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47858
47859 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47860 endian to the host endian.
47861 (grub_fat_utf16_to_utf8): Move function from there...
47862 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 47863 the endianness of the source string anymore.
aa033560 47864 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47865
94bc45af 478662004-08-24 Marco Gerards <metgerards@student.han.nl>
47867
47868 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47869 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47870 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47871 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 47872
94bc45af 47873 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47874 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47875 for `node_found' and `it_dir'.
47876 (grub_hfs_dir): Add prototype for `dir_hook'.
47877
47878 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47879 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47880 and `indir32' to silence a gcc warning.
47881
47882 * include/grub/fs.h (grub_hfs_init): New prototype.
47883 (grub_hfs_fini): Likewise.
f19dbdb7 47884
47885
97543f08 478862004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47887
47888 Each disk device has its own id now. This is useful to make use
47889 of multiple disk devices.
f19dbdb7 47890
97543f08 47891 * include/grub/disk.h (grub_disk_dev_id): New enum.
47892 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47893 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47894
47895 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47896 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47897
47898 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47899 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47900
47901 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47902 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47903
47904 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47905 "id" which is used by the cache manager.
47906
47907 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47908 of just "GRUB".
47909
64372eb4 479102004-08-18 Marco Gerards <metgerards@student.han.nl>
47911
47912 * fs/hfs.c: New file.
47913 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47914 (grub_emu_SOURCES): Likewise.
47915 (pkgdata_MODULES): Add hfs.mod.
47916 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47917 (grubof_SOURCES): Likewise.
47918 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47919
47920 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47921 * kern/misc.c (grub_strncasecmp): Add function.
47922
cc61b58f 479232004-08-14 Marco Gerards <metgerards@student.han.nl>
47924
47925 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47926 with parentheses.
47927
47928 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47929 (grub_ext2_dir): In case the directory entry type is unknown, read
47930 it from the inode.
47931
0ef123f6 479322004-08-02 Peter Bruin <pjbruin@dds.nl>
47933
47934 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47935 grub_load_linux instead of grub_rescue_cmd_linux as second
47936 argument of grub_rescue_register_command.
47937
47938 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47939
a447c5df 479402004-07-27 Marco Gerards <metgerards@student.han.nl>
47941
47942 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47943 function.
47944 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47945 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47946 `loader/powerpc/ieee1275/linux.c',
47947 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47948 * include/grub/powerpc/ieee1275/ieee1275.h
47949 (grub_ieee1275_release): New prototype.
47950 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47951 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47952 normal, boot, linux and linux_normal.
47953 * loader/powerpc/ieee1275/linux.c: New file.
47954 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47955
5a9e3546 479562004-07-12 Marco Gerards <metgerards@student.han.nl>
47957
47958 * normal/arg.c (grub_arg_parse): Correct error handling after
47959 reallocating the argumentlist (check if `argl' is not null instead
47960 of checking if `args' is not null).
47961 * kern/mm.c (grub_realloc): Return the same pointer when using the
47962 same region, instead of returning the header address.
47963
e15199cb 479642004-07-11 Marco Gerards <metgerards@student.han.nl>
47965
47966 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47967 one block instead of two when looking for the initial partition.
47968 (grub_partition_probe): Initialize the local variable `p' with 0.
47969 Use base 10 for the grub_strtoul call.
47970 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47971 need for one local variable.
47972 (grub_strtoul): Don't add the new value to `num', instead of that
47973 just assign it.
47974
020616c2 479752004-07-11 Marco Gerards <metgerards@student.han.nl>
47976
47977 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47978 (pxeboot_img_SOURCES): New variable.
47979 (pxeboot_img_ASFLAGS): Likewise.
47980 (pxeboot_img_LDFLAGS): Likewise.
47981 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47982 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47983 <lode_leroy@hotmail.com>.
47984
6c51eb64 479852004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47986
47987 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47988 there was no input.
47989
cfb12aff 479902004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47991
47992 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47993 the history buffer logic.
47994
6eabba74 479952004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47996
47997 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47998 (FILETYPE_INO_SYMLINK): New macros.
47999 (grub_ext2_find_file): Check if the node is a directory using the
48000 inode stat information instead of using the filetype in the
48001 dirent. Exclude the first character of an absolute symlink.
48002 (grub_ext2_dir): Mask out the filetype part of the mode member of
48003 the inode.
48004
66e19ef8 480052004-05-24 Marco Gerards <metgerards@student.han.nl>
48006
48007 Add support for UFS version 1 and 2. Add support for the minix
48008 filesystem version 1 and 2, both the variants with 14 and 30 long
48009 filenames.
f19dbdb7 48010
66e19ef8 48011 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
48012 fs/minix.c.
48013 (grub_emu_SOURCES): Likewise.
48014 (pkgdata_MODULES): Add ufs.mod and minix.mod.
48015 (ufs_mod_SOURCES): New variable.
48016 (ufs_mod_CFLAGS): Likewise.
48017 (minix_mod_SOURCES): Likewise.
48018 (minix_mod_CFLAGS): Likewise.
48019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
48020 fs/minix.c.
48021 (grubof_SOURCES): Likewise.
48022 * fs/ufs.c: New file.
48023 * fs/minix.c: New file.
48024 * include/grub/fs.h (grub_ufs_init): New prototype.
48025 (grub_ufs_fini): Likewise.
48026 (grub_minix_init): Likewise.
48027 (grub_minix_fini): Likewise.
48028 * util/grub-emu.c (main): Initialize and deinitialize UFS and
48029 minix fs.
48030
cc2e748a 480312004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
48032
48033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
48034 commands/ls.c, commands/terminal.c, commands/boot.c,
48035 commands/cmp.c and commands/cat.c.
48036 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
48037
48038 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
48039 "env.h"
48040
4b13b216 480412004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48042
48043 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
48044 and grub_, respectively. Because the conversion is trivial and
48045 mechanical, I omit the details here. Please refer to the CVS
48046 if you need more information.
48047
6a142551 480482004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
48049
48050 * include/pupa: Renamed to ...
48051 * include/grub: ... this.
48052 * util/i386/pc/pupa-mkimage.c: Renamed to ...
48053 * util/i386/pc/grub-mkimage.c: ... this.
48054 * util/i386/pc/pupa-setup.c: Renamed to ...
48055 * util/i386/pc/grub-setup.c: ... this.
48056 * util/pupa-emu.c: Renamed to ...
48057 * util/grub-emu.c: ... this.
48058
e56cdf21 480592004-03-29 Marco Gerards <metgerards@student.han.nl>
48060
48061 Add support for the newworld apple macintosh (PPC). This has been
48062 tested on the powerbook 2000 only. It only adds support for
48063 generic ieee1275 functions, console and disk support. This should
48064 be easy to port to other architectures with support for Open
48065 Firmware.
f19dbdb7 48066
e56cdf21 48067 * configure.ac: Accept the powerpc as host_cpu. In the case of
48068 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
48069 specific tests are only executed while building for the i386.
48070 Inverse test for crosscompile.
48071 * genmk.rb (Utility): Allow assembler files.
48072 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
48073 * conf/powerpc-ieee1275.rmk: New file.
48074 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
48075 * disk/powerpc/ieee1275/partition.c: Likewise.
48076 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
48077 * include/pupa/powerpc/ieee1275/console.h: Likewise.
48078 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
48079 * include/pupa/powerpc/ieee1275/time.h: Likewise.
48080 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
48081 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
48082 * include/pupa/powerpc/ieee1275/loader.h
48083 * include/pupa/powerpc/setjmp.h: Likewise.
48084 * include/pupa/powerpc/types.h: Likewise.
48085 * kern/powerpc/ieee1275/init.c: Likewise.
48086 * kern/powerpc/ieee1275/openfw.c: Likewise.
48087 * term/powerpc/ieee1275/ofconsole.c: Likewise.
48088
48089 These files were written by Johan Rydberg
48090 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 48091
e56cdf21 48092 * boot/powerpc/ieee1275/cmain.c: New file.
48093 * boot/powerpc/ieee1275/crt0.S: Likewise.
48094 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
48095 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
48096
8c8cc205 480972004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
48098
48099 * Makefile.in: Update copyright.
48100 * genmodsrc.sh: Likewise.
48101 * gensymlist.sh: Likewise.
48102 * term/i386/pc/vga.c: Indent correctly.
48103
48104 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
48105 bugreporting address.
48106 * util/i386/pc/pupa-setup.c (usage): Likewise,
48107 (main): Call pupa_ext2_init and pupa_ext2_fini.
48108
f19dbdb7 48109 * fs/fat.c (log2): Renamed to ...
8c8cc205 48110 (fat_log2): ... this.
48111 All callers changed.
48112 * kern/misc.c (memcpy): Alias to pupa_memmove.
48113 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
48114 lvalue cast.
48115 * util/console.c (pupa_ncurses_fini): Return 0.
48116
48117 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
48118 Move fail label here.
48119 [__GNU__]: Don't warn when using stat.
48120 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
48121 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
48122 long int. Use strtol instead of strtoul.
f19dbdb7 48123
db1771cf 481242004-03-14 Marco Gerards <metgerards@student.han.nl>
48125
48126 * commands/boot.c: New file.
48127 * commands/cat.c: Likewise.
48128 * commands/cmp.c: Likewise.
48129 * commands/ls.c: Likewise.
48130 * commands/terminal.c: Likewise.
48131 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
48132 (pupa_register_command): Changed interface to match the new
48133 argument parser.
48134 (pupa_command_execute): Changed (almost rewritten) so it uses
48135 pupa_split_command. Added support for setting variables using the
48136 syntax `foo=bar'.
48137 (rescue_command): Changed to work with the new argument parser.
48138 (terminal_command): Moved from here to commands/terminal.c.
48139 (set_command): New function.
48140 (unset_command): New function.
48141 (insmod_command): New function.
48142 (rmmod_command): New function.
48143 (lsmod_command): New function.
48144 (pupa_command_init): Don't initialize the command terminal
48145 anymore. Initialize the commands set, unset, insmod, rmmod and
48146 lsmod.
48147 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
48148 (kernel_img_HEADERS): Add arg.h and env.h.
48149 (pupa_mkimage_LDFLAGS): Add kern/env.c.
48150 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
48151 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
48152 normal/arg.c.
48153 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
48154 terminal.mod.
48155 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
48156 (boot_mod_SOURCES): New variable.
48157 (terminal_mod_SOURCES): Likewise.
48158 (ls_mod_SOURCES): Likewise.
48159 (cmp_mod_SOURCES): Likewise.
48160 (cat_mod_SOURCES): Likewise.
48161
48162 * normal/arg.c: New file.
48163 * kern/env.c: Likewise.
48164 * include/pupa/arg.h: Likewise.
48165 * include/pupa/env.h: Likewise.
48166 * font/manager.c (font_command): Changed to match argument parsing
48167 interface changes.
48168 (PUPA_MOD_INIT): Likewise.
48169 * hello/hello.c (pupa_cmd_hello): Likewise.
48170 (PUPA_MOD_INIT): Likewise.
48171 * include/pupa/disk.h: Include <pupa/device.h>.
48172 (pupa_print_partinfo): New prototype.
48173 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
48174 (pupa_dl_get_prefix): Likewise.
48175 * include/pupa/misc.h: Include <pupa/err.h>.
48176 (pupa_isgraph): New prototype.
48177 (pupa_isdigit): Likewise.
48178 (pupa_split_cmdline): Likewise.
48179 * include/pupa/normal.h: Include <pupa/arg.h>.
48180 (pupa_command): Changed the prototype of the member `func' to
48181 match the argument parsing interface. Added member `options'.
48182 (pupa_register_command): Updated to match function.
48183 (pupa_arg_parse): New prototype.
48184 (pupa_hello_init) [PUPA_UTIL]: New prototype.
48185 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
48186 (pupa_ls_init) [PUPA_UTIL]: Likewise.
48187 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
48188 (pupa_cat_init) [PUPA_UTIL]: Likewise.
48189 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
48190 (pupa_boot_init) [PUPA_UTIL]: Likewise.
48191 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
48192 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
48193 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
48194 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
48195 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
48196 * kern/disk.c: Include <pupa/file.h>.
48197 (pupa_print_partinfo): New function.
48198 * kern/dl.c: Include <pupa/env.h>.
48199 (pupa_dl_dir): Variable removed.
48200 (pupa_dl_load): Use the environment variable `prefix' instead of
48201 the variable pupa_dl_dir.
48202 (pupa_dl_set_prefix): Function removed.
48203 (pupa_dl_get_prefix): Likewise.
48204 * kern/i386/pc/init.c: Include <pupa/env.h>.
48205 (pupa_machine_init): Use the environment variable `prefix' instead of
48206 using pupa_dl_set_prefix to set the prefix.
48207 * kern/main.c: Include <pupa/env.h>.
48208 (pupa_set_root_dev): Use the environment variable `prefix' instead of
48209 using pupa_dl_get_prefix to get the prefix.
48210 * kern/misc.c: Include <pupa/env.h>.
48211 (pupa_isdigit): New function.
48212 (pupa_isgraph): Likewise.
48213 (pupa_ftoa): Likewise.
48214 (pupa_vsprintf): Added support for printing values of the type
48215 `double'. Make it possible to format variable output when using
48216 formatting like `%1.2%f'.
48217 (pupa_split_cmdline): New function.
48218 * kern/rescue.c: Include <pupa/env.h>.
48219 (next_word): Removed function.
48220 (pupa_rescue_cmd_prefix): Likewise.
48221 (pupa_rescue_cmd_set): New function.
48222 (pupa_rescue_cmd_unset): New function.
48223 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
48224 split the command line instead of splitting it here. Added
48225 support for setting variables using the syntax `foo=bar'. Don't
48226 initialize the prefix command anymore. Initialized the set and
48227 unset commands.
48228 * normal/cmdline.c: Include <pupa/env.h>.
48229 (pupa_tab_complete): Added prototypes for print_simple_completion,
48230 print_partition_completion, add_completion, iterate_commands,
48231 iterate_dev, iterate_part and iterate_dir. Moved code to print
48232 partition information from here to kern/disk.c.
fe6b695a 48233 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 48234 * normal/main.c: Include <pupa/env.h>.
48235 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
48236 instead of using pupa_dl_get_prefix to get the prefix.
48237 * term/i386/pc/vga.c: Include <pupa/arg.h>.
48238 (check_vga_mem): Cast pointers to `void *' to silence a gcc
48239 warning.
48240 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
48241 (pupa_vga_setcolor): Declare unused variables with `__attribute__
48242 ((unused))' to silence a gcc warning.
48243 (pupa_vga_setcolor): Likewise.
48244 (debug_command): Changed to match argument parsing
48245 interface changes.
48246 * util/pupa-emu.c: Include <pupa/env.h>.
48247 (options): Added 0's for unused fields to silence a gcc warning.
48248 (argp): Likewise.
48249 (main): Use the environment variable `prefix' instead of using
48250 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
48251 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
48252 and terminal.
48253
48254 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
48255 * util/misc.c: Include <malloc.h>.
48256 (pupa_malloc): Rewritten so errors are correctly reported.
48257 (pupa_realloc): Likewise.
48258 (pupa_memalign): Likewise.
48259 (pupa_mm_init_region): Declare unused variables with
48260 `__attribute__ ((unused))' to silence a gcc warning.
48261 * normal/i386/setjmp.S: Remove tab at the end of the file to
48262 silence a gcc warning.
48263 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
48264 variables with `__attribute__ ((unused))' to silence a gcc
48265 warning.
48266 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
48267 local variable i unsigned to silence a gcc warning.
48268
48269 * kern/term.c: Include <pupa/misc.h>.
48270 (pupa_more_lines): New variable.
48271 (pupa_more): Likewise.
48272 (pupa_putcode): When the pager is active pause at the end of every
48273 screen.
48274 (pupa_set_more): New function.
48275 * include/pupa/term.h (pupa_set_more): New prototype.
48276
48277
3b1139cb 482782004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
48279
48280 Now this project is GRUB 2 rather than PUPA. The location of
48281 the CVS repository was moved to GRUB's.
f19dbdb7 48282
3b1139cb 48283 * configure.ac: Use bug-grub as the reporting address.
48284 Use GRUB instead of PUPA.
48285 Change the version number to 1.90.
48286
8367695c 482872004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
48288
48289 * genkernsyms.sh: Updated copyright information.
48290 * genmk.rb: Likewise.
48291 * genmodsrc.sh: Likewise.
48292 * gensymlist.sh: Likewise.
48293 * boot/i386/pc/boot.S: Likewise.
48294 * boot/i386/pc/diskboot.S: Likewise.
48295 * disk/i386/pc/biosdisk.c: Likewise.
48296 * disk/i386/pc/partition.c: Likewise.
48297 * font/manager.c: Likewise.
48298 * fs/ext2.c: Likewise.
48299 * fs/fat.c: Likewise.
48300 * include/pupa/boot.h: Likewise.
48301 * include/pupa/device.h: Likewise.
48302 * include/pupa/disk.h: Likewise.
48303 * include/pupa/dl.h: Likewise.
48304 * include/pupa/elf.h: Likewise.
48305 * include/pupa/err.h: Likewise.
48306 * include/pupa/file.h: Likewise.
48307 * include/pupa/font.h: Likewise.
48308 * include/pupa/fs.h: Likewise.
48309 * include/pupa/kernel.h: Likewise.
48310 * include/pupa/loader.h: Likewise.
48311 * include/pupa/misc.h: Likewise.
48312 * include/pupa/mm.h: Likewise.
48313 * include/pupa/net.h: Likewise.
48314 * include/pupa/normal.h: Likewise.
48315 * include/pupa/rescue.h: Likewise.
48316 * include/pupa/setjmp.h: Likewise.
48317 * include/pupa/symbol.h: Likewise.
48318 * include/pupa/term.h: Likewise.
48319 * include/pupa/types.h: Likewise.
48320 * include/pupa/i386/setjmp.h: Likewise.
48321 * include/pupa/i386/types.h: Likewise.
48322 * include/pupa/i386/pc/biosdisk.h: Likewise.
48323 * include/pupa/i386/pc/boot.h: Likewise.
48324 * include/pupa/i386/pc/console.h: Likewise.
48325 * include/pupa/i386/pc/init.h: Likewise.
48326 * include/pupa/i386/pc/kernel.h: Likewise.
48327 * include/pupa/i386/pc/linux.h: Likewise.
48328 * include/pupa/i386/pc/loader.h: Likewise.
48329 * include/pupa/i386/pc/memory.h: Likewise.
48330 * include/pupa/i386/pc/multiboot.h: Likewise.
48331 * include/pupa/i386/pc/partition.h: Likewise.
48332 * include/pupa/i386/pc/time.h: Likewise.
48333 * include/pupa/i386/pc/vga.h: Likewise.
48334 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
48335 * include/pupa/util/getroot.h: Likewise.
48336 * include/pupa/util/misc.h: Likewise.
48337 * include/pupa/util/resolve.h: Likewise.
48338 * kern/device.c: Likewise.
48339 * kern/disk.c: Likewise.
48340 * kern/dl.c: Likewise.
48341 * kern/err.c: Likewise.
48342 * kern/file.c: Likewise.
48343 * kern/fs.c: Likewise.
48344 * kern/loader.c: Likewise.
48345 * kern/main.c: Likewise.
48346 * kern/misc.c: Likewise.
48347 * kern/mm.c: Likewise.
48348 * kern/rescue.c: Likewise.
48349 * kern/term.c: Likewise.
48350 * kern/i386/dl.c: Likewise.
48351 * kern/i386/pc/init.c: Likewise.
48352 * kern/i386/pc/lzo1x.S: Likewise.
48353 * kern/i386/pc/startup.S: Likewise.
48354 * loader/i386/pc/chainloader.c: Likewise.
48355 * loader/i386/pc/linux.c: Likewise.
48356 * loader/i386/pc/multiboot.c: Likewise.
48357 * normal/cmdline.c: Likewise.
48358 * normal/command.c: Likewise.
48359 * normal/main.c: Likewise.
48360 * normal/menu.c: Likewise.
48361 * normal/i386/setjmp.S: Likewise.
48362 * term/i386/pc/console.c: Likewise.
48363 * term/i386/pc/vga.c: Likewise.
48364 * util/console.c: Likewise.
48365 * util/genmoddep.c: Likewise.
48366 * util/misc.c: Likewise.
48367 * util/pupa-emu.c: Likewise.
48368 * util/resolve.c: Likewise.
48369 * util/unifont2pff.rb: Likewise.
48370 * util/i386/pc/biosdisk.c: Likewise.
48371 * util/i386/pc/getroot.c: Likewise.
48372 * util/i386/pc/pupa-mkimage.c: Likewise.
48373 * util/i386/pc/pupa-setup.c: Likewise.
48374
e6eced71 483752004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
48376
48377 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
48378 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
48379 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
48380 reading and reset it after reading.
48381 (pupa_ext2_close): Return PUPA_ERR_NONE.
48382
48383 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
48384 Correct value.
48385 (struct linux_kernel_header): Add kernel_version and
48386 initrd_addr_max.
48387 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
48388 pupa_file_read succeeds.
48389 (pupa_rescue_cmd_initrd): Implement.
48390
5aded270 483912003-12-03 Marco Gerards <metgerards@student.han.nl>
48392
48393 * fs/ext2.c (pupa_ext2_label): New function.
48394 (pupa_ext2_fs): Added label.
48395 * fs/fat.c (pupa_fat_label): New function.
48396 (pupa_fat_fs): Added label.
48397 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
48398
48399 * kern/misc.c (pupa_strndup): New function.
48400 * include/pupa/misc.h (pupa_strndup): New prototype.
48401
48402 * include/pupa/normal.h: Include <pupa/err.h>.
48403 (pupa_set_history): New prototype.
48404 (pupa_iterate_commands): New prototype.
48405 * normal/cmdline.c: Include <pupa/machine/partition.h>,
48406 <pupa/disk.h>, <pupa/file.h>.
48407 (hist_size): New variable.
48408 (hist_lines): Likewise.
48409 (hist_end): Likewise.
48410 (hist_used): Likewise.
48411 (pupa_set_history): New function.
48412 (pupa_history_get): Likewise.
48413 (pupa_history_add): Likewise.
48414 (pupa_history_replace): Likewise.
48415 (pupa_tab_complete): Likewise.
48416 (pupa_cmdline_run): Added tab completion and history buffer. Tab
48417 completion shows partitionnames while completing partitions, this
48418 feature was suggested by Jeff Bailey.
48419 * normal/command.c (pupa_iterate_commands): New function.
48420 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
48421 (pupa_normal_init): Initialize history buffer.
48422 (PUPA_MOD_INIT): Likewise.
48423 (pupa_normal_fini): Free the history buffer.
48424 (PUPA_MOD_FINI): Likewise.
48425
48426 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
48427 key.
48428
48429 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
48430 * configure.ac [i386]: Check for regparam bug.
48431 (NESTED_FUNC_ATTR) [! i386]: Defined.
48432
1f7315a3 484332003-11-17 Marco Gerards <metgerards@student.han.nl>
48434
48435 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
48436 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
48437 (pupa_emu_SOURCES): New variable.
48438 (pupa_emu_LDFLAGS): Likewise.
48439 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
48440 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
48441 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
48442 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48443 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
48444 (pupa_jmp_buf): New typedef.
48445 (pupa_setjmp) [PUPA_UTIL]: New macro.
48446 (pupa_longjmp) [PUPA_UTIL]: Likewise.
48447 * include/pupa/term.h (struct pupa_term): New member `refresh'.
48448 (pupa_refresh): New prototype.
48449 * include/pupa/util/getroot.h: New file.
48450 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
48451 it.
48452 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
48453 (pupa_rescue_cmd_cat): Likewise.
48454 (pupa_rescue_cmd_ls): Likewise.
48455 (pupa_rescue_cmd_testload): Likewise.
48456 (pupa_rescue_cmd_lsmod): Likewise.
48457 * normal/cmdline.c (pupa_cmdline_get): Likewise.
48458 * normal/menu.c (run_menu): Likewise.
48459 * kern/term.c (pupa_cls): Likewise.
48460 (pupa_refresh): New function.
48461 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
48462 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
48463 * util/console.c: New file.
f19dbdb7 48464
1f7315a3 48465 * util/i386/pc/getroot.c: New file.
48466 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
48467 (pupa_putchar): New function.
48468 (pupa_refresh): Likewise.
48469 (xgetcwd): Function moved to ...
48470 (strip_extra_slashes): Likewise.
48471 (get_prefix): Likewise.
f19dbdb7 48472 * util/i386/pc/getroot.c: ... here.
1f7315a3 48473 (find_root_device): Function moved and renamed to...
48474 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
48475 Changed all callers.
48476 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
48477 and renamed to...
48478 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
48479 Changed all callers.
48480 * util/misc.c (pupa_memalign): New function.
48481 (pupa_mm_init_region): Likewise.
48482 (pupa_register_exported_symbols): Likewise.
48483 (pupa_putchar): Function removed.
48484 * util/pupa-emu.c: New file.
48485
9a5c1ade 484862003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
48487
48488 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
48489 (_multiboot_mod_SOURCES): New variable.
48490 (_multiboot_mod_CFLAGS): Likewise.
48491 * loader/i386/pc/multiboot.c: New file.
48492 * include/pupa/i386/pc/multiboot.h: Likewise.
48493 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
48494 (pupa_multiboot_real_boot): New function.
48495 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
48496 (pupa_multiboot_real_boot): New prototype.
48497 (pupa_rescue_cmd_multiboot): Likewise
48498 (pupa_rescue_cmd_module): Likewise.
48499
48500 * kern/loader.c (pupa_loader_set): Continue when
48501 pupa_loader_unload_func() fails.
48502 (pupa_loader_unset): New function.
48503 * include/pupa/loader.h (pupa_loader_unset): New prototype.
48504
48505 * kern/misc.c (pupa_stpcpy): New function.
48506 * include/pupa/misc.h (pupa_stpcpy): New prototype.
48507
8e72a9c0 485082003-11-12 Marco Gerards <metgerards@student.han.nl>
48509
48510 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
48511 for available extensions.
48512
48513 * include/pupa/i386/pc/time.h: New file.
48514 * kern/disk.c: Include <pupa/machine/time.h>.
48515 (PUPA_CACHE_TIMEOUT): New macro.
48516 (pupa_last_time): New variable.
48517 (pupa_disk_open): Flush the cache when there was a timeout.
48518 (pupa_disk_close): Reset the timer.
48519 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
48520 pupa_currticks.
48521 * util/misc.c: Include <sys/times.h>
48522 (pupa_get_rtc): New function.
48523
c4adbd32 485242003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48525
48526 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
48527 as blocks.
48528 (pupa_ext2_get_file_block): Use blocks member.
48529
48530 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
48531 first block. Return -1 instead of pupa_errno on error.
48532
bfd30f06 485332003-10-27 Marco Gerards <metgerards@student.han.nl>
48534
48535 * README: In the pupa-mkimage example use _chain instead of chain
48536 and ext2 instead of fat.
48537 * TODO: Replace ext2fs with jfs as an example. Add an item for
48538 adding journal playback for ext2fs.
48539 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
48540 (pkgdata_MODULES): Added ext2.mod.
48541 (ext2_mod_SOURCES): New variable.
48542 (ext2_mod_CFLAGS): Likewise.
48543 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
48544 * include/pupa/misc.h (pupa_strncpy): New prototype.
48545 (pupa_strcat): Likewise.
48546 (pupa_strncmp): Likewise.
48547 * kern/misc.c (pupa_strcat): Enable function.
48548 (pupa_strncpy): New function.
48549 (pupa_strncmp): Likewise.
48550 * fs/ext2.c: New file.
f19dbdb7 48551
bfd30f06 48552 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
48553 when the read failed before retrying.
48554 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
48555 (_FILE_OFFSET_BITS): Likewise.
48556 * configure.ac: Added AC_SYS_LARGEFILE.
48557
98d15063 485582003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48559
48560 * genmk.rb (PModule#rule): Make sure to get only symbol names
48561 from the output of nm.
59cad637 48562 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 48563
18d9c7cd 485642003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
48565
48566 I forgot to check in these changes for a long time. This adds
48567 incomplete support for VGA console, and this is still very
48568 buggy. Also, a lot of consideration is required for I18N,
48569 UNICODE, and VGA font issues. Therefore, assume that this is
48570 such that "better than nothing".
f19dbdb7 48571
18d9c7cd 48572 * font/manager.c: New file.
48573 * include/pupa/font.h: Likewise.
48574 * include/pupa/i386/pc/vga.h: Likewise.
48575 * term/i386/pc/vga.c: Likewise.
48576 * util/unifont2pff.rb: Likewise.
48577
48578 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
48579 (pkgdata_MODULES): Added vga.mod and font.mod.
48580 (vga_mod_SOURCES): New variables.
48581 (vga_mod_CFLAGS): Likewise.
48582 (font_mod_SOURCES): Likewise.
48583 (font_mod_CFLAGS): Likewise.
48584
48585 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
48586
48587 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 48588 (struct pupa_term): Added init and fini.
18d9c7cd 48589 Changed the argument of putchar to pupa_uint32_t.
48590
48591 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
48592 (pupa_console_real_putchar): New prototype.
48593 (pupa_console_putchar): Removed.
48594 (pupa_console_checkkey): Exported.
48595 (pupa_console_getkey): Likewise.
48596
48597 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
48598 characters.
48599
48600 * kern/term.c (pupa_term_set_current): Rewritten.
48601 (pupa_putchar): Likewise.
48602 (pupa_putcode): New function.
48603
48604 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
48605 (pupa_console_real_putchar): ... this.
48606 (pupa_vga_set_mode): New function.
48607 (pupa_vga_get_font): Likewise.
48608
48609 * normal/command.c: Include pupa/term.h.
48610 (terminal_command): New function.
48611 (pupa_command_init): Register the command "terminal".
48612
48613 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
48614 (DISP_UP): Likewise.
48615 (DISP_RIGHT): Likewise.
48616 (DISP_DOWN): Likewise.
48617 (DISP_HLINE): Likewise.
48618 (DISP_VLINE): Likewise.
48619 (DISP_UL): Likewise.
48620 (DISP_UR): Likewise.
48621 (DISP_LL): Likewise.
48622 (DISP_LR): Likewise.
48623
48624 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 48625
977329f5 486262003-02-08 NIIBE Yutaka <gniibe@m17n.org>
48627
48628 * util/resolve.c (pupa_util_resolve_dependencies): BUG
48629 FIX. Reverse the path_list.
48630
48631 * include/pupa/normal.h: Export pupa_register_command and
48632 pupa_unregister_command.
48633
48634 * hello/hello.c (pupa_cmd_hello): New module.
48635 * conf/i386-pc.rmk: Added hello.mod.
48636
1f5ab428 486372003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
48638
48639 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 48640
1f5ab428 48641 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
48642 (compress_kernel): New variable.
48643 (generate_image): Heavily modified to support compressing a
48644 large part of the core image.
48645
48646 * util/misc.c (pupa_util_read_image): Fix a file descriptor
48647 leak.
48648 (pupa_util_load_image): New function.
48649
48650 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
48651 (pupa_compressed_size): New variable.
48652 (codestart): Enable Gate A20 here.
48653 Decompress the compressed part of the core image.
48654 Rearrange the code to put functions and variables which are
48655 required for initialization in the non-compressed part.
48656 Include lzo1x.S.
48657
48658 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
48659 here.
48660
48661 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
48662
f19dbdb7 48663 * include/pupa/i386/pc/kernel.h
1f5ab428 48664 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
48665 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
48666 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48667 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48668 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
48669
48670 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
48671
48672 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
48673 (Utility#rule): Likewise.
48674
48675 * configure.ac: Check if LZO is available.
48676
ce5bf700 486772003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
48678
48679 * include/pupa/normal.h: New file.
48680 * include/pupa/setjmp.h: Likewise.
48681 * include/pupa/i386/setjmp.h: Likewise.
48682 * normal/cmdline.c: Likewise.
48683 * normal/command.c: Likewise.
48684 * normal/main.c: Likewise.
48685 * normal/menu.c: Likewise.
48686 * normal/i386/setjmp.S: Likewise.
f19dbdb7 48687
ce5bf700 48688 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
48689 (pupa_rescue_cmd_initrd): Likewise.
48690
48691 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
48692 Likewise.
48693
48694 * kern/i386/pc/startup.S (translation_table): New variable.
48695 (translate_keycode): New function.
48696 (pupa_console_getkey): Call translate_keycode.
48697
48698 * kern/rescue.c (attempt_normal_mode): New function.
48699 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
48700 it failed, print a message.
48701
48702 * kern/mm.c (pupa_real_malloc): Print more information when a
48703 free magic is broken.
48704 (pupa_free): If the first free header is not free actually, set
48705 it to P.
48706
48707 * kern/main.c (pupa_load_normal_mode): Just load the module
48708 "normal".
48709 (pupa_main): Don't print the message
48710 "Entering into rescue mode..." here.
48711
48712 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
48713 Declared.
48714 (pupa_rescue_cmd_initrd): Likewise.
48715 (pupa_rescue_cmd_initrd): Likewise.
48716
48717 * include/pupa/symbol.h (FUNCTION): Specify the type.
48718 (VARIABLE): Likewise.
48719
48720 * include/pupa/err.h (pupa_err_t): Added
48721 PUPA_ERR_UNKNOWN_COMMAND.
48722
48723 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
48724 (pupa_dl_get_prefix): Likewise.
48725
48726 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
48727 Added _chain.mod and _linux.mod instead of chain.mod and
48728 linux.mod.
48729 (chain_mod_SOURCES): Renamed to ...
48730 (_chain_mod_SOURCES): ... this.
48731 (chain_mod_CFLAGS): Renamed to ...
48732 (_chain_mod_CFLAGS): ... this.
48733 (linux_mod_SOURCES): Renamed to ...
48734 (_linux_mod_SOURCES): ... this.
48735 (linux_mod_CFLAGS): Renamed to ...
48736 (_linux_mod_CFLAGS): ... this.
48737 (normal_mod_SOURCES): New variable.
48738 (normal_mod_CFLAGS): Likewise.
48739 (normal_mod_ASFLAGS): Likewise.
48740
487412003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
48742
48743 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
48744 possible.
48745
fe6b695a 48746 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 48747 recursively.
48748 (pupa_dl_unref): Unrefer depending modules recursively.
48749 Don't call pupa_dl_unload implicitly, because PUPA can crash if
48750 a module is unloaded before one depending on that module is
48751 unloaded.
48752 (pupa_dl_unload): Unload depending modules explicitly,
48753 if possible.
48754
c04da074 487552003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
48756
48757 * include/pupa/i386/pc/linux.h: New file.
48758 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 48759
c04da074 48760 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
48761 Removed.
48762 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
48763 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
48764 of PUPA_CHAINLOADER_BOOT_SECTOR.
48765
48766 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
48767 (pupa_linux_prot_size): New variable.
48768 (pupa_linux_tmp_addr): Likewise.
48769 (pupa_linux_real_addr): Likewise.
48770 (pupa_linux_boot_zimage): New function.
48771 (pupa_linux_boot_bzimage): Likewise.
48772
48773 * kern/i386/pc/init.c (struct mem_region): New structure.
48774 (MAX_REGIONS): New macro.
48775 (mem_regions): New variable.
48776 (num_regions): Likewise.
48777 (pupa_os_area_addr): Likewise.
48778 (pupa_os_area_size): Likewise.
48779 (pupa_lower_mem): Likewise.
48780 (pupa_upper_mem): Likewise.
48781 (add_mem_region): New function.
48782 (compact_mem_regions): Likewise.
48783 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
48784 the size of the conventional memory and that of so-called upper
48785 memory (before the first memory hole).
48786 Instead of adding each found region to free memory, use
48787 add_mem_region and add them after removing overlaps.
48788 Also, add only 1/4 of the upper memory to free memory. The rest
48789 is used for loading OS images. Maybe this is ad hoc, but this
48790 makes it much easier to relocate OS images when booting.
48791
48792 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
48793 (pupa_enter_rescue_mode): Don't register initrd and module.
48794
48795 * kern/mm.c: Include pupa/dl.h.
48796
48797 * kern/main.c: Include pupa/file.h and pupa/device.h.
48798
48799 * kern/loader.c (pupa_loader_load_module_func): Removed.
48800 (pupa_loader_load_module): Likewise.
48801
48802 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
48803 ``.o''.
48804
48805 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
48806 (pupa_linux_tmp_addr): Likewise.
48807 (pupa_linux_real_addr): Likewise.
48808 (pupa_linux_boot_zimage): Likewise.
48809 (pupa_linux_boot_bzimage): Likewise.
48810
48811 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
48812 (pupa_upper_mem): Likewise.
48813 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
48814 module is too dangerous.
48815
48816 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48817 (pupa_os_area_size): Likewise.
48818 (pupa_loader_set): Remove the first argument. Loader doesn't
48819 manage modules or initrd any longer.
48820 (pupa_loader_load_module): Removed.
48821
48822 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48823 (linux_mod_SOURCES): New variable.
48824 (linux_mod_CFLAGS): Likewise.
48825
a13f9237 488262003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48827
48828 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48829 the length of a blocklist correctly.
48830
48831 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48832 Use ioctl only if the OS file is a block device.
48833 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48834 not very useful for normal files.
48835
48836 * kern/main.c (pupa_set_root_dev): New function.
48837 (pupa_load_normal_mode): Likewise.
48838 (pupa_main): Call those above.
48839
48840 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48841 pupa_uint16_t.
48842
48843 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48844
a5ffe966 488452003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48846
48847 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48848 (setup): Configure the installed partition information and the
48849 dl prefix.
48850
48851 * loader/i386/pc/chainloader.c (my_mod): New variable.
48852 (pupa_chainloader_unload): New function.
48853 (pupa_rescue_cmd_chainloader): Refer itself.
48854 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48855
48856 * kern/i386/pc/startup.S (install_partition): Removed.
48857 (version_string): Likewise.
48858 (config_file): Likewise.
48859 (pupa_install_dos_part): New variable.
48860 (pupa_install_bsd_part): Likewise.
48861 (pupa_prefix): Likewise.
48862 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48863
48864 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48865 and pupa/misc.h.
48866 (make_install_device): New function.
48867 (pupa_machine_init): Set the dl prefix.
48868
48869 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48870 (buf): Renamed to ...
48871 (linebuf): ... this.
48872 (pupa_rescue_cmd_prefix): New function.
48873 (pupa_rescue_cmd_insmod): Likewise.
48874 (pupa_rescue_cmd_rmmod): Likewise.
48875 (pupa_rescue_cmd_lsmod): Likewise.
48876 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48877 rmmod and lsmod.
48878
48879 * kern/mm.c (pupa_memalign): If failed even after invalidating
48880 disk caches, unload unneeded modules and retry.
48881
48882 * kern/misc.c (pupa_memmove): New function.
48883 (pupa_memcpy): Removed.
48884 (pupa_strcpy): New function.
48885 (pupa_itoa): Made static.
48886
48887 * kern/dl.c (pupa_dl_iterate): New function.
48888 (pupa_dl_ref): Likewise.
48889 (pupa_dl_unref): Likewise.
48890 (pupa_dl_unload): Return if succeeded or not.
48891 (pupa_dl_unload_unneeded): New function.
48892 (pupa_dl_unload_all): Likewise.
48893 (pupa_dl_init): Renamed to ...
48894 (pupa_dl_set_prefix): ... this.
48895 (pupa_dl_get_prefix): New function.
48896
48897 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48898 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48899 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48900 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48901 (pupa_install_dos_part): Declared.
48902 (pupa_install_bsd_part): Likewise.
48903 (pupa_prefix): Likewise.
48904 (pupa_boot_drive): Likewise.
48905
48906 * include/pupa/types.h: Fix a typo.
48907
48908 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48909 pupa_memmove.
48910 (pupa_memmove): Declared.
48911 (pupa_strcpy): Likewise.
48912
48913 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48914 pupa_mod_init takes one argument, its own module.
48915 (pupa_dl_unload_unneeded): Declared.
48916 (pupa_dl_unload_all): Likewise.
48917 (pupa_dl_ref): Likewise.
48918 (pupa_dl_unref): Likewise.
48919 (pupa_dl_iterate): Likewise.
48920 (pupa_dl_init): Renamed to ...
48921 (pupa_dl_set_prefix): ... this.
48922 (pupa_dl_get_prefix): Declared.
48923
48924 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 48925 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 48926 unloaded.
48927 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48928 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48929
48930 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48931 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48932
012d7999 489332003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48934
48935 * util/i386/pc/pupa-setup.c (setup): Define the internal
48936 function find_first_partition_start at the top level, because GCC
48937 3.0.x cannot compile internal functions in deeper scopes
48938 correctly.
48939 (find_root_device): Use lstat instead of stat.
48940 Don't follow symbolic links.
48941 Fix the path-constructing code.
48942
48943 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48944 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48945 by a BLKGETSIZE ioctl first, because block devices don't fill
48946 the member st_mode of the structure stat on Linux.
48947 [__linux__] (linux_find_partition): Use a temporary buffer
48948 REAL_DEV for the working space. Copy it to DEV before returning.
48949 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48950 buffer cache consistent.
48951 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48952 strncmp. The previous value was merely wrong.
48953 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48954
48955 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48956 FAT size is 12. The previous value was merely wrong.
48957
48958 * kern/main.c (pupa_main): Don't split the starting message from
48959 newlines.
48960
48961 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48962 LF, because BIOS goes crazy about character attributes in this
48963 case.
48964
1cc73a62 489652003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48966
48967 * include/i386/pc/util/biosdisk.h: New file.
48968 * util/i386/pc/biosdisk.c: Likewise.
48969 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 48970
1cc73a62 48971 * Makefile.in (INCLUDE_DISTFILES): Added
48972 include/pupa/i386/pc/util/biosdisk.h.
48973 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48974 directory util/i386/pc.
48975 (install-local): Added a rule for sbin_UTILITIES.
48976 (uninstall): Likewise.
48977
48978 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48979
48980 * util/misc.c (xrealloc): New function.
48981 (pupa_malloc): Likewise.
48982 (pupa_free): Likewise.
48983 (pupa_realloc): Likewise.
48984 (pupa_stop): Likewise.
48985 (pupa_putchar): Likewise.
48986
48987 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48988
48989 * include/pupa/util/misc.h (xrealloc): Declared.
48990
48991 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48992 macro.
48993 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48994 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48995
48996 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48997 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48998
48999 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
49000 way should be implemented.
49001 [PUPA_UTIL] (pupa_fat_fini): Likewise.
49002
49003 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
49004 the size of NAME for safety.
49005 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
49006 0x88.
49007
49008 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
49009 (pupa_setup_SOURCES): Likewise.
49010
49011 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
49012
08b70fe8 490132002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49014
49015 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
49016 bunch of pushl's from pusha, because this destroys the return
49017 value.
49018
62ddcc8f 490192002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
49020
49021 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
49022 This means that any missing prototypes could be fatal. Also, you
49023 must take care when writing assembly code. See the comments at
49024 the beginning of startup.S, for more details.
f19dbdb7 49025
62ddcc8f 49026 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
49027 compilation mechanism.
49028 (pupa_chainloader_real_boot): Likewise.
49029 (pupa_biosdisk_rw_int13_extensions): Likewise.
49030 (pupa_biosdisk_rw_standard): Likewise.
49031 (pupa_biosdisk_check_int13_extensions): Likewise.
49032 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
49033 (pupa_biosdisk_get_diskinfo_standard): Likewise.
49034 (pupa_get_memsize): Likewise.
49035 (pupa_get_mmap_entry): Likewise.
49036 (pupa_console_putchar): Likewise.
49037 (pupa_console_setcursor): Likewise.
49038 (pupa_getrtsecs): Use pushl instead of push.
49039
49040 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
49041 memory instead of the stack for a mmap entry, because some
49042 BIOSes may ignore the maximum size and overflow.
49043
49044 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
49045
49046 * genmk.rb (PModule#rule): Compile automatically generated
49047 sources with module-specific CFLAGS as well as other sources.
49048
9962ed99 490492002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49050
49051 * configure.ac: Check ld.
49052 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
49053 respectively, before checking endianness and sizes.
49054
49055 * Makefile.in (LD): New variable.
f19dbdb7 49056
abdfc3c5 490572002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49058
49059 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
49060
6a161fa9 490612002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
49062
49063 * Changelog: New file.
49064